:root {
    color-scheme: light;
    --ink: #1a1207;
    --muted: #7a6450;
    --soft: #fff4e8;
    --line: #ffe0bc;
    --paper: #fffaf5;
    --panel: #ffffff;
    --accent: #e8601a;
    --accent-dark: #c44a0e;
    --gold: #f5a623;
    --gold-soft: #fff3d6;
    --blue: #2563eb;
    --danger: #b42318;
    --shadow: 0 14px 32px rgba(26, 18, 7, .09);
    --radius: 10px;
    --ps-screen-gutter: 20px;
    --ps-section-gap: 18px;
    --ps-block-gap: 12px;
    --ps-app-max-width: 520px;
    --ps-tabbar-float-gap: 10px;
    --ps-tabbar-shell-height: 58px;
    --ps-tabbar-offset: calc(var(--ps-tabbar-shell-height) + var(--ps-tabbar-float-gap) + 14px);
    --ps-tabbar-sticky-base: calc(max(var(--ps-tabbar-float-gap), env(safe-area-inset-bottom)) + var(--ps-tabbar-shell-height));
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.ps-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 18px 120px;
}

.ps-topbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 12px max(var(--ps-screen-gutter), env(safe-area-inset-right)) 12px max(var(--ps-screen-gutter), env(safe-area-inset-left));
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 40;
}

.ps-brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 800; }
.ps-brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: #1a1207; color: #fff; font-weight: 900;
    overflow: hidden;
}
.ps-brand-mark img, .ps-brand-mark svg { width: 38px; height: 38px; display: block; }
.ps-brand-name { display: block; font-size: 18px; line-height: 1; color: #1a1207; }
.ps-brand-name strong { color: var(--accent); }
.ps-brand-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; font-weight: 500; }

.ps-brand-wordmark {
    display: none;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
    color: #1a1207;
    white-space: nowrap;
    line-height: 1;
}
.ps-brand-wordmark strong { color: var(--accent); }

.ps-topbar-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.ps-topbar-nav a {
    color: var(--ink);
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
}
.ps-topbar-nav a:hover { background: var(--soft); text-decoration: none; }

.ps-topbar-actions { display: flex; gap: 10px; align-items: center; }
.ps-user-pill {
    background: var(--soft);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--accent-dark);
    font-weight: 700;
}
.ps-user-pill small { color: var(--muted); font-weight: 600; }

.ps-coins-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff4d6;
    border: 1px solid #f5a623;
    border-radius: 999px;
    padding: 4px 10px 4px 6px;
    font-size: 12px;
    font-weight: 900;
    color: #1a1207;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.ps-coins-pill:hover { background: #ffe9a0; }

