/* 
 * PREMIUM FRENCH QR MENU - DESIGN SYSTEM
 * "Putain... c'est propre."
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    /* Base Palette - Neutrals */
    --color-bg: #F9F9F9;
    /* Off-white, soft on eyes */
    --color-surface: #FFFFFF;
    --color-text-primary: #1A1A1A;
    /* Charcoal, not pure black */
    --color-text-secondary: #666666;
    /* Elegant grey */
    --color-text-light: #999999;
    --color-border: #EAEAEA;

    /* Brand Colors (Injected via PHP usually, but defaults here) */
    --color-accent: #CDAD7D;
    /* Gold/Sand - Premium feel */
    --color-accent-dim: #F4EFE6;

    /* Spacing & Layout */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 40px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows - Soft & Expensive */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-float: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* DARK MODE SUPPORT */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #121212;
        --color-surface: #1E1E1E;
        --color-text-primary: #F5F5F5;
        --color-text-secondary: #BDBDBD;
        --color-text-light: #757575;
        --color-border: #333333;
        --color-accent-dim: #2D2A24;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .category-nav-wrapper {
        background: rgba(18, 18, 18, 0.95) !important;
    }
}

/* RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    overflow-x: hidden;
    padding-bottom: 80px;
    /* Safe area for bottom nav/fab */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin: 0;
    line-height: 1.2;
    font-weight: 600;
}

img {
    max-width: 100%;
    display: block;
}

/* LAYOUT CONTAINER */
.app-container {
    max-width: 600px;
    /* Mobile focused */
    margin: 0 auto;
    background: var(--color-bg);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.02);
}

/* HERO SECTION */
.hero {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
    background: var(--color-surface);
    text-align: center;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* HERO SLIDER - LUXURY REDESIGN */
.hero.has-slider {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-bottom: 20px;
    /* Space for the rounded corners to breathe */
    border-bottom-left-radius: 40px;
    /* Oval effect */
    border-bottom-right-radius: 40px;
}

.hero-slider,
.hero-slider .swiper-wrapper,
.hero-slider .swiper-slide {
    width: 100%;
    height: 100%;
}

.slide-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Very subtle overlay for depth, since branding is removed */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.1) 0%,
            rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.has-slider .hero-content {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 36px;
    margin: 0 auto;
    padding: 35px 25px;
    width: 85%;
    max-width: 290px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.has-slider .brand-logo-img {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 20px;
    padding: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.has-slider .brand-logo-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.has-slider .brand-name {
    color: white;
    font-size: 26px;
    font-weight: 800;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    margin-bottom: 5px;
}

.has-slider .brand-tagline {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.brand-logo {
    width: 64px;
    height: 64px;
    background: var(--color-accent);
    border-radius: 50%;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
}

.brand-name {
    font-size: 28px;
    letter-spacing: -0.5px;
    margin-bottom: var(--spacing-xs);
}

.brand-tagline {
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

/* VIEW CONTAINERS & TRANSITIONS */
.view-container {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* LANDING TABS - CLASSIC CLEAN STYLE */
.landing-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    /* Light separator line */
    margin-bottom: 30px;
    padding: 0;
    width: 100%;
    background: white;
    /* Ensure clean white background */
    position: sticky;
    top: 0;
    z-index: 100;
}

.landing-tab {
    padding: 18px 10px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: #888;
    /* Grey for inactive */
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
    flex: 1;
    position: relative;
    border-bottom: 3px solid transparent;
    /* Indicators */
}

.landing-tab.active {
    color: var(--color-accent);
    /* Red for active */
    border-bottom: 3px solid var(--color-accent);
    /* Strong red indicator as in screenshot */
}

#menuView {
    padding-bottom: 0;
    /* Removed to close the gap to footer */
}

.landing-content {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

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

/* INFO SECTION REFINED */
.info-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 0 var(--spacing-md) 30px;
}

.info-action-btn {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 20px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.info-action-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.info-action-btn i {
    font-size: 20px;
    color: var(--color-accent);
}

.info-action-btn span {
    font-size: 14px;
    font-weight: 700;
}

.info-section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 35px var(--spacing-md) 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    color: #000;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 var(--spacing-md) 30px;
}

.feature-item {
    background: #ffffff;
    padding: 15px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #eeeeee;
    color: #333;
}

.feature-item i {
    color: var(--color-accent);
    width: 20px;
    font-size: 18px;
    text-align: center;
}

.hours-container {
    margin: 0 var(--spacing-md) 30px;
}

.hours-table td {
    padding: 15px 0;
    font-size: 15px;
    font-weight: 600;
    color: #111;
}

.hours-table td.time {
    text-align: right;
    font-weight: 600;
}

.hours-table td {
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
}

.hours-table td.time {
    text-align: right;
    font-weight: 600;
}

.hours-table tr.today {
    background: rgba(37, 211, 102, 0.05);
}

.hours-table tr.today td {
    font-weight: 700;
}

.hours-table tr.today td.time {
    color: var(--color-accent);
}

.map-container {
    margin: 0 var(--spacing-md) 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-text strong {
    display: block;
    font-size: 14px;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.info-text p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
}

.info-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--color-accent);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.info-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(205, 173, 125, 0.3);
}

/* CATEGORY SHOWCASE (HOME VIEW) */
.category-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px var(--spacing-md);
    margin-bottom: 0;
    /* Removed gap to footer */
}

.category-card {
    position: relative;
    height: 180px;
    /* Taller on Home */
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.category-card.full {
    grid-column: span 2;
    height: 140px;
    /* Shorter landscape banner for full width */
}


@media (max-width: 380px) {
    .category-card {
        height: 150px;
    }
}

.category-card:active {
    transform: scale(0.95);
}

.category-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease;
}

.category-card:hover .category-card-image {
    transform: scale(1.15);
}

.category-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: background 0.3s ease;
}

