/* ══════════════════════════════════════════════════════
   VIP Menu v3 — Global Premium (Talabat / Uber Eats tier)
   Cairo + Inter · Lucide · Mobile First
   ══════════════════════════════════════════════════════ */

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

/* ── Dark theme ── */
.theme-dark {
    --bg: #0c0c0e;
    --bg-2: #141418;
    --surface: #1a1a20;
    --surface-2: #22222a;
    --glass: rgba(20, 20, 26, 0.88);
    --border: rgba(255, 255, 255, 0.08);
    --text: #fafafa;
    --text-2: rgba(250, 250, 250, 0.65);
    --text-3: rgba(250, 250, 250, 0.4);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --open: #22c55e;
    --closed: #ef4444;
    --hero-grad: linear-gradient(180deg, transparent 0%, rgba(12, 12, 14, 0.3) 35%, var(--bg) 100%);
}

.theme-light {
    --bg: #f8f9fb;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --glass: rgba(255, 255, 255, 0.92);
    --border: rgba(0, 0, 0, 0.07);
    --text: #111827;
    --text-2: rgba(17, 24, 39, 0.65);
    --text-3: rgba(17, 24, 39, 0.4);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
    --open: #16a34a;
    --closed: #dc2626;
    --hero-grad: linear-gradient(180deg, transparent 0%, rgba(248, 249, 251, 0.4) 40%, var(--bg) 100%);
}

:root {
    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 18px;
    --r-xl: 24px;
    --r-full: 999px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
    --touch: 48px;
}

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

body.app {
    font-family: var(--font-ar);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

[lang="en"] body.app, body.app[data-locale="en"] { font-family: var(--font-en); }

.container { max-width: 680px; margin: 0 auto; padding-inline: 20px; }

img { display: block; max-width: 100%; height: auto; }

/* Cover images must fill their frame — override global max-width */
.welcome-screen__bg,
.welcome-screen__video,
.dish__photo img,
.dish__img,
.gal-card img,
.hero-clone img {
    max-width: none;
}

/* Lucide icons */
svg.lucide, [data-lucide] {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.anim-in { animation: fadeUp 0.65s var(--ease) both; }
.anim-delay-1 { animation-delay: 0.12s; }

/* ═══ HERO ═══ */
.hero { position: relative; min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }

.hero__media { position: absolute; inset: 0; overflow: hidden; background: var(--bg-2); }

.hero__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    transform: none;
    will-change: auto;
}

.hero__gradient { position: absolute; inset: 0; background: var(--hero-grad); }

.hero__top { position: relative; z-index: 2; padding-top: max(16px, env(safe-area-inset-top)); display: flex; justify-content: flex-end; }

.lang-pill {
    display: flex; gap: 2px; padding: 3px;
    background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border); border-radius: var(--r-full); box-shadow: var(--shadow);
}

.lang-pill__btn {
    min-width: 38px; height: 34px; display: grid; place-items: center;
    border-radius: var(--r-full); font-size: 12px; font-weight: 700;
    color: var(--text-2); text-decoration: none; transition: 0.2s var(--ease);
}

.lang-pill__btn.is-active, .lang-pill__btn:hover { background: var(--brand); color: #fff; }

.hero__body { position: relative; z-index: 1; padding: 32px 20px 28px; text-align: center; }

.hero__avatar {
    width: 88px; height: 88px; margin: 0 auto 16px; border-radius: 50%;
    padding: 3px; background: linear-gradient(135deg, var(--brand), transparent);
    box-shadow: 0 8px 32px var(--brand-soft);
}

.hero__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--bg); }

.hero__title {
    font-size: clamp(1.75rem, 5.5vw, 2.25rem); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 8px;
}

.hero__desc { font-size: 15px; color: var(--text-2); max-width: 400px; margin: 0 auto 20px; line-height: 1.65; }

.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }

.chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; font-size: 12px; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-full); color: var(--text-2);
}

.chip svg { width: 14px; height: 14px; }
.chip--gold { color: var(--brand); border-color: var(--brand-soft); background: var(--brand-soft); }
.chip--gold svg { fill: var(--brand); stroke: var(--brand); }
.chip--open { color: var(--open); }
.chip--closed { color: var(--closed); }
.chip--brand { color: var(--brand); background: var(--brand-soft); border-color: transparent; }

.pulse { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 2s ease infinite; }

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.fab {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    min-width: 76px; padding: 12px 16px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); color: var(--text); text-decoration: none;
    font-size: 11px; font-weight: 600; cursor: pointer;
    transition: 0.25s var(--ease); box-shadow: var(--shadow);
    -webkit-tap-highlight-color: transparent;
}