.ps-btn {
    background: var(--accent);
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    min-height: 40px;
}
.ps-btn:hover { background: var(--accent-dark); }
.ps-btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.ps-btn-ghost:hover { background: var(--soft); }
.ps-btn-warn { background: var(--danger); }
.ps-btn-gold { background: var(--gold); color: #1f2933; }
.ps-btn-block { width: 100%; }
.ps-btn-sm { padding: 6px 10px; min-height: 32px; font-size: 13px; }
.ps-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Native-app loading feedback (iOS/Material-inspired) */
.is-loading,
.is-loading-pending {
    pointer-events: none;
    touch-action: none;
}

.is-loading-pending {
    transition: transform .14s cubic-bezier(.4, 0, .2, 1), opacity .14s ease;
}

.is-loading-pending:not(.store-app-stat):not(.store-app-action):not(.store-app-cat) {
    transform: scale(.985);
    opacity: .9;
}

.button-spinner {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    opacity: 0;
    animation:
        ps-native-spin .72s linear infinite,
        ps-spinner-in .18s ease forwards;
}

@keyframes ps-native-spin {
    to { transform: rotate(360deg); }
}

@keyframes ps-spinner-in {
    from { opacity: 0; transform: scale(.82); }
    to { opacity: 1; transform: scale(1); }
}

button.is-pressed:not(:disabled):not(.is-loading),
a.is-pressed:not(.is-loading) {
    transform: scale(.97);
    transition: transform .12s cubic-bezier(.4, 0, .2, 1);
}

.store-app-action.is-pressed:not(.is-loading) .store-app-action-icon,
.store-app-cat.is-pressed:not(.is-loading) .store-app-cat-icon {
    transform: scale(.94);
    transition: transform .12s cubic-bezier(.4, 0, .2, 1);
}

.ps-btn .button-spinner,
.ps-btn-ghost .button-spinner {
    border-color: rgba(255, 255, 255, .35);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-top-color: #fff;
    border-left-color: rgba(255, 255, 255, .75);
}

.ps-btn-ghost .button-spinner,
.ps-btn.ps-btn-ghost .button-spinner {
    border-color: rgba(15, 118, 110, .18);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-top-color: var(--accent-dark);
    border-left-color: rgba(15, 118, 110, .45);
}

.qty-button .button-spinner,
.add-button .button-spinner,
.cart-qty-btn .button-spinner,
.cart-remove-btn .button-spinner,
.pdp-icon-btn .button-spinner,
.store-restock-add .button-spinner,
.flash-card-cta .button-spinner {
    border-color: rgba(232, 96, 26, .2);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-top-color: var(--accent);
    border-left-color: rgba(232, 96, 26, .55);
}

.ps-btn.is-loading,
.ps-btn-ghost.is-loading,
button.is-loading,
a.is-loading,
.qty-button.is-loading,
.add-button.is-loading,
.flash-card-cta.is-loading {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ps-btn.is-loading > :not(.button-spinner),
.ps-btn-ghost.is-loading > :not(.button-spinner),
.flash-card-cta.is-loading > :not(.button-spinner) {
    opacity: 0;
}

.ps-btn.is-loading .button-spinner,
.ps-btn-ghost.is-loading .button-spinner,
.flash-card-cta.is-loading .button-spinner {
    position: absolute;
    margin: 0;
}

.qty-button.is-loading,
.store-restock-add.is-loading,
.pdp-icon-btn.is-loading,
.cart-qty-btn.is-loading,
.cart-remove-btn.is-loading,
.add-button.is-loading {
    color: transparent;
}

.qty-button.is-loading .button-spinner,
.store-restock-add.is-loading .button-spinner,
.pdp-icon-btn.is-loading .button-spinner,
.cart-qty-btn.is-loading .button-spinner,
.cart-remove-btn.is-loading .button-spinner,
.add-button.is-loading .button-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
}

.add-button.is-loading svg,
.pdp-icon-btn.is-loading svg,
.cart-qty-btn.is-loading svg,
.cart-remove-btn.is-loading svg {
    opacity: 0;
}

.store-app-action,
.store-app-cat,
.store-app-stat,
.ps-icon-btn {
    transition: transform .14s cubic-bezier(.4, 0, .2, 1), opacity .14s ease;
}

.store-app-action.is-loading .store-app-action-icon,
.store-app-cat.is-loading .store-app-cat-icon,
.ps-icon-btn.is-loading svg {
    opacity: 0;
    transition: opacity .12s ease;
}

.store-app-action-icon,
.store-app-cat-icon {
    transition: transform .12s cubic-bezier(.4, 0, .2, 1), opacity .12s ease;
}

.store-app-action-icon,
.store-app-cat-icon,
.ps-icon-btn {
    position: relative;
}

.store-app-action-icon .button-spinner,
.store-app-cat-icon .button-spinner,
.ps-icon-btn .button-spinner {
    position: absolute;
    inset: 0;
    margin: auto;
}

.store-app-action-icon .button-spinner {
    border-top-color: #0057d9;
    border-left-color: rgba(0, 87, 217, .45);
    border-color: rgba(0, 87, 217, .16);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.store-app-cat-icon .button-spinner {
    border-top-color: #fff;
    border-left-color: rgba(255, 255, 255, .65);
    border-color: rgba(255, 255, 255, .28);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.ps-icon-btn .button-spinner {
    border-top-color: var(--accent);
    border-left-color: rgba(232, 96, 26, .5);
    border-color: rgba(232, 96, 26, .18);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.ps-tabs a.is-loading svg,
.ps-tabs .ps-tabs-cart.is-loading .ps-tabs-cart-ring svg {
    opacity: 0;
    transition: opacity .12s ease;
}

.ps-tabs a .button-spinner,
.ps-tabs .ps-tabs-cart .button-spinner {
    position: absolute;
    top: 6px;
    left: 50%;
    margin-left: -9px;
}

.ps-tabs .ps-tabs-cart.is-loading .ps-tabs-cart-ring .button-spinner {
    top: 50%;
    left: 50%;
    margin: -9px 0 0 -9px;
}

.ps-tabs a.is-loading span:last-child,
.ps-tabs .ps-tabs-cart.is-loading span:last-child {
    opacity: .45;
}

.ps-tabs a .button-spinner {
    border-top-color: var(--accent);
    border-left-color: rgba(232, 96, 26, .5);
    border-color: rgba(232, 96, 26, .18);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.ps-tabs .ps-tabs-cart .button-spinner {
    border-top-color: #fff;
    border-left-color: rgba(255, 255, 255, .65);
    border-color: rgba(255, 255, 255, .28);
    border-right-color: transparent;
    border-bottom-color: transparent;
}

.store-app-stat.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    animation: ps-spinner-in .16s ease forwards;
}

.store-app-stat.is-loading .button-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -9px;
    z-index: 1;
}

.store-app-stat.is-loading > *:not(.button-spinner) {
    opacity: .35;
}

.flash {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    font-weight: 700;
}
.flash-success { background: var(--soft); color: var(--accent-dark); }
.flash-error { background: #fdecea; color: var(--danger); }
.flash ul { margin: 6px 0 0; padding-left: 18px; font-weight: 500; }

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 14px; }
.panel-soft {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: #f8fafc;
}
.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}
.panel h2, .panel h3 { margin: 0; font-size: 18px; }
.muted { color: var(--muted); }

.stack-12 > * + * { margin-top: 12px; }
.stack-8 > * + * { margin-top: 8px; }

.grid {
    display: grid;
    gap: 14px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.form-row { display: grid; gap: 8px; margin-bottom: 12px; }
.form-row label { font-weight: 700; font-size: 13px; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.form-row textarea { min-height: 70px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232, 96, 26, .14);
}
.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 8px; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.table th, .table td {
    border-bottom: 1px solid var(--line);
    padding: 8px 6px;
    text-align: left;
    vertical-align: top;
}
.table th { color: var(--muted); font-weight: 700; }
.table tbody tr:hover { background: var(--paper); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: var(--soft);
    color: var(--accent-dark);
}
.chip-warn { background: #fdecea; color: var(--danger); }
.chip-gold { background: var(--gold-soft); color: #6c4a00; }
.chip-info { background: #dbeafe; color: #1d4ed8; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.kpi span { color: var(--muted); font-size: 12px; font-weight: 700; }
.kpi strong { display: block; font-size: 22px; margin-top: 6px; }

.layout-2col { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.layout-2col .side { position: sticky; top: 96px; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.product {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 320px;
}
.product-media {
    height: 112px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(15,118,110,.12), rgba(242,183,5,.18));
    color: var(--accent-dark);
    font-size: 34px;
    font-weight: 900;
}
.product-body { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 12px; }
.product-name { font-size: 15px; font-weight: 800; line-height: 1.25; min-height: 36px; }
.price-row { display: flex; justify-content: space-between; align-items: end; }
.price { color: var(--accent-dark); font-size: 22px; font-weight: 900; line-height: 1; }
.stock { color: var(--accent-dark); background: var(--soft); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 850; }
.margin {
    background: var(--gold-soft); color: #6c4a00; border-radius: 8px; padding: 8px; font-size: 12px;
    font-weight: 600; line-height: 1.35;
}
.add-row {
    display: grid; grid-template-columns: 36px 1fr 36px; gap: 6px; margin-top: auto;
}
.add-row .qty {
    border: 1px solid var(--line); border-radius: 8px; min-height: 36px; display: grid; place-items: center;
    font-weight: 800;
}
.qty-button { background: var(--soft); color: var(--accent-dark); border-radius: 8px; min-height: 36px; border: 0; font-weight: 800; }

.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cart-line:last-child { border-bottom: 0; }
.cart-line strong { display: block; }
.cart-line .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }

.totals { display: grid; gap: 6px; margin-top: 12px; font-size: 13px; }
.total-row { display: flex; justify-content: space-between; gap: 12px; }
.total-row.grand { border-top: 1px solid var(--line); padding-top: 8px; font-size: 17px; font-weight: 900; }

.notice {
    background: var(--soft); color: var(--accent-dark); padding: 10px;
    border-radius: 8px; font-size: 12px; font-weight: 700;
}
.notice-warn { background: #fef3c7; color: #92400e; }

.delivery-band {
    background: var(--accent-dark);
    color: #fff;
    border-radius: var(--radius);
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}
.delivery-band small { display: block; opacity: .8; font-weight: 700; }
.delivery-band strong { display: block; font-size: 20px; margin-top: 2px; }
.delivery-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.delivery-meta .chip { background: rgba(255,255,255,.15); color: #fff; }

.track { display: grid; gap: 10px; }
.track-row { display: grid; grid-template-columns: 16px 1fr; gap: 10px; }
.track-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 4px var(--soft); margin-top: 4px; }
.track-row strong { display: block; font-size: 13px; }
.track-row span { display: block; color: var(--muted); font-size: 12px; }

.ps-tabs {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
}
.ps-tabs a {
    text-align: center;
    padding: 8px 4px 7px;
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
}
.ps-tabs b { display: block; font-size: 18px; line-height: 1; margin-bottom: 3px; }

.auth-shell { max-width: 460px; margin: 0 auto; padding-inline: 0; }
.auth-card { background: #fff; border-radius: 14px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; }
.auth-card p { margin: 0 0 18px; color: var(--muted); }

.status-pill {
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: var(--soft);
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.status-pill.warn { background: #fef3c7; color: #92400e; }
.status-pill.danger { background: #fdecea; color: var(--danger); }
.status-pill.success { background: #dcfce7; color: #166534; }

/* Hero + promo banners */
.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 28px 28px 24px;
    color: #fff;
    background:
        radial-gradient(circle at 88% -10%, rgba(242, 183, 5, .55), transparent 55%),
        radial-gradient(circle at 8% 120%, rgba(232, 96, 26, .85), transparent 60%),
        linear-gradient(135deg, #c44a0e 0%, #e8601a 55%, #f5a623 100%);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
}
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .12), transparent 30%),
        radial-gradient(circle at 92% 70%, rgba(255, 255, 255, .08), transparent 35%);
    pointer-events: none;
}
.hero-banner .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.hero-banner h1 {
    font-size: clamp(26px, 3.4vw, 38px);
    margin: 12px 0 8px;
    line-height: 1.1;
    font-weight: 900;
}
.hero-banner p { margin: 0 0 18px; opacity: .92; font-size: 15px; max-width: 56ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .ps-btn { box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.hero-actions .ps-btn-gold { color: #1f2933; }
.hero-actions .ps-btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255,255,255,.4); }
.hero-actions .ps-btn-ghost:hover { background: rgba(255, 255, 255, .22); }
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    position: relative;
    z-index: 1;
}
.hero-stat {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 14px;
    padding: 14px;
    backdrop-filter: blur(2px);
}
.hero-stat span { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; opacity: .8; }
.hero-stat strong { display: block; font-size: 22px; margin-top: 4px; }

.promo-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.promo-card {
    border-radius: 14px;
    padding: 16px;
    color: #fff;
    box-shadow: var(--shadow);
    min-height: 100px;
    display: grid;
    align-content: space-between;
    gap: 6px;
    position: relative;
    overflow: hidden;
}
.promo-card::after {
    content: "";
    position: absolute;
    inset: auto -20px -30px auto;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}
.promo-card small { font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; opacity: .9; }
.promo-card strong { font-size: 18px; font-weight: 800; line-height: 1.2; }
.promo-card p { margin: 0; font-size: 13px; opacity: .9; }
.promo-emerald { background: linear-gradient(135deg, #c44a0e, #f5a623); }
.promo-gold { background: linear-gradient(135deg, #b45309, #f2b705); color: #1f2933; }
.promo-gold small, .promo-gold p { color: #2a1f00; opacity: 1; }
.promo-gold::after { background: rgba(255, 255, 255, .35); }
.promo-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }

.verify-banner {
    border-radius: 14px;
    padding: 16px;
    background: linear-gradient(135deg, #fff6d7, #fde68a);
    border: 1px solid #f5c451;
    color: #5b3d00;
    display: flex;
    gap: 16px;
    align-items: center;
}
.verify-banner.success { background: linear-gradient(135deg, #dcfce7, #bbf7d0); border-color: #4ade80; color: #14532d; }
.verify-banner .verify-icon {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .55); font-size: 22px; flex: none;
}
.verify-banner strong { display: block; font-size: 15px; }
.verify-banner small { display: block; font-size: 12px; opacity: .9; margin-top: 2px; }

.public-cta {
    border: 1px dashed var(--accent);
    border-radius: 14px;
    padding: 14px 16px;
    background: var(--soft);
    color: var(--accent-dark);
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
}
.public-cta strong { display: block; font-size: 15px; }
.public-cta small { color: var(--muted); display: block; font-size: 12px; margin-top: 2px; }

.category-pill-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.category-pill-row button {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    white-space: nowrap;
    font-weight: 700;
    color: var(--ink);
}
.category-pill-row button.active,
.category-pill-row button:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.price.with-compare { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-compare {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 13px;
    font-weight: 700;
}
.price-locked {
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    background: var(--soft);
    border-radius: 8px;
    padding: 6px 8px;
}
.badge-promo {
    background: var(--gold);
    color: #1f2933;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-left: 6px;
}

.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.filter-tabs a {
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 13px;
}
.filter-tabs a.active { background: var(--accent); color: #fff; }

@media (max-width: 980px) {
    .ps-topbar { grid-template-columns: auto auto; }
    .ps-topbar-nav { grid-column: 1 / -1; order: 3; overflow-x: auto; }
    .layout-2col { grid-template-columns: 1fr; }
    .layout-2col .side { position: static; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3, .grid-4, .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ps-body[data-role="customer"] .ps-tabs { display: grid; }
    .hero-banner { grid-template-columns: 1fr; padding: 22px; }
    .promo-strip { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 580px) {
    .product-grid { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .delivery-band { grid-template-columns: 1fr; }
    .promo-strip { grid-template-columns: 1fr; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .public-cta { flex-direction: column; align-items: flex-start; }
}

/* PowerSari storefront v2: mobile-first commerce shell */
.ps-body {
    background:
        radial-gradient(circle at 18% 0%, rgba(232, 96, 26, .08), transparent 34%),
        linear-gradient(180deg, #fff6ed 0%, #fffaf5 42%, #fffaf5 100%);
}

.ps-main-mobile {
    max-width: 1120px;
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(var(--ps-tabbar-offset) + env(safe-area-inset-bottom));
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.ps-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 10px max(var(--ps-screen-gutter), env(safe-area-inset-right)) 10px max(var(--ps-screen-gutter), env(safe-area-inset-left));
    box-shadow: 0 10px 24px rgba(15, 118, 110, .07);
}

.ps-brand-mark {
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-dark), #12a594);
    box-shadow: 0 8px 18px rgba(15, 118, 110, .22);
}

.ps-search {
    min-width: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    height: 42px;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 999px;
    background: #f9fdfb;
    padding: 0 12px;
}

.ps-search-icon {
    width: 19px;
    height: 19px;
    color: var(--accent);
}

.ps-search input {
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
}

.ps-search-hot {
    display: none;
    color: #9a3412;
    background: #ffedd5;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
}

.ps-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--accent-dark);
}

.ps-icon-btn svg,
.ps-tabs svg,
.quick-cat svg,
.product-letter svg,
.verify-icon svg,
.shop-hero-blob svg {
    width: 22px;
    height: 22px;
}

.ps-icon-badge,
.ps-tabs-cart-bubble em {
    position: absolute;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    border: 2px solid #fff;
}

.ps-icon-badge {
    top: -5px;
    right: -4px;
}

.ps-user-menu {
    position: relative;
}

.ps-user-menu summary {
    list-style: none;
    cursor: pointer;
}

.ps-user-menu summary::-webkit-details-marker { display: none; }

.ps-user-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 180px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    z-index: 60;
}

.ps-user-pop a,
.ps-user-pop button {
    width: 100%;
    display: block;
    border: 0;
    background: transparent;
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--ink);
    text-align: left;
    font-weight: 750;
}

.ps-user-pop a:hover,
.ps-user-pop button:hover {
    background: var(--soft);
    text-decoration: none;
}

.ps-btn-shop {
    background: linear-gradient(135deg, #ee4d2d 0%, #f97316 50%, #fb923c 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(238, 77, 45, .28);
    letter-spacing: .01em;
}

.ps-btn-shop:hover {
    background: linear-gradient(135deg, #d63b1d 0%, #ea580c 50%, #f97316 100%);
    color: #fff;
}

.ps-btn-ghost-on-dark {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
}

.ps-btn-ghost-on-dark:hover {
    background: rgba(255, 255, 255, .23);
}

.shop-hero {
    margin: 4px 0 6px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(232, 96, 26, .14);
}

.shop-hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.shop-hero-track::-webkit-scrollbar,
.flash-scroll::-webkit-scrollbar,
.quick-cats-grid::-webkit-scrollbar,
.proof-scroll::-webkit-scrollbar,
.catalog-tabs::-webkit-scrollbar {
    display: none;
}

.shop-hero-slide {
    position: relative;
    isolation: isolate;
    min-width: 100%;
    min-height: 244px;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    align-items: center;
    gap: 12px;
    padding: 22px 16px;
    color: #fff;
    overflow: hidden;
}

.shop-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 78, 59, .92), rgba(6, 78, 59, .54), rgba(6, 78, 59, .12)),
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .22), transparent 30%),
        radial-gradient(circle at 12% 108%, rgba(255, 255, 255, .16), transparent 36%);
}

.shop-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-emerald,
.hero-orange,
.hero-blue {
    background-color: #e8601a;
}

.hero-orange {
    background-color: #9a3412;
}

.hero-blue {
    background-color: #1e3a8a;
}

.hero-orange::before {
    background:
        linear-gradient(90deg, rgba(154, 52, 18, .92), rgba(154, 52, 18, .50), rgba(154, 52, 18, .10)),
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .20), transparent 30%);
}

.hero-blue::before {
    background:
        linear-gradient(90deg, rgba(30, 58, 138, .92), rgba(30, 58, 138, .50), rgba(30, 58, 138, .10)),
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .20), transparent 30%);
}

.shop-hero-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .20);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shop-hero-flash {
    background: rgba(255, 255, 255, .92);
    color: #9a3412;
}

.shop-hero h1 {
    margin: 10px 0 8px;
    max-width: 12ch;
    font-size: clamp(27px, 8vw, 42px);
    line-height: .98;
    letter-spacing: -.01em;
    font-weight: 950;
}

.shop-hero p {
    margin: 0 0 14px;
    max-width: 34ch;
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1.45;
}

.shop-hero-cta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-hero-blob {
    display: grid;
    place-items: center;
    transform: translateX(8px);
}

.shop-hero-blob svg {
    width: min(42vw, 158px);
    height: min(42vw, 158px);
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, .18));
}

.shop-hero-dots {
    position: relative;
    margin-top: -22px;
    padding-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.shop-hero-dots span {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
}

.shop-hero-dots span.active {
    width: 20px;
    background: #fff;
}

.quick-cats,
.quick-shop-strip,
.voucher-strip,
.flash-section,
.trust-strip,
.catalog-section,
.proof-strip,
.latest-order,
.shop-footer-cta {
    margin-top: 12px;
}

.quick-cats-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 74px;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scroll-snap-type: x proximity;
}

.quick-cat {
    min-height: 92px;
    padding: 9px 6px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(220, 230, 225, .92);
    display: grid;
    place-items: center;
    align-content: start;
    gap: 6px;
    text-align: center;
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(20, 33, 29, .05);
    scroll-snap-align: start;
}

.quick-cat:hover {
    text-decoration: none;
    border-color: rgba(15, 118, 110, .34);
}

.quick-cat.active {
    outline: 2px solid rgba(15, 118, 110, .22);
    background: #f4fffb;
}

.quick-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: 0 8px 14px rgba(20, 33, 29, .14);
}

.quick-cat-label {
    display: block;
    font-size: 11px;
    line-height: 1.12;
    font-weight: 850;
}

.quick-cat-count {
    margin-top: -2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
}

.voucher-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(232px, 86%);
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.voucher {
    position: relative;
    min-height: 84px;
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    color: #fff;
    overflow: hidden;
    scroll-snap-align: start;
    box-shadow: 0 12px 24px rgba(20, 33, 29, .08);
}

.voucher::after {
    content: "";
    position: absolute;
    inset: 10px auto 10px 83px;
    border-left: 1px dashed rgba(255, 255, 255, .48);
}

.voucher-side {
    min-height: 58px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    text-align: center;
}

.voucher-side strong,
.voucher-side small {
    display: block;
    line-height: 1;
}

.voucher-side strong { font-size: 19px; font-weight: 950; }
.voucher-side small { margin-top: -8px; font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.voucher > div:last-child strong { display: block; font-size: 14px; }
.voucher > div:last-child small { display: block; margin-top: 3px; opacity: .87; font-size: 11px; line-height: 1.35; }
.voucher-red { background: linear-gradient(135deg, #b42318, #f97316); }
.voucher-amber { background: linear-gradient(135deg, #92400e, #f2b705); color: #2c1b00; }
.voucher-amber::after { border-left-color: rgba(44, 27, 0, .24); }
.voucher-amber .voucher-side { background: rgba(255, 255, 255, .36); }
.voucher-emerald { background: linear-gradient(135deg, #c44a0e, #f5a623); }

.verify-banner.store-cta {
    background: linear-gradient(135deg, #fff4e8, #ffe0bc);
    border-color: #ffc97a;
    color: #c44a0e;
}

.flash-section,
.catalog-section,
.proof-strip,
.latest-order,
.shop-footer-cta {
    border: 1px solid rgba(220, 230, 225, .82);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(20, 33, 29, .06);
}

.flash-section,
.catalog-section,
.proof-strip,
.latest-order {
    padding: 14px;
}

.flash-head,
.catalog-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.flash-head h2,
.catalog-head h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 950;
}

.catalog-head small,
.flash-head small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.flash-head > div {
    min-width: 0;
}

.flash-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
}

.flash-timer em {
    color: #9a3412;
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.flash-timer b {
    min-width: 22px;
    padding: 3px 4px;
    border-radius: 5px;
    background: #111827;
    color: #fff;
    text-align: center;
    font-size: 11px;
}

.flash-more,
.catalog-count {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.flash-scroll,
.proof-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 42%);
    gap: 10px;
    overflow-x: auto;
    padding: 1px 1px 5px;
    scroll-snap-type: x proximity;
}

.flash-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    scroll-snap-align: start;
}

.flash-card-art {
    position: relative;
    height: 96px;
    display: grid;
    place-items: center;
    color: #fff;
}

.flash-badge,
.product-discount,
.product-hot {
    position: absolute;
    top: 8px;
    border-radius: 999px;
    padding: 4px 7px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.flash-badge,
.product-discount {
    right: 8px;
    background: #facc15;
    color: #3f2700;
}

.product-hot {
    left: 8px;
    background: rgba(239, 68, 68, .96);
    color: #fff;
}

.flash-letter {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .24);
    font-size: 28px;
    font-weight: 950;
}

.flash-card-body {
    display: grid;
    gap: 6px;
    padding: 10px;
}

.flash-card-name {
    min-height: 34px;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 850;
}

.flash-card-price {
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
}

.flash-card-price strong {
    color: #dc2626;
    font-size: 16px;
    font-weight: 950;
}

.flash-card-price span {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 11px;
    font-weight: 700;
}

.flash-card-meta {
    color: #9a3412;
    font-size: 11px;
    font-weight: 850;
}

.flash-card-cta {
    min-height: 32px;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.flash-card-cta:hover {
    background: var(--accent-dark);
    text-decoration: none;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--line);
}

.trust-strip div {
    min-width: 0;
    padding: 12px 7px;
    background: #fff;
    text-align: center;
}

.trust-strip strong,
.trust-strip small {
    display: block;
}

.trust-strip strong {
    color: var(--accent-dark);
    font-size: 16px;
    font-weight: 950;
}

.trust-strip small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}

/* old horizontal tabs — replaced by sidebar, kept hidden for fallback */
.catalog-tabs { display: none; }

/* ── Catalog browser: sidebar + product pane ──────────────── */
.catalog-browser {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

/* LEFT sidebar */
.cat-sidebar {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 72vh;
    scrollbar-width: none;
    background: #f5f5f5;
    border-right: 1px solid var(--line);
    position: sticky;
    top: 62px;
    align-self: start;
}
.cat-sidebar::-webkit-scrollbar { display: none; }

.cat-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 4px 8px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 1px solid var(--line);
    transition: background .12s;
    position: relative;
    text-align: center;
    width: 100%;
}
.cat-sidebar-item:last-child { border-bottom: none; }
.cat-sidebar-item:hover { background: rgba(232,96,26,.07); }

.cat-sidebar-item.active {
    background: #fff;
}
.cat-sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    border-radius: 0 2px 2px 0;
}

.cat-sidebar-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform .15s;
}
.cat-sidebar-icon svg {
    width: 17px; height: 17px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
}
.cat-sidebar-item.active .cat-sidebar-icon,
.cat-sidebar-item:hover  .cat-sidebar-icon { transform: scale(1.08); }

.cat-sidebar-label {
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    line-height: 1.2;
    word-break: break-word;
    max-width: 62px;
}
.cat-sidebar-item.active .cat-sidebar-label { color: var(--accent); }

.cat-sidebar-count {
    font-size: 8px;
    font-weight: 700;
    color: var(--muted);
    background: var(--line);
    border-radius: 999px;
    padding: 1px 5px;
    min-width: 16px;
    text-align: center;
}
.cat-sidebar-item.active .cat-sidebar-count {
    background: rgba(232,96,26,.12);
    color: var(--accent);
}

/* RIGHT products pane */
.cat-products {
    overflow-y: auto;
    max-height: 72vh;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
    padding: 8px;
    background: #fff;
}
.cat-products::-webkit-scrollbar { width: 3px; }
.cat-products::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

/* product grid inside the right pane */
.catalog-browser .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    display: grid;
}

@media (min-width: 480px) {
    .catalog-browser .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
    .catalog-browser { grid-template-columns: 88px 1fr; }
    .catalog-browser .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.catalog-section .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.catalog-section .product {
    position: relative;
    min-height: 0;
    border-radius: 12px;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.catalog-section .product:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px rgba(20, 33, 29, .10);
    border-color: rgba(15, 118, 110, .22);
}

.catalog-section .product-media {
    position: relative;
    height: 118px;
    color: #fff;
    overflow: hidden;
}

.catalog-section .product-media::after {
    content: "";
    position: absolute;
    inset: auto -28px -46px auto;
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.product-letter {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 21px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(2px);
}

.product-letter svg {
    width: 34px;
    height: 34px;
}

.catalog-section .product-body {
    padding: 8px;
    gap: 5px;
}

.catalog-section .product-name {
    min-height: 34px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.32;
    font-weight: 900;
}

.product-meta {
    min-height: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
}

.product-info-line {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    color: #c44a0e;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.2;
}

.product-chip-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    min-height: 18px;
    overflow: hidden;
}

.product-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 17px;
    padding: 2px 5px;
    border-radius: 5px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 950;
    white-space: nowrap;
}

.dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--muted);
    opacity: .6;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
}

.product-price {
    color: #dc2626;
    font-size: 15px;
    line-height: 1;
    font-weight: 950;
}

.product-compare {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 10px;
    font-weight: 800;
}

.product-margin,
.product-lock {
    border-radius: 10px;
    padding: 6px 8px;
    font-size: 10.5px;
    line-height: 1.35;
    font-weight: 850;
    word-break: break-word;
    white-space: normal;
}

.product-margin {
    background: var(--gold-soft);
    color: #6c4a00;
}

.product-lock {
    display: block;
    background: var(--soft);
    color: var(--accent-dark);
}

a.product-lock:hover {
    text-decoration: none;
    background: #ffe0bc;
}

.product-signal {
    display: block;
    border-radius: 4px;
    padding: 3px 5px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: .85;
}

.product-signal.good {
    background: #f0fdf4;
    color: #166534;
}

/* subtle guest pricing note — sits below catalog header */
.pricing-hint-bar {
    font-size: 11px;
    color: var(--muted);
    margin: 0 0 6px;
    padding: 6px 10px;
    background: var(--soft);
    border-radius: 8px;
    border-left: 3px solid var(--line);
}
.pricing-hint-bar a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.pricing-hint-bar a:hover { text-decoration: underline; }

.product-media-link,
.product-name-link {
    color: inherit;
    text-decoration: none;
}

.product-media-link:hover,
.product-name-link:hover {
    text-decoration: none;
}

.product-thumb,
.flash-thumb {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-thumb {
    transform: scale(1.02);
}

.flash-thumb {
    border-radius: inherit;
}

.catalog-section .product-media:has(.product-thumb) {
    background: #f8fafc !important;
}

.catalog-section .product-media:has(.product-thumb)::after {
    content: none;
}

.product-detail {
    display: grid;
    gap: 12px;
}

.product-back {
    width: fit-content;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 850;
}

.product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(20, 33, 29, .08);
}

.product-detail-art {
    min-height: 340px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 82% 10%, rgba(255, 184, 0, .34), transparent 36%),
        linear-gradient(135deg, #c44a0e, #e8601a);
    color: #fff;
}

.product-detail-art span {
    width: 128px;
    height: 128px;
    border-radius: 36px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .18);
    font-size: 70px;
    font-weight: 950;
}

.product-detail-info {
    display: grid;
    align-content: start;
    gap: 12px;
}

.product-detail-kicker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.product-detail-kicker span {
    color: var(--accent-dark);
    background: var(--soft);
    border-radius: 999px;
    padding: 3px 8px;
}

.product-detail h1 {
    margin: 0;
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.04;
    font-weight: 950;
}

.product-detail-price {
    display: flex;
    gap: 10px;
    align-items: baseline;
    flex-wrap: wrap;
}

.product-detail-price strong {
    color: #dc2626;
    font-size: 34px;
    line-height: 1;
    font-weight: 950;
}

.product-detail-price span {
    color: var(--muted);
    text-decoration: line-through;
    font-weight: 850;
}

.product-detail-margin {
    max-width: 460px;
}

.product-detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.product-detail-actions .add-row {
    width: min(220px, 100%);
}

.product-detail-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 4px;
}

.product-detail-notes div {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    background: #fbfdfb;
}

.product-detail-notes strong,
.product-detail-notes span {
    display: block;
}

.product-detail-notes strong {
    font-size: 12px;
}

.product-detail-notes span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.25;
}

@media (max-width: 760px) {
    .product-detail-card {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 16px;
    }

    .product-detail-art {
        min-height: 210px;
    }

    .product-detail-art span {
        width: 88px;
        height: 88px;
        border-radius: 28px;
        font-size: 48px;
    }

    .product-detail h1 {
        font-size: 26px;
    }

    .product-detail-price strong {
        font-size: 28px;
    }

    .product-detail-notes {
        grid-template-columns: 1fr;
    }
}

.add-button,
.add-button-link {
    width: 100%;
    height: 30px;
    min-height: 30px;
    margin-left: auto;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 16px rgba(15, 118, 110, .18);
}

.add-button svg,
.add-button-link svg {
    width: 18px;
    height: 18px;
}

.add-row {
    grid-template-columns: 36px minmax(30px, 1fr) 36px;
    gap: 6px;
}

.add-row .qty {
    min-height: 36px;
    border-radius: 999px;
    background: #fff;
}

.proof-scroll {
    grid-auto-columns: minmax(240px, 82%);
}

.proof-card {
    min-height: 150px;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #fbfdfb);
    scroll-snap-align: start;
}

.proof-stars {
    color: #f59e0b;
    letter-spacing: 1px;
    font-size: 13px;
}

.proof-card p {
    margin: 9px 0 12px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.45;
}

.proof-card footer {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
}

.proof-card footer span {
    color: var(--muted);
    font-weight: 750;
}

.latest-card {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--soft);
}

.latest-pulse {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(15, 118, 110, .12);
}

.latest-card strong,
.latest-card small {
    display: block;
}

.latest-card small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.shop-footer-cta {
    padding: 18px;
    text-align: center;
    background:
        radial-gradient(circle at 80% 0%, rgba(242, 183, 5, .18), transparent 34%),
        linear-gradient(135deg, #fff, #eefaf5);
}

.shop-footer-cta h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 950;
}

.shop-footer-cta p {
    margin: 6px auto 12px;
    max-width: 46ch;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.shop-footer-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.checkout-bar {
    position: fixed;
    left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
    bottom: calc(var(--ps-tabbar-sticky-base) + 8px);
    z-index: 35;
    min-height: 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 18px;
    background: rgba(11, 94, 88, .96);
    color: #fff;
    box-shadow: 0 18px 38px rgba(11, 94, 88, .28);
    backdrop-filter: blur(8px);
}

.checkout-bar strong,
.checkout-bar small {
    display: block;
}

.checkout-bar strong {
    font-size: 18px;
    font-weight: 950;
}

.checkout-bar small {
    margin-top: 2px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 800;
}

.checkout-bar-btn {
    min-height: 42px;
    display: grid;
    place-items: center;
    white-space: nowrap;
}

.checkout-bar-btn.is-locked {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

.ps-tabs {
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -10px 24px rgba(20, 33, 29, .08);
}

.ps-body[data-role="customer"] .ps-tabs,
.ps-body[data-role="guest"] .ps-tabs {
    display: grid;
}

.ps-tabs a {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 3px 7px;
    color: #6b7280;
    font-size: 10.5px;
    line-height: 1;
}

.ps-tabs a:hover {
    text-decoration: none;
}

.ps-tabs a.active {
    color: var(--accent);
}

.ps-tabs svg {
    width: 22px;
    height: 22px;
}

.ps-tabs-cart-bubble {
    position: relative;
    width: 22px;
    height: 22px;
}

.ps-tabs-cart-bubble em {
    top: -8px;
    right: -12px;
}

@media (max-width: 720px) {
    .ps-topbar {
        grid-template-columns: auto minmax(0, 160px) auto;
        gap: 7px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .ps-search {
        grid-column: auto;
        order: 0;
        height: 38px;
        padding: 0 9px;
        gap: 6px;
    }

    .ps-search input {
        font-size: 13px;
    }

    .ps-search input::placeholder {
        color: transparent;
    }

    .ps-brand-sub,
    .ps-user-pill small {
        display: none;
    }

    .ps-brand {
        min-width: 0;
        gap: 7px;
    }

    .ps-brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 13px;
    }

    .ps-brand-text {
        display: none;
    }

    .ps-brand-wordmark {
        display: inline;
    }

    .ps-brand-name {
        font-size: 17px;
    }

    .ps-topbar-actions {
        justify-self: end;
        gap: 5px;
    }

    .ps-btn-sm {
        min-height: 34px;
        padding: 6px 8px;
        font-size: 12px;
        border-radius: 999px;
        white-space: nowrap;
    }

    .ps-icon-btn {
        width: 36px;
        height: 36px;
    }

    .ps-user-pill {
        min-height: 34px;
        display: grid;
        place-items: center;
        padding: 6px 9px;
        font-size: 12px;
    }
}

@media (min-width: 560px) {
    :root {
        --ps-screen-gutter: 22px;
    }

    .shop-hero-slide {
        grid-template-columns: minmax(0, 1fr) 180px;
        padding: 26px 24px;
    }

    .quick-cats-grid {
        grid-auto-columns: 92px;
    }

    .voucher-strip {
        grid-auto-columns: minmax(250px, 1fr);
    }

    .flash-scroll {
        grid-auto-columns: 172px;
    }

    .catalog-section .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .ps-main-mobile {
        padding-top: 16px;
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .ps-search-hot {
        display: inline-flex;
    }

    .shop-hero {
        border-radius: 24px;
    }

    .shop-hero-slide {
        min-height: 312px;
        grid-template-columns: minmax(0, 1fr) 260px;
        padding: 36px;
    }

    .shop-hero h1 {
        max-width: 15ch;
        font-size: clamp(42px, 5vw, 64px);
    }

    .shop-hero p {
        font-size: 16px;
    }

    .shop-hero-blob svg {
        width: 244px;
        height: 244px;
    }

    .quick-cats-grid {
        grid-auto-flow: initial;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        overflow: visible;
    }

    .quick-cat {
        min-height: 106px;
    }

    .voucher-strip {
        grid-auto-flow: initial;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .flash-scroll {
        grid-auto-columns: 184px;
    }

    .catalog-section .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .catalog-section .product-media {
        height: 152px;
    }

    .catalog-section .product-name {
        font-size: 14px;
    }

    .proof-scroll {
        grid-auto-flow: initial;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        overflow: visible;
    }

    .checkout-bar {
        left: 50%;
        right: auto;
        width: min(560px, calc(100vw - 36px));
        transform: translateX(-50%);
        bottom: 22px;
    }
}

@media (min-width: 1160px) {
    .catalog-section .product-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Product-first storefront compression */
.ps-main-mobile {
    display: flex;
    flex-direction: column;
}

.shop-hero { order: 1; }
.rewards-row { order: 2; }
.quick-shop-strip { order: 3; }
.discount-section { order: 4; }
.quick-cats { order: 5; }
.brand-strip-section { order: 6; }
.top-picks-section { order: 7; }
.checkin-section { order: 8; }
.verify-banner { order: 9; }
.catalog-section { order: 10; }
.latest-order { order: 10; }
.proof-strip { order: 11; }
.shop-footer-cta { order: 12; }

.discount-section {
    padding: 9px;
}

.discount-section .flash-head {
    margin-bottom: 7px;
}

.discount-section .flash-head h2 {
    font-size: 16px;
}

.discount-section .flash-timer {
    display: none;
}

.discount-section .flash-scroll {
    grid-auto-columns: minmax(118px, 31%);
    gap: 7px;
}

.discount-section .flash-card-art {
    height: 70px;
}

.discount-section .flash-card-body {
    gap: 4px;
    padding: 7px;
}

.discount-section .flash-card-name {
    min-height: 27px;
    font-size: 10.5px;
}

.discount-section .flash-card-cta {
    min-height: 28px;
    font-size: 11px;
}

.discount-section .flash-card-price strong {
    font-size: 14px;
}

.discount-section .flash-card-price span,
.discount-section .flash-card-meta {
    font-size: 9.5px;
}
.flash-section { order: 4; }
.voucher-strip,
.trust-strip { display: none; }
.checkout-bar { order: 99; }

.shop-hero {
    margin: 0 0 6px;
    border-radius: 12px;
}

.shop-hero-slide {
    min-height: 92px;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px;
}

.shop-hero h1 {
    max-width: 18ch;
    margin: 5px 0 2px;
    font-size: clamp(16px, 4.8vw, 22px);
    line-height: 1.02;
}

.shop-hero p {
    max-width: 30ch;
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.32;
}

.shop-hero-eyebrow {
    padding: 4px 8px;
    font-size: 9.5px;
}

.shop-hero-cta .ps-btn {
    min-height: 28px;
    padding: 6px 9px;
    font-size: 11px;
}

.shop-hero-dots {
    margin-top: -15px;
    padding-bottom: 6px;
}

.quick-cats,
.voucher-strip,
.flash-section,
.trust-strip,
.catalog-section,
.proof-strip,
.latest-order,
.shop-footer-cta {
    margin-top: 8px;
}

.quick-shop-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.quick-shop-strip a {
    min-height: 44px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 7px 5px;
    border: 1px solid rgba(15, 118, 110, .13);
    border-radius: 11px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
}

.quick-shop-strip strong {
    color: #dc2626;
    font-size: 15px;
    line-height: 1;
}

.quick-shop-strip span {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 850;
    line-height: 1.1;
}

.quick-cats-grid {
    grid-auto-columns: 62px;
    gap: 7px;
    padding-bottom: 5px;
}

.quick-cat {
    min-height: 74px;
    padding: 7px 4px;
    border-radius: 12px;
}

.quick-cat-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.quick-cat svg {
    width: 19px;
    height: 19px;
}

.quick-cat-label {
    font-size: 10px;
}

.quick-cat-count {
    display: none;
}

.verify-banner {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 13px;
}

.verify-banner .verify-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.verify-icon svg {
    width: 18px;
    height: 18px;
}

.verify-banner strong {
    font-size: 13px;
}

.verify-banner small {
    font-size: 11px;
    line-height: 1.25;
}

.catalog-section {
    padding: 8px;
}

.catalog-head {
    margin-bottom: 8px;
}

.catalog-head h2 {
    font-size: 16px;
}

.catalog-tabs {
    padding-bottom: 8px;
}

.catalog-tabs button {
    padding: 6px 10px;
    font-size: 10.5px;
}

@media (max-width: 559px) {
    .ps-topbar {
        gap: 7px;
    }

    .ps-search {
        min-height: 34px;
    }

    .ps-search input {
        height: 34px;
        font-size: 12px;
    }

    .shop-hero-blob {
        opacity: .82;
        transform: translateX(4px);
    }

    .discount-section {
        margin-top: 7px;
    }

    .proof-strip,
    .shop-footer-cta {
        display: none;
    }
}

@media (min-width: 900px) {
    .shop-hero {
        border-radius: 18px;
    }

    .shop-hero-slide {
        min-height: 120px;
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }

    .shop-hero h1 {
        max-width: 20ch;
        font-size: clamp(26px, 2.6vw, 34px);
    }

    .shop-hero p {
        font-size: 14px;
    }

}

/* =========================================================================
   Marketplace UI refresh - section headers, rewards, brand strip, top picks,
   product card chips. Additive only; existing classes left untouched so other
   pages (admin/operator surfaces) keep their teal identity.
   ========================================================================= */

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin: 14px 4px 8px;
}

.section-title-bar h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
}

.section-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 10px;
    position: relative;
    color: #1a1207;
    text-transform: none;
}

.section-mark::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ee4d2d, #f97316);
}

.section-mark.teal::before { background: linear-gradient(180deg, #e8601a, #f5a623); }
.section-mark.navy::before { background: linear-gradient(180deg, #1d4ed8, #38bdf8); }
.section-mark.coral::before { background: linear-gradient(180deg, #ee4d2d, #f97316); }

/* ---------- Rewards row + free-shipping progress ---------- */
.rewards-row {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 8px;
    margin: 4px 0 6px;
}

.rewards-card {
    border-radius: 14px;
    padding: 12px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(255, 255, 255, .25), transparent 40%),
        linear-gradient(135deg, #ee4d2d 0%, #f97316 70%, #fbbf24 100%);
    box-shadow: 0 12px 24px rgba(234, 88, 12, .28);
    display: grid;
    gap: 8px;
}

.rewards-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
}

.rewards-eyebrow {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 950;
    background: rgba(255, 255, 255, .22);
    padding: 3px 7px;
    border-radius: 999px;
}

.rewards-card-head strong {
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.01em;
}

.rewards-card-head strong em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    margin-left: 2px;
    opacity: .9;
}

.rewards-streak {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    background: rgba(255, 255, 255, .14);
    padding: 5px;
    border-radius: 10px;
}

.rewards-streak span {
    text-align: center;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .85);
}

.rewards-streak span.active {
    background: #fff;
    color: #ea580c;
}

.rewards-streak span.today {
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    color: #92400e;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
}

.rewards-card-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.rewards-card-foot small {
    font-size: 11px;
    line-height: 1.3;
    opacity: .92;
    flex: 1;
}

.rewards-card-foot .ps-btn {
    background: #fff;
    color: #ea580c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

.rewards-card-foot .ps-btn:disabled {
    opacity: .82;
    cursor: default;
}

.ship-progress {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display: grid;
    gap: 8px;
    box-shadow: 0 6px 14px rgba(20, 33, 29, .06);
}

.ship-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
}

.ship-progress-head strong { font-size: 13px; font-weight: 950; color: #c44a0e; }
.ship-progress-head small { font-size: 11px; color: var(--muted); font-weight: 700; }

.ship-bar {
    position: relative;
    height: 8px;
    background: #ffe0bc;
    border-radius: 999px;
    overflow: visible;
}

.ship-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #e8601a, #f5a623, #ffb800);
    transition: width .4s ease;
}

.ship-bar-pin {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e8601a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
}

.ship-progress-foot {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
}

.ship-progress-foot span:first-child { color: var(--muted); }
.ship-progress-foot span:last-child { color: #c44a0e; }

/* ---------- Brand strip ---------- */
.brand-strip-section { margin: 6px 0 4px; }

.brand-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 148px;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 4px 8px;
}

.brand-strip::-webkit-scrollbar { display: none; }

.brand-chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    scroll-snap-align: start;
    transition: transform .15s ease, box-shadow .15s ease;
}

.brand-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(20, 33, 29, .08);
    text-decoration: none;
}

.brand-chip-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 950;
    display: grid;
    place-items: center;
    letter-spacing: .02em;
    box-shadow: 0 4px 10px rgba(20, 33, 29, .14);
}

.brand-chip-meta { display: grid; min-width: 0; }
.brand-chip-meta strong {
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
}
.brand-chip-meta small {
    font-size: 10px;
    color: var(--muted);
    font-weight: 800;
    margin-top: 2px;
}

/* ---------- Top picks horizontal shelf ---------- */
.top-picks-section { margin: 6px 0 4px; }

.top-picks-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 188px;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 4px 4px 8px;
}

.top-picks-scroll::-webkit-scrollbar { display: none; }

.top-picks-scroll .product { scroll-snap-align: start; }

.top-picks-scroll .product--pick .product-media { height: 140px; }

/* ---------- Product card upgrades (chips, ratings, vouchers) ---------- */
.product-tag-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    min-height: 16px;
}

