:root {
    --primary-color: #eeacb8;
    --primary-dark: #d59aa5;
    --bg-dark: #4e3a33;
    --bg-card: #3a2b26;
    --text-main: #fff0f3;
    --text-muted: #d4b4b8;
    --border-color: #5e4a43;
    --glass-bg: rgba(78, 58, 51, 0.7);
    --glass-border: rgba(238, 172, 184, 0.15);
    
    --font-primary: 'Jost', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --shadow-subtle: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-glow: 0 0 20px rgba(255, 142, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .hero-title {
    font-family: var(--font-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-primary);
}

/* Typography & Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition-normal);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 142, 0, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(15, 15, 17, 0.95);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.logo-container .logo {
    height: 45px;
    transition: var(--transition-normal);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn, .account-btn {
    position: relative;
    color: var(--text-main);
    font-size: 1.4rem;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-btn:hover, .account-btn:hover {
    color: var(--primary-color);
    transform: scale(1.05);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Auth Page Styles */
.auth-section {
    padding: 120px 20px 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease both;
}

.auth-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 100px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.switch-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.switch-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.switch-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}


.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    margin-bottom: 8px;
    color: #fff;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hidden {
    display: none !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    margin-left: 5px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('../images/hero-restaurant.jpg') center/cover no-repeat;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15,15,17,0.8) 0%, rgba(15,15,17,0.4) 50%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease forwards;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #eeacb8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-weight: 300;
}

/* Delivery Widget */
.delivery-widget-wrapper {
    position: relative;
    max-width: 900px;
    margin: -60px auto 40px; /* Pull it up into the hero section slightly */
    z-index: 10;
    padding: 0 20px;
}

.delivery-widget {
    background-color: var(--text-main);
    color: #000;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    overflow: hidden;
}

.widget-tabs {
    display: flex;
    background-color: #f1f1f1;
}

.widget-tab {
    flex: 1;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    background: transparent;
    transition: all 0.3s ease;
}

.widget-tab.active {
    background-color: var(--text-main);
    color: #000;
}

.widget-form {
    padding: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.widget-input-wrapper {
    position: relative;
    background-color: #f5eedf; /* Soft beige background */
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.widget-input-wrapper.flex-2 {
    flex: 2;
}

.widget-input-wrapper.flex-1 {
    flex: 1;
}

.widget-input-wrapper input {
    width: 100%;
    padding: 16px 45px 16px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    font-family: var(--font-primary);
}

.widget-input-wrapper input[type="time"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.widget-input-wrapper input:focus {
    outline: none;
}

.input-icon {
    position: absolute;
    right: 15px;
    font-size: 1.2rem;
    color: #333;
    pointer-events: none;
}

.widget-submit {
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: transparent;
    border: 2px solid #000;
    color: #000;
    transition: all 0.3s ease;
}

.widget-submit:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.widget-footer {
    text-align: center;
    padding: 0 30px 25px;
}

.widget-footer p {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.widget-footer-sub {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .widget-form {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .widget-input-wrapper {
        width: 100%;
    }
    .widget-submit {
        width: 100%;
    }
}

/* Menu Section */
.menu-section {
    padding: 100px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Modal Base */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.product-modal-content {
    background: var(--bg-card);
    color: var(--text-main);
    width: 90%;
    max-width: 900px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 2001;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    color: var(--text-main);
    transition: var(--transition-normal);
}

.modal-close-btn:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.modal-body {
    padding: 60px;
}

.modal-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.modal-col-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.modal-col-info h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 500;
    color: var(--text-main);
}

.modal-product-meta {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
}

.modal-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.modal-pieces {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
}

.modal-qty-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-selector button {
    background: transparent;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.qty-selector button:hover {
    color: var(--primary-color);
}

.qty-selector input {
    width: 40px;
    height: 40px;
    text-align: center;
    background: transparent;
    border: 1px solid var(--glass-border);
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 500;
}

.modal-add-btn {
    background: #000 !important; /* Deep black for premium feel like the photo */
    color: #fff !important;
    border-radius: 2px !important; /* Slightly rounded, almost rectangular */
    padding: 12px 30px !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px;
    box-shadow: none !important;
    transition: var(--transition-normal);
    text-align: center;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-add-btn:hover {
    background: #1a1a1a !important;
    transform: none;
}

.modal-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 10px 0;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition-normal);
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .modal-body {
        padding: 40px 20px;
    }
    .modal-cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .modal-col-info h2 {
        font-size: 1.8rem;
    }
    .modal-qty-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .modal-add-btn {
        width: 100%;
    }
}


.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.category-group {
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease both;
}

.category-group-title {
    font-family: var(--font-secondary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
    text-align: left;
    text-transform: capitalize;
}

.show-more-container {
    text-align: center;
    margin-top: 30px;
}


.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 20px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-main);
}

.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* 5 colonnes sur les pages Menu et Accueil */
[data-page="menu"] .products-grid,
[data-page="home"] .products-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1300px) {
    [data-page="menu"] .products-grid,
    [data-page="home"] .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    [data-page="menu"] .products-grid,
    [data-page="home"] .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    [data-page="menu"] .products-grid,
    [data-page="home"] .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}


.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-subtle);
    border-color: rgba(255, 142, 0, 0.3);
}

.product-img-container {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #000;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img {
    transform: scale(1.1);
}

.product-pieces {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--glass-border);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    font-weight: 600;
    line-height: 1.3;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: var(--shadow-glow);
    transform: rotate(90deg);
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* About / Our Story Section */
.about-section {
    padding: 100px 30px;
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.about-subtitle {
    font-size: 1.4rem;
    margin-bottom: 30px;
    font-weight: 300;
    font-style: italic;
    color: var(--text-muted);
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.8;
}

.about-image {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-subtle);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
    pointer-events: none;
}

/* Checkout Page */
.checkout-section {
    padding: 60px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.checkout-form-container {
    flex: 2;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-subtle);
}

.checkout-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group-section {
    margin-bottom: 40px;
}

.form-group-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 142, 0, 0.2);
}

