/* =============================================
   Design Tokens
   ============================================= */
:root {
    /* Navbar: shared control height (search, buttons, links) */
    --nb-control-h: 40px;
    --ink:          #1d2433;
    --muted:        #5b667a;
    --paper:        #ffffff;
    --bg:           #faf9f5;
    --line:         #e7e2d7;
    --accent:       #f1641e;
    --accent-dk:    #e0571a;
    --accent-ink:   #ffffff;
    --green:        #067647;
    --green-bg:     #ecfdf3;
    --green-bd:     #abefc6;
    --red:          #b42318;
    --red-bg:       #fff1f0;
    --blue:         #1d66f5;
    --blue-bg:      #eff6ff;
    --yellow-bg:    #fffbeb;
    --shadow:       0 10px 28px rgba(0,0,0,.09);
    --shadow-sm:    0 1px 4px rgba(0,0,0,.06), 0 0 0 1px rgba(0,0,0,.04);
    --shadow-md:    0 4px 20px rgba(0,0,0,.10), 0 1px 6px rgba(0,0,0,.06);
    --shadow-card:  0 2px 12px rgba(0,0,0,.08);
    --r-sm:         8px;
    --r-md:         12px;
    --r-lg:         16px;
    --r-full:       999px;
    --ease:         cubic-bezier(0.2, 0, 0, 1);
}

/* =============================================
   Base Reset
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

input, button, select, textarea { font: inherit; }

/* Screen-reader only utility */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* =============================================
   Enquiry Announcement Bar (above topbar)
   ============================================= */
.enquiry-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 40px;
    padding: 0 20px;
    background: linear-gradient(90deg, rgba(241,100,30,.11) 0 3px, #fffcf9 3px),
                linear-gradient(135deg, #fffcf9 0%, #fff5ed 100%);
    border-bottom: 1px solid rgba(241,100,30,.2);
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition: background .18s;
}
.enquiry-bar:hover {
    background: linear-gradient(90deg, rgba(241,100,30,.16) 0 3px, #fff3e8 3px),
                linear-gradient(135deg, #fff3e8 0%, #ffe8d0 100%);
}
.enquiry-bar__new {
    flex-shrink: 0;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
    background: #16a34a;
    border-radius: 99px;
    padding: 2px 7px;
    line-height: 1.6;
}
.enquiry-bar__icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
}
.enquiry-bar__icon svg {
    width: 12px;
    height: 12px;
    display: block;
}
.enquiry-bar__text {
    font-size: .82rem;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.enquiry-bar__text strong { font-weight: 700; }
.enquiry-bar__sub {
    color: var(--muted);
    font-weight: 400;
}
@media (max-width: 700px) {
    .enquiry-bar__sub { display: none; }
}
.enquiry-bar__chips {
    display: flex;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
@media (max-width: 900px) {
    .enquiry-bar__chips { display: none; }
}
.enquiry-bar__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .7rem;
    font-weight: 700;
    color: #9a3412;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(241,100,30,.18);
    border-radius: 99px;
    padding: 2px 8px;
    white-space: nowrap;
}
.enquiry-bar__chip::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.enquiry-bar__btn {
    flex-shrink: 0;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 13px;
    border-radius: 99px;
    background: var(--accent);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(241,100,30,.28);
    line-height: 1;
    transition: background .15s;
}
.enquiry-bar:hover .enquiry-bar__btn {
    background: var(--accent-dk, #c94e14);
}
.enquiry-bar__btn svg {
    width: 11px;
    height: 11px;
    display: block;
}
@media (max-width: 480px) {
    .enquiry-bar { padding: 0 12px; gap: 7px; }
    .enquiry-bar__btn { display: none; }
    .enquiry-bar__text { font-size: .78rem; }
}

/* =============================================
   Topbar (primary navigation)
   ============================================= */
.topbar {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border-bottom: 1px solid var(--line);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 4px 20px rgba(15, 23, 42, .04),
        0 1px 2px rgba(15, 23, 42, .05);
    transform: translateY(0);
    transition: transform .24s ease, box-shadow .2s;
    will-change: transform;
}
/* Becomes a floating overlay that slides into view when the user scrolls up. */
.topbar.is-floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
}
.topbar.is-floating.is-revealed {
    transform: translateY(0);
}
.topbar.is-scrolled {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .9) inset,
        0 8px 32px rgba(15, 23, 42, .08),
        0 2px 6px rgba(15, 23, 42, .06);
}
/* Placeholder reserves the navbar's space while it is floating, preventing layout jumps. */
.topbar-placeholder {
    width: 100%;
    flex-shrink: 0;
}

/* ── Main row ── */
.topbar-inner {
    width: min(1240px, 100%);
    max-width: 96vw;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px 14px;
    min-height: 44px;
    padding: 6px max(16px, 2.5vw);
    box-sizing: border-box;
}
/* ── Brand ── */
.brand {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    flex-shrink: 0;
    transition: opacity .12s;
}
.brand:hover { opacity: .85; }
.topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.brand-mark {
    width: var(--nb-control-h);
    height: var(--nb-control-h);
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent) 0%, #e85a12 55%, #ff8b4a 100%);
    color: #fff;
    font-weight: 900;
    font-size: .95rem;
    flex-shrink: 0;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .2) inset,
        0 4px 14px rgba(241, 100, 30, .32);
}
.brand-name {
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
}

/* ── Search ── */
.top-search {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    align-self: center;
    gap: 8px;
    min-width: 0;
    max-width: none;
}
.search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

/* Category scope chip + query share one pill (border on wrapper, not input) */
.top-search .search-wrap--scoped {
    gap: 4px;
    padding: 0 4px 0 8px;
    box-sizing: border-box;
    min-height: var(--nb-control-h);
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--r-full);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.top-search .search-wrap--scoped:focus-within {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(241, 100, 30, .10);
}

/* .top-search scoping beats global `input[type="search"]` (r-sm) so corners match .search-btn */
.top-search .search-wrap input {
    box-sizing: border-box;
    width: 100%;
    height: var(--nb-control-h);
    margin: 0;
    padding: 0 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-full);
    -webkit-appearance: none;
    appearance: none;
    font-size: .9rem;
    /* Match inner box so placeholder & value sit on one optical line (40px − 3px border) */
    line-height: calc(var(--nb-control-h) - 3px);
    background: var(--bg);
    color: var(--ink);
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
    vertical-align: middle;
}
.top-search .search-wrap input[type="search"]::-webkit-search-cancel-button,
.top-search .search-wrap input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}
.top-search .search-wrap input::placeholder {
    color: #a09a90;
    opacity: 1;
}
.top-search .search-wrap input:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(241,100,30,.10);
}

/* Scoped search: overrides above — border/focus ring on wrapper, not input */
.top-search .search-wrap--scoped input {
    flex: 1 1 0%;
    min-width: 0;
    width: auto;
    height: calc(var(--nb-control-h) - 4px);
    margin: 2px 0;
    padding: 0 10px 0 2px;
    border: none;
    border-radius: var(--r-full);
    background: transparent;
    box-shadow: none;
    line-height: calc(var(--nb-control-h) - 8px);
}
.top-search .search-wrap--scoped input:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}
.top-search .search-wrap--scoped .nb-scope-chip {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(260px, 46%);
    align-self: center;
}

.search-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: var(--nb-control-h);
    padding: 0 18px;
    border-radius: var(--r-full);
    border: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(241, 100, 30, 0.35);
    transition: background .15s, transform .1s, box-shadow .15s;
}
.search-btn svg {
    flex-shrink: 0;
    display: block;
}
.search-btn:hover {
    background: var(--accent-dk);
    box-shadow: 0 2px 8px rgba(241, 100, 30, 0.45);
}
.search-btn:active {
    transform: scale(.97);
    box-shadow: 0 1px 3px rgba(241, 100, 30, 0.3);
}

/* ── Nav (right side) ── */
.topnav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-self: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 16px;
    border-left: 1px solid rgba(15, 23, 42, .09);
    min-height: var(--nb-control-h);
    overflow: visible;
}

/* plain text links */
.nb-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--nb-control-h);
    padding: 0 12px;
    border-radius: var(--r-full);
    color: var(--muted);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color .12s, background .12s;
}
.nb-link:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nb-link--muted { font-size: .85rem; }

/* ── Help / info dropdown (navbar) ───────────────────────────────── */
.nb-help {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}
.nb-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: var(--nb-control-h);
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: var(--r-full);
    background: transparent;
    color: var(--muted);
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: color .12s, background .12s, border-color .12s, box-shadow .12s;
}
.nb-help-btn-icon { flex-shrink: 0; }
.nb-help-caret {
    font-size: .68rem;
    line-height: 1;
    opacity: .75;
    transition: transform .16s var(--ease), color .12s;
}
.nb-help-btn:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nb-help.is-open .nb-help-btn {
    color: var(--accent);
    border-color: rgba(241,100,30,.42);
    background: #fff8f5;
    box-shadow: 0 0 0 3px rgba(241,100,30,.1);
}
.nb-help.is-open .nb-help-caret { transform: rotate(180deg); }
.nb-help.is-current .nb-help-btn { color: var(--ink); }