.fab:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border); color: var(--text); }
.fab:active { transform: scale(0.96); }
.fab svg, .fab i { width: 22px; height: 22px; }
.fab--phone svg { stroke: #3b82f6; }
.fab--wa { color: #25d366; }
.fab--wa svg { fill: #25d366; }
.fab--tiktok { color: #fe2c55; }
.fab--tiktok svg { fill: #fe2c55; }
.fab--tiktok:hover { border-color: rgba(254, 44, 85, 0.35); }
.fab--loc svg { stroke: var(--brand); }

/* ═══ DOCK (sticky) ═══ */
.dock {
    position: sticky; top: 0; z-index: 100;
    background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border); padding: 14px 0;
    transition: box-shadow 0.25s var(--ease);
}

.dock.is-scrolled { box-shadow: var(--shadow-lg); }

.search {
    display: flex; align-items: center; gap: 10px;
    padding: 0 16px; min-height: var(--touch);
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--r-lg); margin-bottom: 14px;
    transition: 0.25s var(--ease);
}

.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.search__icon { color: var(--text-3); width: 20px; height: 20px; }

.search__input {
    flex: 1; border: none; background: transparent; color: var(--text);
    font: inherit; font-size: 16px; outline: none; padding: 12px 0;
}

.search__input::placeholder { color: var(--text-3); }

.search__filter {
    width: 40px; height: 40px; display: grid; place-items: center;
    border: none; border-radius: var(--r-sm); background: var(--brand-soft);
    color: var(--brand); cursor: pointer; transition: 0.2s var(--ease);
}

.search__filter:hover, .search__filter.is-active { background: var(--brand); color: #fff; }
.search__filter svg { width: 18px; height: 18px; }

.filters { display: flex; gap: 10px; margin-bottom: 14px; animation: fadeUp 0.3s var(--ease) both; }
.filters[hidden] { display: none !important; }

.filters__select {
    flex: 1; min-height: 44px; padding: 0 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-sm); color: var(--text); font: inherit; font-size: 14px;
}

/* Categories */
.cats__track {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px;
}

.cats__track::-webkit-scrollbar { display: none; }

.cats__item {
    flex: 0 0 auto; scroll-snap-align: start;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    min-width: 72px; padding: 12px 14px;
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: var(--r-md); cursor: pointer;
    transition: 0.25s var(--ease-spring); -webkit-tap-highlight-color: transparent;
}

.cats__item:active { transform: scale(0.94); }

.cats__item.is-active {
    background: var(--brand); border-color: var(--brand); color: #fff;
    transform: scale(1.04); box-shadow: 0 6px 20px var(--brand-soft);
}

.cats__emoji { font-size: 26px; line-height: 1; }

.cats__label {
    font-size: 11px; font-weight: 700; white-space: nowrap;
    max-width: 68px; overflow: hidden; text-overflow: ellipsis;
    color: inherit;
}

.cats__item:not(.is-active) .cats__label { color: var(--text-2); }
.cats__item.is-active .cats__label { color: #fff; }

/* ═══ DISH CARDS ═══ */
.main { padding: 28px 20px 48px; }

.sec-head {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}

.sec-head--block { margin-bottom: 16px; }

.sec-head__emoji { font-size: 24px; }
.sec-head__ico { width: 22px; height: 22px; stroke: var(--brand); }

.sec-head__title { font-size: 20px; font-weight: 800; flex: 1; letter-spacing: -0.02em; }

.sec-head__count {
    font-size: 12px; font-weight: 700; color: var(--text-3);
    background: var(--surface-2); padding: 4px 10px; border-radius: var(--r-full);
}

.sec-head__more {
    font-size: 12px; font-weight: 700; color: var(--brand);
    background: rgba(201, 169, 98, 0.12); border: 1px solid rgba(201, 169, 98, 0.25);
    padding: 6px 12px; border-radius: var(--r-full); cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.sec-head__more:hover { background: rgba(201, 169, 98, 0.2); transform: translateX(-2px); }

.home-hint {
    font-size: 14px; color: var(--text-3); margin: -8px 0 24px; line-height: 1.6;
}

.menu-home { margin-bottom: 8px; }

.cat-browse-wrap { margin-top: 8px; padding-top: 8px; }

.cat-browse__title {
    font-size: 16px; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.02em;
}

.cat-browse {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}

@media (min-width: 520px) {
    .cat-browse { grid-template-columns: repeat(3, 1fr); }
}

.cat-browse__card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 12px; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); cursor: pointer; text-align: center;
    transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.cat-browse__card:hover {
    transform: translateY(-2px); border-color: rgba(201, 169, 98, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.cat-browse__icon { font-size: 28px; line-height: 1; }

.cat-browse__name {
    font-size: 13px; font-weight: 700; color: var(--text-1); line-height: 1.3;
}

.cat-browse__count {
    font-size: 11px; font-weight: 600; color: var(--text-3);
    background: var(--surface-2); padding: 2px 8px; border-radius: var(--r-full);
}

.section { margin-bottom: 40px; }

.grid {
    display: grid; grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 520px) {
    .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Dish card */
.dish {
    position: relative; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
    box-shadow: var(--shadow);
    animation: fadeUp 0.5s var(--ease) both;
    -webkit-tap-highlight-color: transparent;
}

.dish:hover { transform: translateY(-5px) scale(1.01); box-shadow: var(--shadow-lg); }
.dish:active { transform: scale(0.98); }
.dish.is-sold-out { opacity: 0.75; }

.dish__media {
    position: relative; aspect-ratio: 1 / 1; overflow: hidden;
    background: var(--surface-2);
}

.dish__skel {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
    background-size: 200% 100%; animation: shimmer 1.4s infinite;
    z-index: 1; transition: opacity 0.4s ease;
}

.dish__skel.is-hidden { opacity: 0; pointer-events: none; }

.dish__img {
    width: 100%; height: 100%;
    min-width: 100%; min-height: 100%;
    object-fit: cover; object-position: center center;
    transition: transform 0.55s var(--ease), opacity 0.4s ease;
    opacity: 0;
}

.dish__img.is-loaded { opacity: 1; }

.dish:hover .dish__img.is-loaded { transform: scale(1.06); }

.dish.is-sold-out .dish__media::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.35); z-index: 2;
}

.dish__badges {
    position: absolute; top: 10px; inset-inline-start: 10px;
    display: flex; flex-wrap: wrap; gap: 5px; z-index: 3;
}

.badge {
    padding: 5px 10px; font-size: 10px; font-weight: 700;
    border-radius: var(--r-full); backdrop-filter: blur(8px);
    letter-spacing: 0.02em; line-height: 1.2;
}

.badge--hot { background: rgba(251, 191, 36, 0.95); color: #1a1a1a; }
.badge--chef { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1a1a; }
.badge--premium { background: linear-gradient(135deg, #78716c, #44403c); color: #fff; }
.badge--feat { background: rgba(201, 169, 98, 0.95); color: #1a1a1a; }
.badge--new { background: rgba(59, 130, 246, 0.95); color: #fff; }
.badge--deal { background: linear-gradient(135deg, #ec4899, #db2777); color: #fff; }
.badge--season { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.badge--spicy { background: rgba(239, 68, 68, 0.95); color: #fff; }
.badge--veg { background: rgba(34, 197, 94, 0.92); color: #fff; }
.badge--health { background: rgba(16, 185, 129, 0.92); color: #fff; }
.badge--out { background: rgba(0, 0, 0, 0.8); color: #fff; }

.dish__body { padding: 16px 16px 18px; }

.dish__row {
    display: flex; align-items: flex-start; gap: 8px; margin-bottom: 6px;
}

.dish__title-wrap { flex: 1; min-width: 0; }

.dish__name {
    font-size: 16px; font-weight: 700; line-height: 1.35;
    letter-spacing: -0.01em;
    overflow-wrap: break-word;
    word-break: normal;
}

.dish__alt {
    display: block; font-size: 12px; color: var(--text-3);
    margin-top: 2px; font-weight: 500;
    direction: ltr;
    text-align: start;
}

.speak-btn {
    width: 36px; height: 36px; flex-shrink: 0;
    display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: 50%;
    background: var(--surface-2); color: var(--brand);
    cursor: pointer; transition: 0.2s var(--ease);
}

.speak-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: scale(1.08); }
.speak-btn.is-speaking { animation: pulse 0.8s ease infinite; background: var(--brand); color: #fff; }
.speak-btn svg { width: 16px; height: 16px; stroke: var(--brand); }

.dish__desc {
    font-size: 13px; color: var(--text-2); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 12px;
}

.dish__foot { display: flex; align-items: center; justify-content: space-between; }

.dish__price {
    font-size: 18px; font-weight: 800; color: var(--brand);
    font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}

.dish__price small { font-size: 12px; font-weight: 600; opacity: 0.75; margin-inline-start: 4px; }

/* Ripple */
.dish .ripple {
    position: absolute; border-radius: 50%; background: var(--brand-soft);
    transform: scale(0); pointer-events: none; width: 80px; height: 80px;
    margin-top: -40px; margin-left: -40px; opacity: 0.5;
}

.dish .ripple.is-active { animation: ripple 0.55s ease-out; }

/* Hidden */
.menu-item.hidden, .menu-category.hidden, .menu-home.hidden, .cat-browse-wrap.hidden { display: none !important; }

/* Skeleton search */
.sk-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
.sk-grid[hidden] { display: none !important; }
@media (min-width: 520px) { .sk-grid { grid-template-columns: repeat(2, 1fr); } }

.sk-card { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); }

.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk--img { aspect-ratio: 4/3; }
.sk--line { height: 14px; margin: 14px 16px 8px; border-radius: 6px; }
.sk--line.short { width: 50%; margin-bottom: 16px; }

/* Empty */
.empty { text-align: center; padding: 48px 20px; animation: fadeUp 0.4s var(--ease) both; }
.empty[hidden] { display: none !important; }
.empty__icon { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--surface); border-radius: 50%; color: var(--text-3); }
.empty__icon svg { width: 28px; height: 28px; }
.empty__title { font-size: 16px; font-weight: 600; color: var(--text-2); }

/* Info blocks */
.block { padding: 40px 0; background: var(--bg-2); border-top: 1px solid var(--border); }

.block__addr {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14px; color: var(--text-2); padding: 14px 16px;
    background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--border);
    margin-bottom: 16px;
}

.block__addr svg { stroke: var(--brand); flex-shrink: 0; margin-top: 2px; }

.hours {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); overflow: hidden;
}

.hours__row {
    display: flex; justify-content: space-between; padding: 14px 18px;
    font-size: 14px; border-bottom: 1px solid var(--border);
}

.hours__row:last-child { border-bottom: none; }
.hours__row.is-today { background: var(--brand-soft); font-weight: 700; }
.hours__row .is-closed { color: var(--closed); }

.gal-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gal-scroll::-webkit-scrollbar { display: none; }

.gal-card {
    flex: 0 0 180px; scroll-snap-align: start; aspect-ratio: 4/5;
    border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow);
}

.gal-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s var(--ease); }
.gal-card:hover img { transform: scale(1.05); }

.foot {
    text-align: center; padding: 28px 20px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
}

.foot p { font-size: 12px; color: var(--text-3); }
.foot strong { color: var(--brand); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ══════════════════════════════════════════════════════
   VIP Menu v4 — Bottom Nav · Voice · Product Sheet
   ══════════════════════════════════════════════════════ */

/* Voice search button */
.search__voice {
    width: 42px; height: 42px; flex-shrink: 0;
    display: grid; place-items: center;
    border: none; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand);
    cursor: pointer; position: relative;
    transition: 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.search__voice:hover { background: var(--brand); color: #fff; transform: scale(1.06); }
.search__voice.is-listening {
    background: var(--brand); color: #fff;
    box-shadow: 0 0 0 4px var(--brand-soft), 0 0 24px var(--brand-soft);
    animation: voiceGlow 1.2s ease infinite;
}
.search__voice svg { width: 18px; height: 18px; }
.search__voice.is-listening .voice-icon { opacity: 0; }
.search__voice .voice-waves {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center; gap: 3px;
}
.search__voice .voice-waves span {
    width: 3px; height: 12px; border-radius: 99px;
    background: #fff; animation: voiceBar 0.8s ease infinite;
}
.search__voice .voice-waves span:nth-child(2) { animation-delay: 0.1s; height: 18px; }
.search__voice .voice-waves span:nth-child(3) { animation-delay: 0.2s; height: 14px; }
.search__voice .voice-waves span:nth-child(4) { animation-delay: 0.15s; height: 10px; }

@keyframes voiceBar {
    0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
    50% { transform: scaleY(1.2); opacity: 1; }
}
@keyframes voiceGlow {
    0%, 100% { box-shadow: 0 0 0 4px var(--brand-soft); }
    50% { box-shadow: 0 0 0 8px transparent, 0 0 32px var(--brand-soft); }
}

/* Search suggestions */
.search-suggest {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px;
    margin-bottom: 14px;
    animation: fadeUp 0.25s var(--ease) both;
    box-shadow: var(--shadow);
}
.search-suggest[hidden] { display: none !important; }
.search-suggest__head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.search-suggest__label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 8px;
}
.search-suggest__clear {
    border: none; background: none; font: inherit;
    font-size: 12px; font-weight: 600; color: var(--brand); cursor: pointer;
}
.search-suggest__section { margin-bottom: 14px; }
.search-suggest__section:last-child { margin-bottom: 0; }
.search-suggest__section[hidden] { display: none !important; }
.search-suggest__list { display: flex; flex-direction: column; gap: 4px; }
.search-suggest__chips { display: flex; flex-wrap: wrap; gap: 8px; }

.suggest-chip, .suggest-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--r-sm);
    background: var(--surface-2); border: 1px solid var(--border);
    font: inherit; font-size: 14px; font-weight: 600;
    color: var(--text); cursor: pointer; text-align: start;
    transition: 0.2s var(--ease); width: 100%;
    -webkit-tap-highlight-color: transparent;
}
.suggest-chip { width: auto; padding: 8px 14px; border-radius: var(--r-full); }
.suggest-row:hover, .suggest-chip:hover { border-color: var(--brand); background: var(--brand-soft); }
.suggest-row svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }

/* Floating card actions */
.dish__float {
    position: absolute; top: 10px; inset-inline-end: 10px;
    display: flex; flex-direction: column; gap: 8px; z-index: 4;
    opacity: 0; transform: translateX(8px);
    transition: 0.3s var(--ease);
}
.dish:hover .dish__float, .dish:focus-within .dish__float { opacity: 1; transform: none; }
@media (hover: none) {
    .dish__float { opacity: 1; transform: none; }
}

.dish-float-btn {
    width: 40px; height: 40px; display: grid; place-items: center;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px); color: #1a1a2e;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer; transition: 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.dish-float-btn svg { width: 18px; height: 18px; stroke: #1a1a2e; fill: none; }
.dish-float-btn:hover { transform: scale(1.1); background: #fff; color: var(--brand); }
.dish-float-btn:hover svg { stroke: var(--brand); }
.dish-float-btn.is-fav { color: #ef4444; background: #fff; }
.dish-float-btn.is-fav svg { fill: #ef4444; stroke: #ef4444; }

.dish.is-fav { box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35); }

/* Bottom Navigation */
.bottom-nav {
    position: fixed; bottom: max(12px, env(safe-area-inset-bottom));
    left: 50%; transform: translateX(-50%);
    z-index: 500;
    display: flex; align-items: center; gap: 4px;
    width: calc(100% - 24px); max-width: 420px;
    padding: 8px 10px;
    background: var(--glass);
    backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.bottom-nav__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 4px; border: none; background: transparent;
    color: var(--text-3); font: inherit; font-size: 10px; font-weight: 700;
    cursor: pointer; position: relative; border-radius: var(--r-md);
    transition: 0.3s var(--ease-spring);
    -webkit-tap-highlight-color: transparent;
    min-height: 52px;
}
.bottom-nav__item svg { width: 22px; height: 22px; transition: 0.25s var(--ease); }
.bottom-nav__item.is-active { color: var(--brand); }
.bottom-nav__item.is-active svg { transform: scale(1.12); stroke: var(--brand); }
.bottom-nav__item:active { transform: scale(0.92); }

.bottom-nav__indicator {
    position: absolute; top: 4px; width: 28px; height: 3px;
    border-radius: 99px; background: var(--brand);
    opacity: 0; transform: scaleX(0.5);
    transition: 0.35s var(--ease-spring);
}
.bottom-nav__item.is-active .bottom-nav__indicator {
    opacity: 1; transform: scaleX(1);
}

.bottom-nav__badge {
    position: absolute; top: 4px; inset-inline-end: calc(50% - 22px);
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--brand); color: #fff;
    font-size: 9px; font-weight: 800; border-radius: 99px;
    display: grid; place-items: center;
}
.bottom-nav__badge[hidden] { display: none !important; }

/* Tab panels */
.tab-panel {
    position: fixed; inset: 0; z-index: 400;
    background: var(--bg);
    padding-top: max(16px, env(safe-area-inset-top));
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
    overflow-y: auto;
    animation: fadeUp 0.35s var(--ease) both;
}
.tab-panel[hidden] { display: none !important; }
.tab-panel__inner { padding-top: 8px; }
.tab-panel__head h2 {
    display: flex; align-items: center; gap: 10px;
    font-size: 22px; font-weight: 800; margin-bottom: 20px;
}
.tab-panel__head svg { width: 24px; height: 24px; stroke: var(--brand); }
.tab-panel__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.tab-empty {
    text-align: center; padding: 48px 20px; color: var(--text-2);
}
.tab-empty__icon {
    width: 72px; height: 72px; margin: 0 auto 16px;
    display: grid; place-items: center;
    background: var(--surface); border-radius: 50%;
    color: var(--text-3);
}
.tab-empty__icon svg { width: 32px; height: 32px; }
.tab-empty p { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.tab-empty span { font-size: 14px; }

/* Orders list */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow);
}
.order-row img {
    width: 56px; height: 56px; border-radius: var(--r-sm);
    object-fit: cover; flex-shrink: 0;
}
.order-row__info { flex: 1; min-width: 0; }
.order-row__name { font-size: 15px; font-weight: 700; }
.order-row__price { font-size: 14px; color: var(--brand); font-weight: 700; }
.order-row__remove {
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: var(--surface-2); color: var(--text-3); cursor: pointer;
    display: grid; place-items: center;
}
.order-row__remove svg { width: 16px; height: 16px; stroke: var(--text-3); }

/* Order list — WhatsApp / Call */
.order-panel__foot {
    position: sticky; bottom: 0;
    padding: 16px 0 8px;
    background: linear-gradient(to top, var(--bg) 70%, transparent);
    display: flex; flex-direction: column; gap: 10px;
}
.order-panel__foot[hidden] { display: none !important; }

.order-wa-btn, .order-call-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 56px; border-radius: var(--r-lg);
    font: inherit; font-size: 16px; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none;
    transition: 0.25s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.order-wa-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}
.order-wa-btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45); }
.order-call-btn {
    background: var(--glass); border: 1px solid var(--border);
    color: var(--text); box-shadow: var(--shadow);
}
.order-call-btn:hover { border-color: var(--brand); color: var(--brand); }
.order-wa-btn svg, .order-call-btn svg { width: 22px; height: 22px; flex-shrink: 0; }

.product-cta-row {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px;
}
.product-cta--list {
    background: var(--glass); border: 2px solid var(--brand);
    color: var(--brand); box-shadow: none;
}
.product-cta--list:hover { background: var(--brand-soft); box-shadow: var(--shadow); }
.product-cta--wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}
.product-cta-row .product-cta { margin-bottom: 0; }

/* Account */
.account-card {
    text-align: center; padding: 28px 20px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-xl); margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.account-card__avatar {
    width: 72px; height: 72px; border-radius: 50%;
    object-fit: cover; margin: 0 auto 12px;
    border: 3px solid var(--brand-soft);
}
.account-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.account-card p { font-size: 14px; color: var(--text-2); }

.account-actions { display: flex; flex-direction: column; gap: 8px; }
.account-btn {
    display: flex; align-items: center; gap: 14px;
    width: 100%; padding: 16px 18px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-md); color: var(--text);
    font: inherit; font-size: 15px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    transition: 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.account-btn:hover { border-color: var(--brand); background: var(--brand-soft); }
.account-btn svg:first-child { width: 22px; height: 22px; stroke: var(--brand); }
.account-btn--tiktok svg:first-child { stroke: none; fill: #fe2c55; filter: none; }
.account-btn--tiktok:hover { border-color: rgba(254, 44, 85, 0.35); background: rgba(254, 44, 85, 0.08); }
.account-btn__chev { margin-inline-start: auto; width: 18px; height: 18px; color: var(--text-3); }

/* Product Sheet — Premium v5 */
.product-sheet {
    position: fixed; inset: 0; z-index: 600;
    display: flex; align-items: flex-end; justify-content: center;
}
.product-sheet[hidden] { display: none !important; }
.product-sheet.is-open .product-sheet__backdrop { opacity: 1; }
.product-sheet.is-open .product-sheet__panel { transform: translateY(0); }

.product-sheet__backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; transition: opacity 0.4s var(--ease);
}
.product-sheet__panel {
    position: relative; width: 100%; max-width: 680px;
    max-height: min(94dvh, 94vh);
    overflow-y: auto; overflow-x: hidden;
    background: var(--bg);
    border-radius: 28px 28px 0 0;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-spring);
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
    -webkit-overflow-scrolling: touch;
    border-top: 1px solid var(--border);
    overscroll-behavior: contain;
}
.product-sheet__handle {
    width: 40px; height: 4px; border-radius: 99px;
    background: var(--text-3); opacity: 0.35;
    margin: 10px auto 0;
}
.product-sheet__close {
    position: absolute; top: 16px; inset-inline-end: 16px; z-index: 20;
    width: 44px; height: 44px; display: grid; place-items: center;
    border: none; border-radius: 50%;
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(12px);
    color: #fff; cursor: pointer; transition: 0.25s var(--ease);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.product-sheet__close:hover { transform: scale(1.08); background: rgba(0, 0, 0, 0.6); }
.product-sheet__close svg { width: 20px; height: 20px; }

/* Premium Gallery */
.product-hero { position: relative; }
.pgallery {
    position: relative; aspect-ratio: 1 / 0.88;
    background: var(--surface-2); overflow: hidden;
}
.pgallery__skel {
    position: absolute; inset: 0; z-index: 3;
    background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%);
    background-size: 200% 100%; animation: shimmer 1.3s infinite;
    transition: opacity 0.35s ease;
}
.pgallery__skel.is-hidden { opacity: 0; pointer-events: none; }
.pgallery__viewport {
    position: absolute; inset: 0; touch-action: pan-y pinch-zoom;
    overflow: hidden;
}
.pgallery__layer {
    position: absolute; inset: 0;
    opacity: 0; transition: opacity 0.3s var(--ease);
    will-change: opacity, transform;
}
.pgallery__layer.is-visible { opacity: 1; z-index: 2; }
.pgallery__layer.is-fading-out { opacity: 0; z-index: 1; }
.pgallery__layer img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1); transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
    will-change: transform, filter;
}
.pgallery__layer.is-zooming img { transform: scale(1.03); }
.pgallery__layer.is-blur img { filter: blur(6px); opacity: 0.85; }
.pgallery__parallax {
    position: absolute; inset: 0; z-index: 4; pointer-events: none;
    background: linear-gradient(to bottom, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
    transition: transform 0.1s linear;
}
.pgallery__shade {
    position: absolute; inset: 0; z-index: 5; pointer-events: none;
    background: linear-gradient(to top, var(--bg) 0%, transparent 28%);
    opacity: 0.85;
}
.pgallery__layer.is-visible img {
    animation: galKenBurns 5.5s var(--ease) forwards;
}
.pgallery__layer.is-entering img {
    animation: galKenBurns 5.5s var(--ease) forwards;
}
@keyframes galKenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}
.pgallery__counter {
    position: absolute; top: 16px; inset-inline-start: 16px; z-index: 10;
    padding: 6px 12px; border-radius: var(--r-full);
    background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(10px);
    color: #fff; font-size: 12px; font-weight: 700;
    letter-spacing: 0.04em;
    direction: ltr;
    unicode-bidi: isolate;
}
.pgallery__nav svg { stroke: #fff; width: 22px; height: 22px; }
.pgallery__fs svg { stroke: #fff; }
.pgallery__dots {
    position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 6px; z-index: 10;
}
.pgallery__dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.4); border: none; padding: 0;
    cursor: pointer; transition: 0.3s var(--ease-spring);
}
.pgallery__dot.is-active { width: 24px; border-radius: 99px; background: #fff; }
.pgallery__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 40px; height: 40px; display: grid; place-items: center;
    border: none; border-radius: 50%;
    background: rgba(0, 0, 0, 0.35); backdrop-filter: blur(8px);
    color: #fff; cursor: pointer; transition: 0.2s var(--ease);
    opacity: 0;
}
.pgallery:hover .pgallery__nav { opacity: 1; }
@media (hover: none) { .pgallery__nav { opacity: 0.85; } }
.pgallery__nav--prev { inset-inline-start: 12px; }
.pgallery__nav--next { inset-inline-end: 12px; }
.pgallery__nav svg { width: 20px; height: 20px; }
.pgallery__fs {
    position: absolute; bottom: 18px; inset-inline-end: 16px; z-index: 10;
    width: 44px; height: 44px; display: grid; place-items: center;
    border: none; border-radius: 50%;
    background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px);
    color: #fff; cursor: pointer; transition: 0.2s var(--ease);
}
.pgallery__fs:hover { transform: scale(1.08); background: rgba(0, 0, 0, 0.55); }
.pgallery__fs svg { width: 18px; height: 18px; }

.product-body {
    padding: 24px 22px calc(36px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    position: relative; z-index: 6; margin-top: -20px;
    border-radius: 24px 24px 0 0;
}
.product-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.product-title {
    font-size: clamp(1.5rem, 4.5vw, 1.875rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
    margin-bottom: 6px;
}
.product-alt { font-size: 14px; color: var(--text-3); margin-bottom: 14px; font-weight: 500; }
.product-desc {
    font-size: 15px; color: var(--text-2); line-height: 1.7;
    margin-bottom: 22px;
}

.product-meta {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
    margin-bottom: 22px;
}
.product-meta__item {
    padding: 16px; background: var(--glass);
    backdrop-filter: blur(12px); border: 1px solid var(--border);
    border-radius: var(--r-md); box-shadow: var(--shadow);
}
.product-meta__label {
    display: block; font-size: 10px; font-weight: 700;
    color: var(--text-3); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 6px;
}
.product-meta__val { font-size: 15px; font-weight: 700; }

.product-price-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 12px;
}
.product-price-wrap { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.product-price {
    font-size: 32px; font-weight: 800; color: var(--brand);
    font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.product-price-old {
    font-size: 16px; font-weight: 600; color: var(--text-3);
    text-decoration: line-through;
}
.product-price-old[hidden] { display: none !important; }
.product-actions { display: flex; gap: 10px; flex-shrink: 0; }
.product-action {
    width: 50px; height: 50px; display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: 50%;
    background: var(--glass); backdrop-filter: blur(8px);
    color: var(--text); cursor: pointer; transition: 0.25s var(--ease);
    box-shadow: var(--shadow);
}
.product-action:hover { border-color: var(--brand); color: var(--brand); transform: scale(1.08); }
.product-action.is-fav { color: #ef4444; border-color: rgba(239, 68, 68, 0.45); background: rgba(239, 68, 68, 0.08); }
.product-action.is-fav svg { fill: #ef4444; stroke: #ef4444; }
.product-action svg { width: 20px; height: 20px; }

.product-cta {
    width: 100%; min-height: 58px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: none; border-radius: var(--r-lg);
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, #000));
    color: #fff; font: inherit; font-size: 17px; font-weight: 700;
    cursor: pointer; box-shadow: 0 10px 28px var(--brand-soft);
    transition: 0.3s var(--ease); margin-bottom: 28px;
    position: relative; overflow: hidden;
}
.product-cta::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%); transition: transform 0.6s ease;
}
.product-cta:hover::after { transform: translateX(100%); }
.product-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px var(--brand-soft); }
.product-cta:active { transform: scale(0.98); }
.product-cta svg { width: 20px; height: 20px; }

.product-similar h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.product-similar__scroll {
    display: flex; gap: 12px; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px;
}
.product-similar__scroll::-webkit-scrollbar { display: none; }
.similar-card {
    flex: 0 0 148px; scroll-snap-align: start;
    border-radius: var(--r-md); overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    cursor: pointer; transition: 0.3s var(--ease); box-shadow: var(--shadow);
}
.similar-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-lg); }
.similar-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.similar-card span {
    display: block; padding: 10px 12px; font-size: 12px; font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Fullscreen gallery + pinch zoom */
.fs-gallery {
    position: fixed; inset: 0; z-index: 700;
    height: 100dvh; height: 100vh;
    background: rgba(0, 0, 0, 0.96);
    display: flex; flex-direction: column;
    animation: fadeIn 0.3s ease both;
}
.fs-gallery[hidden] { display: none !important; }
.fs-gallery__stage {
    flex: 1; display: grid; place-items: center;
    overflow: hidden; touch-action: none;
    padding: 60px 16px 40px;
}
.fs-gallery__stage img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    transition: transform 0.15s var(--ease);
    will-change: transform;
    user-select: none; -webkit-user-drag: none;
}
.fs-gallery__counter {
    text-align: center; color: rgba(255,255,255,0.7);
    font-size: 13px; font-weight: 600; padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.fs-gallery__close {
    position: absolute; top: max(16px, env(safe-area-inset-top));
    inset-inline-end: 16px; z-index: 2;
    width: 48px; height: 48px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px);
    color: #fff; cursor: pointer; display: grid; place-items: center;
    transition: 0.2s var(--ease);
}
.fs-gallery__close:hover { background: rgba(255, 255, 255, 0.22); transform: scale(1.06); }
.fs-gallery__close svg { width: 22px; height: 22px; }

/* Hero clone transition */
.hero-clone {
    position: fixed; z-index: 650; pointer-events: none;
    border-radius: var(--r-xl); overflow: hidden;
    transition: top 0.45s var(--ease), left 0.45s var(--ease),
                width 0.45s var(--ease), height 0.45s var(--ease),
                border-radius 0.45s var(--ease), opacity 0.35s ease;
    box-shadow: var(--shadow-lg);
}
.hero-clone[hidden] { display: none !important; }
.hero-clone img { width: 100%; height: 100%; object-fit: cover; }

/* Toast */
.menu-toast {
    position: fixed; bottom: calc(100px + env(safe-area-inset-bottom));
    left: 50%; transform: translateX(-50%) translateY(20px);
    z-index: 800; padding: 12px 22px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-full); box-shadow: var(--shadow-lg);
    font-size: 14px; font-weight: 600;
    opacity: 0; transition: 0.35s var(--ease);
    pointer-events: none; white-space: nowrap;
}
.menu-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══ Premium Micro-interactions ═══ */
.fab, .cats__item, .bottom-nav__item, .welcome-btn, .cat-browse__card,
.dish-float-btn, .speak-btn, .search__voice, .search__filter, .account-btn {
    -webkit-tap-highlight-color: transparent;
}

