/* ==========================================================================
   Khawaja Sweets & Bakers — storefront design system
   Brand colours match the Khawaja CRM: primary #FE6104, secondary #FF8534,
   accent #E55600, on Tailwind-style grays.
   ========================================================================== */

:root {
    --brand: #FE6104;          /* primary */
    --brand-2: #FF8534;        /* secondary */
    --brand-dark: #E55600;     /* accent */
    --brand-ink: #C2410C;      /* brand-orange text that stays readable on white */
    --brand-200: #FFCBA8;
    --brand-100: #FFE6D5;
    --brand-50: #FFF4EC;
    --gradient: linear-gradient(135deg, #FE6104 0%, #FF8534 50%, #E55600 100%);
    --gradient-btn: linear-gradient(90deg, #FE6104 0%, #FF8534 100%);

    --white: #ffffff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;

    --success: #2f7d4f;
    --success-bg: #e8f4ec;
    --danger: #b3261e;
    --danger-bg: #fbeae8;
    --warning: #9a6a00;
    --warning-bg: #fdf3dc;
    --info: #2f5f8a;
    --info-bg: #e8f0f8;
    --accent: #C2410C;
    --accent-bg: #FFF4EC;
    --whatsapp: #25D366;
    --whatsapp-dark: #1DA851;

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .05);
    --shadow: 0 6px 24px -8px rgba(17, 24, 39, .18);
    --shadow-lg: 0 24px 60px -20px rgba(17, 24, 39, .35);

    --header-h: 68px;
    --gutter: 16px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
    :root { --gutter: 24px; --header-h: 76px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--gray-800); }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 20px; height: 20px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 14px; height: 14px; }
.icon--lg { width: 28px; height: 28px; }