.product-mall {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ee4d2d, #f97316);
    color: #fff;
    font-size: 9.5px;
    font-weight: 950;
    letter-spacing: .04em;
    line-height: 1;
    text-transform: uppercase;
}

.product-fship {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 4px;
    background: #fff4e8;
    color: #c44a0e;
    font-size: 9.5px;
    font-weight: 950;
    letter-spacing: .02em;
    line-height: 1;
    text-transform: uppercase;
    border: 1px solid #ffc97a;
}

.product-voucher {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 5px;
    border-radius: 4px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 9.5px;
    font-weight: 950;
    letter-spacing: .02em;
    line-height: 1;
    border: 1px dashed #fb923c;
}

.product-flag {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    background: #fff;
    color: #ea580c;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 9.5px;
    font-weight: 950;
    letter-spacing: .04em;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #ea580c;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.product-stars {
    display: inline-flex;
    gap: 1px;
}

.product-stars .star {
    width: 10px;
    height: 10px;
    color: #f59e0b;
}

.product-stars .star.empty {
    color: #d1d5db;
}

.product-rating-num {
    color: #ea580c;
    font-size: 10px;
    font-weight: 950;
}

.product-rating-sold {
    color: var(--muted);
    font-weight: 800;
}

.product-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    min-height: 13px;
}

