/* style.css - COMPLETE PROFESSIONAL VERSION - OPTIMIZED & FIXED */
/* ===========================================================================
  TABLE OF CONTENTS
  ===========================================================================
  1. CSS Variables & Base Styles
  2. Accessibility & Utilities
  3. Layout & Grid Systems
  4. Typography & Text Styles
  5. Navigation & Header - FIXED
  6. Hero Section
  7. Products & Cards
  8. Special Sections (Cakes, Biryani)
  9. Contact & Forms
  10. Footer & Bottom Elements
  11. Popups & Modals
  12. Responsive Design - MOBILE NAV FIXED
  13. Print Styles
  14. Dark Mode
  15. Performance Optimizations
=========================================================================== */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==================== 1. CSS VARIABLES & BASE STYLES ==================== */
:root {
    /* Enhanced Color System - WCAG AA compliant */
    --primary: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-wcag: #e55a2b; /* Better contrast ratio */
    --secondary: #FFA62B;
    --secondary-wcag: #e6951f;
    --accent: #FFD166;
    --light: #FFF8F0;
    --dark: #212529;
    --gray: #666666;
    --light-gray: #F5F5F5;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --whatsapp: #25D366;
    --whatsapp-dark: #128C7E;
    --whatsapp-wcag: #128C7E;
    --swiggy: #FC8019;
    --zomato: #E23744;
    --instagram: #E4405F;
    --facebook: #1877F2;
    --twitter: #1DA1F2;
    --cake-color: #E44D26;
    --biryani-color: #388E3C;
    
    /* Text Colors for Contrast */
    --text-light: #f8f9fa;
    --text-dark: #212529;
    
    /* Z-Index Layers */
    --z-header: 1000;
    --z-nav-mobile: 1001;
    --z-logo: 1002;
    --z-menu-toggle: 1002;
    --z-nav-close: 1003;
    --z-modal: 2000;
    --z-modal-overlay: 1999;
    --z-toast: 10000;
    --z-whatsapp: 999;
    --z-offers: 998;
    --z-pwa: 997;
    --z-admin: 996;
    --z-cookie: 10000;
    --z-loading: 9999;
    
    /* Professional Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    
    /* Improved Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-xxl: 4rem;
    
    /* Enhanced Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Professional Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 36px rgba(0,0,0,0.25);
    --shadow-2xl: 0 20px 50px rgba(0,0,0,0.3);
    
    /* Smooth Animations */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-overflow-scrolling: touch;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(135deg, #FFF8F0 0%, #FFFFFF 100%);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    contain: content;
}

/* ==================== 2. ACCESSIBILITY & UTILITIES ==================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: var(--space-sm);
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: var(--z-toast);
    transition: top 0.3s ease;
    font-weight: 600;
}

.skip-link:focus {
    top: 10px;
    left: 10px;
    padding: 15px;
    font-size: 1.1rem;
    z-index: calc(var(--z-toast) + 1);
}

.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Enhanced focus for accessibility */
:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 
        0 0 0 3px rgba(255, 107, 53, 0.1),
        0 0 0 1px rgba(255, 107, 53, 0.3);
}

/* Loading skeletons */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
    min-height: 100px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========== HEADER TO HERO SPACING FIX ========== */
@media (max-width: 768px) {
    /* Reduce hero section top spacing */
    .hero {
        padding-top: var(--space-sm) !important;
        padding-bottom: var(--space-md) !important;
        min-height: calc(var(--vh, 1vh) * 60) !important;
    }
    
    .hero-content {
        padding-top: var(--space-sm) !important;
    }
    
    .hero-content h2 {
        margin-top: 0 !important;
        margin-bottom: var(--space-xs) !important;
    }
    
    .hero-subtitle {
        margin-bottom: var(--space-sm) !important;
    }
    
    .hero-highlight {
        margin-bottom: var(--space-sm) !important;
        padding: 8px 16px !important;
    }
    
    .hero-buttons {
        margin-bottom: var(--space-md) !important;
        gap: var(--space-sm) !important;
    }
    
    /* Reduce body padding-top further */
    body {
        padding-top: 60px !important;
    }
    
    /* Reduce header height further */
    .header {
        height: 60px !important;
        min-height: 60px !important;
    }
    
    .header .container {
        padding: 5px 16px !important;
        height: 60px !important;
    }
}

/* ========== WHATSAPP FLOAT ANIMATION ========== */
@keyframes gentleBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes softPulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }
}

.whatsapp-float {
    animation: gentleBounce 0.8s ease-in-out 1s 2, /* Bounce twice after 1 second delay */
               softPulse 3s ease-in-out 3s infinite; /* Start pulsing after bounce ends */
}

/* Reduce animation on mobile for performance */
@media (max-width: 768px) {
    .whatsapp-float {
        animation: gentleBounce 0.6s ease-in-out 1s 2,
                   softPulse 4s ease-in-out 3s infinite;
    }
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none !important;
    }
}

/* Ensure animation works well with existing hover effect */
.whatsapp-float:hover {
    animation-play-state: paused; /* Pause animation on hover */
    transform: translateY(-2px); /* Override animation transform on hover */
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important; /* Stronger shadow on hover */
}

/* ========== BOTTOM FLOATING BUTTONS SPACING FIX ========== */
@media (max-width: 768px) {
    /* WhatsApp floating button */
    .whatsapp-float {
        bottom: 140px !important; /* Increased from 80px */
        right: 20px !important;
        padding: 12px 16px !important;
        border-radius: 30px !important;
        z-index: 1001 !important;
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4) !important;
    }
    
    /* Cart floating button */
    .cart-float {
        bottom: 200px !important; /* Increased from 130px */
        right: 20px !important;
        width: 56px !important;
        height: 56px !important;
        z-index: 1000 !important;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
    }
    
    .cart-count {
        top: -8px !important;
        right: -8px !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
        border: 2px solid white !important;
    }
    
    /* Back to top button - adjust position */
    .back-to-top {
        bottom: 140px !important;
        right: 90px !important;
        width: 50px !important;
        height: 50px !important;
        z-index: 999 !important;
        background: var(--primary) !important;
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
    }
}

