/* ===========================================
   HAÏNAN Chicken Rice - Design Premium
   =========================================== */

/* Custom Asian Fonts */
@font-face {
    font-family: 'Karate';
    src: url('../fonts/Karate.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hiroshi';
    src: url('../fonts/Hirosht.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Konfucius';
    src: url('../fonts/Konfucius.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

:root {
    --green-dark: #2D5A3D;
    --green-medium: #3D7A4F;
    --green-light: #4A8F5C;
    --beige-light: #F5F0E1;
    --beige-medium: #EBE4D0;
    --beige-dark: #D4C9A8;
    --red-accent: #D32F2F;
    --yellow-rice: #F5E6A3;
    --text-dark: #2C2C2C;
    --text-light: #FFFFFF;
    --orange-primary: #E8A54B;
    --orange-dark: #D4892A;
    --border-width: 22px;

    /* Asian-style fonts */
    --font-title: 'Karate', 'Cinzel Decorative', serif;
    --font-chinese: 'Ma Shan Zheng', 'Noto Serif SC', cursive;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--beige-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100%;
    position: relative;
}

/* ============ DECORATIVE BORDER FRAME ============ */
.border-frame {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9990;
}

/* Top border */
.border-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--border-width);
    background: repeating-linear-gradient(
        90deg,
        var(--orange-primary) 0px,
        var(--orange-primary) 8px,
        var(--orange-dark) 8px,
        var(--orange-dark) 16px
    );
}

/* Bottom border - hidden behind navbar */
.border-frame::after {
    display: none;
}

/* Left border - stops above navbar */
.border-frame-left {
    position: fixed;
    top: var(--border-width);
    bottom: 100px; /* Stop above navbar */
    left: 0;
    width: var(--border-width);
    background: repeating-linear-gradient(
        0deg,
        var(--orange-primary) 0px,
        var(--orange-primary) 8px,
        var(--orange-dark) 8px,
        var(--orange-dark) 16px
    );
    pointer-events: none;
    z-index: 9990;
}

/* Right border - stops above navbar */
.border-frame-right {
    position: fixed;
    top: var(--border-width);
    bottom: 100px; /* Stop above navbar */
    right: 0;
    width: var(--border-width);
    background: repeating-linear-gradient(
        0deg,
        var(--orange-primary) 0px,
        var(--orange-primary) 8px,
        var(--orange-dark) 8px,
        var(--orange-dark) 16px
    );
    pointer-events: none;
    z-index: 9990;
}

/* Inner green border - stops above navbar */
.border-frame-inner {
    position: fixed;
    top: var(--border-width);
    left: var(--border-width);
    right: var(--border-width);
    bottom: 100px; /* Stop above navbar */
    border: 3px solid var(--green-dark);
    border-bottom: none;
    pointer-events: none;
    z-index: 9991;
}

/* Main content wrapper */
.app-content {
    position: relative;
    margin: calc(var(--border-width) + 3px);
    min-height: calc(100vh - var(--border-width) * 2 - 6px);
    background-color: var(--beige-light);
    background-image: url('../img/chinese-pattern.png');
    background-repeat: repeat;
    background-size: 200px;
    overflow-x: hidden;
}

/* Pattern overlay for better readability */
.app-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(245, 240, 225, 0.6);
    pointer-events: none;
    z-index: 0;
}

.app-content > * {
    position: relative;
    z-index: 1;
}

/* ============ MAIN NAVIGATION BAR ============ */
.main-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, #1a3d28 0%, #0d2818 100%);
    padding: 0;
    z-index: 9995;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,215,0,0.3);
}

.nav-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    max-width: 600px;
    margin: 0 auto;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 10px 10px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 1;
    position: relative;
    gap: 4px;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    transition: width 0.3s ease;
    border-radius: 0 0 2px 2px;
}

.nav-link:hover {
    color: rgba(255,255,255,0.9);
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link.active {
    color: #FFD700;
}

.nav-link.active::before {
    width: 100%;
    background: #FFD700;
    height: 3px;
}

.nav-link.active .nav-icon {
    transform: scale(1.1);
}

.nav-link.active .nav-icon svg {
    filter: drop-shadow(0 0 4px rgba(255,215,0,0.5));
}

/* SVG Icons styling */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.nav-icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.8;
    transition: all 0.3s ease;
}

.nav-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Nav badge for cart count */
.nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
    background: #e53935;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Space for fixed navbar at bottom */
.app-content {
    padding-bottom: 95px;
}

/* Responsive navigation - MOBILE FIRST (larger icons) */
@media (max-width: 768px) {
    .nav-link {
        padding: 14px 8px 12px;
        gap: 6px;
    }

    .nav-icon {
        width: 32px;
        height: 32px;
    }

    .nav-icon svg {
        stroke-width: 2;
    }

    .nav-text {
        font-size: 0.7rem;
        font-weight: 600;
    }

    .app-content {
        padding-bottom: 90px;
    }

    .border-frame-left,
    .border-frame-right,
    .border-frame-inner {
        bottom: 85px;
    }

    .nav-badge {
        top: 8px;
        right: calc(50% - 24px);
        min-width: 20px;
        height: 20px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-link {
        padding: 12px 6px 10px;
        gap: 5px;
    }

    .nav-icon {
        width: 30px;
        height: 30px;
    }

    .nav-text {
        font-size: 0.65rem;
    }

    .app-content {
        padding-bottom: 85px;
    }

    .border-frame-left,
    .border-frame-right,
    .border-frame-inner {
        bottom: 80px;
    }
}

@media (max-width: 360px) {
    .nav-text {
        font-size: 0.6rem;
        letter-spacing: 0;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
    }

    .nav-link {
        padding: 10px 4px 8px;
        gap: 4px;
    }

    .app-content {
        padding-bottom: 80px;
    }

    .border-frame-left,
    .border-frame-right,
    .border-frame-inner {
        bottom: 75px;
    }
}

/* ============ SPLASH SCREEN ============ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    margin-bottom: 30px;
    text-align: center;
}

.splash-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: white;
    padding: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    object-fit: contain;
}

.splash-logo h1 {
    font-family: var(--font-title);
    font-size: 2.8rem;
    font-weight: normal;
    color: white;
    margin-top: 20px;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
}

.splash-logo .chinese {
    font-family: var(--font-chinese);
    font-size: 2rem;
    color: var(--yellow-rice);
    margin-top: 8px;
    font-weight: 400;
}

.splash-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--yellow-rice);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============ HEADER / HERO ============ */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #1a3d2a 50%, var(--green-medium) 100%);
    padding: 50px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

/* Animated gradient overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
}

/* Decorative wave at bottom */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25px;
    background: var(--beige-light);
    clip-path: ellipse(55% 100% at 50% 100%);
}