.product-meta-line .dot {
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--muted);
    opacity: .55;
}

/* ---------- Flash sale stock progress bar ---------- */
.flash-stock-bar {
    height: 6px;
    border-radius: 999px;
    background: #fed7aa;
    overflow: hidden;
    margin-top: 4px;
}

.flash-stock-bar > div {
    height: 100%;
    background: linear-gradient(90deg, #ee4d2d, #f97316);
    transition: width .3s ease;
}

/* ---------- Mobile tightening ---------- */
@media (max-width: 559px) {
    .rewards-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .section-title-bar {
        margin: 10px 2px 6px;
    }

    .section-title-bar h2 {
        font-size: 13px;
    }

    .brand-strip {
        grid-auto-columns: 110px;
    }

    .top-picks-scroll {
        grid-auto-columns: 158px;
    }

    .top-picks-scroll .product--pick .product-media { height: 116px; }

    .product-mall,
    .product-fship,
    .product-voucher {
        font-size: 8.5px;
        height: 14px;
        padding: 0 4px;
    }

    .product-stars .star { width: 9px; height: 9px; }
}

@media (min-width: 900px) {
    .top-picks-scroll { grid-auto-columns: 210px; }
    .brand-strip { grid-auto-columns: 168px; }
    .top-picks-scroll .product--pick .product-media { height: 184px; }
}

/* =========================================================================
   UI Refresh — June 2026
   Secondary nav, auth shell, cart cards, orders list, admin KPIs,
   improved flash messages, status pills, animated skeletons, and polish.
   ========================================================================= */

/* ---- Secondary / role nav (topbar sub-row) ---- */
.ps-secondary-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 6px 18px 8px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    scrollbar-width: none;
}

.ps-secondary-nav::-webkit-scrollbar { display: none; }

.ps-secondary-nav a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    transition: background .14s ease, color .14s ease;
    text-decoration: none;
}

.ps-secondary-nav a:hover {
    background: var(--soft);
    color: var(--accent-dark);
    text-decoration: none;
}

.ps-secondary-nav a.active,
.ps-secondary-nav a[aria-current="page"] {
    background: var(--soft);
    color: var(--accent-dark);
}

/* ---- Topbar polish ---- */
.ps-topbar {
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(20,33,29,.04);
}

.ps-secondary-nav {
    grid-column: 1 / -1;
    margin: 0 -18px -12px;
    padding: 4px 14px 6px;
}

/* ---- Flash message upgrade ---- */
.flash {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 700;
    border: 1px solid transparent;
    animation: flashIn .22s ease;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.flash-success {
    background: #fff4e8;
    color: #c44a0e;
    border-color: #ffc97a;
}

.flash-error {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
}

.flash::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-top: 1px;
}

.flash-success::before { background: #e8601a; }
.flash-error::before { background: #ef4444; }

/* ---- Status pill upgrades ---- */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
}

.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .65;
    flex: 0 0 auto;
}

.status-pill.warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.status-pill.danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.status-pill.success { background: #fff4e8; color: #c44a0e; border: 1px solid #ffc97a; }
.status-pill.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Auto-color status pills by keyword */
.status-pill[data-status*="pending"],
.status-pill[data-status*="review"] { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.status-pill[data-status*="complete"],
.status-pill[data-status*="delivered"],
.status-pill[data-status*="paid"] { background: #fff4e8; color: #c44a0e; border-color: #ffc97a; }
.status-pill[data-status*="cancel"],
.status-pill[data-status*="fail"],
.status-pill[data-status*="reject"] { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ---- KPI grid upgrade ---- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    gap: 8px;
    transition: transform .16s ease, box-shadow .16s ease;
    position: relative;
    overflow: hidden;
}

.kpi::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, var(--accent), #f5a623);
}

.kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20,33,29,.09);
}

.kpi span {
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.kpi strong {
    display: block;
    font-size: 26px;
    font-weight: 950;
    line-height: 1;
    color: var(--ink);
    margin-top: 2px;
}

.kpi.kpi-warn::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.kpi.kpi-danger::before { background: linear-gradient(90deg, #ef4444, #f97316); }
.kpi.kpi-success::before { background: linear-gradient(90deg, #e8601a, #f5a623); }
.kpi.kpi-blue::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }

/* ---- Panel upgrades ---- */
.panel {
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(20,33,29,.06);
}

.panel-head h2, .panel-head h3 {
    font-size: 16px;
    font-weight: 900;
}

/* ---- Table upgrade ---- */
.table thead tr {
    background: var(--paper);
}

.table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 10px 8px;
    color: var(--muted);
}

.table td { padding: 10px 8px; vertical-align: middle; }

.table tbody tr {
    transition: background .12s ease;
}

.table tbody tr:hover { background: var(--soft); }

/* ---- Auth page upgrades ---- */
.auth-shell {
    max-width: 460px;
    margin: 0 auto;
    padding-block: 16px 0;
    padding-inline: 0;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.auth-brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #1a1207;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(232, 96, 26, .30);
}
.auth-brand-mark svg { width: 56px; height: 56px; display: block; }

.auth-brand-name {
    font-size: 22px;
    font-weight: 900;
    color: var(--ink);
}
.auth-brand-name strong {
    color: var(--accent);
    line-height: 1;
}

.auth-brand-sub {
    font-size: 12px;
    color: var(--muted);
    font-weight: 600;
    margin-top: 2px;
}

.auth-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px 20px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 32px rgba(20,33,29,.08), 0 1px 3px rgba(20,33,29,.05);
}

.auth-card h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 900;
}

.auth-card > p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.auth-footer-link {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-footer-link a { font-weight: 700; color: var(--accent-dark); }

.auth-password-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: #fffaf4;
    margin-bottom: 12px;
}

.auth-password-panel summary {
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-dark);
}

.auth-password-panel summary::-webkit-details-marker { display: none; }

.auth-password-panel[open] summary { margin-bottom: 12px; }

/* ---- Cart page: mobile card layout ---- */
.cart-shell {
    display: grid;
    gap: 14px;
    max-width: 900px;
    margin: 0 auto;
    padding: 16px 16px 120px;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cart-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 950;
}

.cart-items-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(20,33,29,.06);
}

.cart-item {
    display: grid;
    grid-template-columns: 56px minmax(0,1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    transition: background .12s ease;
}

.cart-item:last-child { border-bottom: 0; }
.cart-item:hover { background: var(--paper); }

.cart-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    overflow: hidden;
    flex: 0 0 auto;
}

.cart-item-info { min-width: 0; }

.cart-item-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-meta {
    color: var(--muted);
    font-size: 11.5px;
    margin-top: 3px;
    font-weight: 600;
}

.cart-item-price {
    color: #dc2626;
    font-size: 15px;
    font-weight: 950;
    margin-top: 5px;
}

.cart-qty-row {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.cart-qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: background .12s ease;
}

.cart-qty-btn:hover { background: var(--soft); }

.cart-qty-num {
    width: 36px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 4px 2px;
    font-size: 13px;
    font-weight: 800;
    background: #fff;
}

.cart-remove-btn {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 4px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    font-size: 18px;
    transition: color .12s ease, background .12s ease;
}

.cart-remove-btn:hover { color: var(--danger); background: #fef2f2; }

.cart-summary-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(20,33,29,.06);
}

.cart-summary-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 14px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
}

.cart-total-row:last-of-type { border-bottom: 0; }

.cart-total-row.grand {
    padding-top: 12px;
    margin-top: 4px;
    font-size: 18px;
    font-weight: 950;
    border-top: 2px solid var(--line);
    border-bottom: 0;
}

.cart-total-row .label { color: var(--muted); font-weight: 600; }
.cart-total-row .value { font-weight: 800; }
.cart-total-row.grand .value { color: #dc2626; }

.cart-notice {
    margin: 12px 0;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.cart-notice-info { background: #fff4e8; color: #c44a0e; border: 1px solid #ffc97a; }
.cart-notice-warn { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.cart-notice-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

.cart-empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
}

.cart-empty-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 24px;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 36px;
}

.cart-empty h2 { font-size: 18px; color: var(--ink); margin: 0 0 8px; }
.cart-empty p { font-size: 14px; margin: 0 0 18px; line-height: 1.5; }

@media (min-width: 640px) {
    .cart-shell {
        grid-template-columns: minmax(0, 1fr) 320px;
        align-items: start;
        padding-bottom: 40px;
    }
    .cart-header { grid-column: 1 / -1; }
    .cart-summary-card { position: sticky; top: 80px; }
}

/* ---- Orders list: card layout ---- */
.orders-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 16px 100px;
    display: grid;
    gap: 10px;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 4px;
}

.orders-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 950;
}

