/* ==========================================================================
   বাঙালির শখের রান্নাঘর - Pure Vanilla CSS Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Serif+Bengali:wght@400;600;700&display=swap');

/* --- Root Color Tokens & CSS Variables --- */
:root {
    --color-primary: #000000;
    --color-on-primary: #ffffff;
    --color-primary-container: #1b1b1b;
    --color-secondary: #bb0024;
    --color-secondary-hover: #99001d;
    --color-secondary-fixed: #ffdad8;
    --color-surface: #f9f9f9;
    --color-surface-soft: #F5F4F2;
    --color-surface-container: #eeeeee;
    --color-surface-white: #ffffff;
    --color-on-surface: #1b1b1b;
    --color-border-subtle: #E5E3E0;
    --color-border-hover: #7e7576;
    --color-text-muted: #706C64;

    --font-main: 'Inter', 'Noto Serif Bengali', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-bengali: 'Noto Serif Bengali', 'Inter', serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
}

/* --- Global Utility Classes --- */
.hidden {
    display: none !important;
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* --- Mobile Smooth Scroll --- */
.is-mobile html,
html.is-mobile,
.is-mobile body {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Momentum scrolling on iOS */
}


body {
    font-family: var(--font-main);
    background-color: var(--color-surface);
    color: var(--color-on-surface);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --- Remove Browser Side Scrollbar --- */
html,
body {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE & Edge */
}

::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* --- Global Layout Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.font-bengali {
    font-family: var(--font-bengali);
}

.text-secondary {
    color: var(--color-secondary);
}

.bg-surface-soft {
    background-color: var(--color-surface-soft);
}

/* --- Header Navigation --- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(249, 249, 249, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-subtle);
    z-index: 100;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.brand-logo-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.06);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-on-surface);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--color-secondary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-actions .btn {
    padding: 12px 28px;
    font-size: 0.95rem;
}

.cart-icon-btn {
    position: relative;
    padding: 8px;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-icon-btn:hover {
    color: var(--color-secondary);
}

.cart-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: var(--color-secondary);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle-btn {
    display: none;
    padding: 8px;
    color: var(--color-primary);
    background: none;
    border: none;
}

/* --- Custom Cursor --- */
@media (min-width: 769px) {

    html,
    body,
    a,
    button,
    input,
    select,
    textarea,
    label,
    [role="button"] {
        cursor: none !important;
    }
}

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        height 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-radius 0.3s ease,
        background-color 0.3s ease,
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.custom-cursor.hero-hide {
    opacity: 0 !important;
    visibility: hidden !important;
}

#hero,
#hero * {
    cursor: default !important;
}

.custom-cursor-follower {
    display: none !important;
}

/* Scroll Capsule Morph State */
.custom-cursor.scrolling {
    width: 32px;
    height: 14px;
    border-radius: 14px;
    background-color: var(--color-secondary);
}

/* Translucent Glass Magnifier Hover State */
.custom-cursor.magnify {
    width: 64px;
    height: 64px;
    background-color: rgba(187, 0, 36, 0.15);
    backdrop-filter: blur(2px);
    border: 1.5px solid var(--color-secondary);
    box-shadow: 0 6px 24px rgba(187, 0, 36, 0.3);
    border-radius: 50%;
}

@media (max-width: 768px) {
    .custom-cursor {
        display: none !important;
    }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    background-color: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    transition: color 0.4s ease, border-color 0.4s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Upward Rising Curved Liquid Water Fill */
.btn::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -15%;
    width: 130%;
    height: 140%;
    background-color: var(--color-secondary);
    border-radius: 50% 50% 0 0 / 35% 35% 0 0;
    z-index: -1;
    transition: top 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn:hover::before {
    top: -20%;
}

.btn:hover {
    color: #ffffff !important;
    border-color: var(--color-secondary) !important;
    box-shadow: 0 8px 24px rgba(187, 0, 36, 0.35);
}

.btn:active {
    transform: scale(0.92) !important;
}

.btn-primary,
.btn-secondary,
.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
}

/* Click Ripple Ring Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: btn-ripple-anim 0.6s ease-out;
    pointer-events: none;
}

@keyframes btn-ripple-anim {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    overflow: hidden;
}

/* ── BACKGROUND LAYER ── */
.hero-base-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-base-stitch {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.hero-bg-solid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* ── REVEAL LAYER (Fluid Blob Spotlight) ── */
.hero-reveal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    will-change: clip-path, opacity;
    transition: opacity 0.2s ease;
}

/* ── CLONE LAYER (Expanding Blob) ── */
#cloneLayer {
    z-index: 6;
    opacity: 0;
    will-change: clip-path, opacity;
}