.show-md, .show-lg { display: none !important; }
@media (min-width: 768px) { .show-md { display: flex !important; } .hide-md { display: none !important; } }
@media (min-width: 1024px) { .show-lg { display: flex !important; } .hide-lg { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; padding: 0 22px;
    border: 1px solid transparent; border-radius: 999px;
    font-weight: 600; font-size: 15px; line-height: 1; letter-spacing: .01em;
    cursor: pointer; white-space: nowrap;
    transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading::after {
    content: ""; width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid currentColor; border-right-color: transparent;
    animation: spin .7s linear infinite;
}
.btn--primary { background: var(--gradient-btn); color: #fff; box-shadow: 0 6px 16px -8px rgba(254, 97, 4, .7); }
.btn--primary:hover { background: var(--gradient-btn); filter: brightness(.95); box-shadow: 0 10px 22px -10px rgba(254, 97, 4, .8); }
.btn--outline { background: var(--white); color: var(--gray-700); border-color: var(--gray-300); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn--ghost { background: transparent; color: var(--brand-ink); padding: 0 12px; }
.btn--ghost:hover { background: var(--brand-50); }
.btn--whatsapp { background: #16A34A; color: #fff; }
.btn--whatsapp:hover { background: #15803D; }
.btn--light { background: #fff; color: var(--gray-800); }
.btn--light:hover { background: var(--brand-50); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.link { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand-2); }
.link:hover { color: var(--brand-dark); }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--brand-ink); font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

.icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-width: 42px; height: 42px; padding: 0 10px; border-radius: 999px;
    background: transparent; border: 0; cursor: pointer; color: var(--gray-700);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.icon-btn:hover, .icon-btn.is-active { background: var(--brand-50); color: var(--brand-ink); }
.icon-btn__label { font-size: 14px; font-weight: 600; }
.icon-btn--solid { background: var(--gradient-btn); color: #fff; min-width: 40px; height: 40px; padding: 0; box-shadow: 0 4px 12px -6px rgba(254, 97, 4, .8); }
.icon-btn--solid:hover { background: var(--brand-dark); color: #fff; }
.badge-count {
    position: absolute; top: 2px; right: 0;
    min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
    background: #fff; color: var(--brand-dark);
    font-size: 11px; font-weight: 800; line-height: 19px; text-align: center;
    box-shadow: 0 0 0 2px var(--brand), 0 2px 6px rgba(17, 24, 39, .25);
}
.badge-count.bump { animation: bump .4s var(--ease); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--gray-800); color: var(--gray-300); font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar__inner > * { display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar__loc { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.topbar__loc:hover { color: #fff; }

/* Orange gradient header, as in the Khawaja CRM */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--gradient); color: #fff;
    box-shadow: 0 4px 14px -6px rgba(229, 86, 0, .55);
    transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 10px 24px -10px rgba(229, 86, 0, .7); }
.site-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.site-header .icon-btn { color: #fff; }
.site-header .icon-btn:hover, .site-header .icon-btn.is-active { background: rgba(255, 255, 255, .2); color: #fff; }

.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { height: 50px; width: auto; padding: 3px; background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(17, 24, 39, .18); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: #fff; letter-spacing: .01em; }
.brand__text small { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .88); white-space: nowrap; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: var(--brand-2); }
@media (min-width: 1024px) { .brand { margin-right: 8px; } }

.main-nav { gap: 2px; margin-right: auto; }
.main-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 500; color: rgba(255, 255, 255, .92); transition: color .2s, background .2s; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .18); }
.main-nav a.is-active { color: #fff; font-weight: 700; background: rgba(255, 255, 255, .2); }

.header-search, .field-search {
    position: relative; align-items: center;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: 999px;
    transition: border-color .2s, box-shadow .2s;
}
.header-search { width: 260px; height: 42px; border-color: transparent; box-shadow: 0 2px 8px rgba(17, 24, 39, .12); color: var(--gray-800); }
.header-search:focus-within { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .35); }
.field-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(254, 97, 4, .18); }
.search-btn { position: absolute; left: 5px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--gray-500); cursor: pointer; transition: color .2s, background .2s; }
.search-btn:hover, .search-btn:focus-visible { color: var(--brand); background: var(--brand-50); }
.search-btn:active { transform: translateY(-50%) scale(.9); }
.header-search input, .field-search input { width: 100%; height: 100%; border: 0; background: transparent; padding: 0 16px 0 42px; outline: none; }
.field-search { display: flex; height: 48px; margin-bottom: 18px; }
.header-actions { display: flex; align-items: center; gap: 2px; }

/* ---------- Drawers ---------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; transition: visibility 0s linear .38s; }
.drawer.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .45); opacity: 0; transition: opacity .3s var(--ease); }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
    position: absolute; top: 0; bottom: 0; width: min(400px, 90vw);
    display: flex; flex-direction: column;
    background: var(--white); box-shadow: var(--shadow-lg);
    transition: transform .35s var(--ease);
}
.drawer--right .drawer__panel { right: 0; transform: translateX(100%); }
.drawer--left .drawer__panel { left: 0; transform: translateX(-100%); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--gray-200); }
.drawer__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--gray-800); }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 22px; overscroll-behavior: contain; }
.drawer__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gray-200); background: var(--white); display: grid; gap: 14px; }
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 13px 4px; font-weight: 600; border-bottom: 1px solid var(--gray-200); }
.drawer-nav a:hover { color: var(--brand-ink); }
.drawer-nav a .icon { color: var(--brand); }
.drawer-nav .drawer-nav__sub { padding-left: 36px; font-weight: 500; color: var(--gray-600); }
.drawer-nav .drawer-nav__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--gray-200); background: none; font: inherit; font-weight: 600; color: inherit; text-align: left; cursor: pointer; }
.drawer-nav .drawer-nav__btn .icon { color: var(--brand); }
body.has-drawer { overflow: hidden; }

.mini-cart__loading { color: var(--gray-500); text-align: center; padding: 40px 0; }
.mini-cart__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.mini-cart__item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.mini-cart__item img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; background: var(--brand-50); }
.mini-cart__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.mini-cart__meta { color: var(--gray-500); font-size: 13px; }
.mini-cart__empty { text-align: center; padding: 36px 8px; color: var(--gray-500); }
.mini-cart__empty .icon { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--brand); }
.mini-cart__empty p { margin-bottom: 18px; }

/* ---------- Toasts & alerts ---------- */
.toasts { position: fixed; z-index: 80; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: 10px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; align-items: center; gap: 12px;
    padding: 12px 14px 12px 16px; border-radius: var(--radius);
    background: var(--gray-900); color: #fff; box-shadow: var(--shadow-lg);
    animation: toast-in .35s var(--ease);
}
.toast .icon { color: var(--brand-2); }
.toast--error .icon { color: #ff9b8f; }
.toast__text { flex: 1; font-size: 14px; }
.toast a { color: var(--brand-2); font-weight: 600; white-space: nowrap; }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: all .25s var(--ease); }

.alert { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 13px 16px; border-radius: var(--radius); font-size: 14px; border: 1px solid; }
.alert .icon { margin-top: 1px; }
.alert--success { background: var(--success-bg); border-color: #cde6d6; color: var(--success); }
.alert--error { background: var(--danger-bg); border-color: #f2cdc9; color: var(--danger); }
.alert--info { background: var(--info-bg); border-color: #cfdeed; color: var(--info); }

/* ---------- Sections & typography ---------- */
.section { padding-block: 44px; }
.section--tight { padding-block: 28px; }
@media (min-width: 768px) { .section { padding-block: 72px; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 6px; }
.title { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.01em; }
.title-sm { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 28px); }
.lead { color: var(--gray-600); font-size: 16px; }
.muted { color: var(--gray-500); }
.page-head { padding-block: 26px 8px; }
.page-head .title { margin-top: 8px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--brand-ink); }
.breadcrumbs [aria-current] { color: var(--gray-600); }

/* ---------- Hero ---------- */
.hero { padding-top: 16px; }
.hero__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    border-radius: var(--radius-lg); box-shadow: var(--shadow);
    background: var(--brand-50);
}
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 2.55 / 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide img { object-position: center; }
.hero__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.hero__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--gray-300); cursor: pointer; transition: width .3s var(--ease), background .3s; }
.hero__dot.is-active { width: 26px; background: var(--brand); }

.intro { display: grid; gap: 22px; align-items: center; padding-block: 34px 8px; }
.intro .title { max-width: 16ch; }
.intro .lead { max-width: 52ch; margin-top: 12px; }
.intro__cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) { .intro { grid-template-columns: 1.2fr 1fr; } .intro__cta { justify-content: flex-end; } }

.perks { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perk { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.perk__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.perk strong { display: block; font-size: 15px; color: var(--gray-800); }
.perk span { font-size: 13px; color: var(--gray-500); }

/* ---------- Categories ---------- */
.cat-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.cat-card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1 / 1.08; background: var(--gray-800); box-shadow: var(--shadow-sm); isolation: isolate; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(17, 24, 39, .82)); z-index: 1; }
.cat-card__label { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #fff; }
.cat-card__label strong { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.cat-card__label .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: background .3s, color .3s; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card:hover .cat-card__label .icon { background: var(--brand); color: #fff; }

/* ---------- Product cards ---------- */
.product-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .product-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--brand-100); }
.product-card__media { position: relative; display: block; aspect-ratio: 1; background: var(--brand-50); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; }
@media (min-width: 768px) { .product-card__body { padding: 16px 18px 18px; } }
.product-card__cat { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); }
.product-card__title { font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 1.35; margin: 4px 0 12px; color: var(--gray-800); }
.product-card__title a:hover { color: var(--brand-ink); }
.product-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.price__now { font-weight: 700; font-size: 16px; color: var(--gray-800); }
.price__was { font-size: 13px; color: var(--gray-500); }
.price--lg .price__now { font-size: 28px; font-family: var(--font-display); }
.price--lg .price__was { font-size: 16px; }

.tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tag--sale { background: var(--danger); color: #fff; }
.tag--fresh { background: var(--white); color: var(--brand-ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* ---------- WhatsApp band ---------- */
.band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 34px 24px; background: var(--gradient); color: #fff; box-shadow: 0 18px 40px -20px rgba(229, 86, 0, .7); display: grid; gap: 20px; align-items: center; }
.band::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M20 4l4 12 12 4-12 4-4 12-4-12-12-4 12-4z' fill='%23ffffff' fill-opacity='.12'/%3E%3C/svg%3E"); pointer-events: none; }
.band > * { position: relative; }
.band .title { color: #fff; }
.band p { color: rgba(255, 255, 255, .92); margin-top: 8px; max-width: 48ch; }
@media (min-width: 768px) { .band { grid-template-columns: 1fr auto; padding: 48px 52px; } }

/* ---------- Shop listing ---------- */
.shop-layout { display: grid; gap: 28px; padding-bottom: 60px; }
.shop-layout > *, .cart-layout > *, .account-layout > *, .pdp > * { min-width: 0; }
@media (min-width: 1024px) { .shop-layout { grid-template-columns: 240px 1fr; gap: 40px; } }
.shop-side { display: none; }
@media (min-width: 1024px) { .shop-side { display: block; position: sticky; top: calc(var(--header-h) + 20px); align-self: start; } }
.side-title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 10px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-list a { display: flex; justify-content: space-between; padding: 9px 12px; border-radius: 10px; color: var(--gray-600); font-weight: 500; }
.side-list a:hover { background: var(--brand-50); color: var(--gray-800); }
.side-list a.is-active { background: var(--brand-dark); color: #fff; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--gutter) 6px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .chips { display: none; } }
.chip { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white); font-size: 14px; font-weight: 500; color: var(--gray-600); }
.chip.is-active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }

/* ---------- Menu: the shop page without a search ----------
   A sticky, sideways-scrolling category bar under the header; each pill jumps
   to its section and the bar follows the scroll position (app.js "Menu"). */
.menu-nav {
    position: sticky; z-index: 30; top: calc(var(--header-h) + env(safe-area-inset-top));
    background: rgba(249, 250, 251, .96);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s, border-color .2s, background-color .2s;
}
.menu-nav.is-stuck { background: rgba(255, 255, 255, .97); border-bottom-color: var(--gray-200); box-shadow: 0 10px 20px -16px rgba(17, 24, 39, .4); }
.menu-nav__inner { position: relative; display: flex; align-items: center; }
.menu-nav__track {
    --fade-l: 0px; --fade-r: 0px;
    position: relative; flex: 1; min-width: 0;
    display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 10px var(--gutter); margin: 0 calc(var(--gutter) * -1);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent 100%);
}
.menu-nav__track::-webkit-scrollbar { display: none; }
.menu-nav.can-prev .menu-nav__track { --fade-l: 44px; }
.menu-nav.can-next .menu-nav__track { --fade-r: 44px; }
.menu-nav__link {
    flex: none; display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 10px 8px 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white);
    font-size: 14px; font-weight: 600; color: var(--gray-600); white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
}
.menu-nav__link:hover { border-color: var(--brand-200); color: var(--gray-800); }
.menu-nav__link.is-active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.menu-nav__count { min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--gray-100); font-size: 12px; line-height: 20px; text-align: center; color: var(--gray-500); }
.menu-nav__link.is-active .menu-nav__count { background: rgba(255, 255, 255, .22); color: #fff; }
.menu-nav__arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
    .menu-nav__arrow {
        position: absolute; z-index: 1; top: 50%; display: grid; place-items: center;
        width: 34px; height: 34px; margin-top: -17px; padding: 0;
        border: 1px solid var(--gray-200); border-radius: 50%; background: var(--white); color: var(--gray-700);
        box-shadow: var(--shadow-sm); cursor: pointer; transition: color .2s, border-color .2s;
    }
    .menu-nav__arrow:hover { color: var(--brand-ink); border-color: var(--brand-200); }
    .menu-nav__arrow--prev { left: 4px; }
    .menu-nav__arrow--next { right: 4px; }
}
.toolbar--menu { margin: 0 0 6px; }
.menu__body { padding-top: 14px; padding-bottom: 60px; }
.menu-section { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top) + 70px); }
.menu-section + .menu-section { margin-top: 32px; }
@media (min-width: 768px) { .menu-section + .menu-section { margin-top: 44px; } }
.menu-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.menu-section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 28px); outline: none; }
.menu-section__count { flex: none; font-size: 13px; color: var(--gray-500); }
/* The section heading already names the category. */
.menu-section .product-card__cat { display: none; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 20px; }
.toolbar__count { color: var(--gray-500); font-size: 14px; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select { appearance: none; height: 42px; padding: 0 40px 0 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white); font-size: 14px; font-weight: 500; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; width: 8px; height: 8px; border-right: 2px solid var(--gray-500); border-bottom: 2px solid var(--gray-500); transform: translateY(-2px) rotate(45deg); pointer-events: none; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gray-300); background: var(--white); font-weight: 600; font-size: 14px; }
.pagination a:hover { border-color: var(--brand); color: var(--brand-ink); }
.pagination .is-active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.pagination .is-disabled { opacity: .4; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 28px; padding-block: 20px 40px; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 56px; padding-top: 28px; } }
.gallery__main { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-50); border: 1px solid var(--gray-200); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery__thumb { flex: none; width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--brand-50); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--brand); opacity: 1; }
@media (min-width: 900px) { .pdp__info { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.pdp__cat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-ink); }
.pdp__title { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); font-weight: 600; margin: 8px 0 14px; }
.pdp__desc { color: var(--gray-600); margin-top: 18px; }
.pdp__desc p + p { margin-top: 10px; }
.pdp__buy { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.pdp__buy .btn--primary { flex: 1; min-width: 180px; }
.pdp__assurances { display: grid; gap: 10px; margin-top: 26px; padding: 18px 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-200); font-size: 14px; color: var(--gray-600); }
.pdp__assurances div { display: flex; gap: 10px; align-items: center; }
.pdp__assurances .icon { color: var(--brand); }