.category-card-title {
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 17px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.2px;
}

/* BACK BUTTON */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0 var(--spacing-md) 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-back:hover {
    color: var(--color-accent);
    /* Red theme match */
    transform: translateX(-4px);
}

.btn-back svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

@media (prefers-color-scheme: dark) {
    .category-card {
        border-color: rgba(255, 255, 255, 0.05);
    }
}

/* STICKY CATEGORY NAV */
.category-nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 249, 249, 0.95);
    /* Matches bg, glassy */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.category-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 var(--spacing-md);
    gap: var(--spacing-md);
    scrollbar-width: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Firefox */
}

/* APP FOOTER - ROUNDED LUXURY */
.app-footer {
    background: #fbfbfb;
    /* Slightly cleaner white */
    padding: 60px 20px 40px;
    margin-top: 0;
    /* Removed gap to categories */
    /* More space for the top curve */
    text-align: center;
    border-top: none;
    /* Removed line for cleaner oval look */
    border-top-left-radius: 40px;
    /* Matching the hero's oval effect */
    border-top-right-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
    z-index: 5;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
    /* Soft lift-off shadow */
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 20px;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    background: var(--color-accent);
    color: #ffffff;
}

.footer-copy {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-primary);
    max-width: 320px;
    line-height: 1.3;
}

.footer-contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.footer-promo {
    background: var(--color-accent-dim);
    border: 1px solid var(--color-accent-dim);
    color: var(--color-accent);
    padding: 10px 25px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-promo:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
}

.footer-update {
    margin-top: 10px;
}

.update-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eff1f4;
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: #6a7687;
}

@media (prefers-color-scheme: dark) {
    .social-btn {
        background: #252525;
        border-color: #333;
    }

    .update-badge {
        background: rgba(255, 255, 255, 0.05);
    }
}

/* SEARCH BAR */
.search-container {
    padding: 0 var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.search-input-wrapper {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 12px 16px 12px 44px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-dim);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: var(--font-body);
    color: var(--color-text-primary);
    outline: none;
}