/* ── SVG BORDER OVERLAY ── */
.blob-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 7;
}

.blob-border {
    stroke: rgba(255, 255, 255, 0);
    stroke-width: 1.5;
    fill: none;
    will-change: stroke, d;
}

/* ── Images inside masks ── */
.reveal-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 1;
    transition: none;
    backface-visibility: hidden;
}

.reveal-img.active {
    opacity: 1;
    z-index: 2;
}

/* ── HERO TEXT ── */
.hero-text {
    position: relative;
    z-index: 10;
    text-align: center;
    pointer-events: none;
}

.hero-text h1 {
    font-family: 'Hind Siliguri', sans-serif;
    font-size: 8.4vw;
    line-height: 1.1;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.hero-text p {
    font-size: 1.58vw;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.7);
    transition: opacity 0.3s ease;
}

/* --- Our Story Section --- */
.story-section {
    position: relative;
    padding: 96px 0;
    overflow: hidden;
    background-color: #ffffff !important;
    color-scheme: light !important;
    transition: background-color 0.6s ease;
}

.story-wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.story-wave-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.story-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.story-image-wrap {
    position: relative;
}

.story-image-frame {
    aspect-ratio: 1 / 1;
    max-width: 420px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-lg);
}

.story-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 80% 55%;
    transform: scale(1.3) translateY(2%);
    filter: grayscale(100%);
    transition: var(--transition);
}

.story-image-frame:hover img {
    filter: grayscale(0%);
    transform: scale(1.36) translateY(4%);
}