.nb-help-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 288px;
    padding: 8px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .08);
    z-index: 120;
    transform: translateY(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease, transform .18s var(--ease);
}
.nb-help-panel[hidden] { display: none !important; }
.nb-help.is-open .nb-help-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.nb-help-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 26px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(15, 23, 42, .12);
    border-top: 1px solid rgba(15, 23, 42, .12);
    transform: rotate(45deg);
}
.nb-help-heading {
    margin: 4px 10px 6px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--muted);
}
.nb-help-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    transition: background .12s, color .12s;
}
.nb-help-item-icon {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
    opacity: .85;
}
.nb-help-item-icon svg { display: block; }
.nb-help-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nb-help-item-title { font-size: .88rem; font-weight: 700; line-height: 1.25; }
.nb-help-item-sub {
    font-size: .765rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--muted);
}
.nb-help-item:hover { background: rgba(241,100,30,.08); color: var(--accent); }
.nb-help-item:hover .nb-help-item-sub { color: var(--accent); opacity: .85; }
.nb-help-item.is-active { background: rgba(241,100,30,.1); color: var(--accent); }
.nb-help-btn:focus-visible,
.nb-help-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Categories dropdown (navbar) — polished mega-menu */
.nb-cat-dd {
    position: relative;
    flex-shrink: 0;
    align-self: center;
    /* Keeps :hover true while moving through the gap above the absolutely-positioned panel */
    padding-bottom: 12px;
    margin-bottom: -12px;
}
.nb-cat-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: var(--nb-control-h);
    padding: 0 14px 0 11px;
    border-radius: var(--r-full);
    border: none;
    background: var(--ink);
    color: #fff;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: -.01em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.22);
    transition: background .15s, box-shadow .18s, transform .1s;
}
.nb-cat-btn:hover {
    background: #2d3a52;
    box-shadow: 0 3px 10px rgba(0,0,0,.26);
}
.nb-cat-dd.is-open .nb-cat-btn {
    background: #2d3a52;
    color: #fff;
    box-shadow:
        0 0 0 2px rgba(241, 100, 30, .5),
        0 4px 14px rgba(0,0,0,.2);
}
.nb-cat-btn-icon {
    flex-shrink: 0;
    display: block;
    color: rgba(255,255,255,.68);
    transition: color .12s;
}
.nb-cat-dd.is-open .nb-cat-btn-icon {
    color: var(--accent);
}
.nb-cat-btn-label {
    font-weight: 600;
}
.nb-cat-caret {
    flex-shrink: 0;
    margin-left: -1px;
    color: rgba(255,255,255,.5);
    transition: transform .2s var(--ease), color .12s;
}
.nb-cat-dd.is-open .nb-cat-caret {
    transform: rotate(180deg);
    color: rgba(255,255,255,.7);
}
@keyframes nb-cat-panel-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .nb-cat-panel:not([hidden]) {
        animation: none;
    }
}
.nb-cat-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 300;
    min-width: min(100%, 520px);
    max-width: min(960px, calc(100vw - 24px));
    max-height: min(72vh, 500px);
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(15, 23, 42, .09);
    border-radius: 14px;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, .04),
        0 10px 40px rgba(15, 23, 42, .1),
        0 4px 12px rgba(15, 23, 42, .06);
    overflow: hidden;
}
.nb-cat-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, #ffb366 100%);
    pointer-events: none;
    z-index: 1;
}
.nb-cat-panel[hidden] {
    display: none !important;
}
.nb-cat-panel:not([hidden]) {
    display: flex;
    animation: nb-cat-panel-in .22s var(--ease) both;
}
.nb-cat-panel-hdr {
    flex-shrink: 0;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 15px 18px 13px;
    background: linear-gradient(180deg, #f8f7f4 0%, #fff 55%);
    border-bottom: 1px solid rgba(15, 23, 42, .07);
}
.nb-cat-panel-eyebrow {
    display: block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1.2;
}
.nb-cat-panel-title {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--ink);
    line-height: 1.25;
}
.nb-cat-panel-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 4px;
    padding: 10px 10px 12px;
    background: linear-gradient(180deg, #fcfcfb 0%, #faf9f6 100%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, .22) transparent;
}
.nb-cat-panel-inner::-webkit-scrollbar {
    width: 8px;
}
.nb-cat-panel-inner::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, .2);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* 3-level category mega-menu (cj_categories: level1 → level2 → leaf) */
.nb-cat-panel-inner--tree {
    display: block;
    padding: 0;
    background: #faf9f6;
    overflow: hidden;
}
.nb-cat-tree {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(160px, 1.15fr);
    gap: 6px;
    min-height: 240px;
}
.nb-cat-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 8px 12px;
    max-height: min(62vh, 460px);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(15, 23, 42, .08);
    background: linear-gradient(180deg, #fcfcfb 0%, #faf9f6 100%);
    scrollbar-width: thin;
}
.nb-cat-col:last-child {
    border-right: none;
}
.nb-cat-col[hidden] {
    display: none !important;
}
.nb-cat-tier-btn {
    width: 100%;
    text-align: left;
    min-height: 40px;
    padding: 8px 10px;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    font-family: inherit;
    cursor: pointer;
    transition: background .14s, color .14s, border-color .14s;
}
.nb-cat-tier-btn:hover {
    background: transparent;
    color: var(--accent);
}
.nb-cat-tier-btn.is-active {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
    font-weight: 700;
}
.nb-cat-browse-all {
    display: block;
    padding: 6px 10px 10px;
    margin: 0 0 4px;
    font-size: .76rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    line-height: 1.3;
}
.nb-cat-browse-all:hover {
    text-decoration: underline;
}
.nb-cat-col .nb-cat-item--all {
    grid-column: unset;
    margin-bottom: 6px;
}
.nb-cat-tier-link.nb-cat-item {
    font-size: .84rem;
}

.nb-cat-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 7px 10px 7px 10px;
    margin: 0;
    border-radius: 9px;
    border: 1px solid transparent;
    color: var(--ink);
    font-size: .855rem;
    font-weight: 500;
    text-decoration: none;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background .14s, color .14s, border-color .14s, box-shadow .14s;
}
/* Small category icon inside each dropdown item */
.nb-cat-item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.55;
    filter: saturate(0.3);
    transition: opacity .14s, filter .14s;
}
.nb-cat-item:hover .nb-cat-item-icon {
    opacity: 0.85;
    filter: saturate(1);
}
.nb-cat-item.is-active .nb-cat-item-icon {
    opacity: 1;
    filter: saturate(1);
}
.nb-cat-item:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: none;
}
.nb-cat-item:focus-visible {
    outline: none;
    background: rgba(241, 100, 30, .08);
    box-shadow: inset 0 0 0 2px rgba(241, 100, 30, .35);
}
.nb-cat-item.is-active {
    background: rgba(241, 100, 30, .11);
    border-color: rgba(241, 100, 30, .22);
    color: var(--accent);
    font-weight: 700;
    box-shadow: 0 1px 4px rgba(241, 100, 30, .12);
}
/* "All categories" row spans full panel width and gets a visual separator */
.nb-cat-item--all {
    grid-column: 1 / -1;
    font-weight: 700;
    font-size: .875rem;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
    border-radius: 0;
    padding-bottom: 11px;
    margin-bottom: 4px;
}
.nb-cat-item--all .nb-cat-item-icon {
    width: 18px;
    height: 18px;
}

/* cart button */
.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: var(--nb-control-h);
    padding: 0 12px 0 14px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .12s, background .12s, box-shadow .12s;
}
.cart-btn svg {
    flex-shrink: 0;
    display: block;
}
.cart-btn > span:not(.cart-chip) {
    line-height: 1.2;
}
.cart-btn:hover {
    border-color: rgba(241,100,30,.40);
    background: rgba(241,100,30,.04);
    box-shadow: 0 0 0 3px rgba(241,100,30,.06);
}
.cart-chip {
    margin-left: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-full);
    font-size: .67rem;
    font-weight: 800;
    display: inline-grid;
    place-items: center;
    line-height: 1;
}

/* solid CTA button */
.nb-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--nb-control-h);
    padding: 0 16px;
    border-radius: var(--r-full);
    background: var(--accent);
    color: #fff;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, transform .1s;
}
.nb-cta:hover { background: var(--accent-dk); }
.nb-cta:active { transform: scale(.97); }

/* user pill */
.user-pill {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: var(--nb-control-h);
    padding: 0 12px 0 6px;
    max-width: 160px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.user-pill:hover {
    border-color: rgba(241, 100, 30, .5);
    background: #fff8f5;
    box-shadow: 0 0 0 3px rgba(241,100,30,.08);
}
.user-pill-caret {
    margin-left: auto;
    font-size: .78rem;
    color: var(--muted);
    transition: transform .18s var(--ease), color .15s;
}
.user-menu {
    position: relative;
    display: inline-block;
}
.user-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 268px;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .16), 0 2px 8px rgba(15, 23, 42, .08);
    padding: 8px;
    z-index: 120;
    transform: translateY(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease, transform .18s var(--ease);
}
.user-menu-panel[hidden] {
    display: none !important;
}
.user-menu.is-open .user-menu-panel {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.user-menu-panel::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 18px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(15, 23, 42, .12);
    border-top: 1px solid rgba(15, 23, 42, .12);
    transform: rotate(45deg);
}
.user-menu-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    height: 40px;
    padding: 0 12px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 650;
    transition: background .12s, color .12s, transform .08s;
}
.user-menu-item-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    color: currentColor;
    opacity: .85;
    flex-shrink: 0;
}
.user-menu-item-icon svg {
    display: block;
}
.user-menu-item:hover {
    background: rgba(241,100,30,.08);
    color: var(--accent);
}
.user-menu-item--danger {
    color: #b42318;
}
.user-menu-item--danger:hover {
    background: rgba(180,35,24,.1);
    color: #912018;
}
.user-menu-install {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-top: 6px;
    padding: 8px 8px 8px 8px;
    border: 1px solid rgba(241, 100, 30, .32);
    border-radius: 12px;
    background: linear-gradient(180deg, #fff8f2 0%, #fff 100%);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    transition: border-color .12s, background .12s, box-shadow .12s;
}
.user-menu-install:hover {
    border-color: rgba(241, 100, 30, .55);
    background: #fff4ec;
    box-shadow: 0 0 0 3px rgba(241, 100, 30, .08);
}
.user-menu-install:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.user-menu-install-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(241, 100, 30, .22);
}
.user-menu-install-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.user-menu-install-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}
.user-menu-install-title {
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}
.user-menu-install-sub {
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.25;
    color: var(--muted);
}
.user-menu-install-go {
    flex-shrink: 0;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    line-height: 26px;
}
.user-menu.is-open .user-pill-caret {
    transform: rotate(180deg);
    color: var(--accent);
}
.user-menu.is-open .user-pill {
    border-color: rgba(241,100,30,.42);
    background: #fff8f5;
    box-shadow: 0 0 0 3px rgba(241,100,30,.1);
}
.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    text-transform: uppercase;
}
.user-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* focus ring */
.nb-link:focus-visible,
.cart-btn:focus-visible,
.nb-cta:focus-visible,
.search-btn:focus-visible,
.mob-toggle:focus-visible,
.nb-cat-btn:focus-visible,
.user-pill:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(241,100,30,.22);
}
/* Dark button needs a brighter ring to be visible */
.nb-cat-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(241,100,30,.55);
}

/* ── Hamburger (mobile only) ── */
.mob-toggle {
    display: none;
    position: relative;
    flex-shrink: 0;
    width: var(--nb-control-h);
    height: var(--nb-control-h);
    padding: 0;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    align-self: center;
    box-shadow: 0 1px 2px rgba(29, 36, 51, .04);
    transition:
        border-color .18s var(--ease),
        background .18s var(--ease),
        color .18s var(--ease),
        box-shadow .18s var(--ease),
        transform .15s var(--ease);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.mob-toggle::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 15px;
    background: rgba(241, 100, 30, .12);
    opacity: 0;
    transform: scale(.85);
    transition: opacity .18s var(--ease), transform .18s var(--ease);
    pointer-events: none;
    z-index: -1;
}
.mob-toggle:hover {
    border-color: rgba(241, 100, 30, .45);
    background: rgba(241, 100, 30, .06);
    color: var(--accent-dk);
    box-shadow: 0 2px 8px rgba(241, 100, 30, .12);
}
.mob-toggle:hover::after {
    opacity: 1;
    transform: scale(1);
}
.mob-toggle:active {
    transform: scale(.94);
    box-shadow: none;
}
.mob-toggle[aria-expanded="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: 0 4px 14px rgba(29, 36, 51, .22);
}
.mob-toggle[aria-expanded="true"]:hover {
    background: #2a3344;
    border-color: #2a3344;
    color: #fff;
    box-shadow: 0 4px 14px rgba(29, 36, 51, .26);
}
.ham {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 18px;
    height: 14px;
    pointer-events: none;
}
.ham span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition:
        transform .28s var(--ease),
        opacity .18s var(--ease),
        width .22s var(--ease);
    transform-origin: center;
}
.ham span:nth-child(2) { width: 70%; }
.mob-toggle:hover .ham span:nth-child(2) { width: 100%; }
.mob-toggle[aria-expanded="true"] .ham span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    width: 100%;
}
.mob-toggle[aria-expanded="true"] .ham span:nth-child(2) {
    opacity: 0;
    width: 0;
    transform: scaleX(0);
}
.mob-toggle[aria-expanded="true"] .ham span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    width: 100%;
}