.qty { display: inline-flex; align-items: center; height: 54px; border: 1px solid var(--gray-300); border-radius: 999px; background: var(--white); }
.qty button { display: grid; place-items: center; width: 46px; height: 100%; border: 0; background: none; cursor: pointer; color: var(--gray-700); border-radius: 999px; }
.qty button:hover { background: var(--brand-50); color: var(--brand-ink); }
.qty input { width: 40px; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; outline: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 40px; }
.qty--sm button { width: 36px; }
.qty--sm input { width: 32px; font-size: 14px; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; gap: 24px; padding-block: 8px 60px; }
@media (min-width: 960px) { .cart-layout { grid-template-columns: 1fr 380px; gap: 36px; align-items: start; } }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); }
.card__pad { padding: 20px; }
@media (min-width: 768px) { .card__pad { padding: 26px 28px; } }
.card__title { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.card__title .step-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gradient-btn); color: #fff; font: 700 13px var(--font-sans); }

.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 80px 1fr; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--gray-200); }
.cart-line:last-child { border-bottom: 0; }
@media (min-width: 640px) { .cart-line { grid-template-columns: 96px 1fr auto; align-items: center; padding: 20px 26px; } }
.cart-line__img { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; background: var(--brand-50); }
@media (min-width: 640px) { .cart-line__img { width: 96px; height: 96px; } }
.cart-line__img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__name { font-weight: 600; line-height: 1.35; }
.cart-line__name a:hover { color: var(--brand-ink); }
.cart-line__unit { font-size: 13px; color: var(--gray-500); margin-top: 2px; }
.cart-line__actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 640px) { .cart-line__actions { grid-column: auto; justify-content: flex-end; gap: 20px; } }
.cart-line__total { font-weight: 700; min-width: 90px; text-align: right; }
.remove-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; color: var(--gray-500); cursor: pointer; }
.remove-btn:hover { background: var(--danger-bg); color: var(--danger); }
.cart-line.is-busy { opacity: .55; pointer-events: none; }