.dish {
    will-change: transform;
}

.dish:active:not(.is-sold-out) {
    transform: scale(0.975);
    transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.is-sheet-open .product-sheet__panel {
    animation: sheetSpring 0.48s cubic-bezier(0.34, 1.35, 0.64, 1) both;
}

@keyframes sheetSpring {
    from { transform: translateY(100%); opacity: 0.6; }
    to { transform: translateY(0); opacity: 1; }
}

.pgallery__layer.is-entering img {
    animation: galFadeZoom 0.3s ease both;
}

@keyframes galFadeZoom {
    from { opacity: 0; transform: scale(1.03); filter: blur(4px); }
    to { opacity: 1; transform: scale(1); filter: blur(0); }
}
.menu-toast[hidden] { display: none !important; }

body.is-panel-open .hero,
body.is-panel-open .dock,
body.is-panel-open .main,
body.is-panel-open .block,
body.is-panel-open .foot,
body.is-panel-open .home-feed { display: none; }

body.is-sheet-open .dock,
body.is-sheet-open .bottom-nav,
body.is-sheet-open .hero,
body.is-sheet-open .main,
body.is-sheet-open .block,
body.is-sheet-open .foot,
body.is-sheet-open .home-feed,
body.is-sheet-open .menu-toast { display: none !important; }

.home-feed[hidden] { display: none !important; }

/* Compact hero — home focuses on menu */
.hero--compact {
    min-height: clamp(300px, 42vh, 400px);
}

@media (min-width: 768px) {
    .hero--compact {
        min-height: 400px;
        max-height: 440px;
    }
}

.hero--compact .hero__body { padding: 24px 20px 20px; }
.hero--compact .hero__desc { margin-bottom: 14px; font-size: 14px; }
.hero--compact .hero__scroll-hint { cursor: pointer; border: none; background: transparent; font: inherit; color: rgba(255,255,255,0.5); }

/* Bottom nav — 6 items + gallery highlight */
.bottom-nav {
    max-width: 480px;
    gap: 2px;
    padding: 6px 8px;
}

.bottom-nav__item {
    font-size: 9px;
    padding: 6px 2px;
    min-height: 48px;
    gap: 3px;
}

.bottom-nav__item svg { width: 20px; height: 20px; }

.bottom-nav__item--gallery {
    position: relative;
    justify-content: center;
    padding-top: 4px;
}

.bottom-nav__icon-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(201, 169, 98, 0.22), rgba(201, 169, 98, 0.08));
    border: 1px solid rgba(201, 169, 98, 0.35);
    box-shadow: 0 4px 14px rgba(201, 169, 98, 0.15);
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s;
    margin-top: 0;
    flex-shrink: 0;
}

