/*
 * AAN Restaurante - Dynamic Menu Styles v2.0
 * Fully variable-based design system with automated color palette generation
 *
 * Features:
 * - 100% CSS variable-based (zero hardcoded colors)
 * - Floating orb animations
 * - Glass morphism effects
 * - Smooth gradients and transitions
 * - Mobile-first responsive design
 * - Same layout as v1.3 with modern styling
 */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ===== DEFAULT COLOR VARIABLES (Fallback) ===== */
/* These are overridden by dynamically generated theme CSS */
:root {
    /* Primary Colors */
    --color-primary-dark: #720302;
    --color-primary: #be0604;
    --color-primary-light: #e74c3c;
    --color-primary-lighter: #f8b4b0;

    /* Accent Colors */
    --color-accent: #f29b30;
    --color-accent-light: #f1bb13;

    /* Background & Surface */
    --color-background: #fef5f0;
    --color-background-alt: #fff9f5;
    --color-surface: #ffffff;
    --color-surface-elevated: #ffffff;

    /* Text Colors */
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-tertiary: #999999;
    --color-text-on-primary: #ffffff;

    /* Border Colors */
    --color-border-light: #f5e5de;
    --color-border: #e8d5cc;
    --color-border-strong: #f29b30;

    /* State Colors */
    --color-success: #10b981;
    --color-success-light: #d1fae5;
    --color-warning: #f59e0b;
    --color-warning-light: #fef3c7;
    --color-error: #ef4444;
    --color-error-light: #fee2e2;

    /* Shadow Colors */
    --color-shadow-sm: rgba(114, 3, 2, 0.08);
    --color-shadow-md: rgba(114, 3, 2, 0.12);
    --color-shadow-lg: rgba(114, 3, 2, 0.16);
    --color-shadow-xl: rgba(114, 3, 2, 0.20);

    /* Overlay Colors */
    --color-overlay-light: rgba(0, 0, 0, 0.50);
    --color-overlay-dark: rgba(63, 1, 2, 0.75);

    /* Gradient Colors */
    --color-gradient-start: #be0604;
    --color-gradient-end: #720302;

    /* Orb Colors for floating animations */
    --color-orb-1: rgba(190, 6, 4, 0.25);
    --color-orb-2: rgba(114, 3, 2, 0.20);
    --color-orb-3: rgba(242, 155, 48, 0.18);

    /* Glass Effect Colors */
    --color-glass-bg: rgba(255, 255, 255, 0.15);
    --color-glass-border: rgba(255, 255, 255, 0.25);
    --color-glass-shadow: rgba(114, 3, 2, 0.10);

    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-headings: 'Century Gothic', 'Arial', sans-serif;

    /* Spacing & Sizing */
    --header-height: 70px;
    --categories-height: 66px;
}

/* ===== TYPOGRAPHY ===== */
body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 800;
    line-height: 1.2;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

h1, h2 {
    font-weight: 900;
    letter-spacing: 2px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ===== FLOATING ORBS (Background Decorations) ===== */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 1;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    width: clamp(200px, 50vw, 600px);
    height: clamp(200px, 50vw, 600px);
}

.orb-primary {
    background: radial-gradient(circle, var(--color-orb-1), transparent);
}

.orb-secondary {
    background: radial-gradient(circle, var(--color-orb-2), transparent);
}

.orb-accent {
    background: radial-gradient(circle, var(--color-orb-3), transparent);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Animated Gradient for Text */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.text-gradient-animated {
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary), var(--color-accent), var(--color-primary), var(--color-primary-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

/* ===== GLASS EFFECT ===== */
.glass {
    background: var(--color-glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 8px 32px var(--color-glass-shadow);
}

/* ===== HEADER ===== */
.header {
    background: var(--color-surface);
    box-shadow: 0 2px 12px var(--color-shadow-md);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border-light);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    min-height: var(--header-height);
}

.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 12px;
}

.logo-text {
    font-family: var(--font-headings);
    font-size: 0.875rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: none;
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
        gap: 2rem;
    }

    .nav-link {
        text-decoration: none;
        color: var(--color-text-primary);
        font-weight: 500;
        position: relative;
        transition: color 0.3s ease;
    }

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
        transition: width 0.3s ease;
    }

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

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.status.open {
    background: var(--color-success-light);
    color: var(--color-success);
    position: relative;
    padding-left: 1.75rem;
}