.summary { position: sticky; top: calc(var(--header-h) + 20px); }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--gray-600); }
.summary-row strong { color: var(--gray-800); }
.summary-row--total { padding-top: 14px; margin-top: 8px; border-top: 1px dashed var(--gray-300); font-size: 17px; color: var(--gray-800); }
.summary-row--total strong { font-size: 20px; color: var(--gray-800); }
.summary .btn { margin-top: 18px; }
.summary__note { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-size: 13px; color: var(--gray-500); }
.summary-items { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--gray-200); display: grid; gap: 12px; }
.summary-items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.summary-items img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: var(--brand-50); }
.summary-items .qty-pill { display: inline-block; margin-left: 4px; color: var(--gray-500); }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.label .opt { font-weight: 400; color: var(--gray-500); }
.input, .textarea {
    width: 100%; min-height: 50px; padding: 12px 16px;
    border: 1px solid var(--gray-300); border-radius: 12px; background: var(--white);
    font-size: 16px; transition: border-color .2s, box-shadow .2s; outline: none;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(254, 97, 4, .18); }
.input[readonly] { background: var(--gray-50); color: var(--gray-600); }
.input-group { display: flex; border: 1px solid var(--gray-300); border-radius: 12px; background: var(--white); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.input-group:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(254, 97, 4, .18); }
.input-group__addon { display: flex; align-items: center; gap: 8px; padding: 0 14px; background: var(--gray-100); border-right: 1px solid var(--gray-300); font-weight: 700; color: var(--gray-700); }
.input-group .input { border: 0; border-radius: 0; box-shadow: none; }
.hint { font-size: 13px; color: var(--gray-500); }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--success); }

.pay-option { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 2px solid var(--brand); border-radius: var(--radius); background: var(--brand-50); }
.pay-option__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--white); color: var(--brand); flex: none; }
.pay-option strong { display: block; }
.pay-option span { font-size: 13px; color: var(--gray-600); }
.pay-option .icon--check { margin-left: auto; color: var(--brand); }

/* ---------- Auth (WhatsApp login) ---------- */
.auth { min-height: calc(100vh - var(--header-h) - 34px); display: grid; place-items: center; padding: 32px 0 64px; background: radial-gradient(80% 60% at 50% 0%, var(--brand-50), transparent 70%); }
.auth__card { width: min(460px, calc(100vw - 32px)); background: var(--white); border: 1px solid var(--gray-200); border-radius: 26px; box-shadow: var(--shadow); padding: 30px 24px; }
@media (min-width: 520px) { .auth__card { padding: 40px 40px 36px; } }
.auth__badge { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px; background: #e6f6ec; color: var(--whatsapp); }
.auth__badge .icon { width: 32px; height: 32px; }
.auth__badge--gold { background: var(--brand-50); color: var(--brand); }
.auth h1 { font-family: var(--font-display); font-size: 28px; font-weight: 600; text-align: center; }
.auth__sub { text-align: center; color: var(--gray-600); margin: 8px 0 26px; }
.auth__sub strong { color: var(--gray-800); white-space: nowrap; }
.auth form + form, .auth__links { margin-top: 18px; }
.auth__links { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 14px; color: var(--gray-500); }
.auth__fine { margin-top: 22px; text-align: center; font-size: 12px; color: var(--gray-500); display: flex; gap: 6px; justify-content: center; align-items: center; }
.steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 24px; }
.steps span { width: 28px; height: 4px; border-radius: 4px; background: var(--gray-200); }
.steps span.is-done { background: var(--brand); }

.otp { display: flex; justify-content: space-between; gap: 8px; }
.otp input {
    width: 100%; max-width: 54px; height: 60px; padding: 0;
    border: 1px solid var(--gray-300); border-radius: 14px; background: var(--white);
    text-align: center; font-size: 24px; font-weight: 700; color: var(--gray-800);
    outline: none; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.otp input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(254, 97, 4, .2); }