.order-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px 16px;
    align-items: start;
    box-shadow: 0 2px 8px rgba(20,33,29,.05);
    transition: transform .14s ease, box-shadow .14s ease;
    text-decoration: none;
    color: var(--ink);
}

.order-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(20,33,29,.1);
    text-decoration: none;
}

.order-number {
    font-size: 14px;
    font-weight: 900;
    color: var(--ink);
}

.order-msg {
    font-size: 12px;
    color: var(--muted);
    margin-top: 3px;
    line-height: 1.4;
}

.order-items-count {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 5px;
}

.order-card-right {
    text-align: right;
    display: grid;
    gap: 6px;
    justify-items: end;
}

.order-total {
    font-size: 16px;
    font-weight: 950;
    color: var(--ink);
}

.order-eta {
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}

.order-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: 4px;
}

/* ---- Admin page chrome upgrade ---- */
.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.admin-page-header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
}

.admin-page-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---- Improved btn transitions ---- */
.ps-btn {
    transition: background .14s ease, box-shadow .14s ease, transform .1s ease;
}

.ps-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,118,110,.22);
}

.ps-btn-warn:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(180,35,24,.22);
}

.ps-btn-ghost:hover:not(:disabled) {
    box-shadow: none;
    transform: none;
}

/* ---- Skeleton loader ---- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.4s infinite;
    border-radius: 8px;
}

@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---- Chip row upgrade ---- */
.chip { transition: background .12s ease; }

/* ---- Page padding adjustments ---- */
.ps-main { padding-top: 16px; }

/* Hide topbar Sign in / Register / user pill on mobile — bottom nav Account tab covers them */
@media (max-width: 720px) {
    .ps-topbar-auth {
        display: none !important;
    }
}

/* ---- Vendor/Rider/Sales portal header ---- */
.portal-hero {
    background:
        radial-gradient(circle at 90% 0%, rgba(15,118,110,.14), transparent 42%),
        linear-gradient(135deg, #fff 0%, #f1f9f5 100%);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.portal-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-dark), #12a594);
    color: #fff;
    font-size: 24px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    box-shadow: 0 8px 18px rgba(15,118,110,.22);
}

.portal-hero-text h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 950;
}

.portal-hero-text p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* ---- Improved topbar nav link active states ---- */
.ps-topbar-nav a.active { background: var(--soft); color: var(--accent-dark); }

/* ---- Checkout form improvements ---- */
.checkout-section-title {
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-section-title span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

/* ---- Payment method selector ---- */
.pay-method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.pay-method-option {
    display: none;
}

.pay-method-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    transition: border-color .14s ease, background .14s ease;
}

.pay-method-label:hover { border-color: var(--accent); background: var(--soft); }

.pay-method-option:checked + .pay-method-label {
    border-color: var(--accent);
    background: var(--soft);
    color: var(--accent-dark);
}

.pay-method-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 18px;
}

/* ---- Tracking timeline upgrade ---- */
.track { display: grid; gap: 0; }

.track-row {
    display: grid;
    grid-template-columns: 28px minmax(0,1fr);
    gap: 10px;
    position: relative;
    padding-bottom: 16px;
}

.track-row:last-child { padding-bottom: 0; }

.track-row::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 20px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.track-row:last-child::before { display: none; }

.track-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(15,118,110,.14);
    margin-top: 3px;
    z-index: 1;
    position: relative;
}

.track-row:first-child .track-dot {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(15,118,110,.2), 0 0 0 8px rgba(15,118,110,.06);
}

.track-row strong { font-size: 13px; font-weight: 800; line-height: 1.3; }
.track-row span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }

/* ---- Account page ---- */
.account-section-header {
    font-size: 14px;
    font-weight: 900;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 20px 0 10px;
}

/* ---- Responsive tightening ---- */
@media (max-width: 640px) {
    .admin-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .kpi strong { font-size: 22px; }

    .cart-item {
        grid-template-columns: 48px minmax(0,1fr) auto;
        gap: 8px;
        padding: 12px 12px;
    }

    .cart-item-thumb {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        font-size: 18px;
    }

    .order-card { padding: 12px 14px; }
    .portal-hero { padding: 14px 16px; }
    .portal-hero-icon { width: 44px; height: 44px; font-size: 20px; border-radius: 13px; }
}

/* ============================================================
   SCROLL ANNOUNCEMENT BANNER
   ============================================================ */
.ps-scroll-banner {
    background: #1a1207;
    color: #fff;
    overflow: hidden;
    height: 34px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 62px;
    z-index: 39;
    border-bottom: 2px solid #e8601a;
}