.status.open::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.625rem;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--color-success);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

.status.closed {
    background: var(--color-border-light);
    color: var(--color-text-secondary);
}

.cart-btn {
    position: relative;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-text-on-primary);
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--color-shadow-md);
    overflow: hidden;
}

.cart-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-btn:hover::before {
    opacity: 1;
}

.cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-shadow-lg);
}

.cart-btn svg,
.cart-btn span {
    position: relative;
    z-index: 1;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-error);
    color: var(--color-text-on-primary);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px var(--color-shadow-md);
    z-index: 2;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(180deg,
        var(--color-background) 0%,
        var(--color-background-alt) 50%,
        transparent 100%);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🍔';
    position: absolute;
    top: 50%;
    right: 5%;
    font-size: 10rem;
    opacity: 0.03;
    transform: translateY(-50%) rotate(-15deg);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(90deg, var(--color-primary-dark), var(--color-primary), var(--color-accent), var(--color-primary), var(--color-primary-dark));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 900;
    animation: gradientShift 4s ease-in-out infinite;
}

.hero-tagline {
    font-family: var(--font-headings);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px var(--color-shadow-sm);
}

/* ===== BANNER SECTION ===== */
.banner-section {
    padding: 0 1rem 2.5rem;
    position: relative;
}

.banner-carousel {
    position: relative;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px var(--color-shadow-md), 0 4px 12px var(--color-shadow-sm);
    background: var(--color-surface);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-carousel:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px var(--color-shadow-lg), 0 6px 16px var(--color-shadow-md);
}

.banner-track {
    position: relative;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--color-background-alt), var(--color-background));
    min-height: 200px;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide[data-clickable="true"] {
    cursor: pointer;
}

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

.banner-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.5;
}

.banner-dots {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.banner-dot.active {
    background: var(--color-surface);
    width: 32px;
    border-radius: 5px;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    background: var(--color-surface);
    padding: 1rem 0;
    border-bottom: 2px solid var(--color-border-light);
    position: sticky;
    top: var(--header-height);
    z-index: 90;
    box-shadow: 0 4px 16px var(--color-shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.categories-wrapper {
    position: relative;
    width: 100%;
}

.categories-scroll-container {
    position: relative;
    overflow: hidden;
}

.categories-list {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.category-pill {
    background: var(--color-surface);
    color: var(--color-text-primary);
    border: 2px solid var(--color-border);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 44px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.category-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-pill span {
    position: relative;
    z-index: 1;
}

.category-pill:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--color-shadow-md);
}

.category-pill.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-on-primary);
    border-color: transparent;
    box-shadow: 0 6px 20px var(--color-shadow-lg);
}

.category-pill.active::before {
    opacity: 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 200px);
    background: var(--color-surface);
    position: relative;
}

/* Floating orbs in main content */
.main-content::before,
.main-content::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.main-content::before {
    width: 600px;
    height: 600px;
    top: 10%;
    left: -200px;
    background: radial-gradient(circle, var(--color-orb-1), transparent);
    animation: float 25s ease-in-out infinite;
}

.main-content::after {
    width: 500px;
    height: 500px;
    bottom: 20%;
    right: -150px;
    background: radial-gradient(circle, var(--color-orb-3), transparent);
    animation: float 20s ease-in-out infinite reverse;
}

/* ===== CAROUSEL SECTION ===== */
.carousel-section {
    margin-bottom: 0;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.carousel-nav {
    display: flex;
    gap: 0.75rem;
}

.carousel-btn {
    background: var(--color-background-alt);
    border: 2px solid var(--color-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--color-text-primary);
}

.carousel-btn:hover {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    color: var(--color-text-on-primary);
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 12px var(--color-shadow-md);
}

.carousel-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: scale(1);
}

/* ===== PRODUCTS CAROUSEL ===== */
.products-carousel {
    position: relative;
    overflow: visible;
    width: 100%;
}

.carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 1rem 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-light) transparent;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--color-surface);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px var(--color-shadow-sm), 0 2px 4px var(--color-shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex: 0 0 280px;
    position: relative;
    border: 1px solid var(--color-border-light);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px var(--color-shadow-lg), 0 4px 8px var(--color-shadow-md);
    border-color: var(--color-primary-light);
}

.product-card:hover::before {
    opacity: 0.03;
}