.otp input.is-filled { border-color: var(--brand); background: var(--brand-50); }
.otp.is-error input { border-color: var(--danger); animation: shake .35s; }

/* ---------- Account ---------- */
.account-layout { display: grid; gap: 24px; padding-block: 8px 60px; }
@media (min-width: 960px) { .account-layout { grid-template-columns: 300px 1fr; gap: 36px; align-items: start; } }
.profile-card { text-align: center; }
.avatar { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; background: var(--gradient); color: #fff; font: 600 28px var(--font-display); }
.profile-card h2 { font-size: 20px; }
.profile-card .verified { margin-top: 6px; }
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--gray-100); margin-bottom: 18px; width: max-content; max-width: 100%; }
.tabs a { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--gray-600); }
.tabs a.is-active { background: var(--white); color: var(--brand-ink); box-shadow: var(--shadow-sm); }

.orders { display: grid; gap: 14px; }
.order { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.order summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 20px; }
.order summary::-webkit-details-marker { display: none; }
.order__no { font-weight: 700; color: var(--gray-800); }
.order__meta { font-size: 13px; color: var(--gray-500); }
.order__total { font-weight: 700; text-align: right; }
.order[open] summary { border-bottom: 1px solid var(--gray-200); background: var(--gray-50); }
.order__body { padding: 16px 20px; display: grid; gap: 8px; font-size: 14px; }
.order__line { display: flex; justify-content: space-between; gap: 12px; color: var(--gray-600); }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--info { background: var(--info-bg); color: var(--info); }
.status--warning { background: var(--warning-bg); color: var(--warning); }
.status--accent { background: var(--accent-bg); color: var(--accent); }
.status--success { background: var(--success-bg); color: var(--success); }
.status--danger { background: var(--danger-bg); color: var(--danger); }

/* ---------- Order confirmation ---------- */
.confirm { max-width: 640px; margin: 0 auto; padding-block: 40px 72px; text-align: center; }
.confirm__icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: var(--success-bg); color: var(--success); animation: pop .5s var(--ease); }
.confirm__icon .icon { width: 42px; height: 42px; stroke-width: 2.4; }
.confirm .lead { margin: 10px auto 0; max-width: 46ch; }
.confirm .card { text-align: left; margin-top: 28px; }
.confirm__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 56px 20px; }
.empty-state__icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.empty-state__icon .icon { width: 34px; height: 34px; }
.empty-state h2 { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.empty-state p { color: var(--gray-500); margin: 8px auto 22px; max-width: 40ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-800); color: var(--gray-400); margin-top: 40px; }
.site-footer__grid { display: grid; gap: 32px; padding-top: 52px; padding-bottom: 40px; grid-template-columns: 1fr 1fr; }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .site-footer__brand { grid-column: auto; } }
.site-footer__brand p { margin: 16px 0 20px; max-width: 34ch; color: var(--gray-400); }
.site-footer h3 { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.site-footer h3::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--gradient-btn); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 8px; align-items: center; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: var(--gray-400); }
.site-footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }

/* ---------- Location gate ---------- */
.gate {
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
    background: radial-gradient(90% 60% at 50% 0%, var(--brand-50), var(--gray-50) 70%);
}
.gate__card { width: min(440px, 100%); background: var(--white); border: 1px solid var(--gray-200); border-radius: 28px; box-shadow: var(--shadow); padding: 32px 24px 26px; text-align: center; }
@media (min-width: 520px) { .gate__card { padding: 40px 40px 30px; } }
.gate__logo { width: 64px; height: auto; margin: 0 auto 22px; border-radius: 6px; }
.gate__pulse { position: relative; display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand-50); color: var(--brand); }
.gate__pulse .icon { width: 34px; height: 34px; position: relative; }
.gate__pulse span { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand); animation: ripple 1.8s var(--ease) infinite; }
body[data-gate-view="denied"] .gate__pulse, body[data-gate-view="unavailable"] .gate__pulse,
body[data-gate-view="insecure"] .gate__pulse, body[data-gate-view="unsupported"] .gate__pulse { background: var(--danger-bg); color: var(--danger); }
body[data-gate-view="denied"] .gate__pulse span, body[data-gate-view="unavailable"] .gate__pulse span,
body[data-gate-view="insecure"] .gate__pulse span, body[data-gate-view="unsupported"] .gate__pulse span { display: none; }
.gate h1 { font-family: var(--font-display); font-size: 27px; font-weight: 600; margin-bottom: 10px; }
.gate p { color: var(--gray-600); }
.gate .btn { margin-top: 22px; }
.gate__status { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--brand-ink) !important; }
.gate__help { list-style: none; margin: 18px 0 0; padding: 14px 16px; display: grid; gap: 10px; text-align: left; font-size: 13px; color: var(--gray-600); background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); }
.gate__help .icon { vertical-align: -2px; }
.gate__help li.is-current { order: -1; padding: 10px 12px; margin: -4px -6px 2px; border: 1px solid var(--brand); border-radius: 12px; background: var(--white); color: var(--gray-800); font-size: 14px; }
.gate__note { margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: var(--warning-bg); color: var(--warning) !important; font-size: 13px; font-weight: 600; }
.gate__note.is-shake { animation: shake .35s; }
/* Address book (checkout picker + account) */
.addr-pick { display: grid; gap: 10px; margin-bottom: 12px; }
@media (min-width: 640px) { .addr-pick { grid-template-columns: 1fr 1fr; } }
.addr-option { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--gray-200); border-radius: 14px; background: var(--white); cursor: pointer; transition: border-color .15s, background .15s; }
.addr-option:hover { border-color: var(--brand); }
.addr-option.is-selected { border-color: var(--brand); background: var(--brand-50); }
.addr-option input { margin-top: 3px; accent-color: var(--brand); }
.addr-option__body { display: grid; gap: 2px; min-width: 0; font-size: 14px; }
.addr-option__body strong { font-weight: 600; overflow-wrap: anywhere; }
.addr-option__body span { color: var(--gray-600); overflow-wrap: anywhere; }
.addr-option--new .addr-option__body strong { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); }
.addr-hint { margin: 0 0 14px; }
.addr-hint .icon { vertical-align: -2px; }
.addr-hint a { color: var(--brand-ink); font-weight: 600; margin-left: 4px; }
.addr-list { display: grid; gap: 12px; }
.addr-card { padding: 16px 18px; }
.addr-card__head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.addr-card__text strong { display: block; }
.addr-card__text span { color: var(--gray-600); font-size: 14px; }
.addr-card__actions { display: flex; gap: 6px; flex: none; }
.addr-card details > summary { list-style: none; cursor: pointer; }
.addr-card details > summary::-webkit-details-marker { display: none; }
.addr-card details[open] > summary { display: none; }
.addr-card form.addr-edit { margin-top: 14px; }