/* ── Category scope chip (sits inside .search-wrap--scoped) ── */
.nb-scope-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 6px 0 8px;
    background: rgba(241, 100, 30, .09);
    border: 1px solid rgba(241, 100, 30, .22);
    border-radius: var(--r-full);
    font-size: .72rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
    animation: nb-chip-in .2s var(--ease) both;
}
@keyframes nb-chip-in {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}
.nb-scope-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
}
.nb-scope-chip-x {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(241, 100, 30, .18);
    color: var(--accent);
    font-size: .65rem;
    line-height: 1;
    cursor: pointer;
    border: none;
    padding: 0;
    flex-shrink: 0;
    transition: background .12s;
}
.nb-scope-chip-x:hover {
    background: var(--accent);
    color: #fff;
}

/* ── Clear search × button ── */
.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 23, 42, .08);
    color: var(--muted);
    font-size: .7rem;
    cursor: pointer;
    display: none;
    place-items: center;
    padding: 0;
    transition: background .12s, color .12s;
    z-index: 2;
}
.search-clear:hover {
    background: rgba(15, 23, 42, .16);
    color: var(--ink);
}
.search-wrap.has-value .search-clear {
    display: grid;
}
.search-wrap.has-value input {
    padding-right: 34px;
}
.top-search .search-wrap--scoped.has-value input {
    padding-right: 34px;
}

/* ── Category back button (mobile mega-menu) ── */
.nb-cat-back {
    display: none;
    align-items: center;
    gap: 5px;
    width: 100%;
    padding: 8px 10px;
    margin: 0 0 4px;
    border: none;
    border-radius: 8px;
    background: rgba(15, 23, 42, .04);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .12s, color .12s;
    font-family: inherit;
    text-align: left;
}
.nb-cat-back:hover {
    background: rgba(15, 23, 42, .08);
    color: var(--ink);
}
.nb-cat-back svg {
    flex-shrink: 0;
}

/* ── Active category indicator on Categories button ── */
.nb-cat-btn-active-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    animation: nb-dot-pulse 2s ease-in-out infinite;
}
@keyframes nb-dot-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .4; }
}

/* ── Feed-tab strip ── */
.feedtabs {
    border-top: 1px solid rgba(15, 23, 42, .06);
    background: linear-gradient(180deg, #fbfaf7 0%, #fff 100%);
}
.feedtabs-inner {
    width: min(1240px, 100%);
    max-width: 96vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 6px max(16px, 2.5vw) 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.feedtabs-inner::-webkit-scrollbar { display: none; }
.feedtab {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 14px;
    border-radius: var(--r-full);
    border: 1px solid transparent;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    transition: color .14s, background .14s, border-color .14s, box-shadow .14s;
}
.feedtab:hover {
    color: var(--ink);
    background: rgba(15, 23, 42, .04);
    border-color: rgba(15, 23, 42, .06);
}
.feedtab.is-active {
    color: var(--accent);
    background: #fff;
    border-color: rgba(241, 100, 30, .28);
    box-shadow: 0 1px 3px rgba(241, 100, 30, .1);
    font-weight: 700;
}

/* Desktop: always show nav row, always hide hamburger (avoids stuck mobile state) */
@media (min-width: 961px) {
    .topbar-inner .topnav {
        display: flex !important;
    }
    .topbar-inner .mob-toggle {
        display: none !important;
    }
}

/* ── Keep old quicktab/quicktabs names as aliases so other pages don't break ── */
.quicktabs  { border-top: 1px solid var(--line); background: #fff; }
.quicktabs-inner { width: min(1240px,96vw); margin: 0 auto; display: flex; align-items: center; gap: 2px; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.quicktabs-scroll { display: flex; gap: 2px; width: 100%; }
.quicktab { flex-shrink:0; display:inline-flex; align-items:center; height:32px; padding:0 14px; border-radius:var(--r-full); border:1px solid transparent; color:var(--muted); font-size:.87rem; font-weight:600; text-decoration:none; white-space:nowrap; transition:color .12s, background .12s, border-color .12s; }
.quicktab:hover { color:var(--ink); background:rgba(0,0,0,.04); }
.quicktab.active { color:var(--accent); background:rgba(241,100,30,.07); border-color:rgba(241,100,30,.22); font-weight:700; }

/* Cart badge (legacy alias) */
.cart-badge { display: inline-flex; align-items: center; gap: 5px; position: relative; }
.cart-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; background: var(--accent); color: #fff; border-radius: var(--r-full); font-size: .73rem; font-weight: 800; display: grid; place-items: center; }
/* cart-badge-count kept for any page using old markup */
.cart-badge-count { position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 3px; background: var(--accent); color: #fff; border-radius: var(--r-full); font-size: .64rem; font-weight: 800; display: grid; place-items: center; line-height: 1; border: 2px solid #fff; pointer-events: none; }

/* Hero section (title + subtitle under topbar-inner) */
.hero {
    width: min(1240px, 96vw);
    margin: 0 auto;
    padding: 10px 0 14px;
}
.hero h1 {
    margin: 4px 0 3px;
    font-size: clamp(1.3rem, 2.2vw, 1.85rem);
    letter-spacing: -.02em;
    font-weight: 800;
}
.hero p { margin: 0; color: var(--muted); font-size: .95rem; }

/* =============================================
   Category strip (scrollable row of category tiles)
   All sizing is driven by three CSS custom properties that are overridden at
   each breakpoint — nothing is duplicated.
   ============================================= */

/* Fluid sizing tokens — override per breakpoint below */
.cat-strip {
    --cs-tile:   92px;   /* card + circle width */
    --cs-circle: 76px;
    --cs-font:   .78rem;
    --cs-gap:    10px;
    --cs-pad-x:  clamp(44px, 5vw, 56px); /* reserve room for arrow buttons */
    --cs-pad-y:  12px;
    --cs-arrow:  40px;   /* arrow button diameter */

    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: relative;
}

/* ── 768 px and below ── */
@media (max-width: 768px) {
    .cat-strip {
        --cs-tile:   82px;
        --cs-circle: 68px;
        --cs-pad-x:  44px;
    }
}

/* ── 600 px and below ── */
@media (max-width: 600px) {
    .cat-strip {
        --cs-tile:   clamp(66px, 17.5vw, 78px);
        --cs-circle: clamp(54px, 14vw,   64px);
        --cs-font:   clamp(.64rem, 2.1vw, .72rem);
        --cs-gap:    clamp(4px,   1.5vw,  8px);
        --cs-pad-x:  38px;
        --cs-pad-y:  10px;
        --cs-arrow:  34px;
    }
}

/* ── 480 px and below — hide arrows, reclaim their padding ── */
@media (max-width: 480px) {
    .cat-strip {
        --cs-tile:   clamp(62px, 19vw, 74px);
        --cs-circle: clamp(50px, 15vw, 60px);
        --cs-font:   clamp(.62rem, 2.3vw, .7rem);
        --cs-gap:    clamp(3px, 1.2vw, 6px);
        --cs-pad-x:  10px;   /* no arrows = full-bleed tiles */
        --cs-pad-y:  9px;
    }
    .cat-arrow { display: none !important; }
}

/* ── 360 px and below ── */
@media (max-width: 360px) {
    .cat-strip {
        --cs-tile:   clamp(56px, 21vw, 64px);
        --cs-circle: clamp(46px, 17vw, 54px);
        --cs-font:   clamp(.6rem, 2.6vw, .68rem);
        --cs-gap:    clamp(2px, 1vw, 5px);
        --cs-pad-x:  8px;
        --cs-pad-y:  8px;
    }
}

/* The actual scrollable flex row */
.cat-strip-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: var(--cs-gap);
    padding: var(--cs-pad-y) var(--cs-pad-x);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;            /* swipe the row sideways, or scroll the page up/down */
    overscroll-behavior-x: contain;       /* prevent horizontal swipe triggering browser nav */
}
.cat-strip-inner::-webkit-scrollbar { display: none; }
.cat-strip-inner.auto-scrolling {
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* Arrow buttons */
.cat-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    padding: 0;
    margin: 0;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    width: var(--cs-arrow);
    height: var(--cs-arrow);
    cursor: pointer;
    color: var(--ink);
    box-shadow: 0 2px 10px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
    transition: opacity .2s, box-shadow .15s, border-color .15s, transform .1s;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.cat-arrow:hover:not(:disabled) {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    border-color: rgba(241,100,30,.35);
    color: var(--accent);
}
.cat-arrow:active:not(:disabled) { transform: translateY(-50%) scale(.96); }
.cat-arrow:disabled { opacity: .32; cursor: not-allowed; box-shadow: none; }
.cat-arrow svg { width: calc(var(--cs-arrow) * .45); height: calc(var(--cs-arrow) * .45); }
.cat-arrow-left  { left: max(6px, calc(var(--cs-pad-x) * .15)); }
.cat-arrow-right { right: max(6px, calc(var(--cs-pad-x) * .15)); }

/* Individual category card */
.cat-card {
    flex-shrink: 0;
    scroll-snap-align: start;
    display: grid;
    grid-template-rows: auto auto;
    gap: 7px;
    width: var(--cs-tile);
    min-width: var(--cs-tile);
    padding: 5px 3px 7px;
    border-radius: 14px;
    border: 1.5px solid transparent;
    background: transparent;
    text-decoration: none;
    color: var(--ink);
    transition: transform .15s var(--ease), box-shadow .15s var(--ease),
                border-color .15s, background .15s;
}
.cat-card:hover {
    transform: translateY(-2px);
    background: #fff;
    border-color: rgba(241,100,30,.35);
    box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.cat-card.active {
    border-color: var(--accent);
    background: #fff8f5;
    box-shadow: 0 8px 20px rgba(241,100,30,.14);
}

.cat-card-media {
    position: relative;
    width: var(--cs-circle);
    height: var(--cs-circle);
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f1ea;
    border: 2px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.10);
    flex-shrink: 0;
}
.cat-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
    transition: transform .25s var(--ease);
}
.cat-card:hover .cat-card-img { transform: scale(1.08); }

.cat-card-label {
    font-size: var(--cs-font);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
    text-align: center;
}

/* =============================================
   Container / Panel
   ============================================= */
.container {
    width: min(1240px, 96vw);
    margin: 20px auto 32px;
    display: grid;
    gap: 16px;
}

.panel {
    background: var(--paper);
    border-radius: var(--r-lg);
    padding: 18px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,.05);
}

/* Recommendation sections (Trending Now, New Arrivals, etc.) */
.reco-section {
    margin-bottom: 28px;
}
.reco-section-hdr {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.reco-section-hdr > div { flex: 1; min-width: 0; }
.reco-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 3px;
}
.reco-section-sub {
    font-size: .875rem;
    color: var(--muted);
    margin: 0;
}
.see-all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: .88rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    padding: 6px 14px;
    border: 1.5px solid rgba(241,100,30,.3);
    border-radius: var(--r-full);
    transition: background .12s, border-color .12s;
    white-space: nowrap;
}
.see-all-link:hover {
    background: rgba(241,100,30,.07);
    border-color: var(--accent);
}
.trending-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}
.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--r-full);
    color: var(--ink);
    font-weight: 700;
    font-size: .93rem;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, color .15s;
}
.btn-load-more:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(241,100,30,.08);
}
.btn-load-more:disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
}