.no-results {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--color-text-secondary);
    font-size: 15px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nav-item {
    white-space: nowrap;
    color: var(--color-text-secondary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
    background: transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid transparent;
}

.nav-item.active {
    color: white !important;
    background: var(--color-accent);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(205, 173, 125, 0.3);
    transform: scale(1.05);
    /* Slight elastic pop */
}

.nav-item:not(.active):active {
    background: var(--color-accent-dim);
    transform: scale(0.95);
}

/* MENU SECTION */
.menu-section {
    padding-top: var(--spacing-sm);
    /* Reduced from md */
    margin-bottom: var(--spacing-lg);
    /* Reduced from xl */
    scroll-margin-top: 100px;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.section-header {
    margin-bottom: var(--spacing-md);
    /* Reduced from lg */
    padding: 0 var(--spacing-md);
    text-align: center;
    /* Opt-in for a more 'Elite' centered look if desired, or keep default */
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 4px;
    display: block;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 0 auto var(--spacing-sm);
    max-width: 80%;
    text-align: center;
}

/* SUBCATEGORY HEADERS */
.sub-section-header {
    padding: 20px var(--spacing-md) 8px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
}

.menu-section .sub-section-header:first-child {
    border-top: none;
    margin-top: 0;
}

.sub-section-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 800;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sub-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--color-accent-dim), transparent);
}

.sub-section-desc {
    font-size: 12px;
    color: var(--color-text-secondary);
    margin: 0;
}

/* PRODUCT CARDS */
.product-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smoother overall transition */
    border: 1px solid var(--color-border);
    position: relative;
    opacity: 0;
    transform: translateY(20px);
}

.product-card:active {
    transform: scale(0.97);
    background: var(--color-bg);
}

@media (hover: hover) {
    .product-card:hover {
        border-color: var(--color-accent);
        box-shadow: var(--shadow-md);
    }
}

.product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--color-text-primary);
}

.product-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 16px;
    margin-top: auto;
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background-color: #f0f0f0;
}

.no-photo .product-card {
    grid-template-columns: 1fr;
    /* Full width if no photo */
}

/* BADGES */
.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.badge-suggestion {
    background-color: var(--color-accent-dim);
    color: var(--color-accent);
}

.dietary-labels {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 14px;
}

/* FAB (Floating Action Button) - Call Waiter / Cart */
.fab-container {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    gap: 16px;
}

.fab {
    background: var(--color-text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    box-shadow: var(--shadow-float);
    cursor: pointer;
    white-space: nowrap;
}

/* Language Switcher - Subtle */
.lang-switch {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.8);
    padding: 6px 12px;
    border-radius: 100px;
    z-index: 50;
    transition: all 0.3s ease;
}

.has-slider .lang-switch {
    background: rgba(0, 0, 0, 0.4);
    color: white;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    opacity: 0;
    /* Hidden by default for scroll animation */
}