/* Checkout: address suggested from the location */
.geo-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--brand-50); color: var(--brand-ink); font-size: 14px; }
.geo-note .icon { flex: none; margin-top: 2px; color: var(--brand); }
.geo-note .link-btn { font-weight: 600; text-decoration: underline; }
.geo-note__credit { display: block; margin-top: 4px; color: var(--gray-500); font-size: 11px; }
.input.is-geo { background: var(--brand-50); border-color: var(--brand); }

.gate__note.is-calm { background: var(--brand-50); color: var(--brand-ink) !important; font-weight: 500; }

/* Map picker (computers / imprecise phones) */
.gate__map { height: 300px; margin: 18px -8px 0; border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden; z-index: 0; }
@media (min-width: 520px) { .gate__map { height: 300px; margin: 18px 0 0; } }
body[data-gate-view="pick"] .gate__logo { display: none; }   /* keep "Deliver here" above the fold on laptops */
.gate__area { margin-top: 12px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; text-align: left; }
.gate__area.is-local { background: #e8f5ec; color: #1e6b3a !important; }
.gate__area.is-national { background: var(--brand-50); color: var(--brand-ink) !important; }
.gate__area.is-out { background: var(--danger-bg); color: var(--danger) !important; }
.gate .gate__locate { margin-top: 10px; }
.gate__pin span { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    background: var(--gradient-btn); border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .35); }
.gate__pin span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
body[data-gate-view="pick"] .gate__pulse { display: none; }
.gate__fine { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; font-size: 12px; color: var(--gray-500) !important; }
.gate__help-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--brand-ink); }

/* ---------- Install banner ---------- */
.install-banner {
    position: fixed; z-index: 70; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px;
    max-width: 520px; margin: 0 auto; padding: 12px 10px 12px 12px;
    background: var(--white); border: 1px solid var(--gray-200); border-radius: 20px; box-shadow: var(--shadow-lg);
    animation: toast-in .4s var(--ease);
}
.install-banner img { width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--gray-200); flex: none; }
.install-banner__text { flex: 1; display: flex; flex-direction: column; font-size: 13px; line-height: 1.4; color: var(--gray-600); min-width: 0; }
.install-banner__text strong { font-size: 15px; color: var(--gray-800); }
.install-banner__text .icon { vertical-align: -2px; }
.link-btn--light { color: var(--brand-2); display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Push notification card ---------- */
.push-card { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gray-200); text-align: left; }
.push-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); flex: none; }
.push-card[data-state="on"] .push-card__icon { background: var(--success-bg); color: var(--success); }
.push-card__body { flex: 1; min-width: 180px; }
.push-card__body strong { display: block; color: var(--gray-800); }
.push-card__body p { font-size: 13px; color: var(--gray-600); }
.push-card[data-state="loading"] .btn { visibility: hidden; }

/* ==========================================================================
   Native app layer
   ========================================================================== */

/* ---------- Touch feel ---------- */
html { -webkit-tap-highlight-color: transparent; }
a, button, input, label, select, summary, [role="button"] { touch-action: manipulation; }
img { -webkit-user-drag: none; }
.btn:active { transform: scale(.97); }
.icon-btn:active { transform: scale(.9); }
.product-card:active { transform: scale(.985); }
.cat-card:active { transform: scale(.98); }
.cat-card, .tabbar__item .icon { transition: transform .15s var(--ease); }

@media (display-mode: standalone) {
    body { overscroll-behavior-y: none; -webkit-user-select: none; user-select: none; }
    input, textarea, p, li, td, .pdp__desc, .sheet-desc { -webkit-user-select: text; user-select: text; }
    img { -webkit-touch-callout: none; }
}

.site-header { padding-top: env(safe-area-inset-top); }
@media (max-width: 767px) { .topbar { display: none; } }

/* Smooth cross-page transitions (Chrome/Edge/Safari 18+). */
@view-transition { navigation: auto; }
.site-header { view-transition-name: kw-header; }
.tabbar { view-transition-name: kw-tabbar; }
::view-transition-old(root) { animation: vt-out .16s ease both; }
::view-transition-new(root) { animation: vt-in .24s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Space reserved for bottom UI ---------- */
:root { --tabbar-h: 0px; --cartbar-h: 0px; }
@media (max-width: 1023px) {
    body.has-tabbar { --tabbar-h: calc(64px + env(safe-area-inset-bottom)); }
    body.has-cartbar.cart-has-items { --cartbar-h: 66px; }
}
body { padding-bottom: calc(var(--tabbar-h) + var(--cartbar-h)); }
.toasts { z-index: 95; bottom: calc(var(--tabbar-h) + var(--cartbar-h) + 14px); }
.install-banner { bottom: calc(var(--tabbar-h) + var(--cartbar-h) + 12px); }

/* ---------- Tab bar ---------- */
.tabbar {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(4, 1fr);
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -8px 24px -16px rgba(17, 24, 39, .25);
}
@media (min-width: 1024px) { .tabbar { display: none; } }
.tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--gray-500); }
.tabbar__item .icon { width: 23px; height: 23px; }
.tabbar__item.is-active { color: var(--brand); }
.tabbar__item.is-active::before { content: ""; position: absolute; top: 0; width: 30px; height: 3px; border-radius: 0 0 4px 4px; background: var(--gradient-btn); }
.tabbar__item:active .icon { transform: scale(.86); }
.tabbar__icon { position: relative; display: inline-flex; }
.tabbar .badge-count { top: -7px; right: -13px; background: var(--brand); color: #fff; box-shadow: 0 0 0 2px #fff; }

/* ---------- Floating cart bar ---------- */
.cart-bar {
    position: fixed; z-index: 44; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + 10px);
    display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px 0 9px;
    border-radius: 18px; background: var(--gradient-btn); color: #fff; font-weight: 600;
    box-shadow: 0 14px 30px -12px rgba(229, 86, 0, .85);
    animation: toast-in .3s var(--ease);
}
.cart-bar__count { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 12px; background: rgba(255, 255, 255, .22); font-weight: 800; }
.cart-bar__label { flex: 1; }
.cart-bar strong { font-size: 16px; }
.cart-bar.bump { animation: bump .35s var(--ease); }
@media (min-width: 1024px) { .cart-bar { display: none !important; } }

