/* ═══════════════════════════════════════════════════════════════════════════
   Annapoorna — design system  •  Indian Vegetarian Cuisine
   Brand green · gold + red accents · taupe · Fraunces + Hanken Grotesk
   Palette sampled from the Annapoorna logo (green #489C30 · gold #FCC000 ·
   red #E41824 · taupe #6C6C54).
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* palette — real Annapoorna brand */
    --masala:      #40892b;   /* brand green — headings, structure, nav */
    --masala-deep: #316a20;
    --masala-ink:  #1e3416;   /* deep green — dark surfaces (footer) */
    --saffron:     #fcc000;   /* brand gold accent */
    --saffron-hot: #d99f00;
    --chili:       #e41824;   /* brand red — CTAs / energetic accent */
    --chili-deep:  #c21019;
    --leaf:        #489c30;   /* veg marker green */
    --paper:       #f6f6ef;   /* soft cream background */
    --paper-2:     #ebe9dc;
    --card:        #fffffb;
    --ink:         #2b2e25;   /* text */
    --ink-soft:    #6c6c54;   /* brand taupe */
    --line:        #e4e1d2;

    /* type */
    --display: 'Fraunces', Georgia, serif;
    --body:    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

    /* geometry */
    --r-sm: 10px;
    --r:    16px;
    --r-lg: 24px;
    --r-pill: 999px;

    /* depth */
    --shadow-sm: 0 2px 8px rgba(30,52,22,.06);
    --shadow:    0 8px 24px rgba(30,52,22,.10);
    --shadow-lg: 0 20px 48px rgba(30,52,22,.16);

    --maxw: 1180px;
    --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--body);
    color: var(--ink);
    background: var(--paper);
    /* subtle warm paper grain via layered radial gradients */
    background-image:
        radial-gradient(circle at 15% 0%, rgba(252,192,0,.10), transparent 40%),
        radial-gradient(circle at 85% 5%, rgba(228,24,36,.06), transparent 45%);
    background-attachment: fixed;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 16px; }
:focus-visible { outline: 2px solid var(--chili); outline-offset: 2px; }

.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ── Typography helpers ─────────────────────────────────────────────────── */
.wordmark {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -.01em;
    font-optical-sizing: auto;
}
.eyebrow {
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--saffron-hot);
}
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; font-optical-sizing: auto; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--body); font-weight: 600; font-size: 15px;
    padding: 14px 24px; border-radius: var(--r-pill);
    transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s;
    line-height: 1;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--chili); color: #fff; box-shadow: 0 6px 16px rgba(228,24,36,.32); }
.btn--primary:hover { background: var(--chili-deep); box-shadow: 0 10px 22px rgba(228,24,36,.4); transform: translateY(-1px); }
.btn--dark { background: var(--masala); color: #fff; box-shadow: 0 6px 16px rgba(64,137,43,.28); }
.btn--dark:hover { background: var(--masala-deep); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--masala); border: 1.5px solid var(--line); }
.btn--ghost:hover { border-color: var(--masala); background: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 17px 28px; font-size: 16px; }