.product-card.featured {
    border: 2px solid var(--color-accent-light);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-background-alt);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.product-card:hover .product-image::after {
    content: 'Ver detalles';
    position: absolute;
    inset: 0;
    background: var(--color-overlay-dark);
    color: var(--color-text-on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.375rem 0.875rem;
    border-radius: 24px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    box-shadow: 0 2px 8px var(--color-shadow-md);
}

.product-badge.hot {
    background: var(--color-error);
    color: var(--color-text-on-primary);
}

.product-badge.new {
    background: var(--color-warning);
    color: var(--color-text-primary);
}

.product-info {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.product-name {
    font-size: 1.25rem;
    margin-bottom: 0.625rem;
    color: var(--color-text-primary);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.product-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.product-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 0.5rem;
    border-top: 1px solid var(--color-border-light);
}

.product-price {
    font-size: 1.625rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, var(--color-background), var(--color-background-alt));
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-orb-1), transparent);
    filter: blur(80px);
    animation: float 30s ease-in-out infinite;
}

.contact .section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-item h3 {
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.contact-icon {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}

.contact-item p {
    color: var(--color-text-primary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-icons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 4px 16px var(--color-shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 24px var(--color-shadow-lg);
}

.icon-button:active {
    transform: translateY(-2px) scale(1.02);
}

.icon-button svg {
    width: 32px;
    height: 32px;
    fill: var(--color-text-on-primary);
}

/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-text-on-primary);
    text-align: center;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.1;
}

.footer h3 {
    color: var(--color-text-on-primary);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    position: relative;
}

.footer-tagline {
    font-family: var(--font-headings);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-light);
    margin-top: 0.75rem;
    font-size: 0.9375rem;
}

.footer p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin: 0.5rem 0;
    position: relative;
}

.footer-powered-by {
    font-size: 0.8125rem;
    opacity: 0.75;
    margin-top: 1rem;
}

.footer-powered-by a {
    color: var(--color-accent-light);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-powered-by a:hover {
    color: var(--color-surface);
}

/* ===== CART MODAL (Updated Styling) ===== */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay-light);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.cart-modal.active {
    display: flex;
    opacity: 1;
}

.cart-content {
    background: var(--color-surface);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    transform: translateY(50px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px var(--color-shadow-xl);
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: var(--color-text-on-primary);
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.cart-header h2 {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--color-text-on-primary);
    margin: 0;
}

.close-cart {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-on-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: var(--color-surface);
    color: var(--color-primary);
    transform: rotate(90deg);
}

.cart-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-light) var(--color-background-alt);
}

.cart-body::-webkit-scrollbar {
    width: 6px;
}

.cart-body::-webkit-scrollbar-track {
    background: var(--color-background-alt);
}

.cart-body::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 3px;
}

.cart-items {
    padding: 1.5rem;
    background: var(--color-surface);
}

/* Empty Cart State */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    animation: pulse-cart 2s ease-in-out infinite;
    box-shadow: 0 8px 24px var(--color-shadow-md);
}

@keyframes pulse-cart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.empty-cart h3 {
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
}

.empty-cart p {
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.empty-cart .btn {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-on-primary);
    padding: 0.875rem 2.5rem;
    border-radius: 30px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--color-shadow-md);
}

.empty-cart .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--color-shadow-lg);
}

/* Cart Item */
.cart-item {
    background: var(--color-surface);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px var(--color-shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--color-border-light);
}

.cart-item:hover {
    box-shadow: 0 6px 20px var(--color-shadow-md);
    transform: translateY(-2px);
}

.cart-item-content {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cart-item-image-wrapper {
    width: 100px;
    flex-shrink: 0;
}

.cart-item-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
    background: var(--color-background-alt);
}

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

.cart-item-name {
    font-weight: 800;
    color: var(--color-text-primary);
    font-size: 1.0625rem;
    margin-bottom: 0.375rem;
}

.cart-item-variant {
    font-size: 0.875rem;
    color: var(--color-primary);
    font-weight: 600;
}

.cart-item-extras {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
    background: var(--color-background-alt);
    border-radius: 30px;
    overflow: hidden;
}

.qty-btn {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-primary);
    transition: all 0.2s ease;
    font-size: 1.25rem;
    font-weight: 700;
}

.qty-btn:hover {
    background: var(--color-primary);
    color: var(--color-text-on-primary);
}