.ps-scroll-banner--promo {
    background: linear-gradient(90deg, #c44a0e 0%, #e8601a 40%, #f5a623 100%);
    border-bottom-color: #ffb800;
}

.ps-scroll-banner--urgent {
    background: #b42318;
    border-bottom-color: #ff4d4d;
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {
    0%, 100% { background: #b42318; }
    50%       { background: #dc2626; }
}

.ps-scroll-track {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    animation: scrollTicker 30s linear infinite;
    will-change: transform;
    padding-left: 100%;
}

.ps-scroll-track:hover { animation-play-state: paused; }

@keyframes scrollTicker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.ps-scroll-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    flex: 0 0 4px;
}

.ps-scroll-link {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.35);
}
.ps-scroll-link:hover {
    border-bottom-color: #fff;
    text-decoration: none;
}

/* Admin announcements page */
.announce-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.announce-type-info    { background: #eff6ff; color: #1e40af; }
.announce-type-promo   { background: #fff4e8; color: #c44a0e; }
.announce-type-urgent  { background: #fef2f2; color: #b42318; }

/* ── Spotlight ────────────────────────────────────────────── */
.spotlight-section { margin: 6px 0 4px; }

.spotlight-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
    color: #c44a0e;
}

.spotlight-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #e8601a;
    animation: spotPulse 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes spotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .5; transform: scale(.7); }
}

.spotlight-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 4px 14px rgba(232,96,26,.08);
    transition: box-shadow .18s;
}
.spotlight-card:hover { box-shadow: 0 8px 24px rgba(232,96,26,.16); }

.spotlight-art {
    position: relative;
    min-height: 96px;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.spotlight-art img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.spotlight-badge {
    position: absolute;
    top: 6px; left: 6px;
    background: rgba(26,18,7,.72);
    color: #f5a623;
    font-size: 9px;
    font-weight: 900;
    padding: 3px 7px;
    border-radius: 999px;
    letter-spacing: .04em;
    backdrop-filter: blur(4px);
}
.spotlight-letter {
    font-size: 32px;
    font-weight: 950;
    color: rgba(255,255,255,.85);
    z-index: 1;
}

.spotlight-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 12px 12px 12px 0;
}
.spotlight-brand {
    font-size: 10px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.spotlight-name {
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--ink);
}
.spotlight-price {
    font-size: 17px;
    font-weight: 950;
    color: #e8601a;
}
.spotlight-social {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

/* ── Activity feed ────────────────────────────────────────── */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 4px 0 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.activity-item {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
    animation: actFadeIn .4s ease both;
}
.activity-item:last-child { border-bottom: none; }

@keyframes actFadeIn {
    from { opacity: 0; transform: translateX(-6px); }
    to   { opacity: 1; transform: none; }
}

.activity-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8601a, #f5a623);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.activity-text {
    font-size: 11.5px;
    color: var(--ink);
    line-height: 1.35;
}
.activity-text strong { font-weight: 800; }
.activity-text em { font-style: normal; color: #c44a0e; font-weight: 700; }

.activity-time {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
}

/* ── Ship progress solo (replaces ship-progress in rewards-row) ── */
.ship-progress-solo {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 14px;
    margin: 4px 0 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 4px 10px rgba(20,33,29,.05);
}

/* ── Check-in section (moved below top picks) ─────────────── */
.checkin-section { margin: 6px 0 4px; }

.checkin-card {
    border-radius: 14px;
    padding: 14px;
    background:
        radial-gradient(circle at 100% 0, rgba(255,255,255,.22), transparent 40%),
        linear-gradient(135deg, #ee4d2d 0%, #f97316 65%, #fbbf24 100%);
    box-shadow: 0 10px 24px rgba(234,88,12,.22);
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: #fff;
}

.checkin-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.checkin-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 2px;
}

.checkin-coins {
    font-size: 22px;
    font-weight: 950;
    letter-spacing: -.01em;
}
.checkin-coins em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
}

.checkin-btn {
    background: #fff;
    color: #ea580c;
    box-shadow: 0 4px 10px rgba(0,0,0,.12);
    white-space: nowrap;
    flex-shrink: 0;
}
.checkin-btn:disabled { opacity: .82; cursor: default; }

.checkin-streak {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.checkin-streak span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: rgba(255,255,255,.18);
    border-radius: 8px;
    padding: 5px 2px;
    font-size: 9px;
    font-weight: 800;
    transition: background .15s;
}

.checkin-streak span.active {
    background: rgba(255,255,255,.35);
    box-shadow: 0 0 0 1.5px rgba(255,255,255,.7);
}
.checkin-streak span.today {
    background: rgba(255,255,255,.55);
    box-shadow: 0 0 0 2px #fff;
}

.checkin-day-label { opacity: .9; }
.checkin-day-check { font-size: 10px; opacity: .95; }

.checkin-hint {
    font-size: 11px;
    opacity: .88;
    line-height: 1.35;
}

/* ── Order for new sections on mobile ────────────────────── */
.spotlight-section  { order: 2; }
.activity-feed      { order: 3; }
.ship-progress-solo { order: 4; }
.fin-strip          { order: 6; }
.ps-main-store-home .store-app-hub { order: 1; }
.ps-main-store-home .store-restock-shelf { order: 2; }
.ps-main-store-home .verify-banner { order: 3; }
.ps-main-store-home .flash-section { order: 4; }
.ps-main-store-home .top-picks-section { order: 5; }
.ps-main-store-home .brand-strip-section { order: 6; }
.ps-main-store-home .voucher-strip,
.ps-main-store-home .checkin-section,
.ps-main-store-home .proof-strip,
.ps-main-store-home .categories-cta,
.ps-main-store-home .ship-progress-solo,
.ps-main-store-home .store-quick-strip,
.ps-main-store-home .store-control-center,
.ps-main-store-home .spotlight-section,
.ps-main-store-home .activity-feed,
.ps-main-store-home .fin-strip,
.ps-main-store-home .verify-banner.success {
    display: none;
}

.ps-main-store-home {
    display: flex;
    flex-direction: column;
    gap: var(--ps-section-gap);
    width: 100%;
    max-width: var(--ps-app-max-width);
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(var(--ps-tabbar-offset) + env(safe-area-inset-bottom));
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.ps-main-store-home .section-title-bar {
    padding-inline: 0;
    margin-bottom: 0;
}

.ps-main-store-home .flash-section,
.ps-main-store-home .top-picks-section,
.ps-main-store-home .brand-strip-section,
.ps-main-store-home .store-restock-shelf {
    padding-inline: 0;
    margin-top: 0;
}

/* ══════════════════════════════════════════════════════════
   FINANCIAL SERVICES STRIP  (homepage quick-access)
   ══════════════════════════════════════════════════════════ */
.fin-strip { margin: 6px 0 4px; }

.fin-strip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

@media (max-width: 440px) {
    .fin-strip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.fin-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px 10px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: var(--ink);
    text-align: center;
    cursor: pointer;
    transition: box-shadow .15s, transform .12s;
    position: relative;
}
.fin-card:hover { box-shadow: 0 6px 18px rgba(232,96,26,.12); transform: translateY(-2px); }

.fin-card--wallet  { border-color: #f5a623; background: #fffbf0; }
.fin-card--cashin  { border-color: #22c55e; background: #f0fdf4; }
.fin-card--locked  { opacity: .72; }
.fin-card--locked:hover { transform: none; box-shadow: none; }

.fin-card-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--soft);
    flex-shrink: 0;
}
.fin-card--wallet  .fin-card-icon { background: #fff3cd; color: #b45309; }
.fin-card--cashin  .fin-card-icon { background: #dcfce7; color: #15803d; }
.fin-card--transfer .fin-card-icon { background: #dbeafe; color: #1d4ed8; }
.fin-card--bnpl    .fin-card-icon { background: #fff4e8; color: #c44a0e; }
.fin-card--eload   .fin-card-icon { background: #f3e8ff; color: #7e22ce; }

.fin-card-label {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}
.fin-card-value {
    font-size: 13px;
    font-weight: 950;
    color: #e8601a;
    line-height: 1;
}
.fin-card-value--sm {
    font-size: 9.5px;
    font-weight: 700;
    color: var(--muted);
}
.fin-card-hint {
    font-size: 9px;
    color: var(--muted);
    font-weight: 700;
}
.fin-card-badge {
    position: absolute;
    top: 5px; right: 5px;
    font-size: 8px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 999px;
    letter-spacing: .04em;
}
.fin-card-badge--live { background: #dcfce7; color: #15803d; }
.fin-card-badge--soon { background: #fff4e8; color: #c44a0e; }

/* ══════════════════════════════════════════════════════════
   WALLET PAGE
   ══════════════════════════════════════════════════════════ */
.wallet-shell {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 0 100px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hero balance card */
.wallet-hero {
    background:
        radial-gradient(circle at 110% -10%, rgba(255,255,255,.18), transparent 45%),
        linear-gradient(140deg, #1a1207 0%, #2d1f08 60%, #4a3010 100%);
    border-radius: 20px;
    padding: 20px 18px 16px;
    color: #fff;
    margin: 8px 0 0;
}

.wallet-hero-eyebrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    opacity: .7;
    margin-bottom: 14px;
}
.wallet-hero-account {
    color: #f5a623;
    text-decoration: none;
    font-weight: 800;
}

.wallet-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 18px;
}
.wallet-balance-label {
    display: block;
    font-size: 11px;
    opacity: .65;
    font-weight: 700;
    margin-bottom: 3px;
}
.wallet-balance-amount {
    font-size: 34px;
    font-weight: 950;
    letter-spacing: -.02em;
    line-height: 1;
}

.wallet-coins-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(245,166,35,.18);
    border: 1px solid rgba(245,166,35,.4);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 900;
    color: #f5a623;
}

/* Wallet quick actions row */
.wallet-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.wallet-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 10px 6px;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s;
}
.wallet-action:hover { background: rgba(255,255,255,.18); }
.wallet-action--active { background: rgba(232,96,26,.55); border-color: #e8601a; }
.wallet-action--locked { opacity: .55; cursor: default; }
.wallet-action--locked:hover { background: rgba(255,255,255,.1); }

.wallet-action-icon {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.15);
    display: grid;
    place-items: center;
}

/* Section title */
.wallet-section-title {
    font-size: 14px;
    font-weight: 900;
    color: var(--ink);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Service cards */
.wservice-card {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 10px;
}
.wservice-card--locked { opacity: .85; }

.wservice-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
}
.wservice-card--locked .wservice-head { border-bottom: none; }

.wservice-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.wservice-icon--green  { background: #dcfce7; color: #15803d; }
.wservice-icon--blue   { background: #dbeafe; color: #1d4ed8; }
.wservice-icon--orange { background: #fff4e8; color: #c44a0e; }
.wservice-icon--purple { background: #f3e8ff; color: #7e22ce; }

.wservice-head > div { flex: 1; }
.wservice-head strong { display: block; font-size: 14px; font-weight: 900; }
.wservice-sub { font-size: 11px; color: var(--muted); font-weight: 600; }

.wservice-badge {
    font-size: 10px;
    font-weight: 900;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.wservice-badge--live { background: #dcfce7; color: #15803d; }
.wservice-badge--soon { background: #fff4e8; color: #c44a0e; }

.wservice-body { padding: 14px 16px; }
.wservice-body p { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }

.wservice-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.wservice-method {
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    color: var(--ink);
}

.wservice-form { display: flex; flex-direction: column; gap: 10px; }
.wservice-form-row { display: flex; flex-direction: column; gap: 4px; }
.wservice-form-row label { font-size: 12px; font-weight: 800; color: var(--muted); }
.wservice-form-row input,
.wservice-form-row select {
    border: 1.5px solid var(--line);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 14px;
    background: #fafafa;
}
.wservice-form-row input:focus,
.wservice-form-row select:focus {
    outline: none;
    border-color: #e8601a;
}

.wservice-coming-soon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    padding: 8px 0 4px;
    color: var(--muted);
}
.wservice-coming-soon svg { opacity: .35; }
.wservice-coming-soon strong { font-size: 14px; font-weight: 900; color: var(--ink); }
.wservice-coming-soon p { font-size: 12px; margin: 0; line-height: 1.5; }

.wservice-feature-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Transaction history */
.wallet-history { display: flex; flex-direction: column; gap: 0; }

.wtx-row {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.wtx-row:last-child { border-bottom: none; }

.wtx-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}
.wtx-icon--in  { background: #dcfce7; color: #15803d; }
.wtx-icon--out { background: #fef2f2; color: #b91c1c; }

.wtx-meta strong { display: block; font-size: 13px; font-weight: 800; }
.wtx-meta small  { font-size: 11px; color: var(--muted); font-weight: 600; }

.wtx-amount { font-size: 14px; font-weight: 900; white-space: nowrap; }
.wtx-amount--in  { color: #15803d; }
.wtx-amount--out { color: #b91c1c; }

.wallet-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 0;
    color: var(--muted);
    text-align: center;
}
.wallet-empty svg { opacity: .3; }
.wallet-empty p { font-size: 13px; margin: 0; line-height: 1.5; }

/* ── 5-tab bottom nav override ─────────────────────────── */
.ps-tabs--5 { grid-template-columns: repeat(5, 1fr); }
.ps-tabs--5 a,
.ps-tabs--5 .ps-tabs-cart { font-size: 9px; }
.ps-tabs--5 svg { width: 20px; height: 20px; }

.ps-tabs--4 { grid-template-columns: repeat(4, 1fr); }
.ps-tabs--4 a,
.ps-tabs--4 .ps-tabs-cart { font-size: 10px; }

.ps-tabs--cart-center {
    align-items: end;
    padding-top: 4px;
}

.ps-tabs--cart-center .ps-tabs-cart {
    margin-top: -22px;
    gap: 4px;
}

.ps-tabs-cart-ring {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent-dark), var(--accent));
    box-shadow: 0 10px 22px rgba(232, 96, 26, .38);
    border: 3px solid #fff;
}

.ps-tabs--cart-center .ps-tabs-cart.active .ps-tabs-cart-ring {
    box-shadow: 0 10px 22px rgba(232, 96, 26, .5), 0 0 0 2px rgba(232, 96, 26, .25);
}

.ps-tabs-cart-ring svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.ps-tabs-cart-ring em {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    font-style: normal;
    line-height: 18px;
    text-align: center;
    border: 2px solid #fff;
}

.ps-tabs--cart-center .ps-tabs-cart span:last-child {
    font-weight: 800;
    color: var(--ink);
}

.ps-tabs--cart-center .ps-tabs-cart.active span:last-child {
    color: var(--accent);
}

/* ── Coming-soon toast ─────────────────────────────────── */
.coming-soon-toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26,18,7,.88);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 6px 24px rgba(0,0,0,.22);
    animation: toastIn .2s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.categories-page-head {
    padding: 12px 14px 4px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.categories-page-head h1 {
    margin: 4px 0 2px;
    font-size: 20px;
    font-weight: 900;
}
.categories-page-head p {
    margin: 0 0 8px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.categories-cta {
    margin: 8px 12px 0;
}
.categories-cta-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
}
.categories-cta-card:hover { text-decoration: none; color: var(--accent-dark); }
.categories-cta-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--gold));
    display: grid;
    place-items: center;
    color: #fff;
}
.categories-cta-icon svg { width: 22px; height: 22px; }
.categories-cta-copy strong { display: block; font-size: 14px; font-weight: 900; }
.categories-cta-copy small { font-size: 11px; color: var(--muted); font-weight: 700; }
.categories-cta-arrow { font-size: 22px; color: var(--accent); font-weight: 900; }

.quick-cat.active {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════
   Customer Journey UI Refresh — marketplace components
   ═══════════════════════════════════════════════════════════ */
:root {
    --marketplace-red: #ee4d2d;
    --marketplace-red-soft: #fff1ed;
    --marketplace-green: #26aa99;
    --marketplace-green-soft: #e8f8f5;
    --mall-bg: #f5f5f5;
    --card-shadow: 0 2px 12px rgba(26, 18, 7, .06);
    --sticky-bar-h: 64px;
}

.ps-main-journey {
    max-width: min(var(--ps-app-max-width), 640px);
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(var(--sticky-bar-h) + 88px);
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
    background: var(--mall-bg);
}

.journey-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px 4px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
}
.journey-back:hover { text-decoration: none; color: var(--accent); }

.pdp-gallery {
    background: #fff;
    position: relative;
    overflow: hidden;
}
.pdp-gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.pdp-gallery-track::-webkit-scrollbar { display: none; }
.pdp-gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    position: relative;
}
.pdp-gallery-slide img,
.pdp-gallery-letter {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pdp-gallery-letter {
    display: grid;
    place-items: center;
    font-size: 72px;
    font-weight: 900;
    color: rgba(255,255,255,.92);
}
.pdp-gallery-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--marketplace-red);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
}
.pdp-gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 12px;
    background: #fff;
}
.pdp-gallery-dots span {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ddd;
}
.pdp-gallery-dots span.active { background: var(--accent); width: 16px; }

.pdp-info-card,
.pdp-block {
    background: #fff;
    padding: 14px 16px;
    margin-top: 8px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}
.pdp-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.pdp-price {
    font-size: 26px;
    font-weight: 900;
    color: var(--marketplace-red);
}
.pdp-compare {
    font-size: 14px;
    color: var(--muted);
    text-decoration: line-through;
}
.pdp-discount-tag {
    background: var(--marketplace-red-soft);
    color: var(--marketplace-red);
    font-size: 11px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
}
.pdp-title {
    margin: 8px 0 6px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}
.pdp-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}
.pdp-stars { color: #f5a623; letter-spacing: -1px; }
.pdp-stars em { color: var(--ink); font-style: normal; font-weight: 800; }
.pdp-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.pdp-chip {
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: #fffaf5;
    color: var(--accent-dark);
}
.pdp-chip--green {
    background: var(--marketplace-green-soft);
    border-color: #b8e8df;
    color: #0f766e;
}
.pdp-chip--red {
    background: var(--marketplace-red-soft);
    border-color: #ffc9bb;
    color: var(--marketplace-red);
}

.pdp-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.pdp-spec-item {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px 12px;
}
.pdp-spec-item strong {
    display: block;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 4px;
}
.pdp-spec-item span { font-size: 13px; font-weight: 800; }

.pdp-accordion summary {
    cursor: pointer;
    font-weight: 900;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pdp-accordion summary::-webkit-details-marker { display: none; }
.pdp-accordion summary::after { content: '+'; font-size: 18px; color: var(--muted); }
.pdp-accordion[open] summary::after { content: '−'; }
.pdp-accordion-body {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.55;
}

.pdp-related-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0 14px 14px;
    scroll-snap-type: x mandatory;
}
.pdp-related-scroll .product { flex: 0 0 148px; scroll-snap-align: start; }

.pdp-buy-bar,
.sticky-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--ps-tabbar-sticky-base);
    z-index: 35;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 14px;
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 8px;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(26,18,7,.08);
}
.pdp-buy-bar-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--soft);
    color: var(--ink);
    text-decoration: none;
    font-size: 18px;
}
.pdp-buy-bar .ps-btn { min-height: 44px; font-size: 14px; font-weight: 900; }
.pdp-buy-bar .add-row { justify-content: center; }

@media (min-width: 900px) {
    .pdp-buy-bar,
    .sticky-action-bar {
        max-width: 640px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 14px 14px 0 0;
    }
}

.cart-mall {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 calc(var(--sticky-bar-h) + 88px);
}
.cart-mall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 8px;
    background: #fff;
}
.cart-mall-header h1 { margin: 0; font-size: 18px; font-weight: 900; }
.cart-mall-store {
    background: #fff;
    margin: 8px 12px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.cart-mall-store-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #f3f3f3;
    font-size: 13px;
    font-weight: 900;
}
.cart-mall-store-head span { color: var(--accent); }
.cart-mall-progress {
    margin: 8px 12px 0;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fff7ed, #fff);
    border-radius: 12px;
    border: 1px solid var(--line);
}
.cart-mall-progress-bar {
    height: 6px;
    background: #eee;
    border-radius: 999px;
    overflow: hidden;
    margin: 8px 0 6px;
}
.cart-mall-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 999px;
}
.cart-mall-progress small { font-size: 11px; color: var(--muted); font-weight: 700; }

.cart-mall-addon {
    margin: 12px;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: var(--card-shadow);
}
.cart-mall-addon h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 900;
}
.cart-mall-addon-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.cart-mall-addon-scroll .product { flex: 0 0 130px; }

.checkout-stack {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 0 calc(var(--sticky-bar-h) + 88px);
}
.checkout-card {
    background: #fff;
    margin: 8px 12px 0;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--card-shadow);
}
.checkout-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.checkout-card-head h2,
.checkout-card-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
}
.checkout-address-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.checkout-address-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 16px;
    flex-shrink: 0;
}
.checkout-address-body strong { display: block; font-size: 14px; }
.checkout-address-body span { font-size: 12px; color: var(--muted); line-height: 1.45; }

.checkout-line {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f3f3;
}
.checkout-line:last-child { border-bottom: none; }
.checkout-line-thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    font-size: 18px;
}
.checkout-line-meta { font-size: 11px; color: var(--muted); font-weight: 700; }

.checkout-pay-options { display: flex; flex-direction: column; gap: 8px; }
.checkout-pay-option {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1.5px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s;
}
.checkout-pay-option:has(input:checked) {
    border-color: var(--accent);
    background: #fffaf5;
}
.checkout-pay-option input { accent-color: var(--accent); }
.checkout-pay-option strong { display: block; font-size: 13px; }
.checkout-pay-option small { font-size: 11px; color: var(--muted); font-weight: 600; }

.checkout-totals { margin-top: 4px; }
.checkout-totals .total-row { padding: 6px 0; font-size: 13px; }
.checkout-totals .total-row.grand {
    border-top: 1px dashed var(--line);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 16px;
}

.checkout-voucher-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--marketplace-red-soft);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--marketplace-red);
}

.orders-mall { max-width: 640px; margin: 0 auto; padding-bottom: 88px; }
.orders-mall-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 8px;
}
.orders-mall-header h1 { margin: 0; font-size: 18px; font-weight: 900; }

.filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 14px 12px;
    scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pill {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    color: var(--muted);
    background: #fff;
    border: 1.5px solid #eee;
}
.filter-pill.active,
.filter-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    text-decoration: none;
}

.order-mall-card {
    background: #fff;
    margin: 0 12px 10px;
    border-radius: 12px;
    padding: 14px 16px;
    box-shadow: var(--card-shadow);
}
.order-mall-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.order-mall-number { font-size: 12px; font-weight: 900; color: var(--muted); }
.order-mall-thumbs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.order-mall-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--gold));
}
.order-mall-thumb.more {
    background: #f3f3f3;
    color: var(--muted);
    font-size: 11px;
}

.order-timeline-strip {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 10px 0;
    padding: 8px 0;
    overflow-x: auto;
}
.order-timeline-step {
    flex: 1;
    min-width: 60px;
    text-align: center;
    position: relative;
}
.order-timeline-step::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 0;
}
.order-timeline-step:last-child::after { display: none; }
.order-timeline-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eee;
    margin: 0 auto 6px;
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    font-size: 10px;
}
.order-timeline-step.done .order-timeline-dot {
    background: var(--marketplace-green);
    color: #fff;
}
.order-timeline-step.active .order-timeline-dot {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(232,96,26,.2);
}
.order-timeline-step small {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    line-height: 1.2;
}
.order-timeline-step.done small,
.order-timeline-step.active small { color: var(--ink); }

.order-mall-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f3f3f3;
}

