@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --food-bg: #f7f5f0;
    --food-card: #ffffff;
    --food-text: #24231f;
    --food-muted: #77736b;
    --food-gold: #c79b52;
    --food-gold-dark: #a77b35;
    --food-border: #e9e4da;
    --food-dark: #191914;
    --food-shadow: 0 15px 45px rgba(34, 29, 20, .08);
    --food-radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body.food-page {
    margin: 0;
    background: var(--food-bg);
    color: var(--food-text);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    transition: background .35s ease, color .35s ease;
}

body.food-page a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.food-main {
    width: min(1440px, calc(100% - 64px));
    margin: 0 auto;
}

/* =====================================
   HEADER
===================================== */

.food-topbar {
    height: 82px;
    padding: 0 max(32px, calc((100vw - 1440px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(199, 155, 82, .16);
    transition: height .3s ease, box-shadow .3s ease, background .3s ease;
    backdrop-filter: blur(16px);
}

.food-topbar.food-header-scrolled {
    height: 70px;
    box-shadow: 0 9px 30px rgba(0, 0, 0, .09);
}

.food-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--food-dark);
    border: 1px solid var(--food-gold);
    font-family: 'Playfair Display', serif;
    font-size: 25px;
    border-radius: 50%;
}

.food-brand strong {
    display: block;
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    font-size: 19px;
}

.food-brand small {
    display: block;
    margin-top: 3px;
    color: var(--food-gold-dark);
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
}

.food-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.food-nav a {
    color: #77736b;
    font-size: 13px;
    font-weight: 700;
    transition: color .25s ease;
}

.food-nav a:hover,
.food-nav a.active {
    color: var(--food-gold-dark);
}

.food-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle,
.header-cart,
.profile-link,
.login-header-btn {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--food-border);
    border-radius: 30px;
    background: #fff;
    color: var(--food-text);
    font-size: 12px;
    font-weight: 700;
    transition: .25s ease;
}

.theme-toggle:hover,
.header-cart:hover,
.profile-link:hover {
    border-color: var(--food-gold);
    transform: translateY(-2px);
}

.login-header-btn {
    background: var(--food-dark);
    color: #fff;
    border-color: var(--food-dark);
}

.cart-count,
.mini-cart-count {
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: inline-grid;
    place-items: center;
    border-radius: 50px;
    background: var(--food-gold);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

/* =====================================
   HERO
===================================== */

.food-hero {
    min-height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 24px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(15, 14, 11, .88), rgba(15, 14, 11, .30)),
        url('/assets/images/food-hero.jpg') center/cover no-repeat,
        #29251e;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 45%, rgba(199, 155, 82, .16), transparent 40%);
    pointer-events: none;
}

.hero-content {
    width: min(680px, 90%);
    padding: 65px 75px;
    position: relative;
    z-index: 2;
    animation: foodHeroReveal .9s ease both;
}

.hero-eyebrow,
.section-kicker {
    display: inline-block;
    color: var(--food-gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero-content h1 {
    margin: 20px 0 18px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 5.5vw, 72px);
    line-height: 1.08;
    font-weight: 700;
}

.hero-content h1 em,
.food-intro h2 em,
.menu-section-heading h2 em,
.food-bottom-banner h2 em,
.login-gate-dialog h2 em {
    color: var(--food-gold);
    font-weight: 600;
}

.hero-content p {
    max-width: 490px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.9;
}

.hero-button {
    width: fit-content;
    margin-top: 22px;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 25px;
    background: var(--food-gold);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .5px;
    transition: .3s ease;
}

.hero-button:hover {
    background: #fff;
    color: #201e18 !important;
    transform: translateY(-4px);
}

.hero-side-note {
    position: absolute;
    right: 35px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .7);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
}

.hero-side-line {
    width: 1px;
    height: 45px;
    background: var(--food-gold);
}

/* =====================================
   INTRO
===================================== */

.food-intro {
    padding: 70px 0 35px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.food-intro h2,
.menu-section-heading h2 {
    margin: 10px 0 7px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 45px);
}

.food-intro p {
    margin: 0;
    color: var(--food-muted);
    font-size: 13px;
}

.menu-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 22px;
    border-left: 1px solid var(--food-border);
}

