:root {
    --brand: #123c32;
    --brand-deep: #0b2b24;
    --brand-soft: #1b5648;
    --accent: #d8b875;
    --accent-soft: #f3e7ca;
    --paper: #f8f6f0;
    --paper-2: #f1eee6;
    --white: #fff;
    --ink: #15211e;
    --muted: #75807c;
    --muted-2: #9ba39f;
    --line: rgba(18, 60, 50, .09);
    --line-strong: rgba(18, 60, 50, .15);
    --danger: #a64242;
    --shadow-sm: 0 10px 26px rgba(18, 49, 41, .07);
    --shadow-md: 0 18px 50px rgba(18, 49, 41, .11);
    --shadow-lg: 0 28px 80px rgba(8, 32, 26, .2);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --header-h: 82px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 100% 0, rgba(216,184,117,.12), transparent 25rem),
        linear-gradient(180deg, #fcfbf7 0%, var(--paper) 100%);
    color: var(--ink);
    font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; touch-action: none; }
button, input, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app-header {
    position: sticky;
    top: 0;
    z-index: 70;
    padding: max(10px, env(safe-area-inset-top)) 16px 8px;
    transition: padding .28s var(--ease), background .28s ease;
}
.app-header.is-scrolled { padding-top: max(6px, env(safe-area-inset-top)); }
.app-header-inner {
    max-width: 1180px;
    min-height: 64px;
    margin: 0 auto;
    padding: 9px 10px 9px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 22px;
    background: rgba(255,255,255,.76);
    box-shadow: 0 10px 35px rgba(14,45,37,.08);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    transition: min-height .28s var(--ease), border-radius .28s var(--ease), box-shadow .28s ease;
}
.app-header.is-scrolled .app-header-inner {
    min-height: 58px;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(14,45,37,.12);
}
.app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; }
.brand-logo {
    width: 46px; height: 46px; flex: 0 0 46px;
    display: grid; place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #fff, #f2ead9);
    border: 1px solid rgba(18,60,50,.07);
    overflow: hidden;
    transition: width .28s var(--ease), height .28s var(--ease), flex-basis .28s var(--ease);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.app-header.is-scrolled .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; color: var(--brand); font-weight: 900; font-size: 17px; line-height: 1.15; }