.order-detail-stack { max-width: 640px; margin: 0 auto; padding-bottom: calc(var(--sticky-bar-h) + 88px); }
.order-status-banner {
    padding: 16px;
    color: #fff;
    text-align: center;
}
.order-status-banner h2 { margin: 0 0 4px; font-size: 18px; }
.order-status-banner p { margin: 0; font-size: 13px; opacity: .9; }
.order-status-banner--success { background: linear-gradient(135deg, #059669, #10b981); }
.order-status-banner--warn { background: linear-gradient(135deg, #d97706, #f59e0b); }
.order-status-banner--info { background: linear-gradient(135deg, #2563eb, #3b82f6); }
.order-status-banner--danger { background: linear-gradient(135deg, #b91c1c, #ef4444); }

.order-timeline-vertical { padding: 4px 0; }
.order-timeline-row {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    padding: 10px 0;
    position: relative;
}
.order-timeline-row:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    bottom: -4px;
    width: 2px;
    background: #eee;
}
.order-timeline-row.done::before { background: var(--marketplace-green); }
.order-timeline-row .track-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #eee;
    display: grid;
    place-items: center;
    font-size: 10px;
    position: relative;
    z-index: 1;
}
.order-timeline-row.done .track-dot { background: var(--marketplace-green); color: #fff; }
.order-timeline-row.active .track-dot { background: var(--accent); color: #fff; }
.order-timeline-row strong { display: block; font-size: 13px; }
.order-timeline-row span { font-size: 11px; color: var(--muted); }

.payment-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f3f3f3;
    color: var(--muted);
}
.payment-chip--paid { background: #dcfce7; color: #15803d; }
.payment-chip--pending { background: #fff4e8; color: #c44a0e; }

.account-hub { max-width: 640px; margin: 0 auto; padding-bottom: 88px; }
.account-banner {
    background: linear-gradient(135deg, #1a1207 0%, #3d2a14 60%, var(--accent-dark) 100%);
    color: #fff;
    padding: 24px 18px 20px;
    position: relative;
    overflow: hidden;
}
.account-banner::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.account-banner h1 { margin: 0 0 4px; font-size: 20px; font-weight: 900; }
.account-banner p { margin: 0; font-size: 13px; opacity: .85; }
.account-verify-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.15);
}
.account-verify-badge--pending { background: rgba(245,166,35,.25); }

.account-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #eee;
    margin: -16px 12px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    position: relative;
    z-index: 2;
}
.account-stat {
    background: #fff;
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.account-stat strong { display: block; font-size: 18px; font-weight: 900; color: var(--accent); }
.account-stat span { font-size: 11px; color: var(--muted); font-weight: 700; }

.account-quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 16px 14px;
}
.account-quick-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    text-align: center;
}
.account-quick-tile:hover { text-decoration: none; color: var(--accent); }
.account-quick-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 20px;
}

.account-section {
    margin: 0 12px 10px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.account-section summary,
.account-section-head {
    padding: 14px 16px;
    font-weight: 900;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f3f3;
}
.account-section summary::-webkit-details-marker { display: none; }
.account-section-body { padding: 14px 16px; }

.auth-input-row {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon {
    position: absolute;
    left: 12px;
    font-size: 16px;
    opacity: .5;
    pointer-events: none;
}
.auth-input-row input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    background: #fafafa;
    font-size: 14px;
}
.auth-input-row input:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
}
.auth-toggle-pw {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    padding: 4px 8px;
}
.auth-section-title {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin: 16px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 767px) {
    .table-as-cards thead { display: none; }
    .table-as-cards tbody tr {
        display: block;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 10px;
        padding: 14px 16px;
        box-shadow: var(--card-shadow);
        border: 1px solid #f0f0f0;
    }
    .table-as-cards tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        padding: 6px 0;
        border: none;
        font-size: 13px;
    }
    .table-as-cards tbody td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--muted);
        font-size: 11px;
        text-transform: uppercase;
        flex-shrink: 0;
    }
    .table-as-cards tbody td.num { justify-content: space-between; }
    .table-as-cards .table-actions { justify-content: flex-end; }
    .table-as-cards .table-actions::before { display: none; }

    .kpi-grid-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 14px;
    }
    .kpi-tile {
        background: #fff;
        border-radius: 12px;
        padding: 14px;
        box-shadow: var(--card-shadow);
    }
    .kpi-tile strong { display: block; font-size: 22px; font-weight: 900; color: var(--accent); }
    .kpi-tile span { font-size: 11px; color: var(--muted); font-weight: 700; }
}

/* PDP extras — 2026-05-29 refresh */
.pdp-gallery-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    gap: 8px;
}
.pdp-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    font-size: 16px;
    cursor: pointer;
}
.pdp-gallery-thumbs {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
}
.pdp-gallery-thumb {
    flex: 0 0 52px;
    height: 52px;
    border-radius: 8px;
    border: 2px solid transparent;
    opacity: .7;
}
.pdp-gallery-thumb.active {
    border-color: var(--accent);
    opacity: 1;
}
.pdp-mall-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.pdp-mall-pill {
    background: linear-gradient(135deg, var(--mall, #e8601a), #ff8c42);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.pdp-brand-name { font-size: 12px; font-weight: 800; color: var(--muted); }
.pdp-voucher-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0 4px;
    margin-bottom: 8px;
}
.pdp-voucher-pill {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 6px;
    background: #fff5f0;
    color: var(--marketplace-red, #ee4d2d);
    border: 1px dashed #ffc9b8;
}
.ps-btn-buy-now {
    background: var(--marketplace-red, #ee4d2d) !important;
    color: #fff !important;
}

/* Cart mall extras */
.cart-mall-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 900;
    font-size: 13px;
}
.cart-mall-select input { width: 18px; height: 18px; accent-color: var(--accent); }
.cart-voucher-claim {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 12px 10px;
}
.cart-voucher-claim-pill {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 10px;
    border-radius: 20px;
    background: #fff5f0;
    color: var(--marketplace-red, #ee4d2d);
    border: 1px solid #ffe0d6;
}
.cart-line-voucher {
    display: inline-block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff5f0;
    color: var(--marketplace-red, #ee4d2d);
}

/* Account hub extras */
.account-quick-grid--6 {
    grid-template-columns: repeat(3, 1fr);
}
.account-quick-tile--form {
    padding: 0;
    border: none;
    background: transparent;
}
.account-quick-tile--form button {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #fff;
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    color: var(--ink);
}
.auth-divider {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
    margin: 12px 0;
}
.auth-guest-link {
    border: 1.5px solid var(--line) !important;
    color: var(--ink) !important;
    background: #fff !important;
}

/* Store-home quick tools (wallet + telco) */
.store-quick-strip {
    margin: 8px 0 10px;
    display: grid;
    gap: 10px;
}
.store-wallet-quick {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 10px;
    align-items: center;
    box-shadow: var(--card-shadow);
}
.store-wallet-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.store-wallet-amount {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent);
}
.store-wallet-quick .ps-btn { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

.store-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.store-quick-btn {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 12px;
    display: grid;
    gap: 2px;
    text-decoration: none;
    color: var(--ink);
    box-shadow: var(--card-shadow);
}
.store-quick-btn span { font-size: 16px; }
.store-quick-btn strong { font-size: 13px; font-weight: 900; }
.store-quick-btn small { font-size: 11px; color: var(--muted); font-weight: 700; }

.store-control-center {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    margin: 0 0 10px;
    box-shadow: var(--card-shadow);
}
.store-control-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.store-control-head h2 {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.1;
}
.store-control-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.store-control-card {
    min-height: 88px;
    border-radius: 12px;
    padding: 10px;
    background: #fffaf5;
    border: 1px solid #ffe0bc;
    color: var(--ink);
    text-decoration: none;
    display: grid;
    gap: 3px;
}
.store-control-card.primary {
    background: linear-gradient(135deg, #fff4e8, #fff);
    border-color: var(--accent);
}
.store-control-icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #fff;
    box-shadow: 0 4px 12px rgba(232,96,26,.12);
}
.store-control-card strong { font-size: 13px; font-weight: 900; }
.store-control-card small { font-size: 11px; color: var(--muted); font-weight: 700; line-height: 1.25; }

.store-restock-mini {
    margin-top: 12px;
    border-top: 1px dashed var(--line);
    padding-top: 10px;
    display: grid;
    gap: 8px;
}
.store-restock-mini-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: baseline;
}
.store-restock-mini-head strong { font-size: 13px; font-weight: 900; }
.store-restock-mini-head span { font-size: 11px; color: var(--muted); font-weight: 700; }
.store-restock-row {
    display: grid;
    grid-template-columns: 1fr auto 34px;
    gap: 8px;
    align-items: center;
    padding: 9px;
    border: 1px solid #f5eadf;
    border-radius: 12px;
    background: #fff;
}
.store-restock-name {
    display: grid;
    gap: 2px;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
}
.store-restock-name strong {
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.store-restock-name small { font-size: 10px; color: var(--muted); font-weight: 700; }
.store-restock-price { font-size: 12px; font-weight: 900; color: var(--accent); white-space: nowrap; }
.store-restock-row .qty-button { width: 34px; height: 34px; }

/* ============================================================
   Store app home (GCash-style hub + FMCG shelves) — 2026-06-02
   ============================================================ */

.ps-body--store-app {
    background: linear-gradient(180deg, #eef4ff 0%, #f8fafc 38%, #fffaf5 100%);
}

.ps-body--store-app .ps-topbar {
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    box-shadow: none;
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    padding-top: 8px;
    padding-bottom: 8px;
}

.ps-body--store-app .ps-brand-sub,
.ps-body--store-app .ps-search-hot {
    display: none;
}

.ps-body--store-app .ps-search {
    min-height: 38px;
}

.store-app-hub {
    padding: 0;
    order: 1;
}

.store-app-hub-card {
    border-radius: 22px;
    padding: 18px 16px 14px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .22), transparent 42%),
        linear-gradient(145deg, #0057d9 0%, #007aff 42%, #00a896 100%);
    box-shadow: 0 14px 34px rgba(0, 87, 217, .28);
}

.store-app-hub-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.store-app-greeting {
    margin: 0 0 2px;
    font-size: 12px;
    font-weight: 700;
    opacity: .88;
}

.store-app-store-name {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.store-app-area {
    margin: 4px 0 0;
    font-size: 11px;
    font-weight: 700;
    opacity: .86;
}

.store-app-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 900;
    color: #0057d9;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .18);
}

.store-app-balance-block {
    margin-bottom: 12px;
}

.store-app-balance-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.store-app-balance-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    opacity: .86;
    margin-bottom: 2px;
}

.store-app-balance {
    display: block;
    font-size: 30px;
    font-weight: 950;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.store-app-coins {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.store-app-action {
    position: relative;
}

.store-app-action-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #fef08a;
    color: #854d0e;
    font-size: 9px;
    font-weight: 900;
    font-style: normal;
    line-height: 16px;
    text-align: center;
}

.store-app-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 0 0;
}

.store-app-stat {
    display: grid;
    gap: 2px;
    padding: 10px 8px;
    border-radius: 14px;
    background: #fff;
    border: 1.5px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .05);
    min-height: 72px;
    position: relative;
    overflow: hidden;
}

.store-app-stat strong {
    font-size: 15px;
    font-weight: 950;
    line-height: 1.1;
    color: var(--accent);
}

.store-app-stat span {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
}

.store-app-stat small {
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
    line-height: 1.2;
}

.store-app-stat.ready {
    border-color: rgba(21, 128, 61, .35);
    background: linear-gradient(180deg, #f0fdf4, #fff);
}

.store-app-stat.ready strong {
    color: #15803d;
}

.store-app-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.store-app-action {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 8px 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
    transition: background .15s, transform .12s;
}

.store-app-action:hover {
    background: rgba(255, 255, 255, .22);
    text-decoration: none;
    transform: translateY(-1px);
}

.store-app-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 900;
    background: rgba(255, 255, 255, .95);
    color: #0057d9;
}

.store-app-action-icon.load { color: #7c3aed; }
.store-app-action-icon.shop { color: #0f766e; }
.store-app-action-icon.orders { color: #c2410c; }

.store-app-ship {
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .22);
}

.store-app-ship-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
}

.store-app-ship-head strong { font-size: 12px; }

.store-app-ship-bar {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .25);
    overflow: hidden;
}

.store-app-ship-bar .ship-bar-fill {
    background: linear-gradient(90deg, #fff, #fef08a);
}

.store-app-ship small {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    opacity: .86;
}

.store-app-categories-wrap {
    padding: 4px 0 0;
}

.store-app-categories-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 10px;
}

.store-app-categories-head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    color: var(--ink);
    letter-spacing: -.01em;
}

.store-app-categories-all {
    font-size: 11px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.store-app-categories-all:hover {
    text-decoration: none;
    color: var(--accent-dark);
}

.store-app-categories {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 0 4px;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.store-app-categories::-webkit-scrollbar {
    display: none;
}

.store-app-cat {
    flex: 0 0 72px;
    scroll-snap-align: start;
    display: grid;
    justify-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--ink);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
}

.store-app-cat-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    min-height: 24px;
}

.store-app-cat-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .12);
    transition: transform .12s;
}

.store-app-cat:hover .store-app-cat-icon {
    transform: translateY(-2px);
}

.store-app-cat-icon.more {
    background: #fff;
    color: var(--accent);
    border: 1.5px dashed rgba(232, 96, 26, .45);
    box-shadow: none;
}

.store-app-cat-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #1e293b;
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    font-style: normal;
    line-height: 16px;
    text-align: center;
    border: 2px solid #fff;
}

.store-restock-shelf {
    padding: 0;
}

.store-restock-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 0 6px;
    scroll-padding-inline: 2px;
    -webkit-overflow-scrolling: touch;
}

.store-restock-card {
    flex: 0 0 148px;
    scroll-snap-align: start;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    display: grid;
    gap: 4px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
    position: relative;
}

.store-restock-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 76px;
    border-radius: 12px;
    text-decoration: none;
}

.store-restock-margin-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #15803d;
    font-size: 9px;
    font-weight: 900;
}

.store-restock-brand {
    font-size: 9px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.store-restock-pack {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted);
}

.store-restock-letter {
    font-size: 26px;
    font-weight: 950;
    color: rgba(255, 255, 255, .95);
}

.store-restock-title {
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--ink);
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
}