/* Extra small devices - further adjustments */
@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 130px !important;
        right: 15px !important;
        padding: 10px 14px !important;
        font-size: 14px !important;
    }
    
    .cart-float {
        bottom: 190px !important;
        right: 15px !important;
        width: 52px !important;
        height: 52px !important;
    }
    
    .back-to-top {
        bottom: 130px !important;
        right: 80px !important;
        width: 46px !important;
        height: 46px !important;
        font-size: 20px !important;
    }
    
    /* Further reduce hero spacing */
    .hero {
        min-height: calc(var(--vh, 1vh) * 55) !important;
        padding-top: var(--space-xs) !important;
        padding-bottom: var(--space-sm) !important;
    }
    
    .hero-content h2 {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
}

/* ========== PREVENT BOTTOM BUTTONS OVERLAP WITH CONTENT ========== */
@media (max-width: 768px) {
    /* Ensure last section has enough bottom padding */
    .contact-form-section {
        padding-bottom: 100px !important;
    }
    
    .footer {
        padding-bottom: 70px !important;
    }
    
    /* Adjust main content margin */
    main {
        margin-bottom: 20px !important;
    }
}

/* ========== TOUCH DEVICE OPTIMIZATIONS ========== */
@media (pointer: coarse) {
    /* Increase touch targets for floating buttons */
    .whatsapp-float,
    .cart-float,
    .back-to-top {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    /* Prevent accidental taps */
    .whatsapp-float {
        margin-right: 60px !important; /* Creates separation from cart button */
    }
}

/* ========== VISUAL SEPARATION FOR FLOATING BUTTONS ========== */
@media (max-width: 768px) {
    /* Add subtle background to make buttons more distinct */
    .whatsapp-float {
        background: #25D366 !important;
        color: white !important;
        border: 2px solid white !important;
    }
    
    .cart-float {
        background: var(--primary) !important;
        color: white !important;
        border: 2px solid white !important;
    }
    
    .back-to-top {
        background: var(--secondary) !important;
        color: white !important;
        border: 2px solid white !important;
    }
}

/* ========== ADD CLEAR VISUAL HIERARCHY ========== */
@media (max-width: 768px) {
    /* Stagger buttons diagonally for better visibility */
    .whatsapp-float {
        transform: translateY(0) !important;
    }
    
    .cart-float {
        transform: translateY(-10px) translateX(-10px) !important;
    }
    
    .back-to-top {
        transform: translateY(-20px) translateX(10px) !important;
    }
    
    /* Hover/active states */
    .whatsapp-float:active {
        transform: translateY(-2px) scale(0.98) !important;
    }
    
    .cart-float:active {
        transform: translateY(-12px) translateX(-10px) scale(0.98) !important;
    }
    
    .back-to-top:active {
        transform: translateY(-22px) translateX(10px) scale(0.98) !important;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mb-1 { margin-bottom: var(--space-sm); }

.flex { display: flex; }
.grid { display: grid; }
.flex-center { 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.js-hidden {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.js-visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ==================== 3. LAYOUT & GRID SYSTEMS ==================== */
section,
.products-grid,
.contact-grid {
    contain: content;
}

/* CSS Grid Fallbacks */
.products-grid {
    display: grid;
    display: -ms-grid;
    -ms-grid-columns: 1fr 1fr 1fr;
}

@media (max-width: 768px) {
    .products-grid {
        -ms-grid-columns: 1fr;
    }
}

/* ==================== 4. TYPOGRAPHY & TEXT STYLES ==================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

h1, h2, .logo h1 {
    font-family: 'Fredoka One', cursive;
}

/* ==================== 5. NAVIGATION & HEADER - FIXED ==================== */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 2px solid var(--primary);
    transition: all 0.3s var(--transition-smooth);
    will-change: transform;
    transform: translateZ(0);
    width: 100%;
    height: auto;
}

.header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-md);
    height: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: var(--z-logo);
}

.logo-image img {
    width: 55px;
    height: 55px;
    border-radius: var(--radius-md);
    object-fit: contain;
    transition: transform 0.3s ease;
    aspect-ratio: 1/1;
}

.logo-image img:hover {
    transform: scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo h1 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    color: var(--primary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Navigation container */
.nav-container {
    display: flex;
    align-items: center;
}

.search-toggle {
    display: none;
}

.tagline {
    font-size: 0.9rem;
    color: var(--gray);
    font-style: italic;
}

/* Desktop Navigation Menu */
.nav {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    transition: all 0.3s ease;
}

.nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    display: flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
    white-space: nowrap;
}

@media (pointer: coarse) {
    .nav a {
        min-height: 48px;
        min-width: 48px;
    }
}

.nav a:hover {
    background: var(--light);
    color: var(--primary);
}

.nav a.active {
    background: var(--primary);
    color: white;
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.phone-link {
    background: var(--light);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--primary);
}

.contact-form-link {
    background: var(--accent);
    color: var(--dark);
    font-weight: 600;
}

/* Share button in nav */
.share-btn {
    background: var(--gray);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.share-btn:hover {
    background: #5a6268;
}

/* Search form styles */
.search-form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.search-form input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

.search-form button {
    background: var(--primary);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
}

/* ==================== 6. HERO SECTION ==================== */
.hero {
    background: 
        linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.7)), 
        url('../images/hero-bg.jpg') center/cover,
        linear-gradient(135deg, var(--primary-dark), var(--primary));
    background-size: cover;
    background-position: center;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    min-height: -webkit-fill-available;
    min-height: 80dvh;
    display: flex;
    align-items: center;
    margin-top: 70px;
    will-change: transform;
}

/* Remove fixed background on mobile for better performance */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        padding: 6rem 0 3rem;
        min-height: 70vh;
    }
}