.payment-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.payment-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition-normal);
    background: rgba(0,0,0,0.1);
}

.payment-card i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.payment-option input:checked + .payment-card {
    border-color: var(--primary-color);
    background: rgba(255,142,0,0.05);
}

.payment-option input:checked + .payment-card i {
    color: var(--primary-color);
}

.card-details-form {
    padding: 20px;
    background: rgba(0,0,0,0.15);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.submit-order-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Order Summary Box */
.order-summary-container {
    flex: 1;
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    position: sticky;
    top: 100px;
}

.order-summary-container h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.checkout-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 30px;
    padding-right: 10px;
}

.checkout-items::-webkit-scrollbar {
    width: 4px;
}
.checkout-items::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.checkout-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.checkout-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.order-totals {
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.grand-total {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--glass-border);
    color: var(--primary-color);
}

/* Features */
.features {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 80px 30px;
    background: linear-gradient(to right, #0f0f11, #1a1a1d, #0f0f11);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.feature-item {
    text-align: center;
    max-width: 300px;
    padding: 20px;
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Newsletter Section */
.newsletter-section {
    padding: 80px 0;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(238, 172, 184, 0.05) 0%, transparent 70%);
}

.newsletter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.newsletter-content {
    flex: 1;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.newsletter-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.newsletter-form {
    flex: 1;
    display: flex;
    gap: 15px;
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.newsletter-form .input-group {
    flex: 1;
    position: relative;
}

.newsletter-form .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
}

.newsletter-form input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: #fff;
    font-family: var(--font-primary);
    transition: var(--transition-normal);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1024px) {
    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        padding: 20px;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
}

/* Footer */
footer {
    padding: 60px 30px 30px;
    background: var(--bg-dark);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo img {
    height: 50px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-card);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 25px rgba(0,0,0,0.5);
    border-left: 1px solid var(--glass-border);
}

.cart-active .cart-overlay {
    opacity: 1;
    visibility: visible;
}

.cart-active .cart-sidebar {
    transform: translateX(0);
}

.cart-header {
    padding: 25px 30px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart-btn {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.close-cart-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-items::-webkit-scrollbar {
    width: 6px;
}
.cart-items::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
    font-style: italic;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.cart-item:hover {
    border-color: var(--glass-border);
    background: rgba(255,255,255,0.05);
}

.cart-item-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    margin-bottom: 5px;
    padding-right: 20px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-dark);
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 20px;
}

.qty-btn {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.qty-btn:hover {
    color: #fff;
}

.remove-item-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.remove-item-btn:hover {
    color: #ff4d4d;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-dark);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.btn-checkout {
    width: 100%;
    padding: 15px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1005;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,142,0,0.3);
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    animation: slideInRight 0.3s forwards;
}

.toast i {
    color: var(--primary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    to {
        transform: translateX(120%);    
    }
}

/* Responsive */
@media (max-width: 900px) {
    .checkout-container {
        flex-direction: column;
    }
    .order-summary-container {
        width: 100%;
        position: relative;
        top: 0;
    }
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    .nav-links {
        display: none;
    }
    .menu-section {
        padding: 60px 20px;
    }
    .cart-sidebar {
        max-width: 100%;
    }
    .cart-item {
        padding: 10px;
        gap: 10px;
    }
    .cart-item-img {
        width: 60px;
        height: 60px;
    }
    .cart-item-title {
        font-size: 0.9rem;
    }
}

/* =========================================
   Highlights Section (Nouveautés & Coup de Coeur)
   ========================================= */
.highlights-section {
    padding: 60px 50px;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 40px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.highlight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    gap: 40px;
}

.highlight-row.reverse {
    flex-direction: row-reverse;
}

.highlight-text {
    flex: 0 0 320px;
    padding: 20px 5%;
}

.highlight-text h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: #fff; /* White title like screenshot */
}

.highlight-text p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.5;
    opacity: 0.9;
}