.summary-number {
    color: var(--food-gold-dark);
    font-family: 'Playfair Display', serif;
    font-size: 34px;
}

.summary-label {
    color: var(--food-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
}

/* =====================================
   ALERT
===================================== */

.food-alert {
    margin: 10px 0 20px;
    padding: 14px 18px;
    border: 1px solid #b9d8bd;
    border-radius: 10px;
    background: #edf8ef;
    color: #245b2c;
    font-size: 13px;
}

/* =====================================
   SEARCH AND FILTER
===================================== */

.food-filter-panel {
    padding: 25px;
    background: var(--food-card);
    border: 1px solid var(--food-border);
    border-radius: var(--food-radius);
    box-shadow: var(--food-shadow);
}

.food-search-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.search-field {
    min-height: 51px;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 17px;
    border: 1px solid var(--food-border);
    border-radius: 9px;
    background: var(--food-bg);
}

.search-icon {
    color: var(--food-gold-dark);
    font-size: 25px;
}

.search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--food-text);
    font-size: 13px;
}

.search-button {
    min-width: 145px;
    border: 0;
    border-radius: 9px;
    background: var(--food-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: .25s ease;
}

.search-button:hover {
    background: var(--food-gold-dark);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    padding: 15px 0;
    border-top: 1px solid var(--food-border);
}

.filter-heading {
    min-width: 110px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-heading span {
    color: var(--food-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.filter-heading strong {
    font-size: 12px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.filter-chip {
    padding: 9px 15px;
    border: 1px solid var(--food-border);
    border-radius: 30px;
    color: var(--food-muted) !important;
    background: var(--food-card);
    font-size: 11px;
    font-weight: 700;
    transition: .25s ease;
}

.filter-chip:hover,
.filter-chip.selected {
    border-color: var(--food-gold);
    background: var(--food-dark);
    color: #fff !important;
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 5px;
    color: var(--food-gold-dark) !important;
    font-size: 11px;
    font-weight: 800;
}

/* =====================================
   MENU GRID
===================================== */

.food-menu-section {
    padding: 75px 0 85px;
}

.menu-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.menu-section-heading h2 {
    margin-bottom: 0;
}

.result-count {
    color: var(--food-muted);
    font-size: 12px;
    font-weight: 700;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 27px;
    perspective: 1200px;
}

/* =====================================
   FOOD CARD
===================================== */

.food-card {
    min-width: 0;
    overflow: hidden;
    position: relative;
    background: var(--food-card);
    border: 1px solid var(--food-border);
    border-radius: 15px;
    box-shadow: 0 7px 25px rgba(35, 30, 20, .045);
    transform-style: preserve-3d;
    transition:
        opacity .55s ease,
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
    opacity: 0;
    transform: translateY(35px) scale(.985);
    will-change: transform;
}

.food-card.food-card-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: var(--food-card-delay, 0ms);
}

.food-card.is-tilting {
    z-index: 3;
    border-color: rgba(199, 155, 82, .65);
    box-shadow: 0 25px 55px rgba(30, 25, 15, .16);
}

.food-image-wrap {
    height: 235px;
    position: relative;
    overflow: hidden;
    background: #e9e3d8;
}

.food-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}

.food-card:hover .food-image {
    transform: scale(1.075);
}

.food-image-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(0, 0, 0, .23), transparent 55%);
}

.food-category-tag {
    position: absolute;
    left: 15px;
    bottom: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 30px;
    background: rgba(20, 18, 14, .7);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    backdrop-filter: blur(8px);
}

.ultimate-chef-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 30px;
    background: rgba(27, 24, 18, .85);
    color: #f3cf8e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .15);
    backdrop-filter: blur(8px);
    animation: chefBadgeIn .4s ease both;
}

.food-card-content {
    padding: 19px;
}

.food-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.food-kitchen {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--food-muted);
    font-size: 10px;
    font-weight: 700;
}

.kitchen-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6d9d64;
    box-shadow: 0 0 0 3px rgba(109, 157, 100, .13);
}

.food-item-number {
    color: #aaa49a;
    font-size: 10px;
}

.food-card h3 {
    margin: 13px 0 7px;
    color: var(--food-text);
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    line-height: 1.3;
}

