/* =========================================================================
   Hooks storefront — premium H&R theme (mobile-first, ~460px centered).
   Brand tokens at :root; gradient reserved for wordmark, hero, primary + heart.
   ========================================================================= */
:root {
    --cream: #f6f2ea;
    --surface: #ffffff;
    --rose: #fbeef3;
    --ink: #2a2028;
    --ink-2: #6a5f66;
    --muted: #a89ba3;
    --line: #efe7dc;
    --magenta: #a8306e;
    --pink: #e0518f;
    --coral: #f4a09e;
    --grad: linear-gradient(120deg, #a8306e 0%, #d6478a 45%, #f4a09e 100%);
    --gold: #e0a63c;
    --whatsapp: #25d366;

    --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-script: "Dancing Script", "Segoe Script", cursive;

    --app-w: 460px;
    --radius: 20px;
    --radius-sm: 14px;
    --header-h: 68px;
    --nav-h: 64px;
    --shadow-sm: 0 1px 2px rgba(42, 32, 40, .05);
    --shadow: 0 6px 18px rgba(42, 32, 40, .08);
    --shadow-lg: 0 14px 34px rgba(168, 48, 110, .22);
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-ui);
    color: var(--ink);
    background: #e9e2d6;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta); text-decoration: none; }
button { font: inherit; color: inherit; }

/* Centered phone-width app column */
.app {
    position: relative;
    max-width: var(--app-w);
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--cream);
    box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(42, 32, 40, .12);
}

/* Accessibility */
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: 10px 14px; }
.skip-link:focus { left: 0; }

/* ---- Header ------------------------------------------------------------ */
.site-header {
    position: sticky; top: 0; z-index: 20;
    /* Grow into the device safe area (notch/status bar) so the brand row is
       never clipped when the PWA draws edge-to-edge (viewport-fit=cover). */
    height: calc(var(--header-h) + var(--safe-top));
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--safe-top) 16px 0;
    background: color-mix(in srgb, var(--cream) 90%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1; min-width: 0; }
.brand-script { font-family: var(--font-script); font-weight: 700; font-size: 22px; color: var(--pink); margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-logo { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; display: block; flex: none; box-shadow: 0 1px 4px rgba(42, 32, 40, .12); }
/* Narrowest phones: scale the lockup slightly so search/cart never crowd. */
@media (max-width: 389px) {
    .brand-logo { width: 46px; height: 46px; border-radius: 12px; }
    .brand-script { font-size: 18px; }
}
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--surface);
    display: grid; place-items: center; color: var(--ink); box-shadow: var(--shadow-sm); position: relative;
    cursor: pointer;
}
.icon-btn:hover { color: var(--magenta); }
.cart-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--grad); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700;
    display: grid; place-items: center; box-shadow: var(--shadow-sm);
}

/* ---- Main / spacing ---------------------------------------------------- */
#main { padding: 16px 16px calc(var(--nav-h) + var(--safe-bottom) + 20px); }

/* ---- Hero -------------------------------------------------------------- */
/* Full-bleed hero: spans the app edge-to-edge, flush under the header
   (cancels #main's 16px gutters + top padding); content stays inset. */
.hero { margin: -16px -16px 18px; }
/* When the promo bar precedes it, the hero must not pull up underneath. */
.promo-bar:not([hidden]) ~ .hero { margin-top: 0; }