.highlight-products {
    flex: 1;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 0 5% 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.highlight-products::-webkit-scrollbar {
    display: none;
}

.highlight-product-card {
    min-width: 200px;
    flex: 0 0 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.highlight-img-wrapper {
    position: relative;
    width: 200px; 
    aspect-ratio: 1 / 1; 
    margin: 0 auto 15px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-product-img {
    width: 100%;
    height: 100%;
    max-height: 160px; /* Constrain height */
    object-fit: contain;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.5)); /* Slightly stronger drop shadow */
    transition: transform 0.3s ease;
}

.highlight-product-card:hover .highlight-product-img {
    transform: translateY(-10px) scale(1.05);
}

.highlight-product-title {
    font-family: 'Jost', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.highlight-product-desc {
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.7;
    margin-bottom: 5px;
    min-height: 1.4rem;
}

.highlight-product-pieces {
   font-size: 0.85rem;
   color: var(--text-color);
   opacity: 0.7;
   margin-bottom: 15px;
   font-style: italic;
}

.highlight-product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-weight: 600;
}

.highlight-price {
    font-size: 1.1rem;
    color: #fff;
}

.highlight-add-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Jost', sans-serif;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.highlight-add-btn:hover {
    color: var(--accent-color);
}

.heart-badge {
    position: absolute;
    top: -10px;
    right: 0px;
    background: #000;
    color: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid #fff;
}

@media (max-width: 900px) {
    .highlight-row {
        flex-direction: column !important;
        text-align: center;
    }
    
    .highlight-text {
        flex: auto;
    }
    
    .highlight-products {
        width: 100%;
        padding: 0 15px 20px;
    }
    
    .highlight-product-card {
        min-width: 180px;
        flex: 0 0 180px;
    }
    
    .highlight-img-wrapper {
        width: 140px;
        height: 140px;
    }
}

/* =========================================
   Dashboard Styles
   ========================================= */
.dashboard-body {
    background: #0f0f11;
    margin: 0;
    padding: 0;
}

.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.dashboard-sidebar {
    width: 260px;
    background: #1a1a1d;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo img {
    max-width: 140px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
}