/* Hero content container */
.hero-content {
    position: relative;
    z-index: 10;
}

/* ===== PARTICLES ANIMATION ===== */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 1rem;
    opacity: 0.4;
    animation: floatParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; top: 60%; animation-delay: 1.5s; }
.particle:nth-child(3) { left: 70%; top: 15%; animation-delay: 3s; }
.particle:nth-child(4) { left: 85%; top: 50%; animation-delay: 4.5s; }
.particle:nth-child(5) { left: 50%; top: 80%; animation-delay: 6s; }

@keyframes floatParticle {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.4; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 0.8; }
}

/* ===== FLOATING FOODS ANIMATION ===== */
.floating-foods {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.float-food {
    position: absolute;
    opacity: 0.12;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    transition: opacity 0.3s ease;
}

.float-food:hover {
    opacity: 0.25;
}

.float-1 {
    width: 80px;
    top: 8%;
    left: 5%;
    animation: floatFood1 6s ease-in-out infinite;
}

.float-2 {
    width: 60px;
    top: 60%;
    left: 8%;
    animation: floatFood2 7s ease-in-out infinite;
}

.float-3 {
    width: 70px;
    top: 15%;
    right: 5%;
    animation: floatFood3 5s ease-in-out infinite;
}

.float-4 {
    width: 55px;
    top: 65%;
    right: 10%;
    animation: floatFood4 8s ease-in-out infinite;
}

.float-5 {
    width: 50px;
    top: 35%;
    left: 2%;
    animation: floatFood5 6.5s ease-in-out infinite;
}

.float-6 {
    width: 45px;
    top: 40%;
    right: 3%;
    animation: floatFood6 7.5s ease-in-out infinite;
}

@keyframes floatFood1 {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes floatFood2 {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-20px) rotate(-5deg); }
}

@keyframes floatFood3 {
    0%, 100% { transform: translateY(0) rotate(10deg); }
    50% { transform: translateY(-18px) rotate(-10deg); }
}

@keyframes floatFood4 {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-12px) rotate(8deg); }
}

@keyframes floatFood5 {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

@keyframes floatFood6 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(15deg); }
}

/* ===== LOGO WITH GLOW ===== */
.hero-logo {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--yellow-rice) 0%, transparent 70%);
    opacity: 0.4;
    animation: logoGlow 3s ease-in-out infinite;
    border-radius: 50%;
}

@keyframes logoGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.6; }
}

.logo-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: white;
    padding: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 30px rgba(245, 230, 163, 0.3);
    overflow: hidden;
    border: 4px solid var(--yellow-rice);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    z-index: 2;
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.logo-circle:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5), 0 0 40px rgba(245, 230, 163, 0.5);
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* ===== MAIN TITLE ===== */
.hero-title-main {
    margin: 0 0 15px 0;
    position: relative;
    z-index: 2;
}

.title-line {
    display: block;
    font-family: var(--font-title);
    color: white;
    text-transform: uppercase;
    text-shadow: 4px 4px 10px rgba(0,0,0,0.5), 0 0 30px rgba(255,255,255,0.1);
    animation: titleFadeIn 1s ease-out forwards;
    opacity: 0;
}

.title-line:first-child {
    font-size: 3.5rem;
    letter-spacing: 8px;
    animation-delay: 0.2s;
    background: linear-gradient(180deg, #ffffff 0%, #e8e8e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(3px 3px 6px rgba(0,0,0,0.5));
}

.title-sub {
    font-size: 2rem;
    letter-spacing: 12px;
    margin-top: 5px;
    animation-delay: 0.5s;
    color: var(--yellow-rice) !important;
    -webkit-text-fill-color: var(--yellow-rice) !important;
}

@keyframes titleFadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* ===== CHINESE CHARACTERS ===== */
.hero-chinese {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    position: relative;
    z-index: 2;
}

.chinese-char {
    font-family: var(--font-chinese);
    font-size: 2.8rem;
    color: var(--yellow-rice);
    text-shadow: 3px 3px 8px rgba(0,0,0,0.4), 0 0 20px rgba(245, 230, 163, 0.3);
    animation: charBounce 0.8s ease-out forwards;
    opacity: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.chinese-char:nth-child(1) { animation-delay: 0.8s; }
.chinese-char:nth-child(2) { animation-delay: 0.95s; }
.chinese-char:nth-child(3) { animation-delay: 1.1s; }
.chinese-char:nth-child(4) { animation-delay: 1.25s; }

.chinese-char:hover {
    transform: scale(1.2) translateY(-5px);
    color: white;
    text-shadow: 0 0 30px var(--yellow-rice);
}

@keyframes charBounce {
    0% { opacity: 0; transform: translateY(30px) scale(0.5); }
    60% { transform: translateY(-10px) scale(1.1); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== SEPARATOR ===== */
.hero-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out 1.5s forwards;
    opacity: 0;
}

.sep-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yellow-rice), transparent);
}

.sep-icon {
    font-size: 1.5rem;
    animation: sepSpin 4s linear infinite;
}

@keyframes sepSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ===== HERO BADGES ===== */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s ease;
    animation: badgeSlide 0.8s ease-out forwards;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none !important;
    cursor: pointer;
}