@media (prefers-reduced-data: reduce) {
    .hero {
        background-image: none;
        background: var(--primary);
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,107,53,0.1), rgba(255,166,43,0.05));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s var(--transition-smooth);
}

@media (prefers-reduced-motion: reduce) {
    .hero-content {
        animation: none;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--space-sm);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: var(--space-lg);
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-highlight {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin: var(--space-xl) auto;
    max-width: 700px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

@media (prefers-reduced-motion: reduce) {
    .hero-highlight {
        animation: none;
    }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(255, 107, 53, 0); }
}

/* Professional Buttons */
.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin: var(--space-xl) 0;
    flex-wrap: wrap;
}

.btn {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s var(--transition-smooth);
    min-width: 220px;
    border: none;
    cursor: pointer;
    min-height: 44px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    gap: 8px;
}

@media (pointer: coarse) {
    .btn {
        min-height: 48px;
        min-width: 48px;
    }
}

.btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--transition-smooth);
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .btn::before {
        transition: none;
        animation: none;
    }
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--whatsapp-wcag), var(--whatsapp-dark));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn-menu {
    background: rgba(255, 255, 255, 0.95);
    color: var(--dark);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-menu:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-wcag);
    border-color: var(--secondary-wcag);
    color: white;
}

.btn small {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature span {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--space-sm);
}

.feature p {
    font-weight: 500;
}

/* ==================== 7. PRODUCTS & CARDS ==================== */
section {
    padding: var(--space-xl) 0;
    scroll-margin-top: 80px;
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--gray);
    margin-bottom: var(--space-md);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.savings-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-top: var(--space-sm);
    font-size: 0.9rem;
}

/* Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    border: 1px solid var(--light-gray);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--transition-smooth);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

@media (hover: none) and (pointer: coarse) {
    .product-card:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-card h3 {
    color: var(--dark);
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
    line-height: 1.3;
}

.product-desc {
    color: var(--gray);
    margin-bottom: var(--space-md);
    min-height: 60px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
    margin-top: auto;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.original-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 1rem;
    margin-left: var(--space-xs);
}

.order-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
}

@media (pointer: coarse) {
    .order-btn {
        min-height: 48px;
        min-width: 48px;
    }
}

.order-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.view-all {
    text-align: center;
    margin-top: var(--space-xl);
}

.view-all .btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: var(--space-md) var(--space-lg);
}

.view-all .btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* ==================== 8. SPECIAL SECTIONS ==================== */
/* CAKES SECTION */
.cakes-section {
    background: linear-gradient(135deg, rgba(255, 240, 230, 0.5), rgba(255, 250, 245, 0.5));
    border-radius: var(--radius-xl);
    padding: var(--space-xl) 0;
    margin: var(--space-xl) 0;
}

.cakes-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.cakes-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--cake-color);
    margin-bottom: var(--space-sm);
}

.cake-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.cake-category {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition-smooth);
    text-align: center;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cake-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent);
}

@media (hover: none) and (pointer: coarse) {
    .cake-category:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}

.cake-category .icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.cake-category h4 {
    color: var(--cake-color);
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
}

.cake-category p {
    color: var(--gray);
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.cake-sizes {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-md) 0;
    flex-wrap: wrap;
}

.size-badge {
    background: var(--light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
    min-width: 36px;
}

.size-badge:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.size-badge.highlight {
    background: var(--accent);
    color: var(--dark);
    font-weight: 600;
}

.size-badge.selected {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.cake-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cake-color);
    margin: var(--space-md) 0;
}

/* BIRYANI SECTION */
.biryani-section {
    background: linear-gradient(135deg, rgba(139, 195, 74, 0.1), rgba(104, 159, 56, 0.1));
    border-radius: var(--radius-xl);
    padding: var(--space-xl) 0;
    margin: var(--space-xl) 0;
}

.biryani-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.biryani-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--biryani-color);
    margin-bottom: var(--space-sm);
}

.biryani-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.biryani-plan {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition-smooth);
    position: relative;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.biryani-plan:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--biryani-color);
}

@media (hover: none) and (pointer: coarse) {
    .biryani-plan:hover {
        transform: none;
        box-shadow: var(--shadow-md);
    }
}

.biryani-plan.popular {
    border-color: var(--accent);
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .biryani-plan.popular {
        transform: none;
    }
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--dark);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.plan-header {
    text-align: center;
    margin-bottom: var(--space-md);
}

.plan-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.plan-serves {
    color: var(--gray);
    font-size: 0.9rem;
}

.plan-price {
    text-align: center;
    margin: var(--space-lg) 0;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--biryani-color);
}

.price-per {
    color: var(--gray);
    font-size: 0.9rem;
}

.plan-features {
    list-style: none;
    margin: var(--space-lg) 0;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.plan-includes {
    margin-bottom: var(--space-lg);
}

.plan-includes h5 {
    color: var(--dark);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.includes-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

.include-badge {
    background: var(--light);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--gray);
    border: 1px solid var(--light-gray);
}

.platform-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin-top: auto;
    min-height: 44px;
    min-width: 44px;
}

@media (pointer: coarse) {
    .platform-btn {
        min-height: 48px;
        min-width: 48px;
    }
}

.platform-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.3);
}

.platform-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

/* PLATFORMS SECTION */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.platform-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s var(--transition-smooth);
    text-align: center;
    border: 2px solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.platform-whatsapp:hover {
    border-color: var(--whatsapp);
}

.platform-swiggy:hover {
    border-color: var(--swiggy);
}

.platform-zomato:hover {
    border-color: var(--zomato);
}

.platform-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.platform-card h3 {
    color: var(--dark);
    margin-bottom: var(--space-md);
    font-size: 1.4rem;
}

.platform-features {
    list-style: none;
    margin: var(--space-lg) 0;
    text-align: left;
    flex-grow: 1;
    width: 100%;
}