.story-blur-accent {
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 144px;
    height: 144px;
    background-color: var(--color-secondary-fixed);
    border-radius: 50%;
    z-index: -1;
    filter: blur(32px);
    opacity: 0.6;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: rgba(255, 218, 216, 0.5);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.story-title {
    font-family: var(--font-bengali);
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.story-text {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.story-btn {
    font-weight: 600;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: underline;
    transition: var(--transition);
}

.story-btn .btn-icon {
    transition: transform 0.3s ease;
}

.story-btn:hover .btn-icon,
.story-btn:focus .btn-icon {
    transform: translateX(4px);
}

.brand-highlight {
    color: var(--color-primary);
    transition: color 0.3s ease;
}

/* Smooth variable text & element color transitions in sync with wave fill progression */
.story-section {
    --wave-fill: 0;
}

.story-section .story-title {
    color: color-mix(in srgb, #ffffff calc(var(--wave-fill) * 100%), #000000);
    transition: color 0.15s ease-out;
}

.story-section .story-text {
    color: color-mix(in srgb, #e5d7d8 calc(var(--wave-fill) * 100%), #706C64);
    transition: color 0.15s ease-out;
}

.story-section .story-text strong,
.story-section .brand-highlight {
    color: color-mix(in srgb, #ff6b81 calc(var(--wave-fill) * 100%), #000000);
    transition: color 0.15s ease-out;
}

.story-section #read-story-btn,
.story-section .story-btn {
    color: color-mix(in srgb, #ff6b81 calc(var(--wave-fill) * 100%), #000000);
    transition: color 0.15s ease-out;
}

.story-section .section-label {
    background-color: color-mix(in srgb, rgba(255, 107, 129, 0.2) calc(var(--wave-fill) * 100%), rgba(255, 218, 216, 0.5));
    color: color-mix(in srgb, #ff6b81 calc(var(--wave-fill) * 100%), #bb0024);
    transition: background-color 0.15s ease-out, color 0.15s ease-out;
}

.story-section .story-image-frame {
    border-color: color-mix(in srgb, rgba(255, 255, 255, 0.2) calc(var(--wave-fill) * 100%), #E5E3E0);
    box-shadow: color-mix(in srgb, rgba(0, 0, 0, 0.5) calc(var(--wave-fill) * 100%), rgba(0, 0, 0, 0.12));
    transition: border-color 0.15s ease-out, box-shadow 0.15s ease-out;
}

.story-section.wave-active .story-title {
    color: #ffffff;
}

.story-section.wave-active .story-text {
    color: #e5d7d8;
}

.story-section.wave-active .story-text strong,
.story-section.wave-active .brand-highlight {
    color: #ff6b81;
}

.story-section.wave-active #read-story-btn,
.story-section.wave-active .story-btn {
    color: #ff6b81;
}

.story-section.wave-active .section-label {
    background-color: rgba(255, 107, 129, 0.2);
    color: #ff6b81;
}

.story-section.wave-active .story-image-frame {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.story-section .story-title,
.story-section .story-text,
.story-section .section-label,
.story-section #read-story-btn,
.story-section .story-btn,
.story-section .story-image-frame {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Enforce Light Mode Container on Our Story Section across all Dark Mode themes ── */
@media (prefers-color-scheme: dark) {
    .story-section:not(.wave-active) {
        background-color: #ffffff !important;
        color-scheme: light !important;
    }
}

/* Class-based dark theme and mobile dark mode overrides */
.dark-mode .story-section:not(.wave-active),
.dark-theme .story-section:not(.wave-active),
.is-mobile.dark-mode .story-section:not(.wave-active) {
    background-color: #ffffff !important;
    color-scheme: light !important;
}

/* --- Section Divider --- */
.divider-wrapper {
    padding: 32px 0;
}

.section-divider {
    border: none;
    height: 1px;
    background-color: var(--color-border-subtle);
    width: 100%;
}

/* --- Curated Menu Section & Heritage Textured Dynamic Background --- */
.menu-section {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
    isolation: isolate;
    transition: background-color 0.6s ease;
}

/* Dynamic Photo Backdrop with Soft Warm Heritage Spice Filter */
.menu-bg-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08) translateZ(0);
    filter: brightness(0.7) contrast(1.05);
    will-change: opacity, transform;
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    pointer-events: none;
}

.menu-bg-backdrop.active {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Soft Crimson Tint Overlay with Lower Opacity */
.menu-bg-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(92, 13, 24, 0.45) 0%, rgba(20, 5, 8, 0.65) 100%),
        linear-gradient(135deg, rgba(20, 5, 8, 0.65) 0%, rgba(187, 0, 36, 0.25) 50%, rgba(15, 4, 6, 0.7) 100%);
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
}

.menu-section.has-active-hover .menu-bg-overlay {
    opacity: 0.55;
}

/* Soft Organic Texture Overlay */
.menu-texture-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Soft Organic Noise Grain */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E"),
        /* Soft Diamond Motif Grid */
        url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0L40 20L20 40L0 20Z' fill='none' stroke='rgba(255, 218, 216, 0.04)' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0;
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.menu-section.has-active-hover .menu-texture-overlay {
    opacity: 0.45;
}

/* Header Text Contrast Transitions when Heritage Section Background is Active */
.menu-title {
    font-family: var(--font-bengali);
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--color-primary);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.menu-section.has-active-hover .menu-title {
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(187, 0, 36, 0.5), 0 2px 8px rgba(0, 0, 0, 0.8);
}

.menu-header p {
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.menu-section.has-active-hover .menu-header p {
    color: rgba(255, 218, 216, 0.9) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 2;
}

.menu-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.menu-filter {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background-color: var(--color-surface-soft);
    color: var(--color-primary);
    transition: var(--transition);
}

.menu-filter:hover {
    background-color: var(--color-border-subtle);
}

.menu-filter.active {
    background-color: var(--color-secondary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(187, 0, 36, 0.3);
}

/* Desktop Slide Control Navigation Buttons */
.menu-slider-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slider-nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-surface-soft);
    border: 1.5px solid var(--color-border-subtle);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.slider-nav-btn:hover {
    background-color: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(187, 0, 36, 0.3);
}

/* --- Menu Horizontal Slider Track & Mobile Touch Swipe --- */
.dishes-slider-wrap {
    position: relative;
    width: 100%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
    scrollbar-width: none; /* Hide default scrollbar in Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding: 12px 4px 24px;
}

.dishes-slider-wrap::-webkit-scrollbar {
    display: none; /* Hide scrollbar for clean visual aesthetic */
}

.dishes-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 2;
    width: max-content;
}

/* Dish Cards with Heritage Crimson & Glass Accent */
.dish-card {
    position: relative;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 420px;
    flex: 0 0 300px;
    max-width: 320px;
    scroll-snap-align: start;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        background-color 0.4s ease,
        opacity 0.4s ease;
}

@media (max-width: 768px) {
    .dish-card {
        flex: 0 0 84vw;
        max-width: 310px;
    }
    .menu-slider-nav {
        display: none; /* Mobile relies on intuitive touch swipe gestures */
    }
}

.dish-card:hover {
    transform: translate3d(0, -6px, 0);
    background-color: rgba(36, 12, 16, 0.96);
    border-color: rgba(235, 87, 87, 0.6);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.dish-img-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: var(--color-surface-container);
    overflow: hidden;
    flex-shrink: 0;
}

.dish-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform: translateZ(0);
    transition: transform 0.4s ease-out;
}

.dish-card:hover .dish-img-wrap img {
    transform: scale(1.08) translateZ(0);
}

.dish-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--color-secondary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    z-index: 3;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.dish-badge.bg-primary {
    background-color: var(--color-primary);
}

.dish-card:hover .dish-badge {
    background-color: var(--color-secondary);
    box-shadow: 0 0 12px rgba(187, 0, 36, 0.6);
}

.dish-body {
    padding: 24px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
}

.dish-body > div:first-child {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.dish-name {
    font-family: var(--font-bengali);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-primary);
    transition: color 0.4s ease;
}

.dish-card:hover .dish-name {
    color: #ffffff;
}

.dish-desc {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 8px;
    line-height: 1.6;
    transition: color 0.4s ease;
}

.dish-card:hover .dish-desc {
    color: rgba(255, 218, 216, 0.9);
}

.dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-subtle);
    margin-top: auto;
    transition: border-color 0.4s ease;
}

.dish-card:hover .dish-footer {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.dish-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    transition: color 0.4s ease;
}

.dish-card:hover .dish-price {
    color: #ff9e9d;
}

.add-to-cart-btn {
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.dish-card:hover .add-to-cart-btn {
    background-color: var(--color-secondary);
    box-shadow: 0 4px 14px rgba(187, 0, 36, 0.5);
}

.dish-card:hover .add-to-cart-btn:hover {
    background-color: var(--color-secondary-hover);
    transform: scale(1.05);
}

/* --- Features Section --- */
.features-section {
    background-color: var(--color-surface-soft);
    padding: 80px 0;
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-secondary-fixed);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-title {
    font-family: var(--font-bengali);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Private Events Section --- */
.events-section {
    background-color: #f3f3f3;
    padding: 80px 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

/* --- Contact & Map Section --- */
.contact-section {
    padding: 100px 0;
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 64px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 100px;
    align-items: stretch;
}

.map-wrapper {
    height: 100%;
    min-height: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
    box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-item h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}

.contact-item p {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 1rem;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(229, 227, 224, 0.5);
    margin-top: 6px;
}

/* --- Modals & Drawers --- */
.modal-backdrop,
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.active,
.drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background-color: var(--color-surface);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-subtle);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal-backdrop.active .modal-box {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--color-primary);
    padding: 4px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    background-color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(187, 0, 36, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Drawer (Cart & Mobile Menu) --- */
.drawer-content {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    background-color: var(--color-surface);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-backdrop.active .drawer-content {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.drawer-body {
    padding: 24px 0;
    overflow-y: auto;
    flex: 1;
}

.cart-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-surface-soft);
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-subtle);
    margin-bottom: 12px;
}

.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--color-primary);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    z-index: 300;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
}

.toast-notification.active {
    transform: translateY(0);
    opacity: 1;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-primary);
    color: var(--color-on-primary);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-size: 0.8rem;
    opacity: 0.8;
    flex-wrap: wrap;
    gap: 16px;
}

.created-by-link {
    color: var(--color-secondary-fixed);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.created-by-link:hover {
    color: var(--color-secondary);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .dishes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px 0 24px;
    }

    .header-inner {
        padding: 10px 0;
    }

    .brand-logo {
        padding-left: 4px;
    }

    .brand-logo-img {
        height: 40px;
    }

    .nav-links,
    .header-actions .btn {
        display: none;
    }

    .mobile-toggle-btn {
        display: flex;
    }

    /* Hero Section Mobile */
    .hero-bg-solid {
        opacity: 0.65;
    }

    .hero-text h1 {
        font-size: 11.55vw;
    }

    .hero-text p {
        font-size: 3.36vw;
        letter-spacing: 1px;
    }

    /* Our Story Section Mobile */
    .story-section {
        padding: 48px 0;
    }

    .story-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .story-image-frame {
        max-width: 280px;
    }

    .story-title {
        font-size: 1.75rem;
        line-height: 1.3;
        margin-bottom: 14px;
    }

    .story-text {
        font-size: 0.95rem;
    }

    /* Menu Section Mobile */
    .menu-section {
        padding: 48px 0;
    }

    .menu-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .menu-title {
        font-size: 1.75rem;
    }

    .menu-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .menu-filter {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Features Section Mobile (Hidden on Mobile) */
    .features-section {
        display: none !important;
    }

    /* Menu Cards Mobile View (Manual touch scroll without auto swipe / marquee) */
    .menu-section {
        overflow: hidden;
    }

    .dishes-slider-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 16px;
    }

    .dishes-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;
        width: max-content;
        align-items: stretch;
        transform: none !important;
    }

    .dish-card {
        width: 270px;
        flex-shrink: 0;
        height: 100%;
        min-height: 420px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px 16px;
    }

    .feature-title {
        font-size: 1.25rem;
    }

    /* Events & Contact Section Mobile */
    .events-section,
    .contact-section {
        padding: 40px 0;
    }

    .contact-title {
        font-size: 1.75rem;
        margin-bottom: 24px;
    }

    .events-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .map-wrapper {
        height: auto;
        min-height: auto;
        aspect-ratio: 16 / 10;
        border-radius: var(--radius-md);
    }

    .contact-card {
        padding: 20px;
        gap: 20px;
        border-radius: var(--radius-md);
    }

    /* Form Modal & Drawer Mobile */
    .modal-box {
        padding: 24px 16px;
        max-width: 92%;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Footer Mobile */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 13.65vw;
    }

    .hero-text p {
        font-size: 4.2vw;
    }

    .story-image-frame {
        max-width: 240px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .contact-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .map-wrapper {
        aspect-ratio: 4 / 3;
        height: 240px;
    }

    .contact-card {
        padding: 16px;
        gap: 16px;
    }

    .hours-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
}

/* --- Desktop Only Padding & Spacing Adjustments --- */
@media (min-width: 769px) {

    /* 1. Increase vertical padding around sections and the divider */
    .story-section {
        padding: 120px 0;
    }

    .features-section {
        padding: 120px 0;
    }

    .events-section {
        padding: 120px 0;
    }

    .contact-section {
        padding: 140px 0;
    }

    .contact-title {
        margin-bottom: 72px;
    }

    /* Vertical space around the section divider */
    .divider-wrapper {
        padding: 60px 0;
    }

    .menu-section {
        padding: 100px 0;
    }

    /* 2. Drastically increase horizontal space between two elements */
    .story-grid {
        gap: 80px;
    }

    .dishes-grid {
        gap: 40px;
    }

    .features-grid {
        gap: 56px;
    }

    /* Pushes the Events text and image much further apart */
    .events-grid {
        gap: 120px;
    }

    /* Pushes the Map and Contact details much further apart */
    .contact-grid {
        gap: 140px;
    }

    /* 3. Adjust Navigation spacing */
    .header-inner {
        padding: 16px 0;
    }

    .nav-links {
        gap: 48px;
    }
}

/* --- Checkout System & Database UI Styles --- */
.checkout-modal-box {
    max-width: 900px !important;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.checkout-section-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.order-type-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.radio-card,
.payment-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--color-border-subtle);
    background-color: #ffffff;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.2s ease, 
                background-color 0.2s ease;
    user-select: none;
    position: relative;
}

.radio-card input[type="radio"],
.payment-card input[type="radio"] {
    accent-color: var(--color-secondary);
    cursor: pointer;
}

/* Translucent Grey Hover Effect (unselected on hover) */
.radio-card:hover,
.payment-card:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Checked / Selected Active Card State */
.radio-card:has(input:checked),
.payment-card:has(input:checked),
.radio-card.active,
.payment-card.active {
    border-color: var(--color-secondary) !important;
    background-color: var(--color-secondary-fixed) !important;
    box-shadow: 0 4px 12px rgba(187, 0, 36, 0.12) !important;
    transform: none !important;
}

/* Checked / Selected Active Card Hover State (subtle warm translucent boost) */
.radio-card:has(input:checked):hover,
.payment-card:has(input:checked):hover,
.radio-card.active:hover,
.payment-card.active:hover {
    border-color: var(--color-secondary) !important;
    background-color: rgba(187, 0, 36, 0.12) !important;
    box-shadow: 0 4px 12px rgba(187, 0, 36, 0.16) !important;
    transform: none !important;
}

/* Unchecked Card Default State */
.radio-card:not(:has(input:checked)):not(.active):not(:hover),
.payment-card:not(:has(input:checked)):not(.active):not(:hover) {
    border-color: var(--color-border-subtle) !important;
    background-color: #ffffff !important;
    box-shadow: none !important;
    transform: translate(0, 0);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* --- Admin Panel Dashboard Styles --- */
.admin-login-overlay {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-surface-soft);
    padding: 20px;
}

.admin-login-card {
    background-color: #ffffff;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-lg);
}

.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.metric-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 2px;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
}

.search-box-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
}

.search-box-wrap .material-symbols-outlined {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.admin-orders-box {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.admin-order-card {
    background-color: #ffffff;
    border: 1.5px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
}

.admin-order-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-sm);
}

.admin-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.admin-order-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr;
    gap: 20px;
    padding: 16px 0;
    font-size: 0.85rem;
}