.qty-value {
    padding: 0 1.25rem;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
}

.cart-item-total-price {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-weight: 800;
}

.remove-item {
    background: none;
    border: none;
    color: var(--color-error);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 50%;
}

.remove-item:hover {
    transform: scale(1.15);
    background: var(--color-error-light);
}

.cart-footer {
    padding: 1.5rem;
    background: var(--color-surface);
    border-top: 2px solid var(--color-border-light);
}

.cart-summary {
    background: var(--color-background-alt);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.summary-label {
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.summary-amount {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
}

.summary-item.total .summary-amount {
    color: var(--color-primary);
    font-size: 1.625rem;
}

/* Form Elements */
.customer-info-wrapper,
.payment-method-wrapper {
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--color-text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-glass-bg);
}

.form-input::placeholder {
    color: var(--color-text-tertiary);
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 1rem;
}

.payment-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1.25rem 1rem;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.payment-method:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--color-shadow-md);
}

.payment-method.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: transparent;
    color: var(--color-text-on-primary);
    box-shadow: 0 6px 20px var(--color-shadow-lg);
}

.payment-icon {
    font-size: 2rem;
}

/* Checkout Actions */
.pickup-notice {
    background: var(--color-warning-light);
    border: 2px solid var(--color-warning);
    border-radius: 12px;
    padding: 0.875rem;
    text-align: center;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
}

.btn-whatsapp {
    background: #25D366;
    color: var(--color-text-on-primary);
    border: none;
    padding: 1.125rem 1.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.0625rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    width: 100%;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

/* ===== PRODUCT MODAL ===== */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay-light);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 1rem;
}

.product-modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-surface);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px var(--color-shadow-xl);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-primary);
    color: var(--color-text-on-primary);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px var(--color-shadow-md);
}

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

.modal-body {
    padding: 2.5rem 2rem 2rem;
    overflow-y: auto;
    max-height: 90vh;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary-light) var(--color-background-alt);
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 3px;
}

/* Modal Product Details */
.modal-product-image {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 1.5rem;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    object-fit: cover;
    background: var(--color-background-alt);
    box-shadow: 0 8px 24px var(--color-shadow-md);
}

.modal-product-name {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--color-text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
}

.modal-product-description {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 2rem;
}

/* Variants & Extras */
.variant-section,
.extras-section,
.ingredients-section,
.optional-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-light);
}

.variant-section:last-child,
.extras-section:last-child {
    border-bottom: none;
}

.section-description {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.variant-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.variant-option {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.variant-option:hover {
    border-color: var(--color-primary-light);
    transform: translateY(-2px);
}

.variant-option.active {
    border-color: var(--color-primary);
    background: var(--color-primary-lighter);
}

.variant-name {
    display: block;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.375rem;
}

.variant-price {
    display: block;
    font-size: 0.9375rem;
    color: var(--color-accent);
    font-weight: 700;
}

/* Extras List */
.extras-list,
.optional-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.extra-option,
.optional-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--color-background-alt);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.extra-option:hover,
.optional-item:hover {
    background: var(--color-primary-lighter);
}

.extra-option input[type="checkbox"],
.optional-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    accent-color: var(--color-primary);
}

.extra-name,
.optional-name {
    flex: 1;
    font-weight: 600;
    color: var(--color-text-primary);
}

.extra-price {
    color: var(--color-accent);
    font-weight: 700;
}

/* Ingredients List */
.ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.ingredient-item {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--color-background-alt);
    border-radius: 24px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-top: 2rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    background: var(--color-background-alt);
    border-radius: 12px;
    overflow: hidden;
}

.add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-text-on-primary);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.0625rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px var(--color-shadow-md);
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--color-shadow-lg);
}

/* ===== NOTIFICATION ===== */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--color-primary-dark);
    color: var(--color-text-on-primary);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 24px var(--color-shadow-lg);
}