/* ── Top nav (shared) ───────────────────────────────────────────────────── */
.topnav {
    position: sticky; top: 0; z-index: 40;
    height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(16px, 4vw, 40px);
    background: var(--masala);
    -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.12);
}
.topnav__logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topnav__logo .wordmark { font-size: 22px; color: #fff; }
.topnav__logo-img { height: 30px; width: auto; display: block; flex: 0 1 auto; max-width: 100%; background: #fff; padding: 5px 10px; border-radius: 9px; box-sizing: content-box; object-fit: contain; }
.topnav__badge {
    font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; flex: none;
    color: var(--masala); background: var(--saffron); padding: 3px 8px; border-radius: var(--r-pill);
}
.topnav__links { display: flex; align-items: center; gap: 6px; flex: none; }
.topnav__link {
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); white-space: nowrap;
    display: inline-flex; align-items: center;
    padding: 8px 14px; border-radius: var(--r-pill); transition: background .15s, color .15s;
}
.topnav__link:hover { background: rgba(255,255,255,.14); color: #fff; }
@media (max-width: 480px) {
    .topnav__logo-img { height: 24px; }
    .topnav__badge { display: none; }              /* free up width; site is takeaway-only */
    .topnav__link { padding: 8px 10px; font-size: 13px; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { margin-top: 80px; background: var(--masala-ink); color: rgba(255,255,255,.72); }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 48px clamp(16px,4vw,40px) 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 36px; }
.site-footer__brand { max-width: 340px; }
.site-footer__logo { height: 40px; width: auto; display: block; background: #fff; padding: 8px 12px; border-radius: 12px; box-sizing: content-box; object-fit: contain; }
.site-footer__brand .wordmark { font-size: 26px; color: #fff; }
.site-footer__tag { font-size: 14px; color: var(--saffron); margin-top: 4px; }
.site-footer__contact { display: block; font-size: 14px; margin-top: 8px; color: rgba(255,255,255,.72); }
.site-footer__contact:hover { color: #fff; }
.site-footer__links { display: flex; gap: 56px; flex-wrap: wrap; }
.site-footer__col h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 12px; font-weight: 700; }
.site-footer__col a { display: block; font-size: 14px; color: rgba(255,255,255,.78); margin: 7px 0; }
.site-footer__col a:hover { color: #fff; }
.site-footer__copy { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
@media (max-width: 560px) { .site-footer__links { gap: 32px; } .site-footer__top { gap: 28px; } }

/* ── Spice / veg markers ────────────────────────────────────────────────── */
.veg-dot { width: 14px; height: 14px; border: 1.5px solid var(--leaf); border-radius: 3px; display: inline-grid; place-items: center; }
.veg-dot::after { content: ''; width: 6px; height: 6px; background: var(--leaf); border-radius: 50%; }
.veg-dot--nonveg { border-color: var(--chili-deep); }
.veg-dot--nonveg::after { background: var(--chili-deep); }
.spice { color: var(--chili); font-size: 12px; letter-spacing: 1px; }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING HERO  (index.php)  — ordering-first
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative; overflow: hidden;
    margin: clamp(14px,3vw,26px) auto 0; max-width: calc(var(--maxw) + 40px);
    border-radius: clamp(20px,3vw,32px);
    background:
        radial-gradient(120% 120% at 85% 0%, rgba(252,192,0,.18), transparent 45%),
        linear-gradient(150deg, #1e3416 0%, #2c5a1e 46%, #316a20 100%);
    color: #fff;
    box-shadow: var(--shadow-lg);
    padding: clamp(28px,5vw,60px) clamp(22px,4vw,60px);
}
.hero__glow {
    position: absolute; z-index: 0; right: -80px; bottom: -120px;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(228,24,36,.35), transparent 68%);
    pointer-events: none;
}
.hero__inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr; gap: 34px; align-items: center;
}
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 40px; } }

.hero__logo { height: clamp(34px,5vw,46px); width: auto; margin-bottom: 20px; }
.hero__eyebrow {
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
    color: var(--saffron); margin-bottom: 14px;
}
.hero__title { font-size: clamp(38px,7vw,68px); color: #fff; letter-spacing: -.02em; }
.hero__title em { font-style: italic; color: var(--saffron); }
.hero__sub { margin-top: 16px; max-width: 460px; font-size: clamp(15px,2.2vw,18px); color: rgba(255,255,255,.82); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__cta-alt { color: #fff; border-color: rgba(255,255,255,.4); }
.hero__cta-alt:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.hero__chips {
    list-style: none; display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px;
    font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.9);
}
.hero__chips li { display: flex; align-items: center; gap: 8px; }
.hero__chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(252,192,0,.22); }

/* Collage */
.hero__collage { position: relative; display: none; min-height: 340px; }
@media (min-width: 900px) { .hero__collage { display: block; } }
.hero__tile {
    position: absolute; border-radius: 20px; overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,.32); border: 3px solid rgba(255,255,255,.9);
    background: #fff;
}
.hero__tile img { width: 100%; height: 100%; object-fit: cover; }
.hero__tile--a { width: 54%; aspect-ratio: 4/3; top: 0; right: 6%; transform: rotate(3deg); z-index: 2; }
.hero__tile--b { width: 42%; aspect-ratio: 1/1; top: 30%; left: 2%; transform: rotate(-5deg); z-index: 3; }
.hero__tile--c { width: 40%; aspect-ratio: 1/1; bottom: 2%; right: 16%; transform: rotate(-3deg); z-index: 4; }
.hero__tile--d { width: 34%; aspect-ratio: 1/1; top: 4%; left: 0; transform: rotate(6deg); z-index: 1; }

/* ═══════════════════════════════════════════════════════════════════════════
   LOCATION PICKER  (index.php)
   ═══════════════════════════════════════════════════════════════════════════ */
.lp-hero {
    max-width: var(--maxw); margin: 0 auto; padding: clamp(48px,9vw,110px) clamp(16px,4vw,40px) clamp(28px,5vw,56px);
    text-align: center; position: relative;
}
.lp-hero__eyebrow { margin-bottom: 18px; }
.lp-hero__title {
    font-size: clamp(40px, 9vw, 84px); color: var(--masala); letter-spacing: -.02em;
}
.lp-hero__title em { font-style: italic; color: var(--chili); }
.lp-hero__sub { max-width: 560px; margin: 20px auto 0; font-size: clamp(15px,2.4vw,19px); color: var(--ink-soft); }
.lp-hero__pill {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 26px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill);
    padding: 8px 16px 8px 10px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.lp-hero__pill span.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(63,125,63,.18); }

.lp-section { max-width: var(--maxw); margin: 0 auto; padding: 8px clamp(16px,4vw,40px) 40px; }
.lp-section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.lp-section__head h2 { font-size: clamp(22px,4vw,30px); color: var(--ink); }
.lp-section__head p { font-size: 13px; color: var(--ink-soft); }

.lp-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lp-grid { grid-template-columns: 1fr 1fr; } }

.loc-card {
    position: relative; display: flex; flex-direction: column;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, border-color .22s;
}
.loc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--saffron); }
.loc-card__media {
    height: 168px; position: relative;
    background:
        linear-gradient(135deg, rgba(64,137,43,.9), rgba(49,106,32,.82)),
        radial-gradient(circle at 30% 30%, rgba(252,192,0,.5), transparent 60%);
    display: grid; place-items: center; overflow: hidden;
}
.loc-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .5; }
.loc-card__initial { position: relative; font-family: var(--display); font-size: 60px; color: rgba(255,255,255,.92); }
.loc-card__status {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    padding: 5px 11px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
.loc-card__status--open { background: rgba(63,125,63,.92); color: #fff; }
.loc-card__status--closed { background: rgba(42,15,12,.72); color: rgba(255,255,255,.85); }
.loc-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.loc-card__name { font-size: 22px; color: var(--masala); }
.loc-card__addr { display: flex; gap: 8px; margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.loc-card__addr svg { flex: none; margin-top: 2px; color: var(--saffron-hot); }
.loc-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; }
.loc-card__meta { font-size: 13px; color: var(--ink-soft); }
.loc-card__meta strong { color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════════════════
   ORDER PAGE  (order.php)  — layout defined in order.css
   Shared components (cards, cart, modal, toast, bottom nav) below.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section headings */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 32px 0 16px; }
.section-heading__title { font-size: clamp(20px,3.6vw,26px); color: var(--ink); }
.section-heading__link { font-size: 13px; font-weight: 600; color: var(--chili); }

/* Search */
.search-wrapper { position: relative; margin-top: 8px; }
.search-bar {
    display: flex; align-items: center; gap: 10px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--r-pill); padding: 12px 18px; box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s;
}
.search-bar:focus-within { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(252,192,0,.2); }
.search-bar__icon { color: var(--ink-soft); flex: none; }
.search-bar__input { flex: 1; border: none; background: none; outline: none; color: var(--ink); }
.search-bar__clear { font-size: 22px; color: var(--ink-soft); line-height: 1; padding: 0 4px; }
.search-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
    overflow: hidden; display: none; max-height: 360px; overflow-y: auto;
}
.search-dropdown.is-open { display: block; }
.search-result { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; transition: background .12s; }
.search-result:hover { background: var(--paper); }
.search-result__name { font-weight: 600; font-size: 14px; }
.search-result__price { margin-left: auto; color: var(--chili); font-weight: 600; font-size: 14px; }
.search-empty { padding: 20px; text-align: center; color: var(--ink-soft); font-size: 14px; }