.brand-copy small { display: block; color: var(--muted); margin-top: 4px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-icon-btn, .table-pill {
    border: 0; cursor: pointer; color: var(--brand); background: #f4f7f5;
    min-height: 42px; border-radius: 14px; transition: transform .2s var(--ease), background .2s ease;
}
.header-icon-btn { width: 42px; display: grid; place-items: center; }
.header-icon-btn svg { width: 20px; height: 20px; }
.table-pill { padding: 0 13px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 900; }
.table-pill:active, .header-icon-btn:active { transform: scale(.96); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #43a76c; box-shadow: 0 0 0 4px rgba(67,167,108,.12); }
.view-only-pill { padding: 10px 13px; border-radius: 999px; background: var(--paper-2); color: var(--muted); font-size: 12px; font-weight: 800; }

.premium-hero {
    max-width: 1180px;
    min-height: 390px;
    margin: 10px auto 0;
    padding: 42px 48px;
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr .9fr;
    align-items: center;
    gap: 28px;
    border-radius: 34px;
    color: #fff;
    background:
        linear-gradient(125deg, rgba(9,39,32,.98), rgba(22,73,60,.96)),
        var(--brand);
    box-shadow: var(--shadow-lg);
}
.premium-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to left, #000, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.glow-one { width: 330px; height: 330px; right: -100px; top: -130px; background: rgba(216,184,117,.13); }
.glow-two { width: 250px; height: 250px; left: 35%; bottom: -180px; background: rgba(255,255,255,.05); }
.hero-content { position: relative; z-index: 3; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: #f0dfb9; }
.hero-kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(216,184,117,.12); }
.hero-content h1 { margin: 13px 0 8px; font-size: clamp(40px, 5vw, 70px); letter-spacing: -.03em; line-height: 1; font-weight: 900; }
.hero-content p { margin: 0; color: rgba(255,255,255,.74); font-size: clamp(17px,2vw,22px); font-weight: 500; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); font-size: 12px; font-weight: 800; }
.hero-meta svg { width: 16px; height: 16px; color: #ead7ad; }
.hero-art { min-height: 310px; position: relative; z-index: 2; display: grid; place-items: center; }
.hero-image-shell {
    width: min(290px, 82%); aspect-ratio: 1; position: relative; z-index: 3;
    overflow: hidden; border-radius: 50%;
    background: radial-gradient(circle at 50% 44%, rgba(255,255,255,.16), rgba(255,255,255,.04) 62%);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 28px 60px rgba(0,0,0,.22), inset 0 0 0 14px rgba(255,255,255,.025);
    animation: heroFloat 5.5s ease-in-out infinite;
}
.hero-image-shell img { width: 100%; height: 100%; object-fit: cover; }
.hero-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(216,184,117,.16); }
.orbit-one { width: 360px; height: 360px; }
.orbit-two { width: 430px; height: 430px; border-style: dashed; opacity: .45; }
.hero-mini-card {
    position: absolute; z-index: 4; min-width: 170px; display: flex; align-items: center; gap: 9px;
    padding: 10px 12px; border-radius: 16px; color: var(--ink);
    background: rgba(255,255,255,.91); border: 1px solid rgba(255,255,255,.85); box-shadow: 0 18px 40px rgba(0,0,0,.15);
    backdrop-filter: blur(10px);
}
.hero-mini-card b, .hero-mini-card small { display: block; }
.hero-mini-card b { font-size: 12px; color: var(--brand); }
.hero-mini-card small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.mini-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: #8c6b2a; font-weight: 900; }
.hero-mini-a { right: -8px; top: 42px; animation: floatCard 4.2s ease-in-out infinite; }
.hero-mini-b { left: -4px; bottom: 38px; animation: floatCard 4.8s .4s ease-in-out infinite; }
@keyframes heroFloat { 0%,100%{ transform: translateY(0) rotate(0deg);} 50%{transform:translateY(-7px) rotate(1deg);} }
@keyframes floatCard { 0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)} }

