/* Food Junction - Official Brand Theme: Warm Cream & Vibrant Orange (Light Theme) */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;900&family=Noto+Sans+Devanagari:wght@400;500;600;700&display=swap');

:root {
    /* Cream & Warm Light Palette */
    --bg-cream-start: #fdfbf7;
    --bg-cream-mid: #faf3e8;
    --bg-cream-end: #f4eae0;
    --bg-card: #ffffff;
    --bg-card-hover: #fffaf5;
    
    /* Food Junction Brand Colors */
    --brand-orange: #f97316;
    --brand-orange-deep: #ea580c;
    --brand-orange-light: #fb923c;
    --brand-charcoal: #18181b;
    --brand-gradient: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    
    /* Text & Borders */
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    --text-orange: #ea580c;
    --border-light: #f1e6d7;
    --border-brand: rgba(249, 115, 22, 0.28);
    --border-brand-bright: rgba(234, 88, 12, 0.6);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    -webkit-text-size-adjust: 100%;
}

body {
    background: linear-gradient(180deg, #fefdfb 0%, #faf4eb 30%, #f6ede2 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', 'Noto Sans Devanagari', -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative;
    line-height: 1.5;
}

/* Subtle warm ambient pattern */
.bg-cream-ambient {
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 90% 40%, rgba(251, 146, 60, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 10% 80%, rgba(234, 88, 12, 0.05) 0%, transparent 45%),
        radial-gradient(rgba(234, 88, 12, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 28px 28px;
}

/* Typography */
.font-brand {
    font-family: 'Cinzel', serif;
    letter-spacing: 0.04em;
}

.font-hindi {
    font-family: 'Noto Sans Devanagari', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #fbf5ed;
}
::-webkit-scrollbar-thumb {
    background: #e7d8c6;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #f97316;
}

/* Brand Text Gradient */
.text-brand-gradient {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 60%, #c2410c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Clean Menu Card - Light Theme */
.menu-clean-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 14px -2px rgba(120, 80, 40, 0.06);
    transition: all 0.22s ease-in-out;
}

/* Banner Food Spread Image with Realistic Drop Shadow */
.banner-food-shadow {
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.22)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.12));
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.banner-food-shadow:hover {
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.28)) drop-shadow(0 6px 10px rgba(234, 88, 12, 0.25));
    transform: scale(1.025) translateY(-2px);
}

.menu-clean-card:hover {
    border-color: var(--border-brand-bright);
    box-shadow: 0 10px 24px -4px rgba(234, 88, 12, 0.14);
    transform: translateY(-2px);
    background: #fffdfa;
}

/* Category Pill */
.cat-pill {
    transition: all 0.2s ease;
    border: 1px solid #e7dcd0;
    background: #ffffff;
    color: #44403c;
}
.cat-pill:hover {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fdba74;
}

.cat-pill.active {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
    font-weight: 700;
}

/* No Scrollbar helper */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Indicators */
.veg-indicator {
    width: 15px;
    height: 15px;
    border: 2px solid #16a34a;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.08);
}
.veg-indicator::after {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #16a34a;
}

.egg-indicator {
    width: 15px;
    height: 15px;
    border: 2px solid #d97706;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 179, 8, 0.1);
}
.egg-indicator::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4.5px solid transparent;
    border-right: 4.5px solid transparent;
    border-bottom: 7.5px solid #d97706;
}

/* Brand Button */
.btn-brand {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #ffffff;
    font-weight: 700;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}
.btn-brand:hover {
    background: linear-gradient(135deg, #fdba74 0%, #f97316 100%);
    box-shadow: 0 6px 18px rgba(249, 115, 22, 0.45);
    transform: translateY(-1px);
}
.btn-brand:active {
    transform: translateY(1px);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

/* Festive Marquee */
@keyframes festiveMarquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

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

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

@keyframes diwaliFlicker {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 6px rgba(234, 88, 12, 0.7)); }
    50% { opacity: 0.85; filter: drop-shadow(0 0 14px rgba(249, 115, 22, 0.9)); }
}

.diwali-glow {
    animation: diwaliFlicker 2s infinite ease-in-out;
}

/* Badges */
.badge-special {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
}

.badge-bestseller {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.badge-spicy {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
}

/* Toast */
.toast-notice {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1000;
}
.toast-notice.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }
    #printable-bill, #printable-bill * {
        visibility: visible;
    }
    #printable-bill {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        color: #000 !important;
        background: #fff !important;
        padding: 20px;
    }
}

/* ======================================================== */
/* MOBILE USER EXPERIENCE OPTIMIZATIONS */
/* ======================================================== */

/* Fast tap response & eliminate 300ms tap delay */
html, body, button, a, input, select {
    touch-action: manipulation;
}

/* Inertia touch scrolling on iOS & Android */
.no-scrollbar, #category-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Touch active feedback on touch devices */
@media (hover: none) and (pointer: coarse) {
    .menu-clean-card:active {
        transform: scale(0.985);
        background: #fffaf4;
    }
    .cat-pill:active, .filter-chip:active {
        transform: scale(0.94);
    }
    .btn-brand:active {
        transform: scale(0.96);
    }
}

/* Mobile Category Bottom Sheet Drawer */
.bottom-sheet-backdrop {
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.bottom-sheet-panel {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Safe area padding for iPhones with home swipe bar */
.mobile-nav-safe {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
}

/* Subtle pulse for floating Call button */
@keyframes pulseSubtle {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(249, 115, 22, 0.55); }
}
.pulse-call {
    animation: pulseSubtle 3s infinite ease-in-out;
}

/* Floating Order / Cart Bar Animation */
.floating-order-bar {
    animation: slideUpFloat 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFloat {
    from {
        opacity: 0;
        transform: translate(-50%, 25px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Quantity Stepper Micro-interactions */
.qty-stepper-btn {
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.15s ease;
}
.qty-stepper-btn:active {
    transform: scale(0.88);
}

/* Modal Popup Scale-in */
.modal-scale-in {
    animation: modalPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