/* Category pills */
.category-nav { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 6px; }
.cat-pill {
    flex: none; padding: 10px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
    background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
    transition: all .16s; white-space: nowrap;
}
.cat-pill:hover { border-color: var(--saffron); color: var(--ink); }
.cat-pill.is-active { background: var(--masala); border-color: var(--masala); color: #fff; }

/* Product grid + cards */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 560px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 1120px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.dish-card {
    position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
    transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.dish-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--saffron); }
.dish-card__media {
    aspect-ratio: 1/1; position: relative; overflow: hidden;
    background: #fff;
}
.dish-card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s; }
.dish-card:hover .dish-card__media img { transform: scale(1.05); }
.dish-card__media--empty { display: none; }
.dish-card__veg { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.92); border-radius: 5px; padding: 3px; }
.dish-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.dish-card__name { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2; color: var(--ink); }
.dish-card__desc { font-size: 12.5px; color: var(--ink-soft); margin-top: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; margin-top: auto; padding-top: 12px; }
.dish-card__price { flex: 0 1 auto; min-width: 0; font-weight: 700; font-size: 16px; color: var(--masala); }
.dish-card__add {
    flex: 0 0 auto; max-width: 100%;
    height: 38px; min-width: 38px; padding: 0; border-radius: var(--r-pill);
    background: var(--chili); color: #fff; white-space: nowrap; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(228,24,36,.35);
    transition: background .16s, transform .16s, padding .28s cubic-bezier(.2,.8,.2,1);
}
.dish-card__add svg { flex: none; }
.dish-card__add-label {
    max-width: 0; opacity: 0; overflow: hidden; font-weight: 700; font-size: 13.5px; line-height: 1;
    transition: max-width .28s cubic-bezier(.2,.8,.2,1), opacity .18s ease, margin-left .28s cubic-bezier(.2,.8,.2,1);
}
.dish-card__add:hover { background: var(--chili-deep); }
.dish-card__add:active { transform: scale(.94); }
/* Desktop: on card hover the round + expands into a pill revealing the label */
@media (min-width: 900px) and (hover: hover) {
    .dish-card:hover .dish-card__add { padding: 0 14px; }
    .dish-card:hover .dish-card__add .dish-card__add-label { max-width: 96px; opacity: 1; margin-left: 6px; }
}