/* ---------- Card quantity stepper (food-app style) ---------- */
.stepper {
    display: inline-flex; align-items: center; height: 40px; border-radius: 999px;
    background: var(--gradient-btn); color: #fff; box-shadow: 0 4px 12px -6px rgba(254, 97, 4, .8);
}
.stepper button { display: grid; place-items: center; width: 34px; height: 100%; padding: 0; border: 0; border-radius: 999px; background: none; color: #fff; cursor: pointer; }
.stepper button:active { background: rgba(255, 255, 255, .22); }
.stepper span { min-width: 18px; text-align: center; font-weight: 800; font-size: 14px; }
.card-cart { flex: none; }

/* ---------- Product bottom sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; transition: visibility 0s linear .42s; }  /* stays visible while it slides out */
.sheet.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(17, 24, 39, .55); opacity: 0; transition: opacity .3s var(--ease); }
.sheet.is-open .sheet__backdrop { opacity: var(--sheet-fade, 1); }
.sheet__panel {
    position: absolute; left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column;
    max-height: calc(100dvh - 36px - env(safe-area-inset-top));
    background: #fff; border-radius: 26px 26px 0 0; outline: none;
    box-shadow: 0 -24px 60px -20px rgba(17, 24, 39, .45);
    transform: translateY(105%); transition: transform .4s cubic-bezier(.2, .85, .25, 1);
    will-change: transform;
}
.sheet.is-open .sheet__panel { transform: translateY(var(--sheet-drag, 0px)); }
.sheet.is-dragging .sheet__panel, .sheet.is-dragging .sheet__backdrop { transition: none; }
.sheet__grip { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 28px; display: grid; place-items: center; cursor: grab; touch-action: none; }
.sheet__grip span { width: 44px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 6px rgba(17, 24, 39, .35); }
.sheet__close { position: absolute; z-index: 3; top: 14px; right: 14px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--gray-800); box-shadow: 0 2px 10px rgba(17, 24, 39, .2); cursor: pointer; }
.sheet__close:active { transform: scale(.9); }
.sheet__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; border-radius: 26px 26px 0 0; -webkit-overflow-scrolling: touch; }
.sheet__foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gray-200); background: #fff; }
.sheet__foot .btn { flex: 1; }
.sheet__foot .qty { height: 52px; flex: none; }
body.has-sheet { overflow: hidden; }