.bottom-nav__icon-ring svg { width: 18px; height: 18px; }

.bottom-nav__item--gallery.is-active .bottom-nav__icon-ring {
    background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #fff));
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.45);
    transform: scale(1.06);
}

.bottom-nav__item--gallery.is-active .bottom-nav__icon-ring svg {
    stroke: #1a1a1a;
}

.bottom-nav__item--gallery.is-active { color: var(--brand); }

@media (max-width: 420px) {
    .bottom-nav__item span:not(.bottom-nav__indicator):not(.bottom-nav__badge):not(.bottom-nav__icon-ring) {
        display: none;
    }
    .bottom-nav__item { min-height: 44px; padding: 6px 1px; }
    .bottom-nav { gap: 1px; padding: 6px 6px; }
}

@media (max-width: 768px) {
    .product-sheet { align-items: stretch; }
    .product-sheet__panel {
        max-height: 100dvh;
        max-height: 100vh;
        height: 100dvh;
        height: 100vh;
        border-radius: 0;
        padding-top: env(safe-area-inset-top);
    }
    .product-sheet__close {
        top: max(12px, env(safe-area-inset-top));
    }
    .pgallery { aspect-ratio: 1 / 0.82; max-height: 42dvh; max-height: 42vh; }
    .dock { padding-top: max(10px, env(safe-area-inset-top)); }
    .container { padding-inline: 16px; }
    .main { padding: 20px 16px 40px; }
    .hero--compact { min-height: clamp(260px, 38dvh, 360px); }
}

/* Gallery tab panel */
.tab-panel--gallery {
    padding-top: max(12px, env(safe-area-inset-top));
    animation: fadeUp 0.4s var(--ease) both;
}

.tab-panel--gallery .premium-gallery {
    padding-top: 8px;
}

.tab-panel--gallery .pano-section {
    padding-bottom: 24px;
}

body.is-gallery-open .bottom-nav__item--gallery .bottom-nav__indicator {
    opacity: 1;
    width: 20px;
}

body.is-sheet-open { overflow: hidden; }