/* Best sellers on homepage: always 2 full rows */
#best-sellers .best-sellers-grid {
    grid-template-columns: repeat(var(--best-sellers-cols, 4), minmax(0, 1fr));
}

/* =============================================
   Filter / Sort bar
   ============================================= */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.filter-bar-left { flex: 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filter-bar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.filter-label { font-size: .85rem; color: var(--muted); font-weight: 600; }

.filter-select {
    padding: 8px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink);
    font-size: .9rem;
    cursor: pointer;
    outline: none;
    transition: border-color .15s;
}
.filter-select:focus { border-color: var(--accent); }

.filter-input {
    padding: 8px 11px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: .9rem;
    width: 90px;
    outline: none;
    transition: border-color .15s;
}
.filter-input:focus { border-color: var(--accent); }

.filter-apply-btn {
    padding: 8px 14px;
    background: var(--ink);
    color: #fff;
    border: none;
    border-radius: var(--r-sm);
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}
.filter-apply-btn:hover { opacity: .88; }

.result-count {
    font-size: .9rem;
    color: var(--muted);
    margin: 0;
}
.result-count strong { color: var(--ink); }

/* =============================================
   Product Grid
   ============================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(236px, 1fr));
    gap: 14px;
}

/* Product Card */
.product-card {
    border: 1px solid rgba(0,0,0,.07);
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #fff;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover,
.product-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,.13);
    border-color: rgba(241,100,30,.55);
}

/* Product image container with overlay */
.product-card .card-img-wrap {
    position: relative;
    overflow: hidden;
}
.product-card img {
    width: 100%;
    height: 226px;
    object-fit: cover;
    background: #f3f1ea;
    transition: transform .25s var(--ease);
    display: block;
}
.product-card:hover img,
.product-card:focus-within img { transform: scale(1.04); }

/* Quick-view overlay on hover */
.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(29,36,51,.42);
    opacity: 0;
    transition: opacity .18s var(--ease);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 14px;
    z-index: 1;
}
.product-card:hover .card-overlay,
.product-card:focus-within .card-overlay { opacity: 1; }