.store-restock-prices {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.store-restock-prices strong {
    font-size: 13px;
    font-weight: 950;
    color: var(--accent);
}

.store-restock-prices span {
    font-size: 10px;
    font-weight: 800;
    color: #15803d;
}

.store-restock-prices small {
    flex-basis: 100%;
    font-size: 9px;
    font-weight: 700;
    color: var(--muted);
}

.store-restock-add {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

@media (max-width: 380px) {
    .store-app-store-name { font-size: 19px; }
    .store-app-balance { font-size: 26px; }
    .store-app-cat { flex-basis: 64px; }
    .store-app-cat-icon { width: 44px; height: 44px; }
    .store-app-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .store-app-stat { min-height: 64px; }
    .ps-tabs--5 a,
    .ps-tabs--5 .ps-tabs-cart { font-size: 8.5px; }
}

/* ============================================================
   Auth + partner portal refresh — 2026-06-02
   ============================================================ */

.ps-body--auth {
    background: linear-gradient(180deg, #fff6ed 0%, #f8fafc 42%, #fff 100%);
}

.ps-main-auth {
    width: 100%;
    max-width: var(--ps-app-max-width);
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.auth-shell--wide {
    max-width: 100%;
}

.ps-body--partner {
    background: #f4f6f8;
}

.ps-main-partner {
    display: flex;
    flex-direction: column;
    gap: var(--ps-section-gap);
    width: 100%;
    max-width: min(920px, calc(var(--ps-app-max-width) + 80px));
    margin-inline: auto;
    padding-top: var(--ps-block-gap);
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.ps-body--vendor { --partner-accent: #0f766e; --partner-accent-soft: #ecfdf5; }
.ps-body--sales { --partner-accent: #2563eb; --partner-accent-soft: #eff6ff; }
.ps-body--rider { --partner-accent: #ea580c; --partner-accent-soft: #fff7ed; }

.form-row-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.form-row-head label { margin: 0; }

.auth-inline-link {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    text-decoration: none;
}

.auth-check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
}

.auth-check-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.auth-submit {
    min-height: 48px;
    font-size: 15px;
    border-radius: 14px;
}

.auth-text-btn,
.auth-inline-form button {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.field-hint,
.field-error {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.field-hint { color: var(--muted); }
.field-error { color: var(--danger); }

.ps-field-control,
.form-row textarea.ps-field-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fafafa;
    font-size: 14px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.ps-field-control:focus,
.form-row textarea.ps-field-control:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 96, 26, .12);
}

.ps-field-file {
    width: 100%;
    font-size: 13px;
    font-weight: 700;
}

.auth-input-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    color: var(--muted);
}

.auth-input-row input,
.auth-input-row select,
.auth-input-row textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 44px 12px 42px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fafafa;
    font-size: 14px;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.auth-input-row textarea {
    min-height: 88px;
    padding-top: 12px;
    resize: vertical;
}

.auth-input-row input:focus,
.auth-input-row select:focus,
.auth-input-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(232, 96, 26, .12);
}

.auth-input-row--select select {
    appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.auth-input-row--phone .auth-input-icon { left: 52px; }
.auth-input-row--phone input { padding-left: 76px; }

.auth-phone-prefix,
.auth-money-prefix {
    position: absolute;
    left: 12px;
    z-index: 1;
    font-size: 13px;
    font-weight: 900;
    color: var(--muted);
}

.auth-input-row--money input {
    padding-left: 38px;
}

.auth-input-row--money .auth-money-prefix { left: 14px; }

.partner-portal-hero {
    margin-bottom: 0;
    padding: 18px 16px 14px;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 42%),
        linear-gradient(145deg, var(--partner-accent, #0f766e), color-mix(in srgb, var(--partner-accent, #0f766e) 72%, #111));
    box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.partner-portal-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.partner-portal-role {
    display: inline-block;
    margin-bottom: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.partner-portal-hero h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 950;
    line-height: 1.15;
}

.partner-portal-hero p {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 700;
    opacity: .88;
}

.partner-portal-date {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.14);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.partner-kpi-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.partner-kpi-scroll::-webkit-scrollbar { display: none; }

.partner-kpi {
    flex: 0 0 132px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(4px);
}

.partner-kpi span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    opacity: .86;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.partner-kpi strong {
    display: block;
    margin-top: 4px;
    font-size: 20px;
    font-weight: 950;
    line-height: 1.05;
}

.partner-kpi small {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 700;
    opacity: .78;
}

.partner-kpi.is-warn strong { color: #fef08a; }
.partner-kpi.is-success strong { color: #bbf7d0; }
.partner-kpi.is-blue strong { color: #bfdbfe; }

.partner-portal-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.partner-portal-nav::-webkit-scrollbar { display: none; }

.partner-portal-nav a {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.partner-portal-nav a.active {
    background: #fff;
    color: var(--partner-accent, #0f766e);
}

.partner-section { display: grid; gap: var(--ps-section-gap); }

.partner-section--split {
    grid-template-columns: 1fr;
}

.partner-panel {
    border-radius: 18px;
    overflow: hidden;
}

.partner-panel-intro,
.partner-empty {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--muted);
    font-weight: 700;
}

.partner-card-list {
    display: grid;
    gap: 10px;
}

.partner-order-card,
.partner-task-card {
    border: 1.5px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.partner-order-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.partner-order-id {
    display: inline-block;
    font-size: 15px;
    font-weight: 900;
    color: var(--accent);
    text-decoration: none;
}

.partner-order-total {
    font-size: 15px;
    font-weight: 950;
    color: var(--ink);
    white-space: nowrap;
}

.partner-order-meta,
.partner-subline {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.partner-order-customer,
.partner-task-route {
    display: grid;
    gap: 2px;
    margin-bottom: 10px;
    font-size: 13px;
}

.partner-task-route { text-align: right; }

.partner-task-address {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--partner-accent-soft, #f8fafc);
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

.partner-action-form .form-row label {
    font-size: 12px;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.partner-action-form .auth-input-row select,
.partner-action-form .auth-input-row input,
.partner-action-form .auth-input-row textarea {
    padding-left: 14px;
}

.partner-order-note { margin: 0; font-size: 13px; }

.partner-inventory-list { display: grid; gap: 10px; }

.partner-inventory-card {
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.partner-inventory-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    padding: 14px 16px;
    font-weight: 900;
}

.partner-inventory-card summary::-webkit-details-marker { display: none; }

.partner-inventory-stock {
    font-size: 12px;
    font-weight: 800;
    color: var(--partner-accent, var(--accent));
}

.partner-inventory-body {
    padding: 0 16px 16px;
    border-top: 1px solid var(--line);
}

@media (min-width: 860px) {
    .partner-section--split {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (max-width: 767px) {
    .partner-portal-hero h1 {
        font-size: 20px;
    }
}

@media (max-width: 360px) {
    :root {
        --ps-screen-gutter: 16px;
        --ps-section-gap: 14px;
    }
}

@media (min-width: 768px) {
    :root {
        --ps-screen-gutter: 24px;
        --ps-app-max-width: 560px;
        --ps-tabbar-shell-height: 60px;
    }
}

/* ============================================================
   Native bottom tab bar — 2026-06-02
   ============================================================ */

.ps-tabs {
    left: 50%;
    right: auto;
    width: min(calc(100% - (var(--ps-screen-gutter) * 2)), var(--ps-app-max-width));
    transform: translateX(-50%);
    bottom: max(var(--ps-tabbar-float-gap), env(safe-area-inset-bottom));
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 22px;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px) saturate(1.15);
    -webkit-backdrop-filter: blur(20px) saturate(1.15);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .8) inset,
        0 12px 32px rgba(15, 23, 42, .12),
        0 2px 8px rgba(15, 23, 42, .06);
    padding: 8px 6px 10px;
    min-height: var(--ps-tabbar-shell-height);
    align-items: end;
}

.ps-tabs a,
.ps-tabs .ps-tabs-cart {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 5px;
    padding: 4px 6px 2px;
    min-height: 48px;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .02em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s ease, transform .12s ease;
}

.ps-tabs a:active:not(.is-loading),
.ps-tabs .ps-tabs-cart:active:not(.is-loading) {
    transform: scale(.96);
}

.ps-tabs a.active,
.ps-tabs .ps-tabs-cart.active {
    color: var(--accent);
}

.ps-tabs svg {
    width: 23px;
    height: 23px;
}

.ps-tabs--5 a,
.ps-tabs--5 .ps-tabs-cart,
.ps-tabs--4 a,
.ps-tabs--4 .ps-tabs-cart {
    font-size: 10px;
}

.ps-tabs--5 svg:not(.ps-tabs-cart-ring svg) {
    width: 22px;
    height: 22px;
}

.ps-tabs--cart-center {
    padding-top: 10px;
}

.ps-tabs--cart-center .ps-tabs-cart {
    margin-top: -20px;
    gap: 5px;
}

.ps-tabs-cart-ring {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--accent-dark), var(--accent));
    border: 3px solid rgba(255, 255, 255, .95);
    box-shadow:
        0 10px 24px rgba(232, 96, 26, .34),
        0 0 0 1px rgba(15, 23, 42, .04);
}

.ps-tabs-cart-ring svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.ps-tabs--cart-center .ps-tabs-cart.active .ps-tabs-cart-ring {
    box-shadow:
        0 10px 24px rgba(232, 96, 26, .48),
        0 0 0 2px rgba(232, 96, 26, .22);
}

.ps-tabs--cart-center .ps-tabs-cart span:last-child {
    font-size: 10px;
    font-weight: 800;
    color: #475569;
}

.ps-tabs--cart-center .ps-tabs-cart.active span:last-child {
    color: var(--accent);
}

.ps-body--store-app .ps-tabs {
    background: rgba(255, 255, 255, .92);
}

@media (max-width: 360px) {
    .ps-tabs--5 a,
    .ps-tabs--5 .ps-tabs-cart {
        font-size: 9px;
        padding-inline: 2px;
    }

    .ps-tabs-cart-ring {
        width: 48px;
        height: 48px;
    }

    .ps-tabs--cart-center .ps-tabs-cart {
        margin-top: -18px;
    }
}

/* ============================================================
   Accessibility & motion polish — 2026-05-29
   Append-only; keyboard focus, input affordances, reduced motion.
   ============================================================ */

/* Visible keyboard focus ring for interactive elements.
   Mouse/touch users keep the clean look via :focus-visible. */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible,
summary:focus-visible,
.ps-btn:focus-visible,
.qty-button:focus-visible,
.add-button:focus-visible,
.filter-pill:focus-visible,
.brand-chip:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: var(--radius, 10px);
}

/* Restore an accessible focus state on form fields that previously
   removed it with `outline: none`. */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: var(--accent);
}

/* Calmer tap feedback on mobile (no blue flash). */
a, button, [role="button"], .ps-btn, .qty-button, .add-button {
    -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .latest-pulse,
    .flash-timer,
    .checkin-coins em,
    .button-spinner {
        animation: none !important;
    }

    .button-spinner {
        opacity: 1 !important;
        transform: none !important;
    }

    .is-loading-pending,
    button.is-pressed,
    a.is-pressed {
        transform: none !important;
    }
}

/* ============================================================
   Operator desktop workspace — admin, vendor, sales partner
   ============================================================ */

.ps-body--operator {
    background: #eef2f6;
}

.ps-main-operator {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-top: 16px;
    padding-bottom: 32px;
    padding-left: max(var(--ps-screen-gutter), env(safe-area-inset-left));
    padding-right: max(var(--ps-screen-gutter), env(safe-area-inset-right));
}

.operator-shell {
    width: 100%;
    max-width: 1480px;
    margin-inline: auto;
}

.operator-main {
    min-width: 0;
}

.operator-sidebar {
    display: none;
}

.operator-table-wrap {
    overflow-x: auto;
}

.ps-body--operator .grid.grid-2,
.ps-body--operator .layout-2col {
    align-items: start;
}

@media (min-width: 1024px) {
    .operator-shell {
        display: grid;
        grid-template-columns: 252px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
    }

    .operator-sidebar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: sticky;
        top: 76px;
        align-self: start;
        max-height: calc(100vh - 92px);
        padding: 16px 14px;
        border-radius: 18px;
        border: 1px solid rgba(15, 23, 42, .08);
        background: #fff;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    }

    .operator-sidebar-head {
        display: grid;
        gap: 2px;
        padding: 2px 8px 10px;
        border-bottom: 1px solid var(--line);
        margin-bottom: 4px;
    }

    .operator-sidebar-head strong {
        font-size: 14px;
        font-weight: 950;
        color: var(--ink);
    }

    .operator-sidebar-head span {
        font-size: 11px;
        font-weight: 700;
        color: var(--muted);
    }

    .operator-sidebar-nav {
        display: grid;
        gap: 4px;
        overflow-y: auto;
    }

    .operator-sidebar-nav a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        color: #475569;
        font-size: 13px;
        font-weight: 800;
        text-decoration: none;
        transition: background .12s ease, color .12s ease;
    }

    .operator-sidebar-nav a:hover {
        background: #f8fafc;
        color: var(--ink);
        text-decoration: none;
    }

    .operator-sidebar-nav a.active {
        background: var(--partner-accent-soft, var(--soft));
        color: var(--partner-accent, var(--accent-dark));
    }

    .ps-body--admin .operator-sidebar-nav a.active {
        background: #ecfdf5;
        color: #0f766e;
    }

    .ps-body--operator .partner-portal-nav {
        display: none;
    }

    .ps-body--operator .partner-kpi-scroll {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
        gap: 10px;
        overflow: visible;
        padding-bottom: 0;
    }

    .ps-body--operator .partner-kpi {
        flex: initial;
    }

    .ps-body--operator .partner-section--desk-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ps-body--operator .partner-panel--wide {
        grid-column: 1 / -1;
    }

    .ps-body--operator .partner-card-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .ps-body--operator .grid.grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ps-body--operator .layout-2col {
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    }

    .ps-body--operator .kpi-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ps-body--operator .admin-page-header {
        margin-bottom: 22px;
    }

    .ps-body--operator .panel {
        box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
    }
}

@media (min-width: 1280px) {
    .ps-body--operator .kpi-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Customer/store autocomplete combobox */
.ps-combobox {
    position: relative;
}

.ps-combobox-input-wrap .ps-combobox-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    min-height: 46px;
    padding-right: 12px;
}

.ps-combobox-hint {
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
}

.ps-combobox-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .14);
}

.ps-combobox-list li {
    list-style: none;
}

.ps-combobox-option {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ps-combobox-option strong {
    font-size: 13px;
    color: var(--ink);
}

.ps-combobox-option span {
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}

.ps-combobox-option:hover,
.ps-combobox-option.is-active {
    background: var(--soft);
}

.ps-combobox-empty {
    padding: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.desktop-mobile-gate {
    display: none;
}

@media (min-width: 900px) and (hover: hover) and (pointer: fine) {
    .ps-body--mobile-gated {
        min-height: 100vh;
        overflow: hidden;
        background:
            radial-gradient(circle at 25% 15%, rgba(232, 96, 26, .12), transparent 28%),
            linear-gradient(135deg, #fff7ed 0%, #ffffff 48%, #eef8f1 100%);
    }

    .ps-body--mobile-gated > :not(.desktop-mobile-gate) {
        display: none !important;
    }

    .desktop-mobile-gate {
        display: grid;
        min-height: 100vh;
        place-items: center;
        padding: 32px;
    }

    .desktop-mobile-gate__panel {
        display: grid;
        justify-items: center;
        width: min(420px, 100%);
        padding: 34px 32px 32px;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 24px;
        background: rgba(255, 255, 255, .92);
        box-shadow: 0 24px 70px rgba(15, 23, 42, .16);
        text-align: center;
    }

    .desktop-mobile-gate__brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 22px;
        color: var(--ink);
        font-size: 15px;
        font-weight: 900;
    }

    .desktop-mobile-gate__mark {
        display: grid;
        width: 36px;
        height: 36px;
        place-items: center;
        border-radius: 12px;
        background: var(--brand);
        color: #fff;
        font-size: 13px;
        letter-spacing: 0;
        box-shadow: 0 10px 18px rgba(232, 96, 26, .28);
    }

    .desktop-mobile-gate__qr {
        display: grid;
        width: 236px;
        height: 236px;
        place-items: center;
        margin-bottom: 22px;
        border: 1px solid rgba(15, 23, 42, .08);
        border-radius: 20px;
        background: #fff;
        box-shadow: inset 0 0 0 10px #fff7ed;
    }

    .desktop-mobile-gate__qr img {
        width: 196px;
        height: 196px;
        image-rendering: pixelated;
    }

    .desktop-mobile-gate h1 {
        max-width: 330px;
        margin: 0;
        color: var(--ink);
        font-size: 24px;
        line-height: 1.15;
        letter-spacing: 0;
    }

    .desktop-mobile-gate p {
        max-width: 320px;
        margin: 10px 0 16px;
        color: var(--muted);
        font-size: 14px;
        line-height: 1.45;
        font-weight: 700;
    }

    .desktop-mobile-gate__link {
        color: var(--brand-dark);
        font-size: 14px;
        font-weight: 900;
        text-decoration: none;
    }
}