.sidebar-nav .nav-item {
    padding: 15px 30px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav .nav-item i {
    font-size: 1.2rem;
}

.sidebar-nav .nav-item:hover, .sidebar-nav .nav-item.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.dashboard-main {
    flex: 1;
    padding: 40px 50px;
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-title {
    font-size: 2rem;
    color: #fff;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(244, 219, 216, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-info h3 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-info p {
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    font-family: 'Playfair Display', serif;
}

.orders-table-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    overflow: hidden;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.orders-table th {
    background: rgba(0,0,0,0.3);
    padding: 20px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.orders-table td {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-color);
    vertical-align: middle;
}

.orders-table tr:last-child td {
    border-bottom: none;
}

.customer-name {
    font-weight: 500;
    color: #fff;
}

.order-total-cell {
    font-weight: 600;
    color: var(--primary-color);
}

.status-select {
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
}

.status-cancelled { color: #ef476f; border-color: #ef476f; }

/* Modal Base Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: #1a1a1d;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    padding: 40px;
    position: relative;
    transform: translateY(30px);
    transition: all 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}
/* Dashbord View Management */
.view-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-item:hover {
    background: rgba(238, 172, 184, 0.1);
    color: var(--accent-color);
}

.nav-item.active {
    background: var(--accent-color);
    color: var(--bg-dark);
}

/* Product Form Styles */
.product-form .form-group {
    margin-bottom: 20px;
}

.product-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-form input,
.product-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

.product-form input:focus,
.product-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.product-img-preview {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    background: #333;
}

.action-btns {
    display: flex;
    gap: 10px;
}

.btn-edit {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-delete {
    color: #ff4d4d;
    border-color: #ff4d4d;
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #fff;
}

.modal-totals {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.modal-totals .total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.modal-totals .grand-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Dashboard Modal overrides */
.modal-body .meta-section h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 5px;
}

.modal-body .meta-section p {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.order-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.modal-items-list {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    max-height: 250px;
    overflow-y: auto;
}

.modal-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--glass-border);
    font-size: 0.95rem;
}

.modal-item-row:last-child {
    border-bottom: none;
}

/* =========================================
   RESPONSIVE — Mobile & Tablet
   Breakpoints: 1024px (tablet), 768px (mobile landscape), 480px (mobile portrait)
   ========================================= */

/* --- Hamburger Menu Button --- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 5px;
    z-index: 1100;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.hamburger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Nav Drawer --- */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 10, 10, 0.97);
    z-index: 1050;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    animation: fadeInUp 0.3s ease both;
}

.mobile-nav-drawer.open {
    display: flex;
}

.mobile-nav-drawer .mobile-nav-link {
    font-size: 1.8rem;
    font-family: var(--font-secondary);
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.mobile-nav-drawer .mobile-nav-link:hover {
    color: var(--primary-color);
}

.mobile-nav-drawer .mobile-nav-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.8rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}

/* =========================================
   TABLET — max-width: 1024px
   ========================================= */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 30px;
    }

    /* Hero */
    .hero-title {
        font-size: 3.5rem;
    }

    /* About section */
    .about-container {
        gap: 40px;
    }

    /* Menu section */
    .menu-section {
        padding: 80px 30px;
    }

    /* Highlights */
    .highlights-section {
        padding: 50px 30px;
    }

    /* Dashboard sidebar narrower */
    .dashboard-sidebar {
        width: 220px;
    }

    .dashboard-main {
        padding: 30px;
    }

    /* Checkout */
    .checkout-container {
        flex-direction: column;
    }

    .order-summary-container {
        position: relative;
        top: 0;
        width: 100%;
    }
}

/* =========================================
   MOBILE LANDSCAPE — max-width: 768px
   ========================================= */