.card-quick-btn {
    padding: 7px 16px;
    background: #fff;
    color: var(--ink);
    border: none;
    border-radius: var(--r-full);
    font-weight: 700;
    font-size: .82rem;
    cursor: pointer;
    text-decoration: none;
    transition: transform .1s, background .12s;
    display: inline-block;
}
.card-quick-btn:hover { background: var(--accent); color: #fff; }

/* Product badges */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 9px;
    border-radius: var(--r-full);
    font-size: .72rem;
    font-weight: 700;
    z-index: 2;
    letter-spacing: .02em;
}
.card-badge.badge-popular  { background: var(--accent); color: #fff; }
.card-badge.badge-trending { background: #7c3aed; color: #fff; }
.card-badge.badge-new      { background: var(--blue); color: #fff; }
.card-badge.badge-sale     { background: var(--red); color: #fff; }
.card-badge.badge-similar  { background: #0891b2; color: #fff; }

/* ── Similar / Related products section ── */
.similar-section {
    margin-top: 10px;
}
.similar-section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
    margin: 0 0 28px;
    position: relative;
}
.similar-section-divider::after {
    content: 'Similar products';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: var(--surface, #fff);
    padding: 0 14px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

/* Card info section */
.product-card .info {
    padding: 10px 12px 12px;
    min-height: 98px;
    display: flex;
    flex-direction: column;
}
.product-card h3 {
    margin: 0 0 6px;
    font-size: .86rem;
    line-height: 1.32;
    color: var(--ink);
    /* Clamp to 2 lines */
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.64em;
}
.price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
}
.price-original {
    font-size: .76rem;
    color: var(--muted);
    text-decoration: line-through;
    margin-left: 4px;
}
.card-social-proof {
    font-size: .72rem;
    color: var(--muted);
    margin-top: auto;
    min-height: 1.1em;
}
/* =============================================
   Empty state
   ============================================= */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}
.empty-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: .6;
}
.empty-state h3 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    color: var(--ink);
}
.empty-state p { margin: 0 0 20px; }
.empty-state > a {
    display: inline-block;
    padding: 11px 22px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-full);
    font-weight: 700;
    text-decoration: none;
    font-size: .95rem;
}
.empty-state > a:hover { background: var(--accent-dk); }
.empty-state .sourcing-cta {
    text-align: left;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

/* =============================================
   Pagination
   ============================================= */
.pagination {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    text-decoration: none;
    display: grid;
    place-items: center;
    transition: all .15s;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.page-btn:disabled, .page-btn.disabled {
    opacity: .4;
    cursor: not-allowed;
    pointer-events: none;
}

/* =============================================
   Buttons (global)
   ============================================= */
button {
    background: var(--ink);
    color: #fff;
    border: 1px solid rgba(0,0,0,.10);
    cursor: pointer;
    border-radius: var(--r-sm);
    padding: 9px 16px;
    font-weight: 600;
    transition: opacity .15s, transform .1s;
}
button:hover { opacity: .9; }
button:active { transform: scale(.97); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: .92rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), transform .1s;
}
.btn:active { transform: scale(.98); }

.btn-primary {
    background: var(--accent) !important;
    border-color: transparent !important;
    color: #fff !important;
}
.btn-primary:hover { background: var(--accent-dk) !important; }

.btn-outline {
    background: #fff !important;
    border: 1.5px solid var(--line) !important;
    color: var(--ink) !important;
}
.btn-outline:hover { border-color: var(--accent) !important; color: var(--accent) !important; }

.btn-ghost {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--muted) !important;
}
.btn-ghost:hover {
    background: rgba(0,0,0,.04) !important;
    color: var(--ink) !important;
}

.btn-danger { background: var(--red) !important; }
.btn-danger:hover { background: #8a1c12 !important; }

.btn-secondary { background: #64748b !important; }
.btn-secondary:hover { background: #475569 !important; }

/* =============================================
   Sourcing CTA (homepage / product / empty)
   ============================================= */
.sourcing-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px 24px;
    margin-bottom: 22px;
    padding: 18px 20px 18px 18px;
    border-radius: var(--r-lg);
    border: 1px solid rgba(241, 100, 30, .18);
    background:
        linear-gradient(90deg, rgba(241, 100, 30, .12) 0 4px, transparent 4px),
        linear-gradient(135deg, #fffdfb 0%, #fff4eb 55%, #ffedd9 100%);
    box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.sourcing-cta--compact {
    margin-bottom: 0;
    margin-top: 16px;
}
.sourcing-cta--product {
    margin: 32px 0 8px;
    padding: 22px 24px 22px 22px;
}
.sourcing-cta__body {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}
.sourcing-cta__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 16px rgba(241, 100, 30, .28);
}
.sourcing-cta__icon svg {
    width: 22px;
    height: 22px;
    max-width: 22px;
    max-height: 22px;
    display: block;
}
.sourcing-cta__title {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -.01em;
    line-height: 1.25;
}
.sourcing-cta__text {
    margin: 0;
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.5;
    max-width: 54ch;
}
.sourcing-cta__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
}
.sourcing-cta__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem;
    font-weight: 700;
    color: #9a3412;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(241, 100, 30, .16);
    border-radius: var(--r-full);
    padding: 4px 10px;
}
.sourcing-cta__chip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.sourcing-cta__action {
    flex-shrink: 0;
}
.sourcing-cta__action .btn {
    padding: 12px 20px;
    box-shadow: 0 8px 18px rgba(241, 100, 30, .22);
}
@media (max-width: 720px) {
    .sourcing-cta,
    .sourcing-cta--product {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .sourcing-cta__action,
    .sourcing-cta__action .btn {
        width: 100%;
    }
}

/* =============================================
   Enquiry Strip — slim inline row inside product grid
   ============================================= */
.enquiry-strip {
    grid-column: 1 / -1;           /* span all grid columns */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 14px;
    height: 44px;
    border-radius: var(--r-lg);
    border: 1px solid rgba(241, 100, 30, .22);
    background: linear-gradient(90deg, rgba(241,100,30,.09) 0 3px, #fffcf9 3px),
                linear-gradient(135deg, #fffcf9 0%, #fff5ed 100%);
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
    margin-bottom: 4px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .18s, border-color .18s;
}
.enquiry-strip:hover {
    border-color: rgba(241,100,30,.42);
    box-shadow: 0 2px 10px rgba(241,100,30,.14);
}
.enquiry-strip__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
}
.enquiry-strip__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    border-radius: 7px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
}
.enquiry-strip__icon svg {
    width: 13px;
    height: 13px;
    display: block;
}
.enquiry-strip__label {
    font-size: .84rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.enquiry-strip__sub {
    font-size: .76rem;
    color: var(--muted);
    margin-left: 6px;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .enquiry-strip__sub { display: none; }
}
.enquiry-strip__chips {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 14px;
}
@media (max-width: 860px) {
    .enquiry-strip__chips { display: none; }
}
.enquiry-strip__chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    font-weight: 700;
    color: #9a3412;
    background: rgba(255,255,255,.8);
    border: 1px solid rgba(241,100,30,.18);
    border-radius: var(--r-full);
    padding: 3px 9px;
    white-space: nowrap;
}
.enquiry-strip__chip::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.enquiry-strip__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: var(--r-full);
    background: var(--accent);
    color: #fff;
    font-size: .77rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s, transform .12s;
    box-shadow: 0 3px 10px rgba(241,100,30,.28);
    line-height: 1;
}
.enquiry-strip__btn:hover {
    background: var(--accent-dk, #c94e14);
    transform: translateY(-1px);
}
.enquiry-strip__btn svg {
    width: 12px;
    height: 12px;
    display: block;
}
@media (max-width: 460px) {
    .enquiry-strip {
        height: auto;
        padding: 8px 12px;
        flex-wrap: wrap;
    }
    .enquiry-strip__new { margin-bottom: 2px; }
    .enquiry-strip__btn { width: 100%; justify-content: center; }
}

/* =============================================
   Inputs & Forms (global)
   ============================================= */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
select,
textarea {
    padding: 10px 13px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    font-size: 1rem;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(241,100,30,.1);
}

label {
    display: block;
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 5px;
}

.hint { color: var(--muted); font-size: .9rem; }

/* =============================================
   Flash / Alert messages
   ============================================= */
.flash, .alert {
    padding: 12px 16px;
    border-radius: var(--r-sm);
    font-size: .93rem;
    margin-bottom: 14px;
}
.flash-success, .alert-success {
    background: var(--green-bg);
    border: 1px solid var(--green-bd);
    color: var(--green);
}
.flash-error, .alert-error {
    background: var(--red-bg);
    border: 1px solid #fecdd3;
    color: var(--red);
}
.flash-info, .alert-info {
    background: var(--blue-bg);
    border: 1px solid #bfdcff;
    color: var(--blue);
}
.flash-warning, .alert-warning {
    background: var(--yellow-bg);
    border: 1px solid #fed7aa;
    color: #92400e;
}
/* Backwards-compat aliases */
.flash {
    background: var(--green-bg);
    border: 1px solid var(--green-bd);
    color: var(--green);
}

/* =============================================
   Auth modal
   ============================================= */
.auth-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(22, 18, 14, .52);
    backdrop-filter: blur(10px) saturate(1.2);
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), visibility .22s var(--ease);
}
.auth-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.auth-modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    max-height: 92vh;
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow:
        0 0 0 1px rgba(241, 100, 30, .08),
        0 24px 48px rgba(28, 18, 8, .18),
        0 2px 8px rgba(28, 18, 8, .08);
    padding: 0;
    transform: translateY(18px) scale(.98);
    transition: transform .24s var(--ease);
}
.auth-modal-overlay.is-open .auth-modal {
    transform: translateY(0) scale(1);
}
.auth-modal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, #e0571a 0%, var(--accent) 45%, #ffb07a 100%);
    pointer-events: none;
    z-index: 2;
}
.auth-modal-head {
    position: relative;
    flex-shrink: 0;
    text-align: center;
    padding: 18px 28px 8px;
    background:
        radial-gradient(120px 80px at 88% -10%, rgba(241, 100, 30, .18), transparent 70%),
        radial-gradient(140px 90px at 8% 110%, rgba(255, 139, 74, .14), transparent 72%),
        linear-gradient(180deg, #fff8f2 0%, #ffffff 100%);
    overflow: hidden;
}
.auth-modal-mark {
    width: 36px;
    height: 36px;
    margin: 0 auto 8px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent) 0%, #e85a12 55%, #ff8b4a 100%);
    color: #fff;
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .28) inset,
        0 8px 18px rgba(241, 100, 30, .32);
}
.auth-modal-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
    background: #fff;
}
.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .72);
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition: background .12s, color .12s, border-color .12s, transform .12s;
    font-size: 1rem;
    line-height: 1;
    z-index: 3;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.auth-modal-close:hover {
    background: #fff;
    color: var(--ink);
    border-color: rgba(15, 23, 42, .16);
    transform: rotate(90deg);
}
.auth-modal-close:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.auth-modal-title {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
    margin: 0 0 2px;
    line-height: 1.2;
}
.auth-modal-sub {
    font-size: .82rem;
    color: var(--muted);
    margin: 0;
    line-height: 1.4;
}
.auth-modal-body {
    padding: 4px 24px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(15, 23, 42, .18) transparent;
}
.auth-modal .auth-tabs,
#auth-modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #f4efe8;
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 12px;
}
.auth-modal .auth-tabs a,
#auth-modal-tabs a {
    display: block;
    text-align: center;
    padding: 8px 0;
    border-radius: 9px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: .88rem;
    border: none;
    transition: color .15s, background .15s, box-shadow .15s;
}
.auth-modal .auth-tabs a.active,
#auth-modal-tabs a.active {
    background: #fff;
    color: var(--ink);
    box-shadow:
        0 1px 2px rgba(28, 18, 8, .06),
        0 4px 10px rgba(28, 18, 8, .08);
}
.auth-modal .auth-tabs a:hover:not(.active),
#auth-modal-tabs a:hover:not(.active) {
    color: var(--ink);
    background: rgba(255,255,255,.55);
}
.auth-modal .google-btn {
    border-radius: 12px;
    padding: 9px 16px;
    background: #fff;
    border: 1.5px solid #ece7dc;
    box-shadow: 0 1px 2px rgba(28, 18, 8, .04);
}
.auth-modal .google-btn:hover {
    border-color: #4285F4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, .1);
}
.auth-modal .auth-divider {
    margin: 10px 0 8px;
    text-transform: none;
    letter-spacing: .02em;
    font-size: .78rem;
    font-weight: 600;
}
.auth-modal .auth-form {
    gap: 9px;
}
.auth-modal .auth-field label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .01em;
    color: #4b5568;
}
.auth-modal .auth-field label span {
    font-weight: 500;
    color: var(--muted);
    font-size: .72rem;
}
.auth-field-ctrl {
    position: relative;
}
.auth-field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3b2;
    pointer-events: none;
    z-index: 1;
}
.auth-modal .auth-field-ctrl input {
    height: 42px;
    padding: 10px 14px 10px 40px;
    border-radius: 12px;
    background: #faf8f4;
    border-color: #ece7dc;
    font-size: .95rem;
}
.auth-modal .auth-field-ctrl input:hover {
    border-color: #ddd5c6;
}
.auth-modal .auth-field-ctrl input:focus {
    background: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(241, 100, 30, .12);
}
.auth-modal .auth-field-ctrl:focus-within .auth-field-icon {
    color: var(--accent);
}
.auth-modal .auth-field-ctrl:has(.auth-field-toggle) input {
    padding-right: 42px;
}
.auth-field-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #8b95a5;
    cursor: pointer;
    display: grid;
    place-items: center;
    border-radius: 8px;
    padding: 0;
}
.auth-field-toggle:hover { color: var(--ink); background: rgba(15, 23, 42, .05); }
.auth-field-toggle .auth-eye-off { display: none; }
.auth-field-toggle.is-on .auth-eye { display: none; }
.auth-field-toggle.is-on .auth-eye-off { display: block; }
.auth-remember {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .84rem;
    color: var(--muted);
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-weight: 500;
}
.auth-remember input {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.auth-remember-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1.5px solid #cfc6b6;
    background: #fff;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    transition: background .12s, border-color .12s, box-shadow .12s;
}
.auth-remember-box::after {
    content: "";
    width: 9px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    opacity: 0;
}
.auth-remember input:checked + .auth-remember-box {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 2px 6px rgba(241, 100, 30, .28);
}
.auth-remember input:checked + .auth-remember-box::after { opacity: 1; }
.auth-remember input:focus-visible + .auth-remember-box {
    box-shadow: 0 0 0 3px rgba(241, 100, 30, .18);
}
.auth-modal .auth-form button[type="submit"] {
    height: 42px;
    margin-top: 2px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff7a38 0%, var(--accent) 55%, var(--accent-dk) 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .22) inset,
        0 8px 18px rgba(241, 100, 30, .28);
    letter-spacing: .01em;
}
.auth-modal .auth-form button[type="submit"]:hover {
    background: linear-gradient(180deg, #ff8b4a 0%, var(--accent-dk) 100%);
    box-shadow: 0 10px 22px rgba(241, 100, 30, .34);
}
.auth-modal-switch {
    text-align: center;
    margin: 2px 0 0;
    padding-top: 10px;
    border-top: 1px solid #f0ebe3;
    font-size: .84rem;
    color: var(--muted);
}
.auth-modal-switch a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.auth-modal-switch a:hover { text-decoration: underline; }
@media (max-width: 500px) {
    .auth-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .auth-modal {
        max-width: 100%;
        border-radius: 22px 22px 0 0;
        max-height: 94vh;
        transform: translateY(28px);
    }
    .auth-modal-overlay.is-open .auth-modal {
        transform: translateY(0);
    }
    .auth-modal::before { border-radius: 22px 22px 0 0; }
    .auth-modal-head { padding: 16px 20px 8px; }
    .auth-modal-body { padding: 2px 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-modal-overlay,
    .auth-modal,
    .auth-modal-close { transition: none; }
}

/* =============================================
   Auth page (standalone auth.php)
   ============================================= */
.auth-wrap {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
}
.auth-panel {
    width: 100%;
    max-width: 400px;
}
.auth-wrap .auth-panel.panel {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}
.auth-modal-embedded {
    transform: none;
    max-width: none;
}
/* Shared pill-tab style (auth page + modal use same pattern) */
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #f1f3f6;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
}
.auth-tabs a {
    display: block;
    text-align: center;
    padding: 9px 0;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: .92rem;
    border: none;
    transition: color .15s, background .15s, box-shadow .15s;
}
.auth-tabs a.active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(15, 23, 42, .1);
}
.auth-tabs a:hover:not(.active) {
    color: var(--ink);
    background: rgba(255,255,255,.55);
}
/* Forms */
.auth-form { display: grid; gap: 10px; }
.auth-form button[type="submit"] {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
    font-size: .97rem;
    font-weight: 700;
    padding: 12px;
    border-radius: var(--r-sm);
    margin-top: 6px;
    letter-spacing: .01em;
    transition: background .15s, box-shadow .15s;
}
.auth-form button[type="submit"]:hover {
    background: var(--accent-dk);
    box-shadow: 0 4px 14px rgba(241,100,30,.28);
}
/* Google button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    padding: 10px 16px;
    font-weight: 600;
    background: #fff;
    font-size: .93rem;
    transition: border-color .15s, box-shadow .15s;
}
.google-btn:hover {
    border-color: #4285F4;
    box-shadow: 0 0 0 3px rgba(66,133,244,.1);
}
.google-btn::before {
    content: "";
    width: 18px; height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z'/%3E%3Cpath fill='%23FBBC05' d='M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.18 1.48-4.97 2.35-8.16 2.35-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}
/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 0;
    color: var(--muted);
    font-size: .83rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.auth-divider::before, .auth-divider::after {
    content: ""; flex: 1;
    height: 1px; background: var(--line);
}

.auth-error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid #fecdd3;
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: .9rem;
}
.auth-notice {
    background: var(--blue-bg);
    color: var(--blue);
    border: 1px solid #bfdcff;
    border-radius: var(--r-sm);
    padding: 10px 14px;
    font-size: .9rem;
}

/* =============================================
   AI chat + checkout nav (site-header legacy, kept as fallback)
   ============================================= */