.platform-features li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.platform-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.platform-price {
    margin: var(--space-md) 0;
}

.best-price {
    background: linear-gradient(135deg, var(--whatsapp-wcag), var(--whatsapp-dark));
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
}

.platform-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: var(--space-md);
}

/* Price Comparison Table */
.platforms-comparison {
    margin-top: var(--space-xl);
    text-align: center;
}

.platforms-comparison h4 {
    color: var(--dark);
    margin-bottom: var(--space-lg);
    font-size: 1.3rem;
}

.table-container {
    overflow-x: auto;
    margin: var(--space-lg) 0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.comparison-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: var(--space-md);
    font-weight: 600;
    text-align: center;
}

.comparison-table td {
    padding: var(--space-md);
    border-bottom: 1px solid var(--light-gray);
    text-align: center;
    color: var(--dark);
}

.comparison-table tr:hover {
    background: var(--light);
}

.comparison-table .save {
    color: var(--success);
    font-weight: 600;
}

/* ==================== 9. CONTACT & FORMS ==================== */
.contact-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: var(--space-xl) 0;
    border-top: 3px solid var(--whatsapp);
    border-bottom: 3px solid var(--whatsapp);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.form-header h2 {
    font-family: 'Fredoka One', cursive;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--dark);
    margin-bottom: var(--space-sm);
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-lg);
    align-items: start;
}

.quick-contact-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-contact-card h3 {
    color: var(--dark);
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
}

.quick-contact-card p {
    color: var(--gray);
    margin-bottom: var(--space-lg);
}

.whatsapp-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--whatsapp-wcag);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
    min-height: 44px;
}

.whatsapp-quick-btn:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-quick-btn span {
    font-weight: 600;
    font-size: 1.1rem;
}

.whatsapp-quick-btn small {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.quick-phone {
    margin-top: var(--space-md);
}

.quick-phone a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: var(--space-sm);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    min-height: 44px;
}

.quick-phone a:hover {
    border-color: var(--primary);
    background: var(--light);
}

.contact-form {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom */
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--whatsapp);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
    color: var(--dark);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.submit-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, var(--whatsapp-wcag), var(--whatsapp-dark));
    color: white;
    border: none;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    min-height: 44px;
    position: relative;
}