.admin-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed var(--color-border-subtle);
    flex-wrap: wrap;
    gap: 12px;
}

.status-select {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--color-border-subtle);
    background-color: #ffffff;
    cursor: pointer;
}

@media (max-width: 900px) {
    .admin-order-body {
        grid-template-columns: 1fr;
    }
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.payment-info strong {
    font-size: 0.85rem;
    color: var(--color-primary);
}

.payment-info span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.checkout-summary-box {
    background-color: var(--color-surface-soft);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.checkout-item-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.checkout-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--color-border-subtle);
}

.coupon-input-wrap {
    display: flex;
    gap: 8px;
}

.coupon-msg {
    font-size: 0.8rem;
    margin-top: 6px;
    font-weight: 600;
}

.coupon-msg.success {
    color: #16a34a;
}

.coupon-msg.error {
    color: var(--color-secondary);
}

.bill-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-muted);
}

.bill-row.total-row {
    color: var(--color-primary);
    font-size: 1.05rem;
}

/* Quantity Stepper Controls */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-surface-soft);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border-subtle);
}

.qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid var(--color-border-subtle);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.qty-btn:hover {
    background-color: var(--color-secondary);
    color: #ffffff;
    border-color: var(--color-secondary);
}

.qty-val {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

/* Receipt & Order History Modal */
.success-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(22, 163, 74, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.order-tracker {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: 20px 0;
    padding: 0 10px;
}

.order-tracker::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 20px;
    right: 20px;
    height: 2px;
    background-color: var(--color-border-subtle);
    z-index: 1;
}

.tracker-step {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--color-border-subtle);
    border: 2px solid #ffffff;
}