.site-header {
    background: var(--ink);
    color: #fff;
    padding: 16px 0;
}
.site-header h1 { margin: 0 0 2px; font-size: 1.35rem; }
.site-header p { margin: 0; opacity: .7; font-size: .9rem; }
.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.header-auth a, .header-auth span {
    color: rgba(255,255,255,.85);
    text-decoration: none;
    font-size: .9rem;
    border: 1px solid rgba(255,255,255,.3);
    padding: 5px 12px;
    border-radius: var(--r-sm);
    transition: border-color .15s, color .15s;
}
.header-auth a:hover { color: #fff; border-color: rgba(255,255,255,.7); }

/* =============================================
   Cart page
   ============================================= */
.cart-wrap {
    width: min(1000px, 96vw);
    margin: 24px auto;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.cart-table th, .cart-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e8edf3;
    vertical-align: middle;
}
.cart-table th {
    background: #f8fafc;
    font-size: .85rem;
    color: var(--muted);
    font-weight: 600;
}
.cart-product { display: flex; gap: 13px; align-items: center; }
.cart-product img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: var(--r-sm);
    background: #f1f5f9;
    flex-shrink: 0;
}
.cart-product h3 { margin: 0 0 4px; font-size: .97rem; line-height: 1.3; }
.cart-variant { font-size: .83rem; color: var(--muted); margin: 0; }
.cart-sku { font-size: .78rem; color: #94a3b8; margin: 4px 0 0; }
.cart-qty input { width: 60px; padding: 7px 8px; }
.cart-actions-row {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 18px; align-items: center;
    justify-content: space-between;
}
.cart-total { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-nav { margin-bottom: 14px; }
.cart-nav a { color: var(--blue); text-decoration: none; font-weight: 600; }
.cart-nav a:hover { text-decoration: underline; }
.btn-inline { padding: 7px 13px; font-size: .88rem; }
.checkout-link {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--r-sm);
    text-decoration: none;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    border: none;
    font-size: .97rem;
    transition: background .15s;
}
.checkout-link:hover { background: var(--accent-dk); }

/* =============================================
   Orders page
   ============================================= */
.orders-wrap {
    width: min(960px, 96vw);
    margin: 24px auto;
}
.order-block {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.order-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background: #fafaf8;
}
.order-id { font-weight: 700; }
.order-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: .8rem;
    font-weight: 700;
}
.status-pending { background: var(--yellow-bg); color: #92400e; }
.status-paid { background: var(--green-bg); color: var(--green); }
.status-delivered { background: #e0f2fe; color: #0369a1; }
.status-cancelled { background: var(--red-bg); color: var(--red); }

/* =============================================
   Chat page
   ============================================= */
.chat-panel { max-width: 900px; margin: 0 auto; }
.chat-list { display: grid; gap: .75rem; margin-bottom: 1rem; }
.chat-msg {
    border: 1px solid #dbe3ef;
    border-radius: var(--r-md);
    padding: .7rem .85rem;
    background: #f8fbff;
}
.chat-msg.user { background: #eef5ff; border-color: #cddcf8; }
.chat-msg.assistant { background: #f7faf7; border-color: #d8ead7; }
.chat-msg strong { display: inline-block; margin-bottom: .35rem; }
.chat-msg p { margin: 0; line-height: 1.5; white-space: pre-wrap; }
.chat-form { display: grid; gap: .5rem; }
.chat-form textarea {
    resize: vertical; min-height: 100px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    padding: .65rem .8rem;
}
.chat-actions { display: flex; gap: .5rem; }
.chat-clear-btn { background: #6b7280 !important; }
.chat-clear-btn:hover { background: #4b5563 !important; }

/* =============================================
   Profile page
   ============================================= */
.profile-wrap {
    width: min(600px, 96vw);
    margin: 32px auto;
}
.profile-form { display: grid; gap: 16px; }
.profile-form button[type="submit"] {
    background: var(--accent);
    border-color: transparent;
    padding: 12px;
    font-size: .97rem;
    border-radius: var(--r-sm);
}

/* =============================================
   Toast notifications
   ============================================= */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast {
    padding: 12px 18px;
    border-radius: var(--r-md);
    background: var(--ink);
    color: #fff;
    font-size: .93rem;
    font-weight: 600;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    max-width: 340px;
    pointer-events: all;
    animation: toastIn .25s var(--ease) forwards;
}
.toast.toast-success { background: var(--green); }
.toast.toast-error   { background: var(--red); }
.toast.toast-info    { background: var(--blue); }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(12px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* =============================================
   Skeleton loading
   ============================================= */
.skeleton {
    background: linear-gradient(90deg, #f0ede6 25%, #e8e4dc 50%, #f0ede6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--r-sm);
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    border-radius: var(--r-lg);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
}
.skeleton-img  { height: 200px; }
.skeleton-line { height: 14px; margin: 12px 12px 6px; }
.skeleton-line.sm { height: 11px; width: 60%; margin-bottom: 12px; }

/* =============================================
   Footer
   ============================================= */
.footer {
    border-top: 1px solid var(--line);
    background: #fff;
    margin-top: 40px;
}
.footer-inner {
    width: min(1240px, 96vw);
    margin: 0 auto;
    padding: 40px 0 28px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 24px;
}
.footer-brand .brand { margin-bottom: 10px; }
.footer-tagline { font-size: .9rem; color: var(--muted); line-height: 1.6; max-width: 240px; }
.footer-col h4 {
    margin: 0 0 12px;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    font-weight: 700;
}
.footer a {
    display: block;
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
    font-size: .9rem;
    width: fit-content;
    transition: color .12s;
}
.footer a:hover { color: var(--ink); }
.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}
.footer-bottom-inner {
    width: min(1240px, 96vw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .85rem;
    color: var(--muted);
}
.footer-note { color: var(--muted); font-size: .9rem; margin-top: 6px; }

/* Payment icons strip in footer */
.payment-badges {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.payment-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: var(--r-sm);
    font-size: .75rem;
    font-weight: 700;
    color: var(--muted);
}

/* =============================================
   Checkout & Order-confirmation pages
   ============================================= */
.checkout-wrap {
    width: min(680px, 96vw);
    margin: 28px auto;
}
.checkout-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.checkout-section h3 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.payment-option {
    border: 2px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.payment-option:has(input:checked),
.payment-option.selected {
    border-color: var(--accent);
    background: rgba(241,100,30,.04);
}
.payment-option input[type="radio"] { margin-top: 2px; accent-color: var(--accent); }

/* =============================================
   Breadcrumb
   ============================================= */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumb .sep { color: #c7bfb4; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* =============================================
   Mobile: hamburger (styles now in topbar section above)
   ============================================= */
/* Legacy selector aliases so old PHP that might call mob-menu-toggle still works */
.mob-menu-toggle { display: none; }
.hamburger-bars { display: flex; flex-direction: column; gap: 5px; width: 20px; pointer-events: none; }
.hamburger-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; transform-origin: center; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 960px) {
    /* ── Topbar: stacked layout ── */
    .topbar-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 8px max(14px, 3vw) 10px;
        gap: 8px;
        position: relative;   /* anchor for abs-positioned dropdown */
    }
    /* Brand + home stay left, hamburger goes far right */
    .topbar-brand { order: 1; }
    .mob-toggle {
        order: 2;
        display: inline-flex;
        margin-left: auto;
    }

    /* Categories + search share the row below the brand row */
    .nb-cat-dd {
        order: 3;
        flex: 0 1 auto;
        min-width: 0;
        max-width: 46%;
        align-self: center;
    }
    .top-search {
        order: 4;
        flex: 1 1 0%;
        min-width: 0;
        flex-basis: 0;
        max-width: none;
    }

    /* Nav: hidden by default, shown as a dropdown when .is-open */
    .topnav {
        order: 5;
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        align-self: stretch;
        gap: 4px;
        margin-left: 0;
        padding: 8px 0 4px;
        border-top: 1px solid var(--line);
        border-left: none;
        padding-left: 0;
        min-width: auto;
        max-width: none;
        overflow: visible;
    }
    .topnav.is-open {
        display: flex;
        z-index: 110;
        position: relative;
        margin-top: 2px;
        padding: 10px 12px 12px;
        border: 1px solid var(--line);
        border-radius: var(--r-md);
        background: #fff;
        box-shadow: var(--shadow-md);
    }

    /* Every nav item full-width, left-aligned, touch-friendly */
    .nb-link,
    .cart-btn,
    .nb-cta,
    .user-pill {
        width: 100%;
        height: 44px;
        border-radius: var(--r-md);
        padding: 0 14px;
        font-size: .93rem;
        justify-content: flex-start;
    }
    .nb-cta { justify-content: center; }
    .user-pill { max-width: none; padding: 0 14px 0 8px; }
    .user-menu {
        width: 100%;
    }
    .user-menu-panel {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 7px;
        border-radius: var(--r-md);
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
    .user-menu-panel::before {
        content: none;
    }
    .user-menu-item {
        height: 40px;
    }
    .cart-chip { position: static; }

    /* Help menu becomes a full-width, inline accordion in the mobile drawer */
    .nb-help { width: 100%; }
    .nb-help-btn {
        width: 100%;
        height: 44px;
        padding: 0 14px;
        border-radius: var(--r-md);
        font-size: .93rem;
        justify-content: flex-start;
    }
    .nb-help-caret { margin-left: auto; }
    .nb-help-panel {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 7px;
        padding: 6px;
        border-radius: var(--r-md);
        border: none;
        box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .08);
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }
    .nb-help-panel::before { content: none; }

    /* Categories dropdown in top row (beside search): compact trigger + panel */
    .topbar-inner .nb-cat-btn {
        max-width: 100%;
        padding: 0 9px 0 10px;
        gap: 6px;
        font-size: .8rem;
    }
    .topbar-inner .nb-cat-btn-icon {
        width: 16px;
        height: 16px;
    }
    .topbar-inner .nb-cat-panel {
        min-width: min(280px, calc(100vw - 20px));
        left: 0;
        right: auto;
    }
    .topbar-inner .nb-cat-panel-inner {
        grid-template-columns: 1fr;
    }
    .topbar-inner .nb-cat-panel-inner--tree {
        display: block;
    }
    .topbar-inner .nb-cat-tree {
        grid-template-columns: 1fr;
    }
    .topbar-inner .nb-cat-col {
        max-height: 38vh;
        border-right: none;
        border-bottom: 1px solid rgba(15, 23, 42, .08);
    }
    .topbar-inner .nb-cat-col--l3:last-of-type,
    .topbar-inner .nb-cat-col:last-child {
        border-bottom: none;
    }
    .nb-cat-back {
        display: flex;
    }
    .top-search .search-wrap--scoped .nb-scope-chip {
        max-width: min(130px, 38vw);
    }

    .topbar-inner--no-search .nb-cat-dd {
        order: 3;
        max-width: none;
    }
    .topbar-inner--no-search .topnav {
        order: 4;
    }

    /* Footer */
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }

    .product-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .product-card img { height: 170px; }
    .filter-bar { flex-direction: column; align-items: flex-start; }
    .filter-bar-right { width: 100%; justify-content: flex-start; }
}

@media (max-width: 640px) {
    .search-btn-label { display: none; }
    .search-btn { padding: 0 13px; }
}

@media (max-width: 600px) {
    .brand-name { font-size: .95rem; }
    .cat-pill { padding: 6px 11px; font-size: .82rem; }

    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .product-card img { height: 136px; }
    .product-card h3 { font-size: .78rem; }
    .price { font-size: .88rem; }
    .product-card .info { min-height: 0; }

    /* Best-sellers forced to 2 columns on phones */
    #best-sellers .best-sellers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* Reco-section heading tighter */
    .reco-section-title { font-size: 1.1rem; }
    .reco-section-sub   { font-size: .82rem; }
    .reco-section { margin-bottom: 20px; }

    /* Btn load-more full width */
    .btn-load-more { width: 100%; justify-content: center; }

    .trust-strip-inner { gap: 12px; }

    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 900px) and (min-width: 601px) {
    #best-sellers .best-sellers-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ── 400 px and below ── */
@media (max-width: 400px) {
    .product-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    .product-card img { height: 120px; }
    .product-card h3 { font-size: .75rem; }
    .product-card .info { padding: 8px 9px 10px; min-height: 0; }

    /* Best-sellers: 2-column on very small phones */
    #best-sellers .best-sellers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    /* Reco section: tighter */
    .reco-section-title { font-size: 1rem; }
    .reco-section-sub   { font-size: .8rem; }
    .see-all-link { padding: 5px 10px; font-size: .8rem; }

    /* Container, panel */
    .container { padding: 0 6px; margin: 8px auto 16px; gap: 10px; }
    .panel { padding: 10px; border-radius: 10px; }
}

/* ── 360 px and below ── */
@media (max-width: 360px) {
    body { font-size: .9rem; }
    .product-grid { gap: 5px; }
    .product-card img { height: 110px; }
    .product-card h3 { font-size: .72rem; }
    .product-card .info { padding: 7px 8px 9px; }
    .price { font-size: .84rem; }

    .reco-section-title { font-size: .95rem; }
    .see-all-link { display: none; }   /* too tight — let users scroll to see all */

    .btn-load-more { width: 100%; justify-content: center; padding: 10px 16px; }
    .container { padding: 0 5px; }

    /* Topbar: tighter padding */
    .topbar-inner { padding: 6px 10px 8px; gap: 6px; }
    .brand-mark { width: 30px; height: 30px; font-size: .85rem; border-radius: 8px; }
}

/* ── 320 px and below (iPhone SE 1st gen, older Androids) ── */
@media (max-width: 320px) {
    .product-grid { gap: 4px; }
    .product-card img { height: 100px; }
    .product-card h3 { font-size: .7rem; }
    .container { padding: 0 4px; }
    .topbar-inner { padding: 5px 8px 7px; }
}

/* =============================================
   Tablet-first responsive enhancements (all pages)
   ============================================= */
@media (max-width: 768px) {
    /* ── Chat page ── */
    .chat-panel { padding: 14px; }
    .chat-form textarea { min-height: 80px; }
    .chat-actions { flex-direction: column; }
    .chat-actions button { width: 100%; }

    /* ── Cart page ── */
    .ct-heading { font-size: 1.2rem; }
    .ct-trust { grid-template-columns: 1fr; gap: 6px; }
    .ct-pay-badges { justify-content: center; }

    /* ── Checkout page ── */
    .co-steps { gap: 0; }
    .co-step { font-size: .78rem; }
    .co-step-bar { width: 24px; margin: 0 4px; }
    .co-panel { padding: 16px; }
    .co-trust { grid-template-columns: 1fr; gap: 6px; }

    /* ── Profile page ── */
    .profile-wrap { width: 96vw; margin: 14px auto 20px; }
    .profile-wrap .panel { padding: 14px; }

    /* ── Orders page ── */
    .ord-wrap { padding: 1rem 0 3rem; }
    .ord-page-hdr h1 { font-size: 1.3rem; }
    .ord-card-hdr { grid-template-columns: 1fr; gap: 8px; }
    .ord-card-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
    .ord-card-btns { width: 100%; }
    .ord-card-btns .ord-btn { flex: 1; justify-content: center; }

    /* ── Order confirmation page ── */
    .oc-hero { flex-direction: column; text-align: center; align-items: center; padding: 1.75rem 1.25rem 1.5rem; }
    .oc-hero-body { text-align: center; }
    .oc-hero-body > div:last-child { justify-content: center; }
    .oc-steps { gap: 0; }
    .oc-step-label { font-size: .68rem; }
    .oc-step-dot { width: 30px; height: 30px; font-size: .68rem; }
    .oc-actions { flex-direction: column; }
    .oc-actions .oc-btn { width: 100%; justify-content: center; }

    /* ── Product page ── */
    .pd-reco-grid { grid-template-columns: repeat(2, 1fr) !important; }

    /* ── Breadcrumb ── */
    .breadcrumb { font-size: .78rem; gap: 4px; }

    /* ── Hero ── */
    .hero h1 { font-size: 1.2rem; }
    .hero p { font-size: .88rem; }

    /* ── Auth page ── */
    .auth-wrap { padding: 24px 12px; }

    /* ── Global panels ── */
    .panel { padding: 14px; }
    .container { margin: 14px auto 24px; gap: 12px; }
}

/* =============================================
   Phone-first responsive enhancements (all pages)
   ============================================= */
@media (max-width: 480px) {
    /* ── Global ── */
    body { font-size: .93rem; }
    .container { width: 100%; padding: 0 8px; box-sizing: border-box; margin: 10px auto 20px; }
    .panel { border-radius: var(--r-md); padding: 12px; }

    /* ── Navbar ── */
    .brand-name { display: none; }
    .nb-cat-btn-label { display: none; }
    .nb-cat-btn { padding: 0 10px; gap: 4px; }
    .feedtab { padding: 0 10px; font-size: .8rem; height: 26px; }
    .feedtabs-inner { gap: 4px; padding: 5px 12px 7px; }

    /* ── Chat page ── */
    .chat-panel h2 { font-size: 1rem; }
    .chat-msg { padding: .5rem .65rem; }
    .chat-msg p { font-size: .88rem; }

    /* ── Cart page ── */
    .ct-wrap { padding: 10px 10px 30px; }
    .ct-heading { font-size: 1.1rem; }
    .ct-card { grid-template-columns: 64px 1fr; gap: 10px; padding: 12px; }
    .ct-card-img { width: 64px; height: 64px; border-radius: 8px; }
    .ct-card-name { font-size: .88rem; }
    .ct-card-price { font-size: .95rem; }
    .ct-card-actions { flex-direction: row; align-items: center; grid-column: 1 / -1; justify-content: space-between; }
    .ct-summary { padding: 14px; }
    .ct-summary h2 { font-size: .95rem; }
    .ct-btn-checkout { padding: 12px; font-size: .95rem; }
    .ct-reco-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .ct-reco h2 { font-size: 1rem; }

    /* ── Checkout page ── */
    .co-wrap { padding: 10px 10px 30px; }
    .co-steps { display: none; }
    .co-panel { padding: 14px 12px; margin-bottom: 10px; border-radius: 12px; }
    .co-panel h2 { font-size: .95rem; gap: 6px; margin-bottom: 12px; }
    .co-panel h2 svg { width: 16px; height: 16px; }
    .co-field input, .co-field select { padding: 10px 11px; font-size: .9rem; border-radius: 8px; }
    .co-row { grid-template-columns: 1fr; gap: 10px; }
    .co-ship-opt { padding: 10px 12px; }
    .co-pay-opt { padding: 10px 12px; }
    .co-summary { padding: 14px; }
    .co-btn-place { padding: 12px; font-size: .95rem; border-radius: 10px; }
    .co-items img { width: 40px; height: 40px; }
    .co-item-name { font-size: .8rem; }

    /* ── Product page ── */
    .pd-wrap { padding: 10px 10px 30px !important; }
    .pd-top { padding: 12px !important; gap: 16px !important; }
    .pd-title { font-size: 1.1rem !important; }
    .pd-price { font-size: 1.3rem !important; }
    .pd-cart-row { flex-direction: column !important; gap: 8px !important; }
    .pd-cart-row button, .pd-cart-row a { width: 100% !important; justify-content: center !important; }
    .pd-thumbs { gap: 4px !important; }
    .pd-thumbs img { border-radius: 6px !important; }
    .pd-info-panel { padding: 12px !important; }
    .pd-reco-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }

    /* ── Profile page ── */
    .profile-wrap { width: 100%; padding: 0 8px; box-sizing: border-box; margin: 10px auto 20px; }
    .profile-wrap .panel { padding: 12px; border-radius: 12px; }
    .two { grid-template-columns: 1fr; gap: 10px; }
    .actions { flex-direction: column; }
    .actions button { width: 100%; }
    .actions a { text-align: center; }

    /* ── Orders page ── */
    .ord-wrap { width: 100%; padding: .75rem 8px 2rem; box-sizing: border-box; }
    .ord-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ord-stat { padding: .75rem .9rem; }
    .ord-stat-val { font-size: 1.3rem; }
    .ord-stat-label { font-size: .7rem; }
    .ord-controls { flex-direction: column; align-items: stretch; }
    .ord-search-wrap { width: 100%; }
    .ord-tab { height: 32px; padding: 0 12px; font-size: .8rem; }
    .ord-progress { padding: 8px 12px; overflow-x: auto; }
    .ord-prog-step-label { font-size: .58rem; }
    .ord-prog-dot { width: 18px; height: 18px; font-size: .55rem; }
    .ord-items-summary { padding: 10px 12px; }
    .ord-thumb { width: 38px; height: 38px; }
    .ord-thumb-more { width: 38px; height: 38px; font-size: .65rem; }
    .ord-card-foot { padding: 10px 12px; }
    .ord-card-btns { flex-direction: column; width: 100%; }
    .ord-btn { width: 100%; justify-content: center; }

    /* ── Order confirmation page ── */
    .oc-wrap { width: 100%; padding: 0 8px; box-sizing: border-box; margin: 1rem auto 2rem; gap: 1rem; }
    .oc-hero { padding: 1.25rem 1rem; }
    .oc-hero-icon { width: 44px; height: 44px; }
    .oc-hero-title { font-size: 1.15rem; }
    .oc-hero-sub { font-size: .85rem; }
    .oc-progress { padding: 1rem; overflow-x: auto; }
    .oc-step-dot { width: 28px; height: 28px; font-size: .65rem; }
    .oc-step-label { font-size: .65rem; }
    .oc-card-hdr h3 { font-size: .85rem; }
    .oc-card-body { padding: 1rem; }
    .oc-item-img, .oc-item-img-placeholder { width: 48px; height: 48px; }
    .oc-cols { grid-template-columns: 1fr !important; }
    .oc-pay-card { padding: .9rem; }

    /* ── Auth page / modal ── */
    .auth-wrap { padding: 16px 8px; min-height: 50vh; }
    .auth-panel { max-width: 100%; }
    .auth-form button[type="submit"] { padding: 13px; font-size: .93rem; }
    .google-btn { padding: 10px 12px; font-size: .9rem; }

    /* ── Footer ── */
    .footer-inner { grid-template-columns: 1fr; gap: 16px; padding: 24px 12px 20px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; padding: 12px; }

    /* ── Hero ── */
    .hero { padding: 8px 0 10px; }
    .hero h1 { font-size: 1.1rem; }
    .hero p { font-size: .82rem; }

    /* ── Empty state ── */
    .empty-state { padding: 40px 16px; }
    .empty-state h3 { font-size: 1.1rem; }
    .empty-state a { padding: 10px 18px; font-size: .9rem; }
}

/* ── Shop-wide delivery & payment info (index, cart, product, checkout) */
.idx-shopping-info { margin-top: 8px; }
.idx-shopping-info-title { margin: 0 0 14px; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.idx-shopping-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) {
    .idx-shopping-info-grid { grid-template-columns: 1fr; }
}
.idx-shopping-info-block h3 { margin: 0 0 8px; font-size: .95rem; font-weight: 800; color: var(--ink); }
.idx-shopping-info-block p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.idx-shopping-pay-intro { margin-bottom: 12px !important; }
.idx-pay-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.idx-pay-card { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }
.idx-pay-logo { width: 40px; height: 40px; border-radius: 8px; background: #fff; border: 1px solid #e2e8f0; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.idx-pay-logo img { width: 100%; height: 100%; object-fit: contain; }
.idx-pay-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.idx-pay-title { font-size: .84rem; font-weight: 800; color: var(--ink); line-height: 1.2; }
.idx-pay-sub { font-size: .75rem; font-weight: 700; color: var(--muted); line-height: 1.3; }

/* Home link (header) */
.nb-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: var(--nb-control-h);
    padding: 0 13px;
    border-radius: var(--r-full);
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .12s, background .12s, color .12s, box-shadow .12s;
}
.nb-home-link svg { flex-shrink: 0; display: block; }
.nb-home-link:hover {
    border-color: rgba(241,100,30,.40);
    background: rgba(241,100,30,.04);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(241,100,30,.06);
}
/* Icon only beside the logo. The name stays as a tooltip and for screen readers. */
.nb-home-link span { display: none; }
.nb-home-link { width: var(--nb-control-h); padding: 0; flex-shrink: 0; }
@media (min-width: 961px) and (max-width: 1180px) {
    .search-btn-label { display: none; }
    .search-btn { padding: 0 13px; }
}

/* ── Bottom tab bar (phones and small tablets) ─────────────────── */
.bottom-nav { display: none; }
@media (max-width: 768px) {
    .bottom-nav {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        background: rgba(255, 255, 255, .97);
        -webkit-backdrop-filter: blur(12px) saturate(1.3);
        backdrop-filter: blur(12px) saturate(1.3);
        border-top: 1px solid var(--line);
        box-shadow: 0 -6px 20px rgba(15, 23, 42, .07);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    .bottom-nav__item {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        height: 58px;
        padding: 0 2px;
        color: #6b7280;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .01em;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        transition: color .15s;
    }
    .bottom-nav__item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bottom-nav__item svg { width: 23px; height: 23px; display: block; }
    .bottom-nav__item:active { color: var(--accent); }
    .bottom-nav__item.is-active { color: var(--accent); }
    .bottom-nav__item.is-active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 28%;
        right: 28%;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--accent);
    }
    .bottom-nav__icon { position: relative; display: inline-flex; }
    .bottom-nav__badge {
        position: absolute;
        top: -6px;
        right: -11px;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        border-radius: 999px;
        border: 2px solid #fff;
        background: var(--accent);
        color: #fff;
        font-size: .6rem;
        font-weight: 800;
        line-height: 1;
        display: grid;
        place-items: center;
        box-sizing: border-box;
    }
    .bottom-nav__badge[hidden] { display: none; }
    body.has-bottom-nav { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
    body.has-bottom-nav .toast-container { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .bottom-nav { display: none !important; } }

/* Never let a stray wide element push the page sideways on phones. */
html, body { max-width: 100%; }
body { overflow-x: clip; }
.pwa-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1450;
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(6px) saturate(1.1);
    -webkit-backdrop-filter: blur(6px) saturate(1.1);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), visibility .22s var(--ease);
}
.pwa-modal-overlay.is-open { opacity: 1; visibility: visible; }
.pwa-modal-overlay[hidden] { display: flex; }
.pwa-modal {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 420px;
    max-height: 92vh;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 40px rgba(15, 23, 42, .24);
    transform: translateY(24px);
    transition: transform .24s var(--ease);
}
.pwa-modal-overlay.is-open .pwa-modal { transform: translateY(0); }
@media (min-width: 640px) {
    .pwa-modal-overlay { align-items: center; padding: 20px 16px; }
    .pwa-modal { border-radius: 22px; transform: translateY(18px) scale(.98); }
    .pwa-modal-overlay.is-open .pwa-modal { transform: translateY(0) scale(1); }
}
.pwa-modal::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, #e0571a 0%, var(--accent) 45%, #ffb07a 100%);
    pointer-events: none;
}
.pwa-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, .08);
    background: rgba(255, 255, 255, .85);
    color: var(--muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
    z-index: 2;
    transition: background .12s, color .12s, transform .12s;
}
.pwa-modal-close:hover { background: #fff; color: var(--ink); transform: rotate(90deg); }
.pwa-modal-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pwa-modal-head {
    text-align: center;
    padding: 30px 28px 6px;
    background:
        radial-gradient(120px 80px at 88% -10%, rgba(241, 100, 30, .16), transparent 70%),
        linear-gradient(180deg, #fff8f2 0%, #ffffff 100%);
}
.pwa-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(241, 100, 30, .28), 0 0 0 1px rgba(15, 23, 42, .04);
}
.pwa-modal-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pwa-modal-title { font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0 0 4px; }
.pwa-modal-sub { font-size: .86rem; color: var(--muted); margin: 0; line-height: 1.45; }
.pwa-modal-body { padding: 16px 28px 24px; }
.pwa-modal-benefits { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pwa-modal-benefits li { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--ink); min-width: 0; }
.pwa-modal-benefits svg { flex-shrink: 0; color: var(--accent); }
.pwa-modal-steps { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: pwa-step; min-width: 0; }
.pwa-modal-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: .86rem; color: var(--ink); line-height: 1.5; min-width: 0; }
.pwa-modal-steps li::before {
    counter-increment: pwa-step;
    content: counter(pwa-step);
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.pwa-modal-steps .pwa-share-icon { display: inline-flex; vertical-align: -5px; margin: 0 2px; color: var(--accent); }
.pwa-modal-actions { display: flex; gap: 10px; }
.pwa-modal-actions .btn { flex: 1; }
@media (display-mode: standalone) {
    [data-pwa-install], .pwa-modal-overlay { display: none !important; }
}
.is-installed-app [data-pwa-install] { display: none !important; }
.pwa-modal-benefits[hidden],
.pwa-modal-steps[hidden],
.pwa-modal-actions .btn[hidden] { display: none !important; }
.pwa-modal-steps li > span { flex: 1; min-width: 0; }
.pwa-modal-note { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: .82rem; line-height: 1.45; }
.pwa-modal-note[hidden] { display: none; }
.pwa-stores { display: grid; gap: 8px; margin: 0 0 18px; }
.pwa-stores[hidden] { display: none; }
.pwa-stores-label { font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 2px; }
.pwa-store-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    transition: background .15s, transform .1s;
}
.pwa-store-link:hover { background: #000; }
.pwa-store-link:active { transform: scale(.98); }
.pwa-store-link svg { width: 24px; height: 24px; flex-shrink: 0; }
.pwa-store-link small { display: block; font-size: .66rem; opacity: .75; line-height: 1.1; }
.pwa-store-link strong { display: block; font-size: .95rem; line-height: 1.2; }

/* ── Logo image (Business Settings → wide logo) ─────────────────── */
.brand--logo { gap: 0; }
.brand-logo-wide { display: block; height: 46px; width: auto; max-width: 190px; }
.brand--logo .brand-mark { display: none; }
.brand-mark--img { background: none; box-shadow: none; border-radius: 0; }
.brand-mark--img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-brand .brand-logo-wide { height: 56px; max-width: 220px; }
@media (max-width: 480px) {
    /* Phones: the square icon keeps room for search and the menu. */
    .topbar .brand--logo .brand-logo-wide { display: none; }
    .topbar .brand--logo .brand-mark { display: grid; width: 36px; height: 36px; }
}

/* ── Endless feed: placeholder cards under the products ─────────── */
.feed-skeletons { margin-top: 14px; }
.feed-skeletons[hidden] { display: none; }
.product-card.is-skeleton { pointer-events: none; box-shadow: none; }
.product-card.is-skeleton:hover { transform: none; box-shadow: none; border-color: rgba(0,0,0,.07); }
.is-skeleton .sk-img,
.is-skeleton .sk-line {
    background: linear-gradient(90deg, #f1efe9 0%, #f8f7f3 45%, #f1efe9 90%);
    background-size: 220% 100%;
    animation: sk-shimmer 1.3s ease-in-out infinite;
}
.is-skeleton .sk-img { height: 226px; }
.is-skeleton .info { display: grid; gap: 8px; }
.is-skeleton .sk-line { height: 12px; border-radius: 6px; }
.is-skeleton .sk-line.sk-short { width: 45%; height: 14px; }
@keyframes sk-shimmer { from { background-position: 100% 0; } to { background-position: -120% 0; } }
@media (prefers-reduced-motion: reduce) { .is-skeleton .sk-img, .is-skeleton .sk-line { animation: none; } }
@media (max-width: 960px) { .is-skeleton .sk-img { height: 170px; } }
@media (max-width: 600px) { .feed-skeletons { margin-top: 8px; } .is-skeleton .sk-img { height: 136px; } }
@media (max-width: 400px) { .feed-skeletons { margin-top: 6px; } .is-skeleton .sk-img { height: 120px; } }
@media (max-width: 360px) { .is-skeleton .sk-img { height: 110px; } }
@media (max-width: 320px) { .is-skeleton .sk-img { height: 100px; } }

/* Sign-up: agreement line under the button */
.auth-legal { margin: 8px 0 0; font-size: .76rem; color: var(--muted); text-align: center; line-height: 1.45; }
.auth-legal a { color: var(--accent); font-weight: 700; }
.nb-help-legal { margin: 6px 0 0; padding: 10px 12px 2px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.nb-help-legal a { color: var(--muted); font-weight: 600; text-decoration: none; }
.nb-help-legal a:hover { color: var(--accent); text-decoration: underline; }

/* "Install app" for signed-out visitors: in the Support menu on computers,
   straight in the menu on phones (signed-in shoppers have it in the account menu). */
.nb-guest-install { display: none; }
.nb-help-install { margin: 8px 0 2px; }
@media (max-width: 960px) {
    .nb-guest-install { display: flex; margin-top: 0; }
    .nb-help-install { display: none; }
}