@media (max-width: 768px) {

    /* --- Navbar — show hamburger, hide desktop links --- */
    .nav-links {
        display: none !important;
    }

    .hamburger-btn {
        display: flex;
    }

    .nav-container {
        padding: 0 20px;
    }

    .logo-container .logo {
        height: 36px;
    }

    /* --- Hero --- */
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-content {
        padding: 0 15px;
    }

    /* --- Delivery Widget --- */
    .delivery-widget-wrapper {
        margin: -30px auto 30px;
        padding: 0 15px;
    }

    /* --- About Section --- */
    .about-container {
        flex-direction: column;
        gap: 30px;
    }

    .about-content h2 {
        font-size: 2.2rem;
    }

    .about-image {
        width: 100%;
    }

    /* --- Menu Section --- */
    .menu-section {
        padding: 60px 15px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .category-group-title {
        font-size: 1.5rem;
    }

    /* --- Highlights --- */
    .highlights-section {
        padding: 40px 15px;
    }

    .highlight-text h2 {
        font-size: 2rem;
    }

    /* --- Newsletter --- */
    .newsletter-container {
        padding: 0 20px;
        flex-direction: column;
        text-align: center;
    }

    .newsletter-content h2 {
        font-size: 1.8rem;
    }

    .newsletter-form {
        flex-direction: column;
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    .newsletter-form .btn {
        width: 100%;
    }

    /* --- Features --- */
    .features {
        flex-direction: column;
        align-items: center;
        padding: 50px 20px;
        gap: 20px;
    }

    .feature-item {
        max-width: 100%;
    }

    /* --- Checkout --- */
    .checkout-section {
        padding: 30px 15px;
        margin-top: 80px;
    }

    .checkout-form-container {
        padding: 25px 20px;
    }

    .checkout-title {
        font-size: 1.8rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .payment-methods {
        flex-direction: column;
        gap: 12px;
    }

    /* --- Cart Sidebar --- */
    .cart-sidebar {
        max-width: 100%;
        width: 100%;
    }

    /* --- Dashboard: sidebar turns into a top bar --- */
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        position: sticky;
        top: 0;
        z-index: 100;
    }

    .sidebar-header {
        padding: 0;
        border-bottom: none;
    }

    .sidebar-logo img {
        max-width: 90px;
    }

    .sidebar-nav {
        flex-direction: row;
        padding: 0;
        gap: 5px;
    }

    .sidebar-nav .nav-item {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 6px;
        gap: 6px;
    }

    .sidebar-nav .nav-item:hover,
    .sidebar-nav .nav-item.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary-color);
        background: rgba(255,255,255,0.05);
    }

    .dashboard-main {
        padding: 20px 15px;
    }

    .dashboard-title {
        font-size: 1.4rem;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
    }

    .header-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .stats-cards {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    /* Dashboard table: horizontal scroll */
    .orders-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .orders-table th,
    .orders-table td {
        padding: 12px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* Dashboard modal */
    .modal-content {
        width: 95%;
        padding: 25px 20px;
        max-height: 90vh;
        overflow-y: auto;
    }

    .order-meta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row.dashboard-form-row {
        grid-template-columns: 1fr;
    }

    /* Product form row */
    .product-form .form-row {
        grid-template-columns: 1fr;
    }

    /* --- Auth Page --- */
    .auth-container {
        padding: 30px 20px;
    }

    .auth-header h2 {
        font-size: 1.8rem;
    }

    /* --- About standalone page --- */
    .about-page main {
        padding-top: 80px !important;
    }

    /* Cherry blossoms — smaller on mobile */
    .cherry-blossom-left,
    .cherry-blossom-right {
        width: 220px !important;
        top: 40px !important;
    }

    .cherry-blossom-left {
        left: -60px !important;
    }

    .cherry-blossom-right {
        right: -60px !important;
    }
}

/* =========================================
   MOBILE PORTRAIT — max-width: 480px
   ========================================= */
@media (max-width: 480px) {

    /* --- Hero --- */
    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* --- Products grid always 2 columns --- */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-info {
        padding: 12px;
    }

    /* --- Stats cards — single column --- */
    .stats-cards {
        grid-template-columns: 1fr;
    }

    /* --- Sidebar nav text hidden — icon only --- */
    .sidebar-nav .nav-item span,
    .sidebar-nav .nav-item-text {
        display: none;
    }

    .sidebar-nav .nav-item i {
        font-size: 1.3rem;
    }

    /* --- Newsletter --- */
    .newsletter-content h2 {
        font-size: 1.5rem;
    }

    /* --- Dashboard title smaller --- */
    .dashboard-title {
        font-size: 1.2rem;
    }

    /* --- About --- */
    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    /* --- Modal --- */
    .modal-content {
        padding: 20px 15px;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    /* --- Toast --- */
    .toast-container {
        bottom: 15px;
        right: 15px;
        left: 15px;
    }

    .toast {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

/* --- Toggle Switch --- */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}
.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #5e4a43;
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}
input:checked + .slider {
  background-color: #eeacb8;
}
input:checked + .slider:before {
  transform: translateX(18px);
}
.slider.round {
  border-radius: 22px;
}
.slider.round:before {
  border-radius: 50%;
}