.food-description {
    min-height: 42px;
    margin: 0;
    color: var(--food-muted);
    font-size: 11px;
    line-height: 1.8;
}

.food-card-footer {
    margin-top: 19px;
    padding-top: 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--food-border);
}

.food-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.food-price small {
    color: var(--food-muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.food-price strong {
    color: var(--food-gold-dark);
    font-family: 'Playfair Display', serif;
    font-size: 21px;
}

/* =====================================
   QUANTITY + ADD TO CART
===================================== */

.add-cart-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-control {
    height: 37px;
    display: flex;
    align-items: center;
    border: 1px solid var(--food-border);
    border-radius: 7px;
    overflow: hidden;
    background: var(--food-bg);
}

.qty-btn {
    width: 27px;
    height: 35px;
    border: 0;
    background: transparent;
    color: var(--food-text);
    font-size: 17px;
    transition: background .2s ease;
}

.qty-btn:hover {
    background: rgba(199, 155, 82, .18);
}

.quantity-value {
    width: 28px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--food-text);
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    appearance: textfield;
    -moz-appearance: textfield;
}

.quantity-value::-webkit-inner-spin-button,
.quantity-value::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.add-cart-btn {
    height: 38px;
    min-width: 78px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 7px;
    background: var(--food-dark);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    transition: .25s ease;
}

.add-cart-btn:hover {
    background: var(--food-gold-dark);
    transform: translateY(-2px);
}

.add-cart-btn.is-adding {
    background: #477b4b;
    pointer-events: none;
}

.add-symbol {
    font-size: 16px;
}

.mini-cart-dock.is-pulsing {
    animation: miniCartPulse .55s ease;
}

.mini-cart-dock.is-pressed {
    transform: scale(.96);
}

/* =====================================
   EMPTY MENU
===================================== */

.empty-menu {
    padding: 75px 20px;
    text-align: center;
    background: var(--food-card);
    border: 1px dashed var(--food-border);
    border-radius: 15px;
}

.empty-icon {
    font-size: 45px;
}

.empty-menu h3 {
    margin: 15px 0 8px;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
}

.empty-menu p {
    color: var(--food-muted);
    font-size: 13px;
}

.empty-menu a {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 20px;
    border-radius: 7px;
    background: var(--food-dark);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
}

/* =====================================
   BOTTOM BANNER
===================================== */

.food-bottom-banner {
    min-height: 240px;
    padding: 45px 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    margin-bottom: 80px;
    border-radius: 12px;
    background: #211f19;
    color: #fff;
}

.food-bottom-banner h2 {
    margin: 13px 0 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.2;
}

.banner-decoration {
    color: rgba(199, 155, 82, .5);
    font-size: 130px;
    animation: bannerRotate 20s linear infinite;
}

/* =====================================
   MINI CART DOCK
===================================== */

.mini-cart-dock {
    position: fixed;
    right: 25px;
    bottom: 24px;
    z-index: 900;
    min-width: 260px;
    min-height: 70px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 13px;
    background: #201e18;
    color: #fff !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .24);
    transition: transform .25s ease, box-shadow .25s ease;
}

.mini-cart-dock:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 55px rgba(0, 0, 0, .3);
}

.mini-cart-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(199, 155, 82, .17);
    font-size: 19px;
}

.mini-cart-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-cart-text strong {
    font-size: 12px;
}

.mini-cart-text small {
    color: #aaa49a;
    font-size: 9px;
}

.mini-cart-count {
    background: var(--food-gold);
}

.mini-cart-arrow {
    color: var(--food-gold);
    font-size: 20px;
}

/* =====================================
   LOGIN POPUP
===================================== */

.login-gate {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.login-gate.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.login-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 8, .75);
    backdrop-filter: blur(7px);
}

.login-gate-dialog {
    width: min(440px, 100%);
    padding: 42px 35px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(199, 155, 82, .3);
    border-radius: 16px;
    background: #fff;
    text-align: center;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3);
    transform: translateY(25px) scale(.97);
    transition: transform .35s ease;
}

.login-gate.is-open .login-gate-dialog {
    transform: translateY(0) scale(1);
}

.login-gate-close {
    width: 34px;
    height: 34px;
    position: absolute;
    top: 13px;
    right: 13px;
    border: 0;
    border-radius: 50%;
    background: #f2eee6;
    color: #29251e;
    font-size: 22px;
}