a.hero-badge,
a.hero-badge:hover,
a.hero-badge:visited,
a.hero-badge:active,
a.hero-badge:focus {
    text-decoration: none !important;
    outline: none;
}

.badge-animate-1 { animation-delay: 1.6s; }
.badge-animate-2 { animation-delay: 1.8s; }

@keyframes badgeSlide {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-badge:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.2) 100%);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 0 20px rgba(245,230,163,0.2);
}

.hero-badge .badge-icon {
    font-size: 1.4rem;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.hero-badge .badge-text {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* ===== HERO DATE ===== */
.hero-date {
    color: var(--yellow-rice);
    font-size: 0.95rem;
    margin-top: 25px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    letter-spacing: 2px;
    text-transform: capitalize;
    animation: fadeIn 1s ease-out 2s forwards;
    opacity: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* Old styles cleanup */
.hero-decor {
    display: none;
}

.hero-decor-1 {
    top: 10%;
    left: 3%;
    width: 70px;
    height: 70px;
    animation: float 6s ease-in-out infinite;
}

.hero-decor-2 {
    top: 5%;
    right: 5%;
    width: 60px;
    height: 60px;
    animation: float 7s ease-in-out infinite 0.5s;
}

.hero-decor-3 {
    bottom: 20%;
    left: 5%;
    width: 55px;
    height: 55px;
    animation: float 5s ease-in-out infinite 1s;
}

.hero-decor-4 {
    bottom: 15%;
    right: 3%;
    width: 65px;
    height: 65px;
    animation: float 6.5s ease-in-out infinite 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* ============ PROMO BANNER - ANIMATED MARQUEE ============ */
.promo-banner {
    background: linear-gradient(90deg, #c62828, #e53935, #c62828);
    background-size: 200% 100%;
    animation: promo-bg-shift 8s ease-in-out infinite;
    color: white;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-bottom: 2px solid rgba(255,215,0,0.4);
    border-top: 2px solid rgba(255,215,0,0.4);
}

.promo-banner::before,
.promo-banner::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.promo-banner::before {
    left: 0;
    background: linear-gradient(90deg, #c62828 0%, transparent 100%);
}

.promo-banner::after {
    right: 0;
    background: linear-gradient(90deg, transparent 0%, #c62828 100%);
}

@keyframes promo-bg-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.promo-track {
    display: flex;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.promo-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.promo-content {
    display: flex;
    align-items: center;
    padding: 12px 0;
    gap: 0;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    white-space: nowrap;
}

.promo-separator {
    color: rgba(255,215,0,0.8);
    font-size: 0.8rem;
    padding: 0 10px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.promo-icon {
    font-size: 1.1rem;
    animation: bounce-icon 2s ease-in-out infinite;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.promo-text {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.promo-text strong {
    background: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Pause on touch devices when tapping */
@media (hover: none) {
    .promo-track:active {
        animation-play-state: paused;
    }
}

/* ============ LOYALTY BANNER ============ */
.loyalty-banner {
    background: linear-gradient(135deg, var(--orange-primary), var(--orange-dark));
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.loyalty-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loyalty-label {
    font-size: 0.85rem;
    opacity: 0.9;
}

.loyalty-points {
    font-size: 1.3rem;
    font-weight: 700;
}

.loyalty-tier {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* ============ ORDER TYPE SECTION ============ */
.order-type-section {
    padding: 25px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: normal;
    color: var(--green-dark);
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::before,
.section-title::after {
    content: '❖';
    color: var(--orange-primary);
    font-size: 0.9rem;
}

.section-title .title-icon {
    margin-right: 8px;
}

.order-type-buttons {
    display: flex;
    gap: 12px;
}

.order-type-btn {
    flex: 1;
    background: white;
    border: 2px solid var(--beige-dark);
    border-radius: 12px;
    padding: 18px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.order-type-btn:hover {
    border-color: var(--green-medium);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.order-type-btn.active {
    border-color: var(--green-dark);
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
}

.order-type-btn .btn-icon {
    font-size: 1.8rem;
}

.order-type-btn .btn-content {
    flex: 1;
    text-align: left;
}

.order-type-btn .btn-label {
    font-weight: 600;
    font-size: 1rem;
    display: block;
}

.order-type-btn .btn-desc {
    font-size: 0.75rem;
    opacity: 0.7;
    display: block;
    margin-top: 2px;
}

.order-type-btn .btn-check {
    display: none;
    color: var(--yellow-rice);
    font-weight: bold;
    font-size: 1.2rem;
}

.order-type-btn.active .btn-check {
    display: block;
}

/* Delivery Partners Section */
.delivery-partners {
    margin-top: 25px;
    text-align: center;
}

.delivery-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 15px;
}

.delivery-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.delivery-link {
    display: block;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    /* Animation initiale - vient du ciel */
    opacity: 0;
    transform: translateY(-80px) rotate(-10deg);
}

.delivery-link:nth-child(2) {
    transform: translateY(-80px) rotate(10deg);
}

/* Animation quand visible */
.delivery-link.animate-in {
    animation: dropFromSky 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.delivery-link:nth-child(2).animate-in {
    animation: dropFromSky2 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 0.15s;
}

@keyframes dropFromSky {
    0% {
        opacity: 0;
        transform: translateY(-80px) rotate(-10deg) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translateY(10px) rotate(2deg) scale(1.05);
    }
    80% {
        transform: translateY(-5px) rotate(-1deg) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
    }
}

@keyframes dropFromSky2 {
    0% {
        opacity: 0;
        transform: translateY(-80px) rotate(10deg) scale(0.5);
    }
    60% {
        opacity: 1;
        transform: translateY(10px) rotate(-2deg) scale(1.05);
    }
    80% {
        transform: translateY(-5px) rotate(1deg) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
    }
}

.delivery-link:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.delivery-link:active {
    transform: translateY(0) scale(0.95);
}

.delivery-link img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

@media (max-width: 400px) {
    .delivery-link img {
        width: 60px;
        height: 60px;
    }

    .delivery-logos {
        gap: 15px;
    }
}

/* Nav badge for cart count */
.nav-badge {
    position: absolute;
    top: 8px;
    right: 50%;
    transform: translateX(20px);
    background: var(--red-accent);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: translateX(20px) scale(0); }
    50% { transform: translateX(20px) scale(1.3); }
    100% { transform: translateX(20px) scale(1); }
}

/* ============ FIDELITY SECTION ============ */
.fidelity-section {
    padding: 30px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.fidelity-login {
    text-align: center;
}

.fidelity-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.fidelity-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.fidelity-card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--green-dark);
    margin-bottom: 15px;
}

.fidelity-card p {
    color: #666;
    margin-bottom: 25px;
}

.fidelity-benefits {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.fidelity-benefits li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.btn-fidelity {
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-fidelity:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 90, 61, 0.4);
}

/* Fidelity search */
.fidelity-search {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.fidelity-search input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
}

.fidelity-search input:focus {
    outline: none;
    border-color: var(--green-dark);
}

.fidelity-search button {
    background: var(--green-dark);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.fidelity-search button:hover {
    background: var(--green-medium);
}

@media (max-width: 480px) {
    .fidelity-search {
        flex-direction: column;
        background: var(--beige-medium);
        padding: 15px;
        border-radius: 16px;
        border: 2px solid var(--beige-dark);
    }

    .fidelity-search input {
        width: 100%;
        min-width: auto;
        background: white;
        border: 2px solid var(--green-dark);
    }

    .fidelity-search button {
        width: 100%;
    }
}

/* Fidelity Dashboard */
.fidelity-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fidelity-points-card {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    border-radius: 20px;
    padding: 30px;
    color: white;
    text-align: center;
}

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

.tier-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tier-badge.tier-bronze { background: #CD7F32; }
.tier-badge.tier-silver { background: #C0C0C0; color: #333; }
.tier-badge.tier-gold { background: #FFD700; color: #333; }

.member-since {
    font-size: 0.8rem;
    opacity: 0.8;
}

.points-display {
    margin-bottom: 10px;
}

.points-value {
    font-size: 4rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.points-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.points-equivalent {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

.points-progress {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 15px;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--yellow-rice);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 0.8rem;
}

/* Tier list */
.fidelity-tiers {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.fidelity-tiers h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--green-dark);
    margin-bottom: 15px;
    text-align: center;
}

.tier-list {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.tier-item {
    text-align: center;
    padding: 15px 10px;
    border-radius: 12px;
    flex: 1;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.tier-item.active {
    background: var(--beige-medium);
    opacity: 1;
    transform: scale(1.05);
}

.tier-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.tier-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.tier-desc {
    font-size: 0.7rem;
    color: #888;
}

/* History */
.fidelity-history {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.fidelity-history h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    color: var(--green-dark);
    margin-bottom: 15px;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
}

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

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

.history-info {
    display: flex;
    flex-direction: column;
}

.history-date {
    font-size: 0.85rem;
    color: #666;
}

.history-order {
    font-size: 0.8rem;
    color: #999;
}

.history-points {
    color: var(--green-dark);
    font-weight: 600;
}

.empty-history {
    text-align: center;
    color: #999;
    padding: 20px;
}

.btn-logout {
    background: transparent;
    border: 2px solid var(--red-accent);
    color: var(--red-accent);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-logout:hover {
    background: var(--red-accent);
    color: white;
}

/* ============ TRACKING SECTION ============ */
.tracking-section {
    padding: 30px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.tracking-empty {
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.tracking-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.tracking-empty h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.tracking-empty p {
    color: #666;
    margin-bottom: 25px;
}

.tracking-search {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tracking-search input {
    flex: 1;
    min-width: 200px;
    padding: 15px 20px;
    border: 2px solid var(--beige-dark);
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.tracking-search input:focus {
    outline: none;
    border-color: var(--green-dark);
}

.tracking-search button {
    background: var(--green-dark);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.tracking-search button:hover {
    background: var(--green-medium);
}

@media (max-width: 480px) {
    .tracking-search {
        flex-direction: column;
        background: var(--beige-medium);
        padding: 15px;
        border-radius: 16px;
        border: 2px solid var(--beige-dark);
    }

    .tracking-search input {
        width: 100%;
        min-width: auto;
        background: white;
        border: 2px solid var(--green-dark);
    }

    .tracking-search button {
        width: 100%;
    }
}

/* Active tracking */
.tracking-active {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.order-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--beige-medium);
}

.order-header h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    color: var(--green-dark);
}

.order-date {
    font-size: 0.85rem;
    color: #888;
}

/* Timeline */
.tracking-timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    position: relative;
    opacity: 0.4;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50px;
    bottom: -15px;
    width: 2px;
    background: #ddd;
}

.timeline-step:last-child::before {
    display: none;
}

.timeline-step.completed,
.timeline-step.current {
    opacity: 1;
}

.timeline-step.completed::before {
    background: var(--green-dark);
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-step.completed .step-icon {
    background: var(--green-dark);
    color: white;
}

.timeline-step.current .step-icon {
    background: var(--orange-primary);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 165, 75, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(232, 165, 75, 0); }
}

.step-info {
    flex: 1;
}

.step-title {
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.step-time {
    font-size: 0.8rem;
    color: #888;
}

/* Order items in tracking */
.order-items-summary {
    background: var(--beige-light);
    border-radius: 12px;
    padding: 15px;
    margin: 20px 0;
}

.tracking-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.item-qty {
    font-weight: 600;
    color: var(--green-dark);
    min-width: 30px;
}

.item-name {
    flex: 1;
}

.item-price {
    font-weight: 500;
}

.order-total-tracking {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--green-dark);
    padding: 15px 0;
    border-top: 2px solid var(--beige-medium);
}

.btn-new-search {
    width: 100%;
    background: transparent;
    border: 2px solid var(--green-dark);
    color: var(--green-dark);
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-new-search:hover {
    background: var(--green-dark);
    color: white;
}

/* ============ CATEGORY NAVIGATION ============ */
.category-nav {
    background: var(--green-dark);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.nav-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    max-width: 900px;
    margin: 0 auto;
}

.nav-item,
.nav-btn {
    padding: 10px 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-item:hover,
.nav-btn:hover {
    background: rgba(255,255,255,0.2);
}

.nav-item.active,
.nav-btn.active {
    background: var(--orange-primary);
    border-color: var(--orange-primary);
    font-weight: 600;
}

.nav-item .nav-cn,
.nav-btn .nav-cn {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-left: 5px;
}

/* ============ FEATURED SECTION ============ */
.featured-section {
    padding: 25px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid var(--orange-primary);
    position: relative;
    transition: all 0.3s ease;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.featured-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--red-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

.featured-img {
    width: 100%;
    height: 130px;
    background: linear-gradient(135deg, var(--beige-medium), var(--yellow-rice));
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-img img {
    max-width: 80%;
    max-height: 100px;
    object-fit: contain;
}

.featured-emoji {
    font-size: 3.5rem;
}

.featured-content {
    padding: 15px;
}

.featured-name {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: normal;
    color: var(--text-dark);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.featured-name-cn {
    font-family: var(--font-chinese);
    font-size: 1.1rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.featured-desc {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
}

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--red-accent);
}

.featured-add {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s;
}

.featured-add:hover {
    background: linear-gradient(135deg, var(--green-medium), var(--green-light));
    transform: scale(1.1);
}

/* ============ MENU SECTIONS ============ */
.menu-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.category-section {
    margin-bottom: 30px;
}

.category-header {
    background: url('../img/category-banner.svg') center/100% 100% no-repeat;
    color: var(--green-dark);
    padding: 12px 45px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 300px;
    min-height: 45px;
    margin-left: auto;
    margin-right: auto;
}

.category-header h2 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: normal;
    font-style: normal;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-header .cat-cn {
    font-family: var(--font-chinese);
    font-size: 1.2rem;
    font-weight: 400;
}

.category-header .cat-icon {
    display: none;
}

/* Menu Grid */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 14px;
    border-radius: 12px;
    border: 2px solid var(--beige-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-card:hover {
    border-color: var(--green-medium);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.menu-card-visual {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--beige-light), var(--beige-medium));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-card-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.menu-card-emoji {
    font-size: 1.8rem;
}

.menu-card-info {
    flex: 1;
    min-width: 0;
}

.menu-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.menu-card-cn {
    font-family: var(--font-chinese);
    font-size: 1rem;
    color: var(--green-dark);
}

.menu-card-options {
    font-size: 0.7rem;
    color: var(--orange-primary);
    font-style: italic;
}

.menu-card-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--red-accent);
    margin-right: 8px;
    white-space: nowrap;
}

.menu-card-add {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.menu-card-add:hover {
    background: linear-gradient(135deg, var(--green-medium), var(--green-light));
    transform: scale(1.1);
}

/* ============ FLOATING CART ============ */
.floating-cart {
    position: fixed;
    bottom: 130px;
    right: 20px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
    padding: 12px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(45, 90, 61, 0.5);
    transition: all 0.3s ease;
    z-index: 9994;
}

.floating-cart:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(45, 90, 61, 0.6);
}

.cart-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: var(--green-dark);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

.cart-icon-wrapper {
    position: relative;
}

.cart-icon {
    width: 26px;
    height: 26px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--red-accent);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count.empty {
    background: rgba(255,255,255,0.3);
}

.cart-info {
    display: flex;
    flex-direction: column;
}

.cart-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

.cart-total {
    font-size: 1rem;
    font-weight: 700;
}

/* ============ CART DRAWER ============ */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9996;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* ============ CART DRAWER - PREMIUM DESIGN ============ */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: linear-gradient(180deg, #fefefe 0%, var(--beige-light) 100%);
    z-index: 9997;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0,0,0,0.3);
}

.cart-drawer.active {
    right: 0;
}

/* Cart Header */
.cart-drawer-header {
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: white;
    padding: 22px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.cart-drawer-header::before {
    content: '🛒';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 4rem;
    opacity: 0.1;
}

.cart-drawer-header h2 {
    font-family: var(--font-title);
    font-size: 1.6rem;
    font-weight: normal;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-drawer-header h2::before {
    content: '🥡';
    font-size: 1.4rem;
}

.cart-drawer-header .item-count {
    font-size: 0.85rem;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 10px;
}

.cart-drawer-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.cart-drawer-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.cart-drawer-close svg {
    width: 22px;
    height: 22px;
}

/* Cart Content */
.cart-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8) 0%, transparent 100%);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 30px;
    color: #888;
}

.empty-cart .empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: emptyBounce 2s ease-in-out infinite;
}

@keyframes emptyBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-cart p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-weight: 500;
}

.empty-cart small {
    color: #999;
    font-size: 0.9rem;
}

/* Cart Items - Premium Design */
.cart-item {
    display: flex;
    gap: 15px;
    padding: 16px;
    background: white;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.cart-item:hover {
    border-color: var(--green-medium);
    box-shadow: 0 8px 30px rgba(45, 90, 61, 0.15);
    transform: translateY(-2px);
}

/* Visual/Emoji section */
.cart-item-visual {
    width: 70px;
    height: 70px;
    background: linear-gradient(145deg, var(--beige-light) 0%, var(--beige-medium) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.cart-item-visual::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.cart-item-emoji {
    font-size: 2.2rem;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Content section */
.cart-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.cart-item-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: #f5f5f5;
    color: #999;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-item-delete:hover {
    background: #ffebee;
    color: #e74c3c;
    transform: rotate(90deg);
}

.cart-item-option {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--green-dark);
    background: rgba(45, 90, 61, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    width: fit-content;
}

.cart-item-note-section {
    cursor: pointer;
}

.cart-item-notes {
    display: block;
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    background: #f9f9f9;
    padding: 6px 10px;
    border-radius: 8px;
    border-left: 3px solid var(--orange-primary);
}

.cart-item-add-note {
    display: block;
    font-size: 0.8rem;
    color: #aaa;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px dashed #ddd;
    transition: all 0.3s ease;
}

.cart-item-add-note:hover {
    background: #f9f9f9;
    border-color: var(--green-medium);
    color: var(--green-dark);
}

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

/* Quantity Controls in Cart */
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 2px;
    background: linear-gradient(145deg, #f8f8f8 0%, #efefef 100%);
    border-radius: 30px;
    padding: 4px;
}

.cart-item-qty .qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: linear-gradient(145deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(45, 90, 61, 0.25);
}

.cart-item-qty .qty-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.35);
}

.cart-item-qty .qty-btn:active {
    transform: scale(0.95);
}

.cart-item-qty .qty-btn.delete {
    background: linear-gradient(145deg, #ff6b6b 0%, #ee5a5a 100%);
    box-shadow: 0 3px 10px rgba(238, 90, 90, 0.3);
}

.cart-item-qty .qty-btn.delete:hover {
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.4);
}

.cart-item-qty .qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-dark);
}

/* Price in Cart Item */
.cart-item-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.cart-item-price .price-value {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--green-dark);
}

.cart-item-price .price-currency {
    font-weight: 600;
    font-size: 1rem;
    color: var(--green-medium);
}

/* Animation d'ajout */
.cart-item.adding {
    animation: itemAdded 0.5s ease;
}

@keyframes itemAdded {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

/* Cart Footer */
.cart-footer {
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    background: white;
    border-top: none;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    border-radius: 25px 25px 0 0;
    flex-shrink: 0;
    max-height: 70vh;
    overflow-y: auto;
}

/* Cart Order Type Selection */
.cart-order-type {
    margin-bottom: 15px;
}

.cart-order-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.cart-order-buttons {
    display: flex;
    gap: 10px;
}

.cart-type-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 10px;
    border: 2px solid var(--beige-dark);
    border-radius: 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-type-btn:hover {
    border-color: var(--green-medium);
}

.cart-type-btn.active {
    border-color: var(--green-dark);
    background: var(--green-dark);
    color: white;
}

.cart-type-btn .type-icon {
    font-size: 1.3rem;
}

.cart-type-btn .type-label {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Cart Pickup Time */
.cart-pickup-time {
    margin-bottom: 15px;
}

.pickup-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pickup-slot {
    padding: 8px 14px;
    border: 2px solid var(--beige-dark);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pickup-slot:hover {
    border-color: var(--green-medium);
}

.pickup-slot.selected {
    border-color: var(--green-dark);
    background: var(--green-dark);
    color: white;
}

.promo-section {
    margin-bottom: 15px;
}

.promo-input-group {
    display: flex;
    gap: 8px;
}

.promo-input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid var(--beige-dark);
    border-radius: 8px;
    font-size: 0.85rem;
}

.promo-input-group input:focus {
    outline: none;
    border-color: var(--green-medium);
}

.promo-input-group button {
    padding: 10px 16px;
    background: var(--orange-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s;
}

.promo-input-group button:hover {
    background: var(--orange-dark);
}

.promo-applied {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #E8F5E9;
    border-radius: 8px;
    color: var(--green-dark);
}

.promo-applied .promo-success {
    color: var(--green-dark);
    font-weight: bold;
}

.promo-applied .remove {
    margin-left: auto;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Cart Summary - Premium */
.cart-summary {
    margin-bottom: 20px;
    background: linear-gradient(145deg, #f9f9f9 0%, #f5f5f5 100%);
    border-radius: 16px;
    padding: 15px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #666;
}

.summary-row .label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-row.discount {
    color: var(--green-dark);
    font-weight: 600;
}

.summary-row.discount .value {
    background: rgba(45, 90, 61, 0.1);
    padding: 2px 10px;
    border-radius: 20px;
}

.summary-row.points {
    color: var(--orange-primary);
    font-size: 0.85rem;
    background: rgba(232, 165, 75, 0.1);
    margin: 8px -15px;
    padding: 10px 15px;
    border-radius: 0;
}

.summary-row.points .value {
    font-weight: 700;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    border-top: 2px dashed var(--beige-dark);
    padding-top: 15px;
    margin-top: 10px;
}

.summary-row.total .value {
    color: var(--green-dark);
    font-size: 1.4rem;
}

/* Checkout Button - Premium */
.btn-checkout {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-checkout:hover::before {
    left: 100%;
}

.btn-checkout:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--green-medium) 0%, var(--green-light) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45, 90, 61, 0.4);
}

.btn-checkout:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-checkout:disabled {
    background: linear-gradient(135deg, #bbb 0%, #999 100%);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-checkout .btn-icon {
    font-size: 1.3rem;
}

.btn-checkout .btn-arrow {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-checkout:hover .btn-arrow {
    transform: translateX(5px);
}

/* ============ ITEM NOTE MODAL ============ */
.item-note-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.item-note-modal.active {
    display: flex;
}

.item-note-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}

.item-note-content {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 25px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: noteModalIn 0.3s ease;
}

@keyframes noteModalIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.item-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-note-header h3 {
    font-size: 1.3rem;
    color: var(--green-dark);
    margin: 0;
}

.item-note-close {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    color: #666;
    transition: all 0.3s ease;
}

.item-note-close:hover {
    background: #ffebee;
    color: #e74c3c;
    transform: rotate(90deg);
}

.item-note-product {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--beige-light) 0%, var(--beige-medium) 100%);
    border-radius: 12px;
}

.item-note-modal textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    transition: border-color 0.3s ease;
}

.item-note-modal textarea:focus {
    outline: none;
    border-color: var(--green-medium);
}

.item-note-modal textarea::placeholder {
    color: #bbb;
}

.item-note-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.85rem;
    color: #888;
    background: #f9f9f9;
    padding: 10px 12px;
    border-radius: 10px;
}

.item-note-hint span {
    flex-shrink: 0;
}

.item-note-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.item-note-actions .btn-cancel {
    flex: 1;
    padding: 14px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.item-note-actions .btn-cancel:hover {
    border-color: #bbb;
    background: #f9f9f9;
}

.item-note-actions .btn-save {
    flex: 1.5;
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-medium) 100%);
    color: white;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 90, 61, 0.3);
}

.item-note-actions .btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.4);
}

/* ============ MODALS ============ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.modal-header {
    background: var(--green-dark);
    color: white;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.modal-header h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: normal;
    letter-spacing: 1px;
}

.modal-chinese {
    font-family: var(--font-chinese);
    font-size: 1.1rem;
    color: var(--yellow-rice);
    margin-top: 5px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

.modal-close svg {
    width: 22px;
    height: 22px;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.modal-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--red-accent);
    margin-bottom: 18px;
}

.modal-options {
    margin-bottom: 18px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--green-dark);
}

.option-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.option-choice {
    padding: 10px 14px;
    background: var(--beige-light);
    border: 2px solid var(--beige-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.option-choice:hover {
    border-color: var(--green-medium);
}

.option-choice.selected {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: white;
}

.option-choice .price-diff {
    font-size: 0.75rem;
    opacity: 0.7;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--beige-light);
    border: 2px solid var(--beige-dark);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 8px;
}

.option-item:hover {
    border-color: var(--green-medium);
}

.option-item.selected {
    border-color: var(--green-dark);
    background: rgba(45, 90, 61, 0.1);
}

.option-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green-dark);
}

.option-item .name {
    flex: 1;
    font-weight: 500;
}

.option-item .price {
    font-weight: 600;
    color: var(--green-dark);
}

.modal-notes label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--green-dark);
}

.modal-notes textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--beige-dark);
    border-radius: 10px;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
    font-size: 0.85rem;
}

.modal-notes textarea:focus {
    outline: none;
    border-color: var(--green-medium);
}

.modal-quantity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px;
    background: var(--beige-light);
    border-radius: 10px;
    margin-top: 15px;
}

.qty-label {
    font-weight: 600;
}

.modal-footer {
    padding: 18px 20px;
    border-top: 1px solid var(--beige-dark);
}

.btn-add-cart {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, var(--green-medium), var(--green-light));
}

.btn-add-cart .add-price {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 6px;
}

/* ============ AUTH MODAL ============ */
.auth-modal-content {
    max-width: 360px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--green-dark);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--beige-dark);
    border-radius: 10px;
    font-size: 0.95rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--green-medium);
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--green-medium), var(--green-light));
}

.auth-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
}

.auth-switch a {
    color: var(--green-dark);
    text-decoration: none;
    font-weight: 600;
}

.otp-input {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 8px;
}

.otp-info {
    text-align: center;
    margin-bottom: 15px;
    color: #666;
}

/* ============ FOOTER ============ */
.footer-info {
    background: var(--green-dark);
    color: white;
    padding: 25px 20px;
    margin-top: 30px;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.footer-info h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: normal;
    margin-bottom: 12px;
    color: var(--yellow-rice);
    letter-spacing: 1px;
}

.footer-info p {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

/* ============ TOAST ============ */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--green-dark);
    color: white;
    padding: 14px 22px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast.error {
    background: var(--red-accent);
}

.toast.success {
    background: var(--green-dark);
}

/* ============ ADD ANIMATION ============ */
.add-animation {
    position: fixed;
    pointer-events: none;
    font-size: 2rem;
    color: var(--green-dark);
    z-index: 1002;
    opacity: 0;
    transform: scale(0);
}

.add-animation.animate,
.add-animation.active {
    animation: addToCart 0.6s ease forwards;
}

@keyframes addToCart {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(0.5) translateY(-50px); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    :root {
        --border-width: 18px;
    }
}

@media (max-width: 600px) {
    :root {
        --border-width: 14px;
    }

    /* ===== HERO FULLSCREEN MOBILE ===== */
    .hero {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 40px 20px 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-content {
        width: 100%;
    }

    /* Logo plus grand sur mobile */
    .hero-logo .logo-circle {
        width: 180px !important;
        height: 180px !important;
        padding: 12px;
        border-width: 5px;
    }

    .hero-logo .logo-glow {
        width: 240px !important;
        height: 240px !important;
    }

    .hero-logo {
        margin-bottom: 35px;
    }

    /* Titre adapté mobile */
    .title-line:first-child {
        font-size: 2.8rem;
        letter-spacing: 5px;
    }

    .title-sub {
        font-size: 1.5rem;
        letter-spacing: 8px;
    }

    /* Caractères chinois */
    .hero-chinese {
        gap: 12px;
        margin: 25px 0;
    }

    .chinese-char {
        font-size: 2.5rem;
    }

    /* Badges empilés sur mobile */
    .hero-badges {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .hero-badge {
        padding: 14px 28px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-badge .badge-text {
        font-size: 1rem;
    }

    .hero-badge .badge-icon {
        font-size: 1.5rem;
    }

    /* Date */
    .hero-date {
        margin-top: 30px;
        font-size: 1rem;
    }

    /* Séparateur */
    .hero-separator {
        margin: 25px 0;
    }

    .sep-line {
        width: 50px;
    }

    /* Plats flottants plus visibles sur mobile */
    .float-food {
        opacity: 0.15;
    }

    .float-1 { width: 60px; top: 5%; left: 3%; }
    .float-2 { width: 50px; top: 85%; left: 5%; }
    .float-3 { width: 55px; top: 8%; right: 3%; }
    .float-4 { width: 45px; top: 88%; right: 5%; }
    .float-5 { width: 40px; top: 25%; left: 0%; }
    .float-6 { width: 35px; top: 30%; right: 0%; }

    /* Ancien styles - fallback */
    .hero-title h1 {
        font-size: 1.6rem;
        letter-spacing: 2px;
    }

    .hero-title .chinese {
        font-size: 1.4rem;
    }

    .splash-logo h1 {
        font-size: 2rem;
    }

    .splash-logo .chinese {
        font-size: 1.5rem;
    }

    .hero-info {
        gap: 15px;
    }

    .hero-info .info-item {
        font-size: 0.8rem;
    }

    .order-type-buttons {
        flex-direction: column;
    }

    .order-type-btn {
        padding: 15px;
    }

    /* Category nav - tous visibles sur mobile */
    .nav-container {
        gap: 6px;
        padding: 0 10px;
    }

    .nav-item,
    .nav-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }

    .nav-item .nav-cn,
    .nav-btn .nav-cn {
        font-size: 0.65rem;
        margin-left: 3px;
    }

    .floating-cart {
        bottom: 115px;
        right: 15px;
        padding: 10px 14px;
        gap: 8px;
    }

    .floating-cart .cart-info {
        display: none;
    }

    .floating-cart .cart-icon {
        width: 22px;
        height: 22px;
    }

    .cart-drawer {
        max-width: 100%;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .hero-decor {
        width: 45px !important;
        height: 45px !important;
        opacity: 0.1;
    }
}

@media (max-width: 400px) {
    :root {
        --border-width: 10px;
    }

    .hero-title h1 {
        font-size: 1.3rem;
    }

    .hero-title .chinese {
        font-size: 1.2rem;
    }

    .splash-logo h1 {
        font-size: 1.6rem;
    }

    .splash-logo .chinese {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .logo-container {
        gap: 12px;
    }

    /* Logo hero reste grand sur petit mobile */
    .hero-logo .logo-circle {
        width: 160px !important;
        height: 160px !important;
    }

    .hero-logo .logo-glow {
        width: 210px !important;
        height: 210px !important;
    }

    .menu-card {
        padding: 12px;
        gap: 10px;
    }

    .menu-card-visual {
        width: 45px;
        height: 45px;
    }

    .menu-card-name {
        font-size: 0.9rem;
    }

    .menu-card-price {
        font-size: 0.95rem;
    }

    .menu-card-add {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }

    .floating-cart {
        bottom: 95px;
        right: 10px;
        padding: 10px 12px;
    }

    .floating-cart .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
        top: -6px;
        right: -6px;
    }
}

/* Product card grid styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 2px solid var(--beige-dark);
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-color: var(--green-medium);
}

.product-image {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, var(--beige-light), var(--beige-medium));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 80%;
    max-height: 90%;
    object-fit: contain;
}

.product-image .placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.product-content {
    padding: 14px;
}

.product-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.product-name-cn {
    font-size: 0.8rem;
    color: var(--green-dark);
    margin-bottom: 8px;
}

.product-description {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

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

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

.product-price::after {
    content: '€';
    font-size: 0.85rem;
}

.btn-add {
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-add:hover {
    background: linear-gradient(135deg, var(--green-medium), var(--green-light));
    transform: scale(1.05);
}

/* Scroll indicator hidden */
.scroll-indicator {
    display: none;
}

/* ============ REAL-TIME TRACKING NOTIFICATIONS ============ */
@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
}

.tracking-notification {
    font-family: 'Inter', -apple-system, sans-serif;
}

/* Timeline animation on status update */
.timeline-step.current {
    animation: highlightStep 1s ease;
}

@keyframes highlightStep {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timeline-step.completed .step-icon {
    animation: completeCheck 0.5s ease;
}

@keyframes completeCheck {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============ TABLE SELECTION MODAL ============ */
.table-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.table-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.table-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

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

.table-modal-header {
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.table-modal-header h3 {
    font-size: 1.3rem;
    margin: 0;
}

.table-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.table-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.table-modal-subtitle {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    padding: 15px 25px 5px;
    margin: 0;
}

.tables-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 15px 25px;
}

.table-btn {
    aspect-ratio: 1;
    border: 2px solid var(--beige-dark);
    background: var(--beige-light);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--green-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.table-btn:hover {
    border-color: var(--green-medium);
    background: white;
    transform: scale(1.05);
}

.table-btn.selected {
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    border-color: var(--green-dark);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(45, 90, 61, 0.4);
}

.table-note-section {
    padding: 10px 25px 20px;
}

.table-note-section label {
    display: block;
    font-weight: 600;
    color: var(--green-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.table-note-section input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--beige-dark);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.table-note-section input:focus {
    outline: none;
    border-color: var(--green-medium);
}

.table-modal-actions {
    display: flex;
    gap: 12px;
    padding: 0 25px 25px;
}

.table-modal-actions .btn-cancel {
    flex: 1;
    padding: 14px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.table-modal-actions .btn-cancel:hover {
    background: #eee;
}

.table-modal-actions .btn-confirm {
    flex: 2;
    padding: 14px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-medium));
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.table-modal-actions .btn-confirm:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(45, 90, 61, 0.3);
}

/* ============ TABLE INFO IN CART ============ */
.cart-table-info {
    padding: 12px 0;
    border-bottom: 1px solid var(--beige-dark);
}

.table-info-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    border: 2px solid var(--green-medium);
}

.table-number-badge {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--green-dark);
}

.table-number-badge span {
    background: var(--green-dark);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    margin-left: 5px;
}

.table-note-text {
    flex: 1;
    font-size: 0.85rem;
    color: #666;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.change-table-btn {
    background: white;
    border: 2px solid var(--green-medium);
    color: var(--green-dark);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.change-table-btn:hover {
    background: var(--green-dark);
    color: white;
}

/* Mobile responsive for table modal */
@media (max-width: 480px) {
    .tables-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 12px 18px;
    }

    .table-btn {
        font-size: 1rem;
    }

    .table-modal-header h3 {
        font-size: 1.1rem;
    }

    .table-info-display {
        flex-wrap: wrap;
    }

    .table-note-text {
        width: 100%;
        margin-top: 5px;
    }
}