.hero__card {
    position: relative; overflow: hidden;
    border-radius: 0 0 var(--radius) var(--radius); padding: 26px 22px 30px;
    background: var(--grad); color: #fff; box-shadow: var(--shadow-lg);
    animation: heroIn .7s cubic-bezier(.2, .7, .2, 1) both;
}
.hero__card::after {
    content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px;
    background: rgba(255, 255, 255, .16); border-radius: 50%;
}
.hero__title { font-family: var(--font-script); font-weight: 700; font-size: 34px; margin: 0 0 6px; letter-spacing: 0; line-height: 1.1; }
.hero__sub { margin: 0 0 16px; font-size: 14px; opacity: .92; max-width: 80%; }
.hero__cta {
    display: inline-block; background: #fff; color: var(--magenta); font-weight: 700; font-size: 14px;
    padding: 10px 22px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero__cta:hover { text-decoration: none; transform: translateY(-1px); }
.hero__dots { display: flex; gap: 6px; margin-top: 18px; width: fit-content; }
.hero__dots .dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.hero__dots .dot.is-active { width: 20px; border-radius: 999px; background: #fff; }

/* ---- Search bar -------------------------------------------------------- */
.searchbar {
    display: flex; align-items: center; gap: 8px; background: var(--surface);
    border: 1px solid var(--line); border-radius: 16px; padding: 6px 6px 6px 14px; margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.searchbar:focus-within { border-color: var(--pink); }
.searchbar__ic { color: var(--muted); display: grid; place-items: center; }
.searchbar input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; }
.searchbar__filter {
    width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--grad); color: #fff;
    display: grid; place-items: center; cursor: pointer; flex: none;
}

/* ---- Category bubbles -------------------------------------------------- */
.bubbles {
    display: flex; gap: 14px; overflow-x: auto; padding: 2px 0 12px; margin: 0 -16px 8px; padding-left: 16px; padding-right: 16px;
    scrollbar-width: none; scroll-snap-type: x proximity;
    scroll-snap-type: x proximity; scroll-behavior: smooth;
}
.bubbles::-webkit-scrollbar { display: none; }
.bubble { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; scroll-snap-align: start; }
.bubble:hover { text-decoration: none; }
.bubble__circle {
    width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
    /* Saved tile colour (categories.color, set inline as --tile-bg). */
    background: var(--tile-bg, #EDE3EF);
    border: 1px solid color-mix(in srgb, var(--ink) 10%, var(--tile-bg, #EDE3EF));
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease;
}
.bubble__emoji { font-size: 26px; line-height: 1; }
.bubble__label { font-size: 11.5px; color: var(--ink-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bubble:active .bubble__circle { transform: scale(.94); }
.bubble.is-active .bubble__circle { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.bubble.is-active .bubble__label { color: var(--magenta); font-weight: 600; }

/* ---- Section header ---------------------------------------------------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 2px 12px; }
.sec-head__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0; letter-spacing: -.01em; }
.sec-head__count { font-size: 12px; color: var(--muted); }

/* ---- Product grid + cards --------------------------------------------- */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.pcard {
    position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.pcard__link { color: inherit; display: block; }
.pcard__link:hover { text-decoration: none; }
.pcard__media { position: relative; aspect-ratio: 1 / 1; background: var(--rose); overflow: hidden; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; }
.pcard__ph { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 30px; color: var(--coral); }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 8px; font-size: 11px; font-weight: 700; color: #fff; }
.badge-out { background: rgba(42, 32, 40, .78); }

.pcard__body { padding: 11px 12px 14px; }
.pcard__price { margin: 0 0 3px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--magenta); }
.pcard__price .from { font-family: var(--font-ui); font-weight: 500; font-size: 11px; color: var(--muted); }
.pcard__name { margin: 0 0 6px; font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }

.heart {
    position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .86); backdrop-filter: blur(4px); color: var(--muted);
    display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm);
    transition: transform .12s ease, color .12s ease;
}
.heart:hover { color: var(--pink); }
.heart:active { transform: scale(.86); }
.heart.is-on { color: var(--pink); }
.heart.is-on svg { animation: pop .3s ease; }

.add-btn {
    position: absolute; bottom: 12px; right: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0;
    background: var(--grad); color: #fff; display: grid; place-items: center; cursor: pointer;
    box-shadow: var(--shadow-lg); transition: transform .12s ease; z-index: 2;
}
.add-btn:hover { transform: translateY(-1px); }
.add-btn:active { transform: scale(.88); }

/* Card entrance (JS-gated so no-JS shows everything) + image float + shimmer */
.js .pcard { opacity: 0; transform: translateY(16px); }
.js .pcard.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 55ms); }
@media (prefers-reduced-motion: no-preference) {
    .pcard.in .pcard__img { animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.7s); }
    .pcard__media::before {
        content: ""; position: absolute; inset: 0; z-index: 1;
        background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%);
        background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite;
    }
    .pcard__media.loaded::before { display: none; }
}
.pcard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(42, 32, 40, .14); }

/* ---- Trust row --------------------------------------------------------- */
.trust {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 8px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 8px; box-shadow: var(--shadow-sm);
}
.trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; }
.trust__ic { width: 40px; height: 40px; border-radius: 12px; background: var(--rose); color: var(--magenta); display: grid; place-items: center; margin-bottom: 4px; }
.trust__t { font-size: 12.5px; font-weight: 600; }
.trust__s { font-size: 11px; }

/* ---- Help / contact block --------------------------------------------- */
.help { margin: 22px 0 6px; text-align: center; background: var(--rose); border-radius: var(--radius); padding: 22px 18px; }
.help__title { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 0 0 4px; }
.help__sub { margin: 0 0 14px; font-size: 13px; }
.help__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.colophon { text-align: center; margin: 16px 0 6px; }