.submit-btn.loading {
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.submit-btn small {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.form-note {
    text-align: center;
    color: var(--gray);
    margin-top: var(--space-md);
    font-size: 0.9rem;
}

.form-note a {
    color: var(--primary);
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

.form-message {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

/* LOCATION & CONTACT */
.location-contact {
    background: var(--light);
    padding: var(--space-xl) 0;
    border-radius: var(--radius-xl);
    margin: var(--space-xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.contact-info h3,
.delivery-info h3 {
    color: var(--dark);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.address-card,
.delivery-card,
.timing-card,
.social-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-lg);
}

.address-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
}

address {
    font-style: normal;
    color: var(--gray);
    margin-bottom: var(--space-lg);
}

address p {
    margin-bottom: 0.5rem;
}

.google-maps {
    margin: var(--space-lg) 0;
}

.google-maps h5 {
    color: var(--dark);
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.map-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--light-gray);
}

.map-link {
    display: block;
    text-align: center;
    background: var(--light);
    color: var(--primary);
    padding: var(--space-sm);
    text-decoration: none;
    font-weight: 500;
    border-top: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.map-link:hover {
    background: var(--primary);
    color: white;
}

.contact-methods {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.contact-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--light);
    color: var(--primary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
}

.contact-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.timing-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
}

.timing p {
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.timing .note {
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
}

.delivery-point {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--light-gray);
}

.delivery-point:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.delivery-point span {
    font-size: 1.5rem;
    min-width: 40px;
}

.delivery-point h4 {
    color: var(--dark);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.delivery-point p {
    color: var(--gray);
    font-size: 0.9rem;
}

.social-card h4 {
    color: var(--primary);
    margin-bottom: var(--space-sm);
    font-size: 1.3rem;
}

.social-subtitle {
    color: var(--gray);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.social-link {
    flex: 1;
    min-width: 100px;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    color: white;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link.instagram {
    background: var(--instagram);
}

.social-link.facebook {
    background: var(--facebook);
}

.social-link.twitter {
    background: var(--twitter);
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    opacity: 0.9;
}

/* ==================== 10. WHATSAPP FLOATING BUTTON ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--whatsapp-wcag), var(--whatsapp-dark));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-whatsapp);
    transition: all 0.3s var(--transition-smooth);
    animation: float 3s ease-in-out infinite;
    min-height: 44px;
    min-width: 44px;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float {
        animation: none;
    }
}

@media (pointer: coarse) {
    .whatsapp-float {
        min-height: 60px;
        min-width: 60px;
        padding: 1rem;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.whatsapp-icon {
    font-size: 1.5rem;
}

.whatsapp-text {
    font-weight: 600;
    font-size: 1rem;
}

/* ==================== 11. POPUPS & MODALS ==================== */
/* OFFERS POPUP */
.offers-trigger {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: var(--dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-offers);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    min-height: 44px;
    min-width: 44px;
}

.offers-trigger:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.offers-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-modal);
    max-width: min(500px, 90vw);
    max-height: 90vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-bounce);
}

.offers-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.offers-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: var(--z-modal-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.offers-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.offers-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.offers-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.offers-header h3 {
    color: var(--dark);
    margin-bottom: var(--space-xs);
    font-size: 1.5rem;
}

.offers-subtitle {
    color: var(--gray);
    font-size: 0.9rem;
}

.offers-content {
    margin: var(--space-lg) 0;
}

.active-offers h4,
.promo-section h4 {
    color: var(--dark);
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
}

.offer-card {
    background: var(--light);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    border: 1px solid var(--light-gray);
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.offer-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.offer-card h5 {
    color: var(--dark);
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

.offer-desc {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: var(--space-sm);
}

.offer-code {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--primary);
}

.offer-code span {
    color: var(--dark);
    font-weight: 500;
}

.offer-code strong {
    color: var(--primary);
    font-size: 1.1rem;
}

.copy-code {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.copy-code:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.promo-input-group {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.promo-input-group input {
    flex: 1;
    padding: var(--space-md);
    border: 2px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.promo-input-group input:focus {
    border-color: var(--primary);
    outline: none;
}

.apply-promo-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.apply-promo-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.promo-message {
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
    text-align: center;
    font-weight: 500;
}

.promo-message.success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.promo-message.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid #dc3545;
}

.promo-terms {
    background: var(--light);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.promo-terms p {
    color: var(--dark);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.promo-terms ol {
    margin-left: var(--space-lg);
    color: var(--gray);
    font-size: 0.9rem;
}

.promo-terms li {
    margin-bottom: var(--space-xs);
}

.offers-whatsapp {
    margin: var(--space-lg) 0;
}

.offers-whatsapp-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--whatsapp-wcag);
    color: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 44px;
}

.offers-whatsapp-btn:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.offers-whatsapp-btn span {
    font-weight: 600;
    font-size: 1.1rem;
}

.offers-whatsapp-btn small {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.offers-footer {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
}

.expiry-note {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.view-offers-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin: 0 auto;
    padding: var(--space-sm);
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.view-offers-btn:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

/* WHATSAPP POPUP */
.whatsapp-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-2xl);
    z-index: var(--z-modal);
    max-width: min(500px, 90vw);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-bounce);
}

.whatsapp-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.whatsapp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: var(--z-modal-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    padding: 0;
    min-height: 44px;
    min-width: 44px;
}

.popup-close:hover {
    background: var(--light-gray);
    color: var(--dark);
    transform: rotate(90deg);
}

.popup-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.popup-icon {
    font-size: 3rem;
    margin-bottom: var(--space-sm);
}

.popup-header h3 {
    color: var(--dark);
    margin-bottom: var(--space-xs);
    font-size: 1.5rem;
}

.popup-content {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.popup-content p {
    color: var(--gray);
    margin-bottom: var(--space-sm);
}

.popup-savings {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: var(--dark);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    display: inline-block;
    margin: var(--space-md) 0;
}

.popup-content ul {
    text-align: left;
    margin: var(--space-md) 0;
    padding-left: var(--space-md);
    color: var(--gray);
    list-style-type: none;
}

.popup-content li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.popup-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
}

.popup-btn {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, var(--whatsapp-wcag), var(--whatsapp-dark));
    color: white;
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.popup-btn-secondary {
    background: var(--light);
    color: var(--dark);
    border: 2px solid var(--light-gray);
}

.popup-btn-secondary:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.popup-settings {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
}

.settings-toggle {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin: 0 auto;
    padding: var(--space-sm);
    transition: all 0.3s ease;
}

.settings-toggle:hover {
    color: var(--primary);
}

.settings-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.settings-content.active {
    max-height: 300px;
    margin-top: var(--space-md);
}

.settings-group {
    margin-bottom: var(--space-md);
}

.settings-group label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray);
    font-size: 0.9rem;
    cursor: pointer;
}

.settings-checkbox {
    margin: 0;
    width: auto;
}

.settings-select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-left: var(--space-xs);
}

/* ==================== 12. FOOTER ==================== */
.footer {
    background: linear-gradient(135deg, var(--dark), #222);
    color: white;
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section h4 {
    color: white;
    margin-bottom: var(--space-md);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    aspect-ratio: 1/1;
}

.footer-logo h3 {
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.3rem;
}

.footer-section p {
    color: #ccc;
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.footer-tagline {
    color: var(--accent);
    font-style: italic;
    font-size: 0.9rem;
}

.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: var(--space-xs);
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

.footer-section a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

.footer-bottom p {
    margin-bottom: var(--space-sm);
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.footer-legal a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary);
}

/* ==================== 13. ADDITIONAL ELEMENTS ==================== */
/* PWA INSTALL BUTTON */
.pwa-install-btn {
    position: fixed;
    top: 6rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-pwa);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    min-height: 44px;
    min-width: 44px;
}

.pwa-install-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* ADMIN TRIGGER */
.popup-trigger-admin {
    position: fixed;
    top: 10rem;
    right: 2rem;
    background: linear-gradient(135deg, var(--gray), #555);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-full);
    border: none;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-admin);
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    min-height: 44px;
    min-width: 44px;
}

.popup-trigger-admin:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
}

/* COOKIE CONSENT */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    padding: var(--space-md);
    z-index: var(--z-cookie);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.cookie-consent-banner.hidden {
    transform: translateY(100%);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.cookie-content h4 {
    margin: 0;
    color: white;
}

.cookie-content p {
    text-align: center;
    color: white;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-preferences {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
}

.cookie-preferences label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: white;
    font-size: 0.9rem;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.cookie-btn {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    flex: 1;
    max-width: 200px;
}

.accept-btn {
    background: var(--whatsapp-wcag);
    color: white;
}

.accept-btn:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
}

.preference-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.preference-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-2px);
}

.reject-btn {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.reject-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-2px);
}

.cookie-policy-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

/* LOADING SPINNER */
#loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-loading);
    transition: opacity 0.3s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--whatsapp);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Order Summary Modal Improvements */
#order-summary-modal .modal-content {
    width: 95%;
    max-width: 500px;
    padding: 20px;
    margin: 20px;
}

#order-summary-modal h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    font-size: 1.5rem;
}

#order-items {
    max-height: 300px;
    overflow-y: auto;
    margin: 15px 0;
    padding-right: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.item-info {
    flex: 1;
}

.item-info strong {
    display: block;
    margin-bottom: 4px;
    color: var(--dark);
}

.item-info small {
    color: var(--gray);
    font-size: 0.85rem;
}

.item-price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary);
}