/* Quantity stepper (in cards when item in cart) */
.qty-stepper { display: inline-flex; align-items: center; background: var(--masala); color: #fff; border-radius: var(--r-pill); overflow: hidden; }
.qty-stepper button { width: 34px; height: 38px; color: #fff; font-size: 18px; display: grid; place-items: center; }
.qty-stepper button:hover { background: rgba(255,255,255,.14); }
.qty-stepper__val { min-width: 22px; text-align: center; font-weight: 700; font-size: 14px; }

/* ── Cart (desktop sidebar + mobile drawer share item styles) ───────────── */
.cart-title { font-family: var(--display); font-size: 22px; color: var(--ink); }
.cart-count { font-size: 13px; color: var(--ink-soft); }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item__thumb { width: 52px; height: 52px; border-radius: var(--r-sm); object-fit: cover; flex: none; background: var(--paper-2); display: grid; place-items: center; font-family: var(--display); color: var(--masala); }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-weight: 600; font-size: 14px; }
.cart-item__price { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.cart-item__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item__remove { font-size: 12px; color: var(--ink-soft); text-decoration: underline; }
.cart-empty { text-align: center; padding: 40px 20px; color: var(--ink-soft); }
.cart-empty svg { color: var(--line); margin-bottom: 12px; }
.cart-empty h3 { font-size: 18px; color: var(--ink); }
.cart-empty p { font-size: 13px; margin-top: 4px; }

.cart-summary__row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; color: var(--ink-soft); }
.cart-summary__row--total { border-top: 2px solid var(--masala); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 700; color: var(--ink); }
.tip-row { display: flex; gap: 8px; margin: 12px 0; }
.tip-btn { flex: 1; padding: 9px 0; border-radius: var(--r-sm); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-soft); background: var(--card); transition: all .14s; }
.tip-btn.is-active { background: var(--masala); border-color: var(--masala); color: #fff; }

/* ── Modal (product detail + checkout) ──────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 90; background: rgba(42,15,12,.5); backdrop-filter: blur(3px);
    display: none; align-items: flex-end; justify-content: center; padding: 0;
}
.modal-overlay.is-open { display: flex; animation: fade .2s ease; }
@media (min-width: 720px) { .modal-overlay { align-items: center; padding: 24px; } }
.modal-card {
    background: var(--card); width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
    border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg); animation: slideUp .28s cubic-bezier(.2,.8,.2,1);
}
@media (min-width: 720px) { .modal-card { border-radius: var(--r-lg); } }
.modal-card--checkout { max-width: 860px; max-height: 88vh; overflow: hidden; display: flex; flex-direction: column; }
@media (max-width: 719px) { .modal-card--checkout { max-height: 94vh; } }
.modal-card__media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--paper-2), #fff); position: relative; display: grid; place-items: center; }
.modal-card__media img { width: 100%; height: 100%; object-fit: cover; }
.modal-card__media span { font-family: var(--display); font-size: 48px; color: var(--masala); opacity: .3; }
.modal-card__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 22px; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.modal-card__body { padding: 22px 24px 26px; }
.modal-card__title { font-size: 26px; color: var(--masala); }
.modal-card__desc { font-size: 15px; color: var(--ink-soft); margin-top: 8px; line-height: 1.6; }
.modal-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
    width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
    background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(252,192,0,.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-hint { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.field-error { color: var(--chili-deep); font-size: 13px; margin-top: 6px; display: none; }
.field-error.is-visible { display: block; }

/* Toast */
.toast {
    position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px);
    background: var(--masala-ink); color: #fff; padding: 13px 22px; border-radius: var(--r-pill);
    font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); z-index: 120; opacity: 0; pointer-events: none;
    transition: opacity .24s, transform .24s;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 900px) { .toast { bottom: 32px; } }