.discover-shell {
    max-width: 1180px; margin: 0 auto;
    position: sticky; top: 80px; z-index: 55;
    padding: 14px 0 0;
    background: linear-gradient(180deg, rgba(248,246,240,.97) 76%, rgba(248,246,240,0));
}
.search-card {
    width: min(560px, calc(100% - 32px)); min-height: 52px; margin: 0 auto 12px;
    display: flex; align-items: center; gap: 9px; padding: 0 13px;
    background: rgba(255,255,255,.93); border: 1px solid rgba(18,60,50,.08); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.search-icon { width: 20px; height: 20px; color: var(--muted); flex: 0 0 20px; }
.search-card input { min-width: 0; flex: 1; height: 50px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 15px; }
.search-card input::placeholder { color: #9da5a1; }
.clear-search { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 10px; background: #f1f3f1; color: var(--muted); cursor: pointer; opacity: 0; pointer-events: none; transition: .2s ease; }
.search-card.has-value .clear-search { opacity: 1; pointer-events: auto; }
.categories-wrap { overflow: hidden; }
.categories-scroller {
    display: flex; align-items: center; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
    padding: 2px 16px 13px; scrollbar-width: none; overscroll-behavior-inline: contain;
}
.categories-scroller::-webkit-scrollbar { display: none; }
.category-link {
    flex: 0 0 auto; scroll-snap-align: center; text-decoration: none; white-space: nowrap;
    padding: 10px 15px; border-radius: 13px; color: #60706b; background: rgba(255,255,255,.72); border: 1px solid rgba(18,60,50,.075);
    font-size: 12.5px; font-weight: 900; transition: color .2s ease, background .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.category-link.active { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 10px 26px rgba(18,60,50,.19); transform: translateY(-1px); }
.category-spark { color: #ecd494; margin-left: 2px; }

.menu-content { max-width: 1180px; margin: 0 auto; padding: 18px 16px 140px; }
.menu-section { margin-bottom: 44px; scroll-margin-top: 170px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 2px 15px; }
.section-eyebrow { display: block; margin-bottom: 4px; color: #9a7a3a; font-size: 11px; font-weight: 900; }
.section-head h2 { margin: 0; color: var(--brand-deep); font-size: clamp(23px, 3vw, 32px); letter-spacing: -.02em; }
.section-count { flex: 0 0 auto; padding: 7px 10px; border-radius: 999px; background: #ecebe5; color: var(--muted); font-size: 10px; font-weight: 900; }
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }

.product-card {
    min-width: 0; overflow: hidden; position: relative;
    border-radius: 24px; background: rgba(255,255,255,.94); border: 1px solid rgba(18,60,50,.075); box-shadow: 0 12px 32px rgba(18,49,41,.065);
    transition: transform .25s var(--ease), box-shadow .25s ease, border-color .25s ease;
    contain: layout paint;
}
.product-media { position: relative; aspect-ratio: 1.06 / 1; overflow: hidden; background: #ecebe5; }
.product-media-button { width: 100%; height: 100%; display: block; padding: 0; border: 0; background: transparent; cursor: pointer; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .25s ease; }
.product-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, rgba(3,18,14,.14)); }
.product-body { padding: 14px 14px 15px; }
.product-title-row { display: flex; align-items: flex-start; gap: 6px; min-width: 0; }
.product-title-row h3 { min-width: 0; margin: 0; flex: 1; color: var(--ink); font-size: 16px; line-height: 1.35; font-weight: 900; }
.tiny-star { color: #c39a43; font-size: 12px; line-height: 1.4; }
.product-body > p { margin: 7px 0 13px; min-height: 37px; color: var(--muted); font-size: 12px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-body > p.muted-description { color: var(--muted-2); }
.product-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price-box { min-width: 0; }
.price-box small { display: block; margin-bottom: 1px; color: var(--muted); font-size: 9.5px; font-weight: 700; }
.price-box b { display: block; color: var(--brand); font-size: 16px; font-weight: 900; white-space: nowrap; }
.price-box b span { font-size: 10px; font-weight: 800; }
.product-action-btn {
    min-width: 76px; min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 12px; background: #edf3f0; color: var(--brand); cursor: pointer; font-size: 11px; font-weight: 900;
    transition: background .2s ease, color .2s ease, transform .18s var(--ease);
}
.product-action-btn svg { width: 14px; height: 14px; transform: rotate(180deg); }
.product-action-btn:active { transform: scale(.95); }
.quick-add {
    position: absolute; left: 10px; bottom: 10px; width: 40px; height: 40px; z-index: 4;
    display: grid; place-items: center; border: 0; border-radius: 13px; color: #fff; background: rgba(18,60,50,.94); box-shadow: 0 8px 20px rgba(8,31,25,.22); cursor: pointer;
    backdrop-filter: blur(8px); transition: transform .2s var(--ease), background .2s ease;
}
.quick-add svg { width: 19px; height: 19px; }
.quick-add:active { transform: scale(.9) rotate(6deg); }
.status-badge { position: absolute; top: 10px; right: 10px; z-index: 4; display: inline-flex; align-items: center; gap: 5px; padding: 7px 9px; border-radius: 999px; font-size: 9.5px; font-weight: 900; backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.status-badge.featured { color: #5a4010; background: rgba(245,229,191,.93); }
.status-badge.soon { color: #fff; background: rgba(44,52,49,.78); }
.status-badge.muted { color: #fff; background: rgba(80,80,80,.76); }
.status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.product-card.unavailable .product-img, .product-card.coming .product-img { filter: saturate(.4) brightness(.84); }
.product-readonly { padding: 7px 10px; border-radius: 10px; background: #f1f2ef; color: var(--muted); font-size: 10px; font-weight: 800; }
.search-empty { margin: 40px auto 70px; text-align: center; max-width: 340px; padding: 32px 20px; }
.empty-icon { width: 66px; height: 66px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 21px; background: #eceeea; color: var(--brand); font-size: 31px; }
.search-empty h3 { margin: 0 0 6px; font-size: 20px; }
.search-empty p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.search-empty button { margin-top: 14px; padding: 10px 14px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 900; cursor: pointer; }

.screen-overlay { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0; background: rgba(6,22,18,.5); backdrop-filter: blur(3px); transition: opacity .25s ease; }
.screen-overlay.show { opacity: 1; pointer-events: auto; }
.icon-close { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; transition: transform .18s var(--ease), background .18s ease; }
.icon-close:active { transform: scale(.94); }
.mobile-sheet-handle { display: none; width: 42px; height: 4px; border-radius: 999px; background: #d4d7d3; }

.dialog { position: fixed; z-index: 100; background: #fff; border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .32s var(--ease); }
.product-dialog { width: min(900px, calc(100% - 32px)); max-height: min(760px, calc(100% - 48px)); top: 50%; left: 50%; border-radius: 28px; transform: translate(-50%, -47%) scale(.975); overflow: hidden; }
.product-dialog.show { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.product-dialog-layout { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 530px; max-height: inherit; }
.product-dialog-media { min-width: 0; position: relative; overflow: hidden; background: #ebe9e2; }
.modal-image-bg { position: absolute; inset: -30px; background: radial-gradient(circle at 40% 30%, rgba(216,184,117,.22), transparent 50%); }
.product-dialog-media img { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 530px; object-fit: cover; }
.modal-media-chip { position: absolute; z-index: 3; right: 16px; bottom: 16px; padding: 8px 11px; border-radius: 999px; color: #fff; background: rgba(9,38,31,.78); backdrop-filter: blur(9px); font-size: 10px; font-weight: 900; }
.modal-close { position: absolute; z-index: 6; top: 14px; left: 14px; }
.product-dialog-content { min-width: 0; padding: 30px 28px 24px; overflow-y: auto; overscroll-behavior: contain; }
.product-dialog-content::-webkit-scrollbar { width: 5px; }
.product-dialog-content::-webkit-scrollbar-thumb { background: #d9ddd9; border-radius: 10px; }
.modal-title-row small { color: #9a7a3a; font-size: 11px; font-weight: 900; }
.modal-title-row h3 { margin: 5px 0 0; color: var(--brand-deep); font-size: 29px; line-height: 1.25; }
.modal-description { margin: 10px 0 21px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.option-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.option-heading h4 { margin: 0; font-size: 14px; color: var(--ink); }
.option-heading span { color: #9b6f27; background: #f8eed8; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 900; }
.variant-options { display: grid; gap: 8px; }
.variant-item { min-height: 52px; display: flex; align-items: center; position: relative; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fbfbf8; cursor: pointer; transition: .2s ease; }
.variant-item input { position: absolute; opacity: 0; pointer-events: none; }
.variant-item > div { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.variant-item strong { font-size: 12px; }
.variant-item span { color: var(--brand); font-size: 12px; font-weight: 900; }
.variant-item.active { border-color: rgba(18,60,50,.36); background: #eff5f2; box-shadow: inset 0 0 0 1px rgba(18,60,50,.05); }
.variant-item.active::after { content: "✓"; margin-right: 8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: 10px; font-weight: 900; }
.quantity-card { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fafaf7; }
.quantity-card strong, .quantity-card small { display: block; }
.quantity-card strong { font-size: 13px; }
.quantity-card small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.qty-box { display: inline-flex; align-items: center; gap: 7px; }
.qty-box button { width: 36px; height: 36px; border: 0; border-radius: 11px; background: #edf2ef; color: var(--brand); font-size: 20px; cursor: pointer; }
.qty-box b { min-width: 25px; text-align: center; font-size: 14px; }
.qty-box.small button { width: 30px; height: 30px; font-size: 17px; }
.field-block { display: block; margin-top: 15px; }
.field-block > span { display: flex; align-items: center; gap: 5px; margin-bottom: 7px; color: var(--ink); font-size: 12px; font-weight: 900; }
.field-block em { color: var(--muted); font-style: normal; font-size: 9px; font-weight: 700; }
.field-block textarea { width: 100%; min-height: 76px; resize: vertical; padding: 12px 13px; outline: 0; border: 1px solid var(--line); border-radius: 14px; background: #fbfbf8; color: var(--ink); font-size: 13px; line-height: 1.55; transition: border .2s ease, box-shadow .2s ease; }
.field-block textarea:focus { border-color: rgba(18,60,50,.38); box-shadow: 0 0 0 4px rgba(18,60,50,.06); }
.modal-footer-row { position: sticky; bottom: -24px; margin: 18px -28px -24px; padding: 14px 28px calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.94); border-top: 1px solid var(--line); backdrop-filter: blur(12px); }
.modal-price-box { min-width: 100px; }
.modal-price-box span { display: block; color: var(--muted); font-size: 10px; }
.modal-price-box strong { display: block; margin-top: 2px; color: var(--brand); font-size: 19px; }
.primary-btn { border: 0; color: #fff; background: linear-gradient(135deg, var(--brand-soft), var(--brand)); box-shadow: 0 13px 27px rgba(18,60,50,.2); cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s ease; }
.primary-btn:active { transform: scale(.975); box-shadow: 0 8px 18px rgba(18,60,50,.16); }
.primary-btn:disabled { opacity: .6; cursor: wait; }
.modal-add-btn { min-height: 50px; flex: 1; padding: 0 17px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 15px; font-size: 13px; font-weight: 900; }
.modal-add-btn svg { width: 18px; height: 18px; }

.cart-drawer { position: fixed; z-index: 100; top: 12px; bottom: 12px; right: 12px; width: min(410px, calc(100% - 24px)); padding: 20px; display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(255,255,255,.8); border-radius: 28px; box-shadow: var(--shadow-lg); transform: translateX(calc(100% + 40px)); transition: transform .34s var(--ease); }
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.drawer-kicker { display: inline-block; color: #9a7a3a; font-size: 10px; font-weight: 900; }
.drawer-head h3 { margin: 3px 0 0; font-size: 24px; color: var(--brand-deep); }
.drawer-head p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.cart-items { min-height: 120px; flex: 1; overflow-y: auto; padding: 12px 2px 4px; overscroll-behavior: contain; }
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: #d8ddd9; border-radius: 99px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 15px; background: var(--paper-2); }
.cart-item-body { min-width: 0; }
.cart-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cart-item-top h4 { min-width: 0; margin: 0; font-size: 13px; line-height: 1.4; }
.remove-line { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #f6eeee; color: var(--danger); cursor: pointer; }
.cart-item-body > small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.cart-note { margin: 4px 0 0; color: #8f7648; font-size: 9.5px; }
.cart-item-bottom { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cart-item-bottom strong { color: var(--brand); font-size: 12px; }
.empty-cart { padding: 30px 18px; text-align: center; color: var(--muted); line-height: 1.7; font-size: 12px; }
.compact-field { margin-top: 10px; }
.compact-field textarea { min-height: 58px; }
.drawer-summary { margin-top: 10px; padding: 12px 13px; border-radius: 15px; background: #f5f6f2; }
.drawer-summary > div { display: flex; justify-content: space-between; gap: 10px; }
.drawer-summary span { color: var(--muted); font-size: 11px; }
.drawer-summary b { color: var(--brand); font-size: 17px; }
.drawer-summary small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.send-order-btn { width: 100%; min-height: 52px; margin-top: 10px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 900; }
.send-order-btn svg { width: 19px; height: 19px; transform: rotate(180deg); }

.cart-bar {
    position: fixed; z-index: 65; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
    width: min(520px, calc(100% - 32px)); min-height: 64px; padding: 9px 12px 9px 10px;
    display: flex; align-items: center; gap: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; color: #fff; background: rgba(12,44,36,.96); box-shadow: 0 20px 45px rgba(8,31,25,.28); backdrop-filter: blur(15px);
    opacity: 0; pointer-events: none; transform: translate(-50%, 22px) scale(.97); transition: opacity .25s ease, transform .32s var(--ease); cursor: pointer;
}
.cart-bar.show { opacity: 1; pointer-events: auto; transform: translate(-50%,0) scale(1); }
.cart-icon-wrap { width: 43px; height: 43px; flex: 0 0 43px; position: relative; display: grid; place-items: center; border-radius: 14px; background: rgba(255,255,255,.1); }
.cart-icon-wrap svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; background: var(--accent); color: #4d3914; border: 2px solid var(--brand-deep); font-size: 9px; font-style: normal; font-weight: 900; }
.cart-bar-copy { min-width: 0; text-align: right; }
.cart-bar-copy small, .cart-bar-copy b { display: block; }
.cart-bar-copy small { color: rgba(255,255,255,.58); font-size: 9.5px; }
.cart-bar-copy b { margin-top: 1px; font-size: 12.5px; }
.cart-bar > strong { margin-right: auto; font-size: 14px; white-space: nowrap; }
.cart-arrow { width: 18px; height: 18px; opacity: .6; transform: rotate(180deg); }
.service-fab { position: fixed; z-index: 60; right: 18px; bottom: calc(21px + env(safe-area-inset-bottom)); width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid rgba(18,60,50,.1); border-radius: 17px; color: var(--brand); background: rgba(255,255,255,.94); box-shadow: var(--shadow-md); cursor: pointer; transition: transform .2s var(--ease), opacity .2s ease; }
.service-fab svg { width: 21px; height: 21px; position: relative; z-index: 2; }
.service-fab:active { transform: scale(.94); }
.cart-bar.show ~ .service-fab { opacity: .3; }
.service-pulse { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #63b887; top: 5px; right: 5px; border: 2px solid #fff; }

.service-dialog { width: min(430px, calc(100% - 28px)); top: 50%; left: 50%; padding: 26px; border-radius: 27px; transform: translate(-50%,-46%) scale(.98); }
.service-dialog.show { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.service-close { position: absolute; top: 14px; left: 14px; }
.service-dialog-head { text-align: center; padding: 4px 18px 17px; }
.service-bell-wrap { width: 54px; height: 54px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 18px; color: var(--brand); background: #eef4f1; }
.service-bell-wrap svg { width: 24px; height: 24px; }
.service-dialog-head small { color: #9a7a3a; font-weight: 900; font-size: 10px; }
.service-dialog-head h3 { margin: 4px 0; color: var(--brand-deep); font-size: 24px; }
.service-dialog-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.service-actions-grid { display: grid; gap: 9px; }
.service-actions-grid button { width: 100%; min-height: 67px; display: grid; grid-template-columns: 44px 1fr 18px; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 16px; background: #fbfbf8; color: var(--ink); cursor: pointer; text-align: right; transition: background .2s ease, transform .18s var(--ease), border .2s ease; }
.service-actions-grid button:active { transform: scale(.98); }
.service-action-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #eff3ef; font-size: 19px; }
.service-actions-grid strong, .service-actions-grid small { display: block; }
.service-actions-grid strong { font-size: 12px; }
.service-actions-grid small { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.service-actions-grid i { color: var(--muted-2); font-style: normal; font-size: 22px; }

.toast { position: fixed; z-index: 150; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); padding: 11px 15px; border-radius: 13px; color: #fff; background: rgba(17,32,28,.94); box-shadow: 0 12px 30px rgba(0,0,0,.2); font-size: 12px; font-weight: 800; text-align: center; opacity: 0; pointer-events: none; transform: translate(-50%,12px); transition: .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.reveal-item { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .55s var(--ease); }
.reveal-item.is-visible { opacity: 1; transform: translateY(0); }
.reveal-now { animation: revealNow .55s var(--ease) both; }
@keyframes revealNow { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }

@media (hover:hover) and (pointer:fine) {
    .product-card:hover { transform: translateY(-5px); border-color: rgba(18,60,50,.15); box-shadow: 0 20px 45px rgba(18,49,41,.11); }
    .product-card:hover .product-img { transform: scale(1.045); }
    .product-card:hover .product-action-btn { background: var(--brand); color: #fff; }
    .quick-add:hover { transform: translateY(-2px) rotate(3deg); background: var(--brand-soft); }
    .category-link:hover { color: var(--brand); background: #fff; }
    .category-link.active:hover { color: #fff; background: var(--brand); }
    .service-actions-grid button:hover { background: #f2f6f3; border-color: rgba(18,60,50,.15); }
}

@media (max-width: 960px) {
    .premium-hero { margin-left: 16px; margin-right: 16px; padding: 34px; grid-template-columns: 1fr .8fr; min-height: 330px; }
    .hero-art { min-height: 270px; }
    .hero-image-shell { width: 240px; }
    .hero-orbit.orbit-one { width: 295px; height: 295px; }
    .hero-orbit.orbit-two { width: 350px; height: 350px; }
    .hero-mini-card { display: none; }
    .products-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 700px) {
    :root { --header-h: 70px; }
    .app-header { padding-left: 10px; padding-right: 10px; }
    .app-header-inner { min-height: 58px; padding: 7px 8px; border-radius: 18px; }
    .brand-logo { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; }
    .brand-copy strong { font-size: 15px; }
    .brand-copy small { max-width: 135px; font-size: 10px; }
    .header-icon-btn { width: 39px; min-height: 39px; border-radius: 12px; }
    .table-pill { min-height: 39px; padding: 0 10px; font-size: 10.5px; }

    .premium-hero { min-height: 226px; margin: 5px 10px 0; padding: 24px 20px; grid-template-columns: 1.15fr .85fr; border-radius: 26px; box-shadow: 0 20px 50px rgba(8,32,26,.19); }
    .hero-content h1 { font-size: clamp(31px,10vw,42px); margin: 9px 0 5px; }
    .hero-content p { font-size: 14px; }
    .hero-kicker { font-size: 10.5px; }
    .hero-meta { margin-top: 18px; gap: 6px; }
    .hero-meta span { padding: 7px 8px; font-size: 9px; }
    .hero-meta svg { width: 13px; height: 13px; }
    .hero-art { min-height: 170px; }
    .hero-image-shell { width: min(165px, 100%); }
    .hero-orbit.orbit-one { width: 190px; height: 190px; }
    .hero-orbit.orbit-two { width: 230px; height: 230px; }

    .discover-shell { top: 69px; padding-top: 9px; }
    .search-card { width: calc(100% - 20px); min-height: 48px; margin-bottom: 8px; border-radius: 15px; }
    .search-card input { height: 46px; font-size: 16px; }
    .categories-scroller { gap: 7px; padding: 1px 10px 10px; }
    .category-link { padding: 9px 12px; border-radius: 12px; font-size: 11px; }

    .menu-content { padding: 15px 10px 125px; }
    .menu-section { margin-bottom: 33px; scroll-margin-top: 150px; }
    .section-head { margin: 0 2px 11px; }
    .section-eyebrow { font-size: 9.5px; }
    .section-head h2 { font-size: 22px; }
    .section-count { padding: 6px 8px; font-size: 9px; }
    .products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .product-card { border-radius: 18px; box-shadow: 0 8px 22px rgba(18,49,41,.055); }
    .product-media { aspect-ratio: 1/1; }
    .product-body { padding: 10px 10px 11px; }
    .product-title-row h3 { font-size: 13px; }
    .product-body > p { min-height: 31px; margin: 5px 0 9px; font-size: 10px; line-height: 1.5; }
    .price-box small { font-size: 8.5px; }
    .price-box b { font-size: 14px; }
    .price-box b span { font-size: 8.5px; }
    .product-action-btn { display: none; }
    .quick-add { width: 36px; height: 36px; left: 8px; bottom: 8px; border-radius: 12px; }
    .quick-add svg { width: 17px; height: 17px; }
    .status-badge { top: 8px; right: 8px; padding: 6px 7px; font-size: 8px; }

    .product-dialog { width: 100%; max-height: calc(100% - max(8px, env(safe-area-inset-top))); top: auto; bottom: 0; left: 0; border-radius: 25px 25px 0 0; transform: translateY(100%); }
    .product-dialog.show { transform: translateY(0); }
    .product-dialog-layout { display: block; min-height: 0; max-height: inherit; overflow: hidden; }
    .product-dialog-media { height: min(34vh, 255px); min-height: 180px; }
    .product-dialog-media img { min-height: 0; height: 100%; }
    .product-dialog-content { max-height: calc(100vh - min(34vh,255px) - 16px); padding: 18px 16px 0; }
    .modal-title-row h3 { font-size: 23px; }
    .modal-description { margin: 7px 0 15px; font-size: 12px; }
    .mobile-sheet-handle { display: block; position: absolute; z-index: 8; top: 8px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.72); }
    .modal-close { width: 36px; height: 36px; top: 15px; left: 12px; background: rgba(255,255,255,.92); }
    .modal-media-chip { bottom: 10px; right: 12px; }
    .quantity-card { margin-top: 14px; }
    .modal-footer-row { bottom: 0; margin: 16px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .modal-add-btn { min-height: 48px; }
    .field-block textarea { font-size: 16px; }

    .cart-drawer { top: auto; right: 0; bottom: 0; width: 100%; max-height: calc(100% - max(8px, env(safe-area-inset-top))); padding: 16px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; transform: translateY(100%); }
    .cart-drawer.open { transform: translateY(0); }
    .cart-drawer .mobile-sheet-handle { position: static; margin: -6px auto 10px; transform: none; background: #d6dad6; }
    .drawer-head h3 { font-size: 21px; }
    .cart-item { grid-template-columns: 64px 1fr; }
    .cart-item img { width: 64px; height: 64px; }
    .cart-bar { width: calc(100% - 20px); min-height: 60px; bottom: calc(9px + env(safe-area-inset-bottom)); border-radius: 18px; }
    .service-fab { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 15px; }

    .service-dialog { width: 100%; top: auto; left: 0; bottom: 0; padding: 22px 14px calc(16px + env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; transform: translateY(100%); }
    .service-dialog.show { transform: translateY(0); }
    .service-dialog .mobile-sheet-handle { display: block; position: static; margin: -11px auto 12px; transform: none; background: #d6dad6; }
}

@media (max-width: 380px) {
    .premium-hero { min-height: 205px; padding: 20px 16px; }
    .hero-content h1 { font-size: 29px; }
    .hero-art { min-height: 150px; }
    .hero-image-shell { width: 142px; }
    .hero-meta span:nth-child(2) { display: none; }
    .table-pill { display: none; }
    .products-grid { gap: 8px; }
    .product-body { padding: 9px; }
    .product-title-row h3 { font-size: 12px; }
    .product-body > p { font-size: 9.5px; }
    .price-box b { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal-item { opacity: 1 !important; transform: none !important; }
}
.cart-count.bump { animation: cartBump .28s var(--ease); }
.qty-pulse, .price-pulse { animation: valuePulse .22s var(--ease); }
.is-pressed { transform: scale(.965) !important; }
.btn-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.service-actions-grid button:disabled { opacity: .55; cursor: wait; }
.empty-cart strong { color: var(--brand); }
@keyframes cartBump { 50% { transform: scale(1.2); } }
@keyframes valuePulse { 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