.remove-item {
    background: var(--danger);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.remove-item:hover {
    background: #c82333;
    transform: scale(1.1);
}

.modal-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-total #order-total {
    font-size: 1.5rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-actions .btn {
    padding: 14px 20px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: var(--gray);
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Empty cart state */
#order-items:empty::before {
    content: "Your cart is empty";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: var(--gray);
    font-style: italic;
}

/* Mobile optimization for modal */
@media (max-width: 768px) {
    #order-summary-modal .modal-content {
        padding: 15px;
        margin: 10px;
        width: 90%;
        max-height: 80vh;
    }
    
    .order-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-price {
        width: 100%;
        justify-content: space-between;
    }
    
    .modal-actions .btn {
        padding: 16px 20px;
        font-size: 1.1rem;
    }
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    #order-summary-modal .modal-content {
        width: 70%;
        max-width: 450px;
    }
}

/* Scrollbar styling */
#order-items::-webkit-scrollbar {
    width: 6px;
}

#order-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#order-items::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

#order-items::-webkit-scrollbar-thumb:hover {
    background: #e55a2b;
}

/* Ensure header stays at top */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    background: white;
    box-shadow: var(--shadow-sm);
    width: 100%;
    transition: all 0.3s ease;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Modal backdrop */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: var(--z-modal-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

/* Ensure proper stacking context */
.modal .modal-content {
    position: relative;
    z-index: var(--z-modal);
}

/* Touch device optimization for modal */
@media (pointer: coarse) {
    .modal-actions .btn {
        min-height: 50px;
        font-size: 1.1rem;
    }
    
    .remove-item {
        min-width: 44px;
        min-height: 44px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .order-item {
        border: 2px solid var(--primary);
    }
    
    .modal-total {
        border: 2px solid white;
    }
    
    .remove-item {
        border: 2px solid white;
    }
}

/* ==================== 14. RESPONSIVE DESIGN - CONSOLIDATED ==================== */

/* Search Toggle Button */
.search-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--primary);
    padding: 10px;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--radius-sm);
}

.search-toggle:hover {
    background: rgba(255, 107, 53, 0.1);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: var(--z-menu-toggle);
    position: relative;
    min-width: 44px;
    min-height: 44px;
}