/* Bottom nav (mobile) */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex;
    background: rgba(255,253,248,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav__item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 9px; color: var(--ink-soft); font-size: 11px; font-weight: 600; position: relative; }
.bottom-nav__item.is-active, .bottom-nav__item:hover { color: var(--masala); }
.bottom-nav__badge { position: absolute; top: 4px; left: 50%; margin-left: 4px; min-width: 17px; height: 17px; padding: 0 4px; background: var(--chili); color: #fff; border-radius: var(--r-pill); font-size: 10px; display: grid; place-items: center; }
@media (min-width: 900px) { .bottom-nav { display: none; } }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.18); } 100% { transform: scale(1); } }
.pop { animation: pop .3s ease; }

/* ── Legal pages (terms / privacy) ─────────────────────────────────────────── */
.page-legal { background: var(--paper, #faf8f2); }
.legal { max-width: 800px; margin: 0 auto; padding: 40px 22px 80px; }
.legal__inner { background: #fff; border: 1px solid var(--line, #e7e3d8); border-radius: 18px; padding: 40px 42px; box-shadow: 0 12px 40px rgba(40,60,20,.05); }
.legal__eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #489C30; font-weight: 700; margin: 0 0 6px; }
.legal__title { font-family: 'Fraunces', serif; font-size: 34px; color: var(--masala, #40892b); margin: 0 0 6px; }
.legal__meta { color: var(--ink-faint, #9aa08c); font-size: 13px; margin: 0 0 26px; }
.legal h2 { font-family: 'Fraunces', serif; font-size: 20px; color: var(--ink, #22271d); margin: 28px 0 8px; }
.legal p, .legal li { color: #47503d; line-height: 1.7; font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: #489C30; text-decoration: underline; }
.legal__disclaimer { margin-top: 30px; padding-top: 18px; border-top: 1px dashed var(--line, #e7e3d8); font-size: 13px; color: var(--ink-faint, #9aa08c); font-style: italic; }
@media (max-width: 560px) { .legal__inner { padding: 26px 20px; } .legal__title { font-size: 27px; } }