.tracker-step.completed .step-dot,
.tracker-step.active .step-dot {
    background-color: #16a34a;
}

.tracker-step.active span:last-child {
    font-weight: 700;
    color: #16a34a;
}

.receipt-card {
    background-color: var(--color-surface-soft);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: var(--transition);
}

.history-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-sm);
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background-color: rgba(22, 163, 74, 0.15);
    color: #16a34a;
}

/* --- Admin Order Details & Modal Custom Styles --- */
.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .order-detail-grid {
        grid-template-columns: 1fr;
    }
}

.order-info-card {
    background-color: var(--color-surface-soft);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    padding: 18px;
}

.order-info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 8px;
}

.order-info-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.88rem;
}

.order-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    color: var(--color-text-muted);
}

.order-info-row strong {
    color: var(--color-primary);
    font-weight: 600;
}

.order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.88rem;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
}

.order-items-table th {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.order-items-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-subtle);
    background-color: #ffffff;
}

.order-items-table tr:last-child td {
    border-bottom: none;
}

.order-items-table tr:hover td {
    background-color: var(--color-surface-soft);
}

.order-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-subtle);
    gap: 12px;
    flex-wrap: wrap;
}

.quick-status-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.quick-status-btn {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1.5px solid var(--color-border-subtle);
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition);
}