.login-gate-symbol {
    width: 53px;
    height: 53px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border: 1px solid var(--food-gold);
    border-radius: 50%;
    background: var(--food-dark);
    color: var(--food-gold);
    font-family: 'Playfair Display', serif;
    font-size: 28px;
}

.login-gate-dialog h2 {
    margin: 15px 0 12px;
    font-family: 'Playfair Display', serif;
    font-size: 34px;
    line-height: 1.2;
}

.login-gate-dialog h2 em {
    color: var(--food-gold-dark);
}

.login-gate-dialog p {
    color: #77736b;
    font-size: 12px;
    line-height: 1.8;
}

.login-gate-submit {
    min-height: 48px;
    margin-top: 22px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    background: var(--food-dark);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
}

.login-gate-register {
    display: inline-block;
    margin-top: 17px;
    color: var(--food-gold-dark) !important;
    font-size: 11px;
    font-weight: 800;
}

body.login-gate-open {
    overflow: hidden;
}

/* =====================================
   FLOATING KADHAI ANIMATION
===================================== */

.floating-kadhai {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 850;
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform:
        translate(-50%, var(--kadhai-y, 0px))
        rotate(-12deg)
        scale(.65);
    transition: opacity .35s ease;
    filter: drop-shadow(0 12px 15px rgba(0, 0, 0, .18));
    will-change: transform, opacity;
}

.floating-kadhai.kadhai-visible {
    opacity: 1;
    animation: kadhaiSpin 4s linear infinite;
}

.kadhai-emoji {
    font-size: 67px;
    line-height: 1;
    transform-origin: center;
}

.kadhai-steam {
    position: absolute;
    top: -4px;
    right: 12px;
    color: var(--food-gold);
    font-size: 24px;
    animation: steamFloat 1.2s ease-in-out infinite alternate;
}

/* =====================================
   DARK MODE
===================================== */

body.food-dark-mode {
    --food-bg: #151511;
    --food-card: #201f19;
    --food-text: #f2eee5;
    --food-muted: #aaa397;
    --food-border: #39362d;
    --food-dark: #080807;
    --food-shadow: 0 15px 45px rgba(0, 0, 0, .22);
}

body.food-dark-mode .food-topbar {
    background: rgba(27, 26, 21, .96);
    border-color: var(--food-border);
}

body.food-dark-mode .food-brand strong,
body.food-dark-mode .food-nav a,
body.food-dark-mode .theme-toggle,
body.food-dark-mode .header-cart,
body.food-dark-mode .profile-link {
    color: var(--food-text);
}

body.food-dark-mode .theme-toggle,
body.food-dark-mode .header-cart,
body.food-dark-mode .profile-link {
    background: #25231d;
    border-color: var(--food-border);
}

body.food-dark-mode .food-filter-panel,
body.food-dark-mode .food-card,
body.food-dark-mode .empty-menu {
    background: var(--food-card);
}

body.food-dark-mode .search-field,
body.food-dark-mode .filter-chip,
body.food-dark-mode .quantity-control {
    background: #191813;
    border-color: var(--food-border);
}

body.food-dark-mode .search-field input,
body.food-dark-mode .filter-chip {
    color: var(--food-text) !important;
}

body.food-dark-mode .food-card h3,
body.food-dark-mode .food-price strong {
    color: var(--food-text);
}

body.food-dark-mode .food-card-footer {
    border-color: var(--food-border);
}

body.food-dark-mode .filter-chip.selected {
    background: var(--food-gold);
    color: #17140e !important;
}

/* =====================================
   ANIMATION KEYFRAMES
===================================== */

@keyframes foodHeroReveal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chefBadgeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes miniCartPulse {
    0%, 100% {
        transform: scale(1);
    }
    35% {
        transform: scale(1.06);
    }
    70% {
        transform: scale(.98);
    }
}

@keyframes bannerRotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes kadhaiSpin {
    0% {
        transform:
            translate(-50%, var(--kadhai-y, 0px))
            rotate(-12deg);
    }
    50% {
        transform:
            translate(-50%, var(--kadhai-y, 0px))
            rotate(12deg);
    }
    100% {
        transform:
            translate(-50%, var(--kadhai-y, 0px))
            rotate(-12deg);
    }
}