/* ---- Bottom nav -------------------------------------------------------- */
.bottom-nav {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 25;
    width: min(100%, var(--app-w)); height: calc(var(--nav-h) + var(--safe-bottom));
    padding-bottom: var(--safe-bottom);
    display: flex; align-items: stretch; justify-content: space-around;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line);
}
.nav-item {
    flex: 1; border: 0; background: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); font-size: 10.5px; font-weight: 500;
}
.nav-item svg { width: 22px; height: 22px; }
.nav-item:hover { color: var(--ink-2); }
.nav-item.is-active { color: var(--magenta); }
.nav-item.is-active svg { filter: drop-shadow(0 2px 6px rgba(168, 48, 110, .3)); }

/* ---- Toast ------------------------------------------------------------- */
.toast {
    position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px); transform: translateX(-50%) translateY(8px);
    z-index: 40; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500;
    padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- Buttons (shared across pages) ------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 14px; border: 0; cursor: pointer; font-size: 15px; font-weight: 600; font-family: inherit;
}
.btn:hover { text-decoration: none; filter: brightness(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; filter: none; }
.btn:active { transform: scale(.98); }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-whatsapp { background: var(--whatsapp); color: #06331a; }
.btn-instagram { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); color: #fff; }

/* ---- Generic content bits (cart / checkout / product / confirm) ------- */
.page-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 8px 0 14px; letter-spacing: -.01em; }
.section-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin: 20px 0 10px; }
.empty { text-align: center; color: var(--ink-2); padding: 36px 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.crumbs { color: var(--muted); font-size: 13px; padding: 4px 0 0; }
.crumbs a { color: var(--ink-2); }

.pagination { display: flex; justify-content: center; padding: 18px 0 4px; }
.pagination nav > div { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination a, .pagination span { padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.pagination a:hover { text-decoration: none; border-color: var(--pink); }

/* Product detail */
.product { display: grid; gap: 18px; padding: 10px 0 20px; }
.gallery-main { background: var(--rose); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { list-style: none; display: flex; gap: 8px; padding: 10px 0 0; margin: 0; overflow-x: auto; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; }
.thumb img { width: 62px; height: 62px; object-fit: cover; }
.thumb.active { border-color: var(--magenta); }
.card-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.card-media-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--coral); font-family: var(--font-display); font-weight: 700; }
.card-media-placeholder.large { aspect-ratio: 1 / 1; font-size: 44px; }
.product-title { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 6px 0; letter-spacing: -.01em; }
.product-price { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--magenta); margin: 4px 0 12px; }
.product-desc { color: var(--ink-2); }
.picker { margin: 16px 0; }
.picker-row { margin-bottom: 12px; }
.picker-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { padding: 10px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-size: 15px; font-family: inherit; cursor: pointer; color: var(--ink); }
.option:hover:not(:disabled) { border-color: var(--magenta); }
.option:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.option-selected { background: var(--grad); color: #fff; border-color: transparent; }
.picker-hint { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.qty-row { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.qty-row input { width: 84px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; }
.add-feedback { color: var(--magenta); font-weight: 600; margin: 10px 0 0; }

/* Cart / checkout */
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line-main { flex: 1; }
.cart-line-name { font-weight: 600; }
.cart-line-opt { color: var(--muted); font-size: 13px; }
.cart-line-price { font-family: var(--font-display); font-weight: 600; color: var(--magenta); white-space: nowrap; }
.cart-line .qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cart-line .qty button { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-size: 18px; cursor: pointer; }
.cart-line .qty span { min-width: 22px; text-align: center; }
.cart-line .remove { background: none; border: 0; color: #b3261e; cursor: pointer; font-size: 13px; padding: 4px; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 20px; }
.cart-total-row strong { font-family: var(--font-display); color: var(--magenta); }

.order-form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field > span { font-size: 14px; font-weight: 600; }
.field em { color: #b3261e; font-style: normal; }
.field input, .field textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font-size: 16px; font-family: inherit; background: var(--surface); }
.field input:focus, .field textarea:focus { border-color: var(--pink); outline: none; }
.field-hint { display: block; margin-top: 2px; }
.form-error { color: #b3261e; font-weight: 600; }

/* Guest-first checkout chooser: guest primary, account options optional */
.checkout-choose { display: grid; gap: 10px; margin-top: 4px; }
.checkout-choose .btn + .btn { margin-top: 0; }
.checkout-choose__hint { text-align: center; margin: 2px 0 6px; }
.checkout-choose__or {
    display: flex; align-items: center; gap: 12px;
    color: var(--muted); font-size: 13px; margin: 6px 0;
}
.checkout-choose__or::before, .checkout-choose__or::after {
    content: ""; flex: 1; height: 1px; background: var(--line);
}

/* Fixed save/pay bar */
.save-bar {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 26; width: min(100%, var(--app-w));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(42, 32, 40, .1);
    padding: 10px 16px calc(10px + var(--safe-bottom));
}
.save-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.save-bar__total { font-size: 15px; }
.save-bar__total strong { font-family: var(--font-display); color: var(--magenta); font-size: 18px; }
.save-bar .btn { flex: 0 0 auto; }
/* When a save/pay bar is showing, it replaces the bottom nav as the action. */
body:has(.save-bar:not([hidden])) .bottom-nav { display: none; }
body:has(.save-bar:not([hidden])) #main { padding-bottom: 92px; }

/* Confirmation / retry */
.confirm { text-align: center; padding: 20px 0 30px; }
.confirm__icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; font-size: 34px; font-weight: 700; background: rgba(31, 157, 85, .12); color: #1f9d55; }
.confirm__icon--warn { background: rgba(179, 38, 30, .12); color: #b3261e; }
.confirm__ref { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.confirm .btn-block { margin-top: 12px; }
.cart-lines--readonly .cart-line { padding: 10px 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .js .pcard { opacity: 1; transform: none; }
}

/* ---- Ratings & reviews ------------------------------------------------- */
.stars { display: inline-flex; gap: 1px; line-height: 0; }
.stars .star-on { color: var(--gold); }
.stars .star-off { color: #e4dccf; }
.rating { display: inline-flex; align-items: center; gap: 6px; }
.rating__meta { font-size: 11.5px; color: var(--ink-2); }
.product-rating { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.product-rating:hover { text-decoration: none; }
.product-rating .rating__meta { font-size: 13px; }

.reviews { margin-top: 8px; }
.reviews__summary { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.reviews__score { display: flex; align-items: center; gap: 8px; }
.reviews__avg { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--magenta); line-height: 1; }
.review-list { list-style: none; margin: 0 0 20px; padding: 0; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.review__head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.review__name { font-weight: 600; }
.review__body { margin: 4px 0; color: var(--ink-2); }
.review__date { display: block; }

.notice { padding: 12px 14px; border-radius: 12px; font-weight: 500; margin: 0 0 14px; }
.notice--ok { background: rgba(31, 157, 85, .12); color: #167a41; }

/* Star rating input (reverse-order sibling fill trick) */
.star-input { border: 0; padding: 0; margin: 4px 0; }
.star-input legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.star-input__row { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.star-input label { color: #e4dccf; cursor: pointer; padding: 2px; line-height: 0; transition: color .12s ease, transform .1s ease; }
.star-input label:active { transform: scale(.9); }
/* Selected: the checked input and all following (lower-value) labels fill. */
.star-input input:checked ~ label { color: var(--gold); }
/* While hovering the row, reset then preview from the hovered star down. */
.star-input__row:hover label { color: #e4dccf; }
.star-input__row label:hover,
.star-input__row label:hover ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 3px solid var(--magenta); outline-offset: 2px; border-radius: 4px; }

/* ---- Keyframes --------------------------------------------------------- */
@keyframes heroIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-6px) scale(1.015); } }
@keyframes shimmer { 0% { background-position: 180% 0; } 100% { background-position: -80% 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ==========================================================================
   Customer-account pages: password toggle, wishlist, orders, account
   ========================================================================== */

/* Password field with show/hide eye */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 46px; }
.pw-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    width: 36px; height: 36px; display: grid; place-items: center;
    border: 0; background: transparent; color: var(--muted); border-radius: 10px;
}
.pw-toggle:hover { color: var(--magenta); }
.pw-toggle:active { transform: translateY(-50%) scale(.92); }

/* Empty states */
.empty-state { text-align: center; padding: 34px 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-state__icon {
    width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in srgb, var(--magenta) 12%, #fff); color: var(--magenta); margin-bottom: 4px;
}
.empty-state__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0; }
.empty-state .btn { margin-top: 10px; min-width: 200px; }

/* Flash + panels (account) */
.flash-ok {
    background: color-mix(in srgb, var(--whatsapp) 14%, #fff); color: #0c6b34;
    border: 1px solid color-mix(in srgb, var(--whatsapp) 30%, var(--line));
    border-radius: 12px; padding: 11px 14px; font-weight: 600; margin: 4px 0 16px;
}
.panel {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow-sm); margin-bottom: 16px;
}
.panel .section-title { margin-top: 0; }
.account-logout { margin-top: 4px; }

/* Order status badges (shared): paid -> delivering -> delivered (+cancelled) */
.ostatus { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 11px; white-space: nowrap; }
.ostatus--paid { color: var(--ink-2); background: var(--rose); }
.ostatus--delivering { color: #2a5a97; background: #e7eef8; }
.ostatus--delivered { color: #1f7a48; background: #e6f4ec; }
.ostatus--cancelled { color: #b3261e; background: #fbe9ec; }

/* Orders list */
.orders { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.order-card {
    display: block; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow-sm);
    transition: transform .12s ease, box-shadow .12s ease;
}
.order-card:hover { text-decoration: none; box-shadow: var(--shadow); }
.order-card:active { transform: scale(.99); }
.order-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-card__id { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.order-card__meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.order-card__items { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.order-card__more { font-size: 13px; font-weight: 600; color: var(--magenta); }
.order-card__foot strong { font-family: var(--font-display); font-size: 17px; }

/* Order detail */
.back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.back-link:hover { color: var(--magenta); text-decoration: none; }
.order-detail__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.order-detail__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-status { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 11px; }
.pay-status--paid { color: #1f7a48; background: #e6f4ec; }
.pay-status--pending { color: #8a5a12; background: #fbf1e0; }
.pay-status--failed { color: #b3261e; background: #fbe9ec; }
.order-detail__info { margin: 12px 0 18px; }
.review-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 12.5px; font-weight: 600; color: var(--magenta); }
.review-link:hover { text-decoration: none; filter: brightness(.9); }

/* ---- Verified-purchase reviews ------------------------------------------ */
.review__verified {
    display: inline-block; margin: 2px 0 2px;
    font-size: 11px; font-weight: 700; color: #1f7a48; background: #e6f4ec;
    border-radius: 999px; padding: 2px 9px;
}
.review-done {
    display: inline-flex; align-items: center; margin-top: 7px;
    font-size: 12.5px; font-weight: 700; color: #1f7a48; background: #e6f4ec;
    border-radius: 999px; padding: 3px 11px;
}
.review-inline { margin-top: 7px; }
.review-inline > summary { list-style: none; cursor: pointer; }
.review-inline > summary::-webkit-details-marker { display: none; }
.review-inline__form {
    margin-top: 10px; padding: 12px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
}

/* ---- Order detail: delivery driver card ---- */
.order-driver {
    background: var(--surface, #fff); border: 1px solid var(--line, #efe7dc);
    border-radius: 12px; padding: 13px 15px; margin: 0 0 16px;
}
.order-driver__label { font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted, #a89ba3); }
.order-driver__name { font-weight: 700; font-size: 15px; margin-top: 3px; }
.order-driver__phone { font-size: 13.5px; color: var(--brand, #a8306e); text-decoration: none; }


/* ---- Promo bar (live discounts, above the hero) --------------------------
   Full-bleed under the header; per-discount slides; gentle breathing pulse
   (transform-only, scale 1 -> 1.015, disabled under prefers-reduced-motion).
   Identity: "golden hour" — amber-warmed surface + gold accent edge, so the
   bar reads as its own element between the cream page and the pink hero. */
.promo-bar {
    position: relative;
    display: flex; align-items: center; gap: 11px;
    margin: -16px -16px 14px;                 /* cancel #main gutters: edge to edge */
    padding: 13px 14px;
    background: linear-gradient(135deg, #fbecd2 0%, #fdf4e1 100%);
    border-bottom: 1px solid #f0dcb2;
    color: #7d2453;
    box-shadow: inset 3px 0 0 var(--gold), 0 2px 10px rgba(42, 32, 40, .06);
    transform-origin: 50% 0;                  /* grow downward: top edge stays flush */
    animation: promoPulse 2.8s ease-in-out infinite;
    will-change: transform;
}
.promo-bar.is-paused { animation-play-state: paused; }
@keyframes promoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
    .promo-bar { animation: none; }
}
.promo-bar__ic {
    flex: none; width: 36px; height: 36px; border-radius: 11px;
    display: grid; place-items: center;
    background: rgba(224, 166, 60, .2); color: #a9770f;
}
.promo-bar__track {
    flex: 1; min-width: 0; display: flex;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.promo-bar__track::-webkit-scrollbar { display: none; }
.promo-bar__slide { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.promo-bar__t { margin: 0; font-weight: 800; font-size: 14px; color: #5f1c40; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-bar__s { margin: 1px 0 0; font-size: 12px; color: #8a6a48; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-bar__dots { position: absolute; left: 61px; bottom: 4px; display: flex; gap: 3.5px; }
.promo-bar__dots i { width: 4px; height: 4px; border-radius: 50%; background: rgba(169, 119, 15, .28); transition: background .2s; }
.promo-bar__dots i.on { background: #b57f10; }
.promo-bar__cta {
    flex: none; background: var(--grad); color: #fff;
    font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 999px;
    white-space: nowrap;
}
.promo-bar__cta:hover { text-decoration: none; filter: brightness(1.05); }
.promo-bar__x {
    flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%;
    background: transparent; color: #bfa26c; font-size: 15px; line-height: 1; cursor: pointer;
}
.promo-bar__x:hover { background: rgba(169, 119, 15, .12); color: #7d2453; }
@media (min-width: 1024px) {
    /* Full-bleed across the app column; content stays in the centred zone. */
    .promo-bar { padding-left: clamp(26px, 6vw, 72px); padding-right: clamp(26px, 6vw, 72px); }
    .promo-bar__dots { left: calc(clamp(26px, 6vw, 72px) + 47px); }
}

/* ---- Rich announcement card (below the hero, above search) ---------------
   "Airy" layout, lavender-mauve identity: a soft violet-tinted surface with a
   delicate plum->violet top accent, so the card reads as its own element
   against the cream page (and never twins the amber promo bar). */
.announce-card {
    position: relative; margin: 0 0 16px;
    border-radius: var(--radius); overflow: hidden;
    color: #4d2455;
    background: linear-gradient(160deg, #f6eef9 0%, #fdfaff 70%);
    border: 1px solid #e8dcf0;
    box-shadow: 0 2px 12px rgba(74, 33, 96, .08);
    animation: announceIn .5s cubic-bezier(.2, .7, .2, 1) both;
}
/* The delicate top accent (clipped to the card radius by overflow:hidden). */
.announce-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, #a8306e, #8a5bb0);
}
@keyframes announceIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Bell with an attention dot + a one-time entrance wiggle (never looping). */
.announce-card__bell {
    position: absolute; top: 12px; left: 14px; z-index: 2;
    width: 30px; height: 30px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #a8306e, #8a5bb0); color: #fff;
    box-shadow: 0 3px 9px rgba(138, 91, 176, .35);
}
.announce-card__bell svg { animation: bellWiggle 1s ease .45s 1 both; transform-origin: 50% 3px; }
.announce-card__bell-dot {
    position: absolute; top: 3px; right: 3px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--gold); border: 2px solid #f6eef9;
}
@keyframes bellWiggle {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(13deg); }
    40% { transform: rotate(-11deg); }
    60% { transform: rotate(7deg); }
    80% { transform: rotate(-4deg); }
}
@media (prefers-reduced-motion: reduce) {
    .announce-card { animation: none; }
    .announce-card__bell svg { animation: none; }
}
.announce-card__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.announce-card__track::-webkit-scrollbar { display: none; }
.announce-card__slide {
    flex: 0 0 100%; scroll-snap-align: start;
    display: flex; align-items: center; gap: 15px;
    padding: 15px 40px 15px 54px; min-height: 104px;
}
.announce-card__body { flex: 1; min-width: 0; }
.announce-card__label {
    display: inline-block; font-size: 9.5px; font-weight: 800;
    letter-spacing: 1.3px; text-transform: uppercase;
    color: #7a4aa5; background: rgba(122, 74, 165, .1);
    padding: 3px 9px; border-radius: 999px; margin-bottom: 7px;
}
.announce-card__title {
    margin: 0; font-family: var(--font-display); font-weight: 600;
    font-size: 17px; line-height: 1.3; color: #4d2455;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.announce-card__date {
    display: inline-block; margin-top: 7px;
    font-size: 11px; font-weight: 700; color: #7d6a8a;
    background: rgba(125, 106, 138, .12);
    padding: 3px 9px; border-radius: 999px;
}
.announce-card__cta {
    display: inline-block; margin: 10px 8px 0 0;
    background: var(--grad); color: #fff;
    font-size: 12.5px; font-weight: 700; padding: 8px 17px; border-radius: 999px;
    box-shadow: 0 3px 10px rgba(168, 48, 110, .28);
}
.announce-card__cta:hover { text-decoration: none; filter: brightness(1.05); }
.announce-card__img {
    flex: none; width: 96px; height: 96px; object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(42, 32, 40, .16);
    /* Soft left fade so the photo melts into the card, not a pasted sticker. */
    -webkit-mask-image: linear-gradient(100deg, transparent 0, #000 16%);
    mask-image: linear-gradient(100deg, transparent 0, #000 16%);
}
@media (max-width: 359px) { .announce-card__img { display: none; } }
.announce-card__dots { position: absolute; left: 17px; bottom: 9px; display: flex; gap: 4px; }
.announce-card__dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(122, 74, 165, .25); transition: background .2s; }
.announce-card__dots i.on { background: #8a5bb0; }
.announce-card__x {
    position: absolute; top: 9px; right: 9px;
    width: 24px; height: 24px; border: 0; border-radius: 50%;
    background: rgba(122, 74, 165, .09); color: #7a4aa5;
    font-size: 15px; line-height: 1; cursor: pointer;
}
.announce-card__x:hover { background: rgba(122, 74, 165, .17); }

/* ---- Checkout check rows (gift, marketing consent) ------------------------- */
.check-row { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; padding: 11px 0; }
.check-row input { flex: none; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--magenta); }
.check-row span { font-size: 14px; line-height: 1.4; }
.check-row small { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 1px; }
.check-row--consent { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }

/* ---- Checkout delivery step ------------------------------------------------ */
.cart-total-row--sub { font-size: 13.5px; color: var(--ink-2); }
.cart-total-row--sub strong { font-weight: 600; }
.dm-choice { display: flex; gap: 10px; margin: 4px 0 14px; }
.dm-opt { flex: 1; cursor: pointer; }
.dm-opt input { position: absolute; opacity: 0; }
.dm-opt__card { display: block; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.dm-opt__card strong { display: block; font-size: 14px; }
.dm-opt__card small { color: var(--ink-2); font-size: 12px; }
.dm-opt input:checked + .dm-opt__card { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(168, 48, 110, .1); }
.dm-opt input:focus-visible + .dm-opt__card { outline: 2px solid var(--magenta); outline-offset: 2px; }
.loc-tabs { display: flex; gap: 8px; margin: 2px 0 12px; }
.loc-tab { flex: 1; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.loc-tab.is-on { border-color: var(--magenta); color: var(--magenta); background: rgba(168, 48, 110, .05); }
#map-canvas { height: 230px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
#map-pick { margin-bottom: 12px; }

/* ---- Order tracking (token page, no login) -------------------------------- */
.track { max-width: 560px; margin: 0 auto; }
.track-pay { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: #f1e6da; color: #8a7263; vertical-align: 1px; }
.track-pay.is-paid { background: #e3f0e8; color: #2e7d4f; }
.track-alert { background: #fdeeee; border: 1px solid #f2d2d2; color: #a33c3c; font-size: 13.5px; border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.track-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.track-line { list-style: none; margin: 0; padding: 0; }
.track-step { position: relative; display: flex; gap: 13px; padding: 0 0 22px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: -2px; width: 2px; background: #e8ddcf; }
.track-step:last-child::before { display: none; }
.track-step.done::before { background: var(--magenta); }
.track-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #d9cfc4; background: var(--surface); display: grid; place-items: center; font-size: 13px; color: #fff; z-index: 1; }
.track-step.done .track-dot { background: var(--magenta); border-color: var(--magenta); }
.track-step.current .track-dot { box-shadow: 0 0 0 5px rgba(168, 48, 110, .14); }
.track-step__t { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.track-step:not(.done) .track-step__t { color: var(--muted); }
.track-step__s { font-size: 12.5px; color: var(--ink-2); margin-top: 1px; }
.track-step:not(.done) .track-step__s { color: var(--muted); }
.track-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid #f4eee5; color: var(--ink-2); }
.track-row strong { color: var(--ink); text-align: right; }
.track-row--total { border-bottom: 0; font-size: 15px; }
.track-row--total strong { color: var(--magenta); font-size: 17px; }

/* ---- Sale / discount display -------------------------------------------- */
.badge-sale {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .3px;
    background: var(--magenta); color: #fff; padding: 3px 9px; border-radius: 999px;
}
.pcard__media .badge-sale { position: absolute; top: 9px; left: 9px; z-index: 2; }
.pcard__was, .cart-line-was, .opt-was { color: var(--muted); font-weight: 500; font-size: .85em; margin-left: 6px; text-decoration: line-through; }
.product-price-row { display: flex; align-items: baseline; gap: 9px; margin: 6px 0 10px; flex-wrap: wrap; }
.price-was { color: var(--muted); font-size: 15px; }
.cart-line-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cart-saved { text-align: right; color: var(--ok, #2f8f63); font-weight: 700; font-size: 13.5px; margin: 6px 0 0; }

.bubble { scroll-snap-align: start; }

/* ---- /sale reveal banner -------------------------------------------------- */
.sale-hero {
    background: var(--grad); color: #fff;
    border-radius: var(--radius); padding: 22px 20px;
    margin-bottom: 16px; box-shadow: var(--shadow-lg);
}
.sale-hero__kicker { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #ffd9ea; }
.sale-hero__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 23px; }
.sale-hero__sub { margin: 6px 0 0; font-size: 13px; color: #ffe9f2; }

/* =========================================================================
   DESKTOP & TABLET LAYER — strictly additive above 768px / 1024px.
   Nothing in this section may change the phone layout: base rules here are
   limited to `display:none` hooks for desktop-only elements (plus the
   update pill, whose phone values reproduce its old inline styles 1:1).
   ========================================================================= */

/* Desktop-only header elements — invisible on phone. */
.top-nav, .header-search, .cart-summary-cta { display: none; }

/* SW update pill (was inline styles; identical phone appearance). */
.sw-refresh-pill {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 999;
    background: #a8306e; color: #fff; border: 0; border-radius: 999px;
    padding: 11px 20px; font: 600 13.5px Inter, system-ui, sans-serif;
    box-shadow: 0 6px 18px rgba(42, 32, 40, .25); cursor: pointer;
}

/* ---- Tablet (>=768px): wider column, 3-across grid ---------------------- */
@media (min-width: 768px) {
    :root { --app-w: 720px; }
    .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Desktop (>=1024px): top nav, contained page, real grids ------------ */
@media (min-width: 1024px) {
    /* The page: full-width cream canvas, content in a centred container.
       #main keeps its 16px gutters so the full-bleed tricks (hero/promo
       negative margins) keep cancelling exactly as they do on phone. */
    .app { max-width: none; box-shadow: none; }
    #main { max-width: 1264px; margin: 0 auto; padding-bottom: 72px; }

    /* Header spans the window; its content aligns with the container. */
    .site-header {
        padding-left: max(16px, calc((100vw - 1264px) / 2));
        padding-right: max(16px, calc((100vw - 1264px) / 2));
        gap: 18px;
    }

    /* Top nav replaces the bottom nav on desktop. */
    .bottom-nav { display: none; }
    .top-nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
    .top-nav a {
        padding: 9px 14px; border-radius: 999px;
        color: var(--ink-2); font-weight: 600; font-size: 14px; white-space: nowrap;
    }
    .top-nav a:hover { background: var(--rose); color: var(--magenta); text-decoration: none; }
    .top-nav a.is-active { background: var(--rose); color: var(--magenta); }

    /* Inline header search; the phone search icon is redundant here. */
    .header-search {
        display: flex; align-items: center; gap: 9px;
        flex: 1; max-width: 340px; margin-left: auto;
        background: var(--surface); border: 1px solid var(--line);
        border-radius: 999px; padding: 9px 16px;
    }
    .header-search:focus-within { border-color: var(--pink); }
    .header-search svg { color: var(--muted); flex: none; }
    .header-search input { border: 0; outline: 0; background: none; width: 100%; font: inherit; font-size: 14px; }
    .header-actions .icon-btn[aria-label="Search"] { display: none; }
    .header-actions { flex: none; }

    /* Update pill: no bottom nav to clear — a plain bottom-centre toast. */
    .sw-refresh-pill { bottom: 28px; }

    /* Home: hero copy centred, search + category rail centred, 4-up grid. */
    .hero__card { padding-left: clamp(26px, 6vw, 72px); padding-right: clamp(26px, 6vw, 72px); }
    .hero__copy { max-width: 720px; margin: 0 auto; text-align: center; }
    .hero__dots { margin-left: auto; margin-right: auto; }
    .searchbar { max-width: 560px; margin-left: auto; margin-right: auto; }
    .bubbles { width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
    .grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .trust { max-width: 820px; margin-left: auto; margin-right: auto; }
    .help { max-width: 820px; margin-left: auto; margin-right: auto; }

    /* Product detail: gallery left, buy panel right. */
    .product { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 36px; align-items: start; }
    .product .gallery { position: sticky; top: calc(var(--header-h) + 20px); }
    .reviews { max-width: 820px; }

    /* Cart: lines left; total + checkout as a card on the right. The phone's
       fixed save-bar is replaced by an in-flow CTA under the total. */
    #cart-content { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0 32px; align-items: start; }
    #cart-content > * { grid-column: 2; }
    #cart-content .cart-lines { grid-column: 1; grid-row: 1 / span 9; margin: 0; }
    #cart-content .cart-total-row {
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius) var(--radius) 0 0;
        padding: 18px 18px 10px;
    }
    #cart-content .cart-saved { background: var(--surface); border-left: 1px solid var(--line); border-right: 1px solid var(--line); margin: 0; padding: 0 18px 6px; }
    .cart-summary-cta {
        display: block;
        background: var(--surface); border: 1px solid var(--line); border-top: 0;
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 10px 18px 18px;
    }
    .save-bar { display: none; }
    body:has(.save-bar:not([hidden])) #main { padding-bottom: 72px; }

    /* Checkout: form left, sticky order summary right. */
    #checkout-content { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 40px; align-items: start; }
    #checkout-content > * { grid-column: 1; }
    #checkout-content > .checkout-summary {
        grid-column: 2; grid-row: 1 / span 9;
        position: sticky; top: calc(var(--header-h) + 20px);
        background: var(--surface); border: 1px solid var(--line);
        border-radius: var(--radius); padding: 6px 18px 10px;
    }

    /* Single-column pages (orders, account, auth, tracking, review, order
       detail) read better in a narrow centred column than stretched wide. */
    #main:has(.orders), #main:has(.panel), #main:has(.confirm),
    #main:has(.auth), #main:has(.empty-state), #main:has(.track),
    #main:has(.order-detail__head),
    #main:has(.cart-lines--readonly):not(:has(#checkout-content)) {
        max-width: 824px;
    }
}