.quick-status-btn:hover,
.quick-status-btn.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.res-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.res-table th {
    background-color: var(--color-primary);
    color: #ffffff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}

.res-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border-subtle);
    background-color: #ffffff;
}

.res-table tr:hover td {
    background-color: var(--color-surface-soft);
}

/* --- Admin Dashboard Navigation Tabs --- */
.admin-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-muted);
    background-color: var(--color-surface-soft);
    border: 1.5px solid var(--color-border-subtle);
    cursor: pointer;
    transition: var(--transition);
}

.admin-tab-btn:hover {
    background-color: #ffffff;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.admin-tab-btn.active {
    background-color: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
    .admin-tab-bar {
        flex-direction: column;
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-modal-box {
        padding: 20px;
        max-width: 95% !important;
    }
}

/* --- High-Performance Fullscreen Preloader --- */
.app-preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background-color: #120406;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, visibility;
    transform: translateZ(0);
}

.app-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
}

.palette-container {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.palette-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(224, 159, 62, 0.15);
    border-top-color: var(--color-secondary, #bb0024);
    border-right-color: #e09f3e;
    animation: ringSpin 1.2s infinite linear;
    will-change: transform;
}

.palette-core {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(187, 0, 36, 0.3) 0%, rgba(20, 5, 8, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(187, 0, 36, 0.4);
    animation: palettePulse 1.8s infinite ease-in-out;
    will-change: transform, box-shadow;
}

.palette-icon {
    font-size: 36px !important;
    color: #fca5a5;
    animation: skilletTilt 2s infinite ease-in-out;
}

.preloader-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.preloader-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.preloader-progress-track {
    width: 220px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
}

.preloader-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: linear-gradient(90deg, var(--color-secondary, #bb0024), #e09f3e);
    border-radius: 4px;
    transition: width 0.2s ease-out;
    will-change: width;
}

.preloader-percent {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e09f3e;
    font-family: monospace;
}

@keyframes ringSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes palettePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 25px rgba(187, 0, 36, 0.3); }
    50% { transform: scale(1.08); box-shadow: 0 0 45px rgba(187, 0, 36, 0.6); }
}

@keyframes skilletTilt {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.05); }
    75% { transform: rotate(10deg) scale(1.05); }
}