.notification.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile: 768px and below */
@media (max-width: 768px) {
    /* Container & Layout */
    .container {
        padding: 0 0.875rem;
    }

    /* Hide decorative elements on tablets */
    .floating-orb {
        width: clamp(150px, 40vw, 300px);
        height: clamp(150px, 40vw, 300px);
        opacity: 0.5;
    }

    .main-content::before {
        width: 300px;
        height: 300px;
        left: -100px;
    }

    .main-content::after {
        width: 250px;
        height: 250px;
        right: -80px;
    }

    .contact::before {
        width: 250px;
        height: 250px;
    }

    .hero::before {
        font-size: 6rem;
        opacity: 0.02;
    }

    /* Modals */
    .cart-modal {
        padding: 0;
        align-items: flex-end;
    }

    .cart-content {
        max-width: calc(100% - 1rem);
        max-height: 85vh;
        border-radius: 24px 24px 0 0;
    }

    .modal-content {
        max-width: calc(100% - 1rem);
    }

    /* Typography */
    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: 1.75rem;
        letter-spacing: 2px;
    }

    /* Products */
    .product-card {
        flex: 0 0 220px;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-track {
        padding: 0.5rem 0.875rem 1rem;
    }

    /* Cart & Summary */
    .summary-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: left;
    }

    .summary-item {
        flex-direction: row;
        justify-content: space-between;
    }

    .payment-methods {
        gap: 0.75rem;
    }

    /* Touch Targets */
    .category-pill {
        min-height: 48px;
        padding: 0.875rem 1.25rem;
    }

    .icon-button {
        width: 56px;
        height: 56px;
    }

    .icon-button svg {
        width: 28px;
        height: 28px;
    }

    .cart-btn,
    .close-cart,
    .modal-close,
    .carousel-btn {
        min-width: 48px;
        min-height: 48px;
    }

    /* Banner */
    .banner-section {
        padding: 0 0.75rem 2rem;
    }

    .banner-carousel {
        margin: 0 0.5rem;
    }
}

/* Small Phones & iPhone SE: 480px and below */
@media (max-width: 480px) {
    /* Hide ALL decorative elements on small screens */
    .floating-orb {
        display: none;
    }

    .main-content::before,
    .main-content::after {
        display: none;
    }

    .contact::before {
        display: none;
    }

    .hero::before {
        display: none;
    }

    /* Container */
    .container {
        padding: 0 0.75rem;
    }

    /* Typography */
    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

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

    .logo-text {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }

    /* Products */
    .product-card {
        flex: 0 0 200px;
    }

    .carousel-track {
        padding: 0.5rem 0.75rem 1rem;
        gap: 1rem;
    }

    /* Cart Items */
    .cart-item-image-wrapper {
        width: 80px;
    }

    /* Modals */
    .cart-modal,
    .product-modal {
        padding: 0.5rem;
    }

    .modal-body {
        padding: 2rem 1.5rem 1.5rem;
    }

    /* Icon Buttons */
    .icon-button {
        width: 52px;
        height: 52px;
    }

    .icon-button svg {
        width: 24px;
        height: 24px;
    }

    /* Banner */
    .banner-section {
        padding: 0 0.5rem 1.5rem;
    }

    .banner-track {
        min-height: 180px;
    }

    /* Contact Grid */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact {
        padding: 3rem 0;
    }
}

/* Extra Small: 375px and below (iPhone SE, small devices) */
@media (max-width: 375px) {
    /* Typography - even smaller */
    .hero-title {
        font-size: 1.75rem;
    }

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

    /* Products - smaller cards */
    .product-card {
        flex: 0 0 180px;
    }

    .product-info {
        padding: 1.25rem;
    }

    .product-name {
        font-size: 1.125rem;
    }

    .product-description {
        font-size: 0.8125rem;
    }

    /* Cart */
    .cart-item-image-wrapper {
        width: 70px;
    }

    .cart-item-name {
        font-size: 1rem;
    }

    /* Modal adjustments */
    .modal-product-name {
        font-size: 1.5rem;
    }

    .variant-options {
        grid-template-columns: 1fr 1fr;
    }

    /* Buttons */
    .category-pill {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Header */
    .logo-img {
        height: 40px;
    }

    .status {
        font-size: 0.75rem;
        padding: 0.375rem 0.875rem;
    }
}

/* Tablet & Desktop: 1024px and above */
@media (min-width: 1024px) {
    .categories-list {
        justify-content: center;
    }

    .product-card {
        flex: 0 0 300px;
    }

    .container {
        padding: 0 2rem;
    }
}

/* Large Desktop: 1400px and above */
@media (min-width: 1400px) {
    .container {
        padding: 0 3rem;
    }

    .banner-carousel {
        max-width: 1400px;
    }
}