.sheet-gallery { position: relative; background: var(--brand-50); }
.sheet-gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1 / .92; }
.sheet-gallery__track::-webkit-scrollbar { display: none; }
.sheet-gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.sheet-gallery__dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.sheet-gallery__dots span { width: 7px; height: 7px; border-radius: 7px; background: rgba(255, 255, 255, .6); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: width .3s var(--ease), background .3s; }
.sheet-gallery__dots span.is-active { width: 20px; background: #fff; }
.sheet-info { padding: 20px 20px 6px; }
.sheet-info h2 { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin: 6px 0 10px; }
.sheet-info .price--lg .price__now { font-size: 24px; }
.sheet-desc { color: var(--gray-600); margin-top: 14px; font-size: 15px; }
.sheet-desc p + p { margin-top: 8px; }
.sheet-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sheet-pills span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--gray-100); font-size: 12px; font-weight: 600; color: var(--gray-700); }
.sheet-pills .icon { color: var(--brand); }
.sheet-incart { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: 13px; font-weight: 600; }
.sheet-related { padding: 18px 0 22px; }
.sheet-related h3 { font-size: 16px; padding: 0 20px; margin-bottom: 12px; }
.sheet-related__track { display: flex; gap: 12px; overflow-x: auto; padding: 2px 20px 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.sheet-related__track::-webkit-scrollbar { display: none; }
.mini-card { flex: 0 0 142px; scroll-snap-align: start; border: 1px solid var(--gray-200); border-radius: 16px; overflow: hidden; background: #fff; }
.mini-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--brand-50); }
.mini-card__body { padding: 8px 10px 10px; }
.mini-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; font-weight: 600; line-height: 1.3; min-height: 34px; }
.mini-card__price { font-size: 13px; font-weight: 700; color: var(--gray-900); margin-top: 4px; }
.skeleton { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

@media (min-width: 900px) {
    .sheet__panel {
        left: 50%; right: auto; top: 50%; bottom: auto;
        width: min(980px, calc(100vw - 48px)); max-height: min(88vh, 760px);
        border-radius: 26px; opacity: 0;
        transform: translate(-50%, -46%) scale(.97);
        transition: transform .32s var(--ease), opacity .25s var(--ease);
    }
    .sheet.is-open .sheet__panel { transform: translate(-50%, -50%); opacity: 1; }
    .sheet__grip { display: none; }
    .sheet-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
    .sheet-gallery { position: sticky; top: 0; }
    .sheet-gallery__track { aspect-ratio: 1; }
    .sheet-info { padding: 32px 32px 10px; }
    .sheet-info h2 { font-size: 32px; }
    .sheet__foot { padding: 14px 24px; }
    .sheet-related { border-top: 1px solid var(--gray-200); }
}

/* ---------- Sticky checkout bars (phones) ---------- */
.sticky-cta { display: none; }
@media (max-width: 959px) {
    .sticky-cta {
        position: fixed; z-index: 44; left: 0; right: 0; bottom: var(--tabbar-h);
        display: flex; align-items: center; gap: 14px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, .97); border-top: 1px solid var(--gray-200);
        box-shadow: 0 -10px 24px -18px rgba(17, 24, 39, .35);
    }
    body.has-tabbar .sticky-cta { padding-bottom: 12px; }
    .sticky-cta__total { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
    .sticky-cta__total span { font-size: 12px; color: var(--gray-500); }
    .sticky-cta__total strong { font-size: 19px; color: var(--gray-900); }
    body:has(.sticky-cta) { padding-bottom: calc(var(--tabbar-h) + 86px + env(safe-area-inset-bottom)); }
    .summary { position: static; }
}

/* Product page buy box stays reachable on phones. */
@media (max-width: 899px) {
    .pdp__buy {
        position: sticky; z-index: 5; bottom: calc(var(--tabbar-h) + var(--cartbar-h) + 10px);
        padding: 10px; margin-inline: -6px; border-radius: 22px;
        background: rgba(255, 255, 255, .97); box-shadow: 0 10px 30px -12px rgba(17, 24, 39, .3);
    }
}

/* ---------- Pull to refresh (installed app) ---------- */
.ptr {
    position: fixed; z-index: 41; left: 50%; top: calc(var(--header-h) + env(safe-area-inset-top));
    display: grid; place-items: center; width: 40px; height: 40px; margin-left: -20px;
    border-radius: 50%; background: #fff; color: var(--brand); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-48px); pointer-events: none;
    transition: transform .25s var(--ease), opacity .2s;
}
.ptr.is-pulling { opacity: 1; transition: none; transform: translateY(calc(var(--ptr-y, 0px) - 40px)) rotate(var(--ptr-rot, 0deg)); }
.ptr.is-ready { background: var(--brand); color: #fff; }
.ptr.is-refreshing { opacity: 1; transform: translateY(16px); background: var(--brand); color: #fff; }
.ptr.is-refreshing .icon { animation: spin .7s linear infinite; }

/* ---------- Offline banner ---------- */
.netbar {
    position: fixed; z-index: 96; left: 50%; top: calc(env(safe-area-inset-top) + 10px); transform: translateX(-50%);
    display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px);
    padding: 8px 14px; border-radius: 999px; background: var(--gray-900); color: #fff;
    font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); animation: toast-in .3s var(--ease);
}
.netbar .icon { color: var(--brand-2); }

/* ---------- Animations ---------- */
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 50% { transform: scale(1.35); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 400px) {
    .brand__text strong { font-size: 19px; }
    .brand__text small { font-size: 9.5px; letter-spacing: .1em; }
    .brand img { height: 40px; }
}

/* Toasts stack above the install banner while it is showing. */
body.has-install-banner .toasts { bottom: calc(var(--tabbar-h) + var(--cartbar-h) + 96px); }

/* ---------- Search screen ---------- */
.search-overlay {
    position: fixed; inset: 0; z-index: 85;
    display: flex; flex-direction: column; background: var(--gray-50);
    visibility: hidden; pointer-events: none; opacity: 0; transform: translateY(16px);
    transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.search-overlay.is-open { visibility: visible; pointer-events: auto; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s; }
.search-overlay__bar { display: flex; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top)) 12px 12px 6px; background: var(--gradient); box-shadow: 0 4px 14px -6px rgba(229, 86, 0, .55); }
.search-overlay__bar .icon-btn { color: #fff; }
.search-overlay__bar .icon-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.search-overlay__field { position: relative; flex: 1; display: flex; align-items: center; height: 46px; background: #fff; border-radius: 999px; box-shadow: 0 2px 8px rgba(17, 24, 39, .12); }
.search-overlay__field > .icon { position: absolute; left: 14px; color: var(--gray-400); pointer-events: none; }
.search-overlay__field input { flex: 1; min-width: 0; height: 100%; padding: 0 46px 0 42px; border: 0; outline: none; background: transparent; font-size: 16px; }
.search-overlay__field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-overlay__clear { position: absolute; right: 6px; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--gray-100); color: var(--gray-600); cursor: pointer; }
.search-overlay__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); }
.search-overlay__body > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.search-section-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 10px; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.search-results { list-style: none; margin: 0 0 18px; padding: 0; background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden; }
.search-result { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--gray-100); }
.search-results li:last-child .search-result { border-bottom: 0; }
.search-result:active, .search-result:hover { background: var(--brand-50); }
.search-result img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; background: var(--brand-50); }
.search-result__name { display: block; font-weight: 600; line-height: 1.3; color: var(--gray-800); }
.search-overlay mark { background: none; color: var(--brand-ink); font-weight: 800; }
.search-result__cat { font-size: 12px; color: var(--gray-500); }
.search-result__price { font-size: 14px; font-weight: 700; color: var(--gray-900); }
.search-all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px; border-radius: var(--radius); background: #fff; border: 1px solid var(--gray-200); font-weight: 600; color: var(--brand-ink); }
.search-empty { text-align: center; padding: 36px 12px; color: var(--gray-500); }
.search-empty .icon { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--brand-200); }
body.has-search { overflow: hidden; }

/* Closing accelerates away (enter decelerates, exit accelerates — as in native apps). */
.sheet:not(.is-open) .sheet__panel { transition-duration: .3s; transition-timing-function: cubic-bezier(.4, 0, .9, .5); }
.drawer:not(.is-open) .drawer__panel { transition-duration: .28s; transition-timing-function: cubic-bezier(.4, 0, .9, .5); }