/* Hardware Acceleration Helpers for CPU Efficiency */
.hero-reveal,
.story-image-wrap,
.dish-card,
.modal-box {
    will-change: opacity, transform;
    transform: translateZ(0);
}

/* --- Menu Horizontal Slider Track --- */
.dishes-slider-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 4px 24px;
}

/* ==========================================================================
   Mobile Performance Overrides (.is-mobile class added by JS on window ≤ 768px)
   These rules strip expensive GPU operations without changing visual design.
   ========================================================================== */

/* Hide custom cursor on mobile — no mousemove listener is attached either */
.is-mobile #custom-cursor,
.is-mobile #custom-cursor-follower {
    display: none !important;
}

/* Remove expensive runtime blur filter from overlay layers — use opacity only */
.is-mobile .menu-bg-overlay,
.is-mobile .menu-texture-overlay {
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Disable SVG blob border stroke on mobile (handled in JS too, belt-and-suspenders) */
.is-mobile #blobBorder {
    stroke-width: 0 !important;
    stroke: rgba(255, 255, 255, 0) !important;
}

/* Remove box-shadow glow from palette rings on mobile — transform/opacity only */
.is-mobile .palette-core,
.is-mobile .palette-ring {
    box-shadow: none;
}

/* Neutralize backdrop-filter blur on modals and drawers on mobile */
.is-mobile .modal-backdrop,
.is-mobile .drawer-backdrop {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Disable story blur accent background filter on mobile */
.is-mobile .story-blur-accent {
    filter: none !important;
    opacity: 0 !important;
}

/* Disable hover transforms & shadow animations on touch cards */
.is-mobile .dish-card:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Render containment on major sections to isolate reflow/repaint calculations */
.is-mobile .hero,
.is-mobile .story-section,
.is-mobile .menu-section {
    contain: content;
}

/* Neutralize will-change on elements that are not actively animated on mobile
   — prevents GPU memory pressure from promoting too many layers */
.is-mobile .hero-reveal,
.is-mobile .story-image-wrap,
.is-mobile .dish-card,
.is-mobile .modal-box {
    will-change: auto;
    transform: none;
}