@keyframes steamFloat {
    from {
        opacity: .3;
        transform: translateY(5px) scale(.8);
    }
    to {
        opacity: 1;
        transform: translateY(-8px) scale(1.1);
    }
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1100px) {
    .food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .food-topbar {
        padding: 0 22px;
    }

    .food-nav {
        gap: 17px;
    }

    .food-header-actions {
        gap: 7px;
    }

    .theme-toggle {
        padding: 0 10px;
    }
}

@media (max-width: 760px) {
    .food-main {
        width: calc(100% - 28px);
    }

    .food-topbar {
        height: 68px;
        padding: 0 14px;
        gap: 10px;
    }

    .food-topbar.food-header-scrolled {
        height: 62px;
    }

    .food-brand strong {
        font-size: 16px;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 21px;
    }

    .food-nav {
        display: none;
    }

    .food-header-actions {
        gap: 6px;
    }

    .theme-toggle {
        width: 38px;
        min-width: 38px;
        padding: 0;
        font-size: 16px;
    }

    .theme-toggle span:last-child {
        display: none;
    }

    .header-cart {
        min-width: 40px;
        padding: 0 9px;
        font-size: 0;
    }

    .cart-icon {
        font-size: 16px;
    }

    .profile-link,
    .login-header-btn {
        min-height: 36px;
        padding: 0 10px;
        font-size: 10px;
    }

    .food-hero {
        min-height: 400px;
        margin-top: 12px;
        background-position: 62% center;
    }

    .hero-content {
        padding: 40px 25px;
    }

    .hero-content h1 {
        font-size: 43px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .hero-side-note {
        display: none;
    }

    .food-intro {
        padding: 48px 0 25px;
    }

    .food-intro h2,
    .menu-section-heading h2 {
        font-size: 32px;
    }

    .menu-summary {
        padding: 8px 12px;
    }

    .summary-number {
        font-size: 26px;
    }

    .food-filter-panel {
        padding: 17px;
    }

    .food-search-form {
        gap: 8px;
    }

    .search-button {
        min-width: 95px;
        padding: 0 10px;
        font-size: 10px;
    }

    .filter-row {
        flex-direction: column;
        gap: 12px;
    }

    .filter-heading {
        flex-direction: row;
        align-items: center;
        gap: 9px;
    }

    .filter-chips {
        gap: 7px;
    }

    .filter-chip {
        padding: 8px 11px;
        font-size: 10px;
    }

    .food-menu-section {
        padding: 50px 0;
    }

    .food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .food-image-wrap {
        height: 155px;
    }

    .food-card-content {
        padding: 12px;
    }

    .food-card h3 {
        font-size: 17px;
    }

    .food-description {
        min-height: 52px;
        font-size: 10px;
    }

    .food-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .food-price {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .food-price strong {
        font-size: 18px;
    }

    .add-cart-form {
        justify-content: space-between;
    }

    .quantity-control {
        flex: 1;
        justify-content: space-between;
    }

    .quantity-value {
        flex: 1;
    }

    .add-cart-btn {
        min-width: 65px;
    }

    .food-bottom-banner {
        min-height: 190px;
        padding: 30px 24px;
        margin-bottom: 95px;
    }

    .banner-decoration {
        font-size: 75px;
    }

    .mini-cart-dock {
        right: 12px;
        bottom: 12px;
        left: 12px;
        min-width: 0;
        min-height: 60px;
    }

    .floating-kadhai {
        width: 75px;
        height: 75px;
    }

    .kadhai-emoji {
        font-size: 50px;
    }
}

@media (max-width: 390px) {
    .food-grid {
        grid-template-columns: 1fr;
    }

    .food-image-wrap {
        height: 220px;
    }

    .food-card-footer {
        flex-direction: row;
        align-items: end;
    }

    .food-price {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* =====================================================
   KAIRA CINEMATIC FOOD HERO - PREMIUM 3D ANIMATION
   Add this block at the END of user_food-menu.css
===================================================== */

.cinematic-food-hero {
    min-height: 540px;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 76% 48%, rgba(199,155,82,.22), transparent 38%),
        linear-gradient(110deg, #100f0b 0%, #211b12 55%, #100f0b 100%);
}

.cinematic-food-hero .hero-overlay {
    z-index: 0;
    background:
        radial-gradient(circle at 72% 50%, rgba(219,169,91,.18), transparent 35%),
        linear-gradient(90deg, rgba(10,9,7,.96) 0%, rgba(10,9,7,.78) 42%, rgba(10,9,7,.12) 100%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .12;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
}

.cinematic-food-hero .hero-content {
    width: 52%;
    max-width: 680px;
    z-index: 5;
}

.cinematic-food-hero .hero-content h1 {
    text-shadow: 0 8px 35px rgba(0,0,0,.35);
}

.cinematic-food-hero .hero-eyebrow {
    color: #e6bd78;
}

.cinematic-food-hero .hero-button {
    box-shadow: 0 8px 30px rgba(199,155,82,.25);
}

/* Main animation stage */

.cinematic-food-stage {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 3%;
    width: min(49%, 590px);
    aspect-ratio: 1 / 1;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    perspective: 1100px;
}

.hero-glow {
    position: absolute;
    width: 75%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(213,159,77,.16);
    filter: blur(65px);
    animation: heroGlowPulse 4s ease-in-out infinite alternate;
}

/* Orbit rings */

.hero-orbit {
    position: absolute;
    width: 88%;
    height: 42%;
    border: 1px solid rgba(224,181,112,.28);
    border-radius: 50%;
    transform: rotate(-25deg);
    box-shadow: 0 0 20px rgba(199,155,82,.06);
}

.orbit-two {
    width: 100%;
    height: 55%;
    transform: rotate(32deg);
    border-color: rgba(224,181,112,.13);
}

/* Premium plate */

.hero-plate {
    position: relative;
    z-index: 2;
    width: 47%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle, #f7f0e3 0 55%, #d8c8aa 57% 60%, #fff8e9 62% 67%, #a78a5d 69% 71%, #e9dcc4 73%);
    box-shadow:
        0 30px 70px rgba(0,0,0,.45),
        0 0 0 12px rgba(255,255,255,.025),
        0 0 50px rgba(220,173,98,.2);
    animation: heroPlateFloat 5s ease-in-out infinite;
}

.hero-plate::before {
    content: "";
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(147,112,62,.35);
    border-radius: 50%;
}

.hero-plate-inner {
    position: absolute;
    inset: 17%;
    border: 1px solid rgba(147,112,62,.18);
    border-radius: 50%;
}

.hero-plate-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #9c7945;
    font-family: 'Playfair Display', serif;
    letter-spacing: 4px;
}

.hero-plate-center span {
    font-size: clamp(13px, 2vw, 23px);
    font-weight: 800;
}

.hero-plate-center small {
    margin-top: 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 7px;
    letter-spacing: 3px;
}

/* Two database food images */

.hero-orbit-food {
    position: absolute;
    z-index: 4;
    width: 29%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    animation: heroFoodOrbit 12s linear infinite;
    transform-origin: center;
}

.hero-orbit-food-1 {
    --orbit-radius-x: 175px;
    --orbit-radius-y: 115px;
    animation-duration: 13s;
}

.hero-orbit-food-2 {
    --orbit-radius-x: 175px;
    --orbit-radius-y: 115px;
    animation-duration: 13s;
    animation-delay: -6.5s;
}

.hero-food-image-frame {
    width: 100%;
    aspect-ratio: 1;
    padding: 5px;
    overflow: hidden;
    border: 2px solid rgba(238,197,127,.8);
    border-radius: 50%;
    background: rgba(255,255,255,.13);
    box-shadow:
        0 15px 35px rgba(0,0,0,.4),
        0 0 24px rgba(216,169,94,.28);
    backdrop-filter: blur(8px);
}

.hero-food-image-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.hero-food-name {
    max-width: 150px;
    padding: 6px 11px;
    overflow: hidden;
    border: 1px solid rgba(230,190,126,.35);
    border-radius: 30px;
    background: rgba(15,13,10,.76);
    color: #f5d8a5;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

/* Falling food pieces */

.hero-falling-food {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

.hero-food-particle {
    position: absolute;
    top: -12%;
    left: calc(35% + (var(--particle-index) * 3.2%));
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255,220,160,.85);
    border-radius: 50%;
    background-image: var(--particle-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 5px 15px rgba(0,0,0,.35);
    opacity: 0;
    animation: heroFoodFall 4.8s ease-in infinite;
    animation-delay: calc(var(--particle-index) * .42s);
}

.hero-food-particle:nth-child(2n) {
    width: 20px;
    height: 20px;
}

.hero-food-particle:nth-child(3n) {
    width: 15px;
    height: 15px;
    filter: saturate(1.2);
}

/* Sparkles */

.hero-plate-sparkle {
    position: absolute;
    z-index: 6;
    color: #f4d49b;
    font-size: 24px;
    text-shadow: 0 0 20px rgba(255,208,130,.8);
    animation: heroSparkle 2.4s ease-in-out infinite;
}

.sparkle-one {
    top: 19%;
    left: 23%;
}

.sparkle-two {
    top: 65%;
    right: 12%;
    animation-delay: .8s;
}

.sparkle-three {
    bottom: 17%;
    left: 30%;
    animation-delay: 1.4s;
}

.hero-stage-caption {
    position: absolute;
    bottom: 2%;
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(245,215,170,.78);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 3px;
}

.caption-line {
    width: 35px;
    height: 1px;
    background: #c79b52;
}

/* Cinematic keyframes */

@keyframes heroGlowPulse {
    from { transform: scale(.85); opacity: .55; }
    to { transform: scale(1.15); opacity: 1; }
}

@keyframes heroPlateFloat {
    0%, 100% { transform: translateY(0) rotateX(8deg); }
    50% { transform: translateY(-13px) rotateX(0deg); }
}

@keyframes heroFoodOrbit {
    0% {
        transform: translate(0, -155px) rotate(0deg);
    }
    25% {
        transform: translate(165px, 0) rotate(90deg);
    }
    50% {
        transform: translate(0, 155px) rotate(180deg);
    }
    75% {
        transform: translate(-165px, 0) rotate(270deg);
    }
    100% {
        transform: translate(0, -155px) rotate(360deg);
    }
}

@keyframes heroFoodFall {
    0% {
        top: -12%;
        opacity: 0;
        transform: translateX(0) rotate(0deg) scale(.4);
    }
    12% { opacity: 1; }
    75% {
        opacity: 1;
        transform: translateX(35px) rotate(260deg) scale(1);
    }
    100% {
        top: 82%;
        opacity: 0;
        transform: translateX(-15px) rotate(480deg) scale(.25);
    }
}

@keyframes heroSparkle {
    0%, 100% {
        opacity: .25;
        transform: scale(.7) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.25) rotate(90deg);
    }
}

/* Responsive */

@media (max-width: 900px) {
    .cinematic-food-hero {
        min-height: 690px;
        align-items: flex-start;
    }

    .cinematic-food-hero .hero-content {
        width: 100%;
        padding: 45px 35px 0;
    }

    .cinematic-food-stage {
        top: auto;
        bottom: 5px;
        right: 50%;
        width: min(75%, 430px);
        transform: translateX(50%);
    }

    .hero-stage-caption {
        bottom: 0;
    }
}

@media (max-width: 520px) {
    .cinematic-food-hero {
        min-height: 620px;
        margin-top: 12px;
    }

    .cinematic-food-hero .hero-content {
        padding: 34px 22px 0;
    }

    .cinematic-food-hero .hero-content h1 {
        font-size: 39px;
    }

    .cinematic-food-hero .hero-content p {
        max-width: 330px;
        font-size: 11px;
    }

    .cinematic-food-stage {
        width: 94%;
        bottom: 12px;
    }

    .hero-orbit-food {
        width: 27%;
    }

    .hero-food-name {
        max-width: 110px;
        font-size: 8px;
    }

    .hero-food-particle {
        width: 18px;
        height: 18px;
    }

    .hero-plate-center span {
        font-size: 14px;
    }

    .hero-stage-caption {
        font-size: 6px;
        letter-spacing: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cinematic-food-stage *,
    .cinematic-food-stage {
        animation: none !important;
    }

    .hero-food-particle {
        display: none;
    }
}

/* =====================================
   ACCESSIBILITY
===================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .food-card {
        opacity: 1;
        transform: none;
    }

    .floating-kadhai {
        animation: none !important;
    }
}