.menu-toggle:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Desktop styles */
@media (min-width: 769px) {
    .menu-toggle,
    .search-toggle,
    .nav-close,
    .mobile-search,
    .nav-overlay {
        display: none !important;
    }
    
    .desktop-search {
        display: block;
        flex: 1;
        max-width: 300px;
        margin-left: auto;
    }
    
    .nav {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .nav a {
        text-decoration: none;
        color: var(--dark);
        font-weight: 500;
        padding: 8px 12px;
        border-radius: 6px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .nav a:hover,
    .nav a.active {
        background: var(--primary);
        color: white;
    }
    
    .phone-link,
    .contact-form-link {
        background: var(--primary);
        color: white !important;
        padding: 8px 16px !important;
        border-radius: 20px;
    }
}

/* MOBILE STYLES - CONSOLIDATED */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Fix body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
    }
    
    /* Slim, app-like header */
    .header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: var(--z-header);
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        height: 56px !important;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        padding: 0 !important;
    }
    
    .header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 56px !important;
        padding: 0 16px !important;
        max-width: 100%;
        gap: 12px;
    }
    
    /* Compact logo container */
    .logo {
        display: flex;
        align-items: center;
        gap: 10px !important;
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .logo-image img {
        width: 40px !important;
        height: 40px !important;
        object-fit: contain;
    }
    
    .logo-text {
        min-width: 0;
        flex: 1;
    }
    
    .logo-text h1 {
        font-size: 16px !important;
        line-height: 1.2;
        font-weight: 600;
        margin-bottom: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: #333;
    }
    
    .tagline {
        font-size: 12px !important;
        color: #666;
        margin: 0 !important;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Clean hamburger menu icon */
    .menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: var(--primary);
        color: white;
        border: none;
        width: 44px;
        height: 44px;
        border-radius: 8px;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: var(--z-menu-toggle);
        position: relative;
        min-width: 44px;
        min-height: 44px;
        padding: 0 !important;
        margin: 0 !important;
        transition: all 0.2s ease;
    }
    
    .menu-toggle:hover,
    .menu-toggle:active {
        background: var(--primary-dark);
        color: white !important;
    }
    
    .menu-toggle:focus {
        outline: 2px solid var(--primary);
        outline-offset: 2px;
        border-radius: 4px;
    }
    
    /* Search toggle button */
    .search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #333;
        padding: 10px;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
        border-radius: var(--radius-sm);
    }
    
    /* Navigation menu - App-like sidebar */
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        transform: translateX(-100%);
        height: 100vh;
        width: 280px;
        max-width: 85%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 80px 0 20px;
        box-shadow: 2px 0 15px rgba(0,0,0,0.15);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: var(--z-nav-mobile);
        overflow-y: auto;
        margin: 0;
        gap: 0 !important;
        -webkit-overflow-scrolling: touch;
        display: none;
    }
    
    .nav.active {
        transform: translateX(0);
        display: flex !important;
    }
    
    /* Navigation close button */
    .nav-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--primary);
        color: white;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 1.2rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: var(--z-nav-close);
    }
    
    /* Clean navigation links */
    .nav a,
    .nav button {
        width: 100%;
        padding: 16px 20px;
        text-align: left;
        font-size: 16px;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 12px;
        background: transparent;
        border: none;
        color: #333;
        text-decoration: none;
        cursor: pointer;
        min-height: 48px;
        border-radius: 0;
        border-left: 4px solid transparent;
        transition: all 0.2s ease;
    }
    
    .nav a:hover,
    .nav a.active,
    .nav a:active {
        background: rgba(255, 107, 53, 0.08);
        color: var(--primary);
        border-left-color: var(--primary);
        transform: none;
    }
    
    /* Style the share button in nav */
    .nav .share-btn {
        background: #f5f5f5;
        color: #333;
        border: none;
        width: calc(100% - 40px);
        margin: 20px;
        border-radius: 8px;
        justify-content: center;
    }
    
    .nav .share-btn:active {
        background: #e0e0e0;
        transform: scale(0.98);
    }
    
    /* Special buttons in nav */
    .nav .phone-link,
    .nav .contact-form-link {
        background: var(--primary);
        color: white !important;
        border-left-color: var(--primary);
        margin: 10px 20px;
        border-radius: 8px;
        justify-content: center;
        font-weight: 600;
    }
    
    /* Mobile search inside nav */
    .mobile-search {
        width: calc(100% - 40px);
        margin: 15px 20px;
        padding: 10px 0;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-search .search-form {
        width: 100%;
    }
    
    .mobile-search input {
        width: 100%;
        padding: 12px 15px;
        border: 2px solid #e0e0e0;
        border-radius: 25px;
        font-size: 16px;
    }
    
    /* Mobile navigation overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: var(--z-header);
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    
    /* Hide desktop search on mobile */
    .desktop-search {
        display: none !important;
    }
    
    /* Ensure proper stacking */
    .header {
        position: fixed;
        top: 0;
        z-index: var(--z-header);
        height: 56px !important;
    }
    
    /* Fix main content spacing */
    main {
        margin-top: 56px !important;
    }
    
    /* Hero section adjustments */
    .hero {
        padding: 6rem 0 3rem;
        background-attachment: scroll;
        margin-top: 56px;
        min-height: 70vh;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-sm);
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        padding: 1rem 1.5rem;
        min-height: 48px;
        margin: 0.25rem 0;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Grid adjustments */
    .products-grid,
    .cake-categories,
    .biryani-plans,
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    /* Prevent text overflow in cards */
    .product-card h3,
    .product-desc,
    .cake-category h4,
    .cake-category p {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    /* Form adjustments */
    .form-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-form,
    .quick-contact-card {
        padding: 20px;
    }
    
    .contact-form-section {
        padding: 40px 0;
    }
    
    /* Floating buttons adjustments */
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem;
        min-height: 60px;
        min-width: 60px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .offers-trigger {
        bottom: 5rem;
        right: 1rem;
    }
    
    .pwa-install-btn {
        top: 5rem;
        right: 1rem;
    }
    
    .popup-trigger-admin {
        top: 8rem;
        right: 1rem;
    }
    
    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-methods,
    .social-links {
        justify-content: center;
    }
    
    /* Cookie consent */
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        max-width: none;
    }
    
    /* Fix touch feedback */
    .product-card:active,
    .cake-category:active,
    .biryani-plan:active {
        transform: translateY(-2px);
        transition: transform 0.1s ease;
    }
    
    .order-btn:active,
    .size-badge:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Improve button spacing on very small screens */
    @media (max-width: 360px) {
        .btn {
            padding: 12px 16px;
            font-size: 0.9rem;
        }
        
        .search-toggle {
            display: none;
        }
    }
    
    /* Ensure proper touch targets */
    button, a, input[type="submit"], .order-btn, .size-badge {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
    
    /* Fix for iOS safe areas */
    .header {
        padding-top: env(safe-area-inset-top, 0px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    
    .hero {
        margin-top: calc(56px + env(safe-area-inset-top, 0px));
    }
    
    /* Ensure navigation is accessible */
    .nav {
        padding-top: calc(80px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    }
    
    /* Fix for Android Chrome */
    @supports (-webkit-touch-callout: none) {
        .hero {
            min-height: -webkit-fill-available;
        }
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .header .container {
        padding: 0 12px !important;
    }
    
    .logo-image img {
        width: 36px !important;
        height: 36px !important;
    }
    
    .logo-text h1 {
        font-size: 15px !important;
    }
    
    .tagline {
        font-size: 11px !important;
    }
    
    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 22px !important;
    }
    
    .search-toggle {
        font-size: 18px;
        padding: 8px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .products-grid,
    .cake-categories,
    .biryani-plans,
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-container {
        grid-template-columns: 1fr;
    }
    
    /* Fix tablet navigation */
    .nav {
        gap: 8px;
    }
    
    .nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Large Desktop */
@media (min-width: 1025px) {
    .container {
        padding: 0 var(--space-lg);
    }
}

/* ==================== 15. PRINT STYLES ==================== */
@media print {
    .whatsapp-float::after {
        content: "WhatsApp Order: https://wa.me/918148450916";
        display: block;
        font-size: 12px;
        color: #000;
        border: 1px solid #ccc;
        padding: 10px;
        margin-top: 20px;
        text-align: center;
    }
    
    .whatsapp-float,
    .pwa-install-btn,
    .popup-trigger-admin,
    .offers-trigger,
    .nav,
    .menu-toggle,
    .cookie-consent-banner,
    #loading-spinner {
        display: none !important;
    }
    
    .hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero h2,
    .hero-subtitle {
        color: black !important;
        text-shadow: none !important;
    }
    
    .hero-highlight {
        background: #f0f0f0 !important;
        color: black !important;
        border: 1px solid #ccc !important;
    }
    
    /* Hide decorative elements */
    .hero::before,
    .btn::before {
        display: none !important;
    }
    
    .btn {
        display: none !important;
    }
    
    .product-card,
    .cake-category,
    .biryani-plan,
    .platform-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        page-break-inside: avoid;
    }
    
    /* Add page breaks for better printing */
    section {
        page-break-inside: avoid;
    }
    
    .footer {
        background: white !important;
        color: black !important;
        page-break-inside: avoid;
    }
    
    .footer-section h4,
    .footer-logo h3 {
        color: black !important;
    }
    
    .footer-section p,
    .footer-section a {
        color: #666 !important;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 90%;
        color: #666;
    }
    
    @page {
        margin: 0.5in;
    }
}

/* ==================== 16. DARK MODE ==================== */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #212529;
        --light-gray: #343a40;
        --dark: #f8f9fa;
        --gray: #adb5bd;
    }
    
    body {
        background: #121212;
        color: #e0e0e0;
    }
    
    .header {
        background: rgba(33, 37, 41, 0.98);
    }
    
    .product-card,
    .cake-category,
    .biryani-plan,
    .platform-card,
    .address-card,
    .delivery-card,
    .timing-card,
    .social-card,
    .quick-contact-card,
    .contact-form,
    .offer-card {
        background: #1e1e1e;
        color: #e0e0e0;
        border-color: #343a40;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        background: #2c2c2c;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .footer {
        background: linear-gradient(135deg, #121212, #1a1a1a);
    }
    
    .whatsapp-popup,
    .offers-popup {
        background: #1e1e1e;
        color: #e0e0e0;
    }
    
    .skeleton {
        background: linear-gradient(90deg, #2c2c2c 25%, #3c3c3c 50%, #2c2c2c 75%);
    }
    
    /* Mobile navigation dark mode */
    @media (max-width: 768px) {
        .nav {
            background: #1e1e1e;
        }
        
        .nav a {
            color: #e0e0e0;
            border-color: #343a40;
        }
        
        .nav a:hover {
            background: #2c2c2c;
        }
        
        .nav a.active {
            background: var(--primary);
            color: white;
        }
        
        .nav-overlay {
            background: rgba(0, 0, 0, 0.7);
        }
    }
}

/* ==================== 17. HIGH CONTRAST MODE ==================== */
@media (prefers-contrast: high) {
    :root {
        --primary: #ff0000;
        --primary-dark: #cc0000;
        --whatsapp: #006400;
        --whatsapp-dark: #004400;
    }
    
    .btn,
    .order-btn,
    .platform-btn,
    .popup-btn {
        border: 2px solid black;
    }
    
    .header {
        border-bottom: 3px solid var(--primary);
    }
    
    .product-card,
    .cake-category,
    .biryani-plan {
        border: 2px solid #000;
    }
}

/* ==================== 18. SPECIAL OFFERS BANNER ==================== */
.special-offers-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
    color: white;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.15);
    animation: slideUp 0.3s ease-out;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.special-offers-banner.compact {
    padding: 8px 12px;
}

.special-offers-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.special-offers-content .offer-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.special-offers-text {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.special-offers-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.banner-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.banner-btn:hover {
    background: rgba(255,255,255,0.3);
}

.banner-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
    opacity: 0.7;
}

.banner-close:hover {
    opacity: 1;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .special-offers-banner {
        padding: 8px 12px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }
    
    .special-offers-content {
        gap: 8px;
    }
    
    .special-offers-text {
        font-size: 0.85rem;
        white-space: normal;
        line-height: 1.2;
    }
    
    .banner-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        min-height: 32px;
    }
    
    /* Ensure banner doesn't block important content */
    body {
        padding-bottom: 60px;
    }
    
    /* When WhatsApp float is visible */
    body.has-whatsapp-float {
        padding-bottom: 100px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .special-offers-banner {
        background: linear-gradient(135deg, #333 0%, #444 100%);
    }
}

/* ==================== 19. REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .btn::before,
    .hero-highlight,
    .whatsapp-float,
    .spinner,
    .skeleton,
    .special-offers-banner {
        animation: none !important;
        transition: none !important;
    }
    
    .btn:hover::before {
        transform: none;
    }
}

/* ==================== 20. PERFORMANCE OPTIMIZATIONS ==================== */
/* Image optimization */
img {
    content-visibility: auto;
    contain-intrinsic-size: 300px;
    max-width: 100%;
    height: auto;
}

/* Prevent layout shifts */
.aspect-ratio {
    position: relative;
    padding-bottom: 100%;
}

.aspect-ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== 21. ADDITIONAL COMPONENTS ==================== */
/* Quick reorder button */
.quick-reorder {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    min-width: 36px;
}

.quick-reorder:hover {
    background: #e6951f;
    transform: translateY(-2px);
}

/* Freshness timer */
.freshness-timer {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    z-index: var(--z-toast);
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 0.3s ease;
    display: none;
    max-width: 90%;
    text-align: center;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Emergency banner */
.emergency-banner {
    background: #ffcc00;
    color: #333;
    padding: 10px 0;
    text-align: center;
    display: none;
    position: relative;
    z-index: 1000;
    margin-top: 70px;
}

.close-emergency {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 0 10px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Offline notification */
.offline-notification {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--warning);
    color: var(--dark);
    padding: 10px;
    text-align: center;
    z-index: 10001;
    display: none;
}

/* Cart styles */
.cart-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    font-size: 1.5rem;
    display: none;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    display: none;
}

.cart-count.active {
    display: flex;
}

.cart-float.active {
    display: flex;
}

/* Tracking steps */
.tracking-steps {
    display: flex;
    justify-content: space-between;
    margin: var(--space-lg) 0;
    position: relative;
}

.tracking-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #ddd;
    z-index: 1;
}

.tracking-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.tracking-step.active .step-icon {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* CSS Scroll Snap for carousels */
.products-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.products-carousel > * {
    scroll-snap-align: start;
}

/* ==================== 22. FINAL TOUCHES ==================== */
/* Ensure consistent button styling */
button, a[role="button"] {
    cursor: pointer;
    font-family: inherit;
}

/* Improve form accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Better selection color */
::selection {
    background: var(--primary);
    color: white;
}

/* Smooth scrolling for anchor links */
html:focus-within {
    scroll-behavior: smooth;
}

/* Print QR code for WhatsApp */
@media print {
    .whatsapp-qr-print {
        display: block !important;
        text-align: center;
        margin: 20px 0;
        border: 1px solid #ccc;
        padding: 15px;
    }
    
    .whatsapp-qr-print img {
        max-width: 150px;
        height: auto;
        margin: 10px auto;
        display: block;
    }
    
    .whatsapp-qr-print p {
        font-size: 12px;
        color: #666;
    }
}