.product-card.visible {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* SKELETON LOADING */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #f8f8f8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.product-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* UTILS */
.text-accent {
    color: var(--color-accent);
}

/* MODAL / POPUP OVERLAY */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

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

.modal-content {
    background: var(--color-surface);
    width: 100%;
    max-width: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

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

.modal-handle {
    display: none;
    width: 40px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    margin: 12px auto 0;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .modal-overlay {
        align-items: center;
        padding: 20px;
    }

    .modal-content {
        max-width: 95%;
        border-radius: 24px;
        transform: scale(0.9) translateY(20px);
    }

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

    .modal-handle {
        display: none;
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    font-size: 20px;
    color: #333;
    transition: transform 0.2s ease;
}

.modal-close:active {
    transform: scale(0.9);
}

.modal-image-wrapper {
    width: 100%;
    height: 280px;
    background: #f0f0f0;
    flex-shrink: 0;
    position: relative;
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--color-text-primary);
}

.modal-desc {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.modal-price {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-text-primary);
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-bg);
    border-radius: 12px;
    margin-top: auto;
}

/* DARK MODE ADJUSTMENTS FOR MODAL */
@media (prefers-color-scheme: dark) {
    .modal-close {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .modal-handle {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* Make products clickable */
.product-card {
    cursor: pointer;
}

/* SQUISHY EFFECTS */
.nav-item:active,
.product-card:active {
    transform: scale(0.96);
}

/* CENTERING FIXES */
.brand-logo-img {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    width: 100%;
}

.brand-logo-img img {
    display: block;
    margin: 0 auto;
}

/* Footer Promo Link Style */
.footer-promo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: rgba(205, 173, 125, 0.1);
    border: 1px solid rgba(205, 173, 125, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 20px 0;
}

.footer-promo:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(205, 173, 125, 0.3);
}

/* Promo Modal Specifics (Popup) */
.promo-modal .modal-content {
    max-width: 440px;
    padding: 40px 30px;
    text-align: center;
    border-radius: 28px;
    border: none;
}

.promo-modal .promo-header {
    margin-bottom: 30px;
}

.promo-modal .promo-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #df383e;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.promo-modal .promo-header p {
    font-size: 16px;
    color: var(--color-text-secondary);
    font-weight: 500;
    margin: 0;
}

.promo-modal .promo-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 30px 0;
}

.promo-modal .promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.promo-modal .promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.promo-btn.wa {
    background: #25D366;
    color: white;
}

.promo-btn.mail {
    background: #007aff;
    color: white;
}

.promo-modal .promo-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

@media (max-width: 480px) {
    .promo-modal .modal-content {
        margin: 15px;
        width: calc(100% - 30px);
        padding: 35px 20px;
    }

    .promo-modal .promo-header h2 {
        font-size: 20px;
    }
}

/* --- WHATSAPP ORDER SYSTEM --- */
.modal-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#modalPriceLabel {
    font-size: 14px;
    color: var(--color-text-light);
    font-weight: 500;
}

.order-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
    width: 140px;
    margin: 0 auto;
    border: 1px solid #eee;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: white;
    color: var(--color-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.qty-btn:active {
    transform: scale(0.9);
}

#modalQty {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.btn-add-cart {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: var(--color-primary);
    color: white;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-add-cart:active {
    transform: translateY(0) scale(0.96);
}

/* Floating Cart - Adabella Style */
.floating-cart {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 65px;
    height: 65px;
    background: var(--color-primary);
    /* Sleek brand color */
    color: white;
    border-radius: 50%;
    /* Circular */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(20px);
}

.floating-cart.visible {
    visibility: visible;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.floating-cart:active {
    transform: scale(0.95);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-wrapper i {
    font-size: 24px;
}

.cart-badge {
    background: var(--color-accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    position: absolute;
    top: -12px;
    right: -12px;
    border: 2px solid #000;
    padding: 0 5px;
}

.cart-total-info {
    display: none;
    /* Removed from floating button for cleaner Adabella look */
}

/* Cart Modal Overlay */
.cart-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1100;
    display: flex;
    align-items: flex-end;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s;
}

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

.cart-modal-content {
    width: 100%;
    max-height: 90vh;
    background: white;
    border-radius: 30px 30px 0 0;
    padding: 25px;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

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

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

.cart-header h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-clear-cart {
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.cart-modal-close {
    font-size: 28px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.cart-items-list {
    margin-bottom: 30px;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.cart-item-info h4 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 700;
}

.cart-item-info span {
    font-size: 14px;
    color: var(--color-text-light);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 4px;
}

.cart-item-qty-btn {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: none;
    background: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-top: 2px solid var(--color-primary);
    margin-top: 10px;
    font-size: 20px;
    font-weight: 800;
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.order-form input,
.order-form textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    background: #fcfcfc;
    font-size: 14px;
    font-family: inherit;
    transition: border 0.3s;
}

.order-form input:focus,
.order-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    background: white;
}

.btn-whatsapp-send {
    background: #25D366;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-continue-shopping {
    background: white;
    color: var(--color-primary);
    padding: 14px;
    border: 1.5px solid var(--color-primary);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.order-disclaimer {
    font-size: 11px;
    color: #999;
    text-align: center;
    line-height: 1.4;
    margin-top: 10px;
}