/* ============================================================
   Storefront — shares the landing page palette
   ink #0f172a · accent #a56565 · canvas #f8fafc · Inter
   ============================================================ */

:root {
    --ink:        #0f172a;
    --ink-2:      #1e293b;
    --slate:      #475569;
    --muted:      #94a3b8;
    --line:       #e2e8f0;
    --line-2:     #f1f5f9;
    --canvas:     #f8fafc;
    --white:      #ffffff;
    --accent:     #a56565;
    --accent-dk:  #8b4f4f;
    --accent-lt:  #d98b8b;
    --ok:         #059669;
    --warn:       #d97706;
    --bad:        #dc2626;
    --radius:     16px;
    --shadow:     0 1px 3px rgba(15, 23, 42, .06);
    --shadow-md:  0 8px 24px rgba(15, 23, 42, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.store {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ------------------------------------------------------------ nav */

.store-nav {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: .8rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
    flex-wrap: wrap;
}
.store-brand {
    display: flex; align-items: center; gap: .6rem;
    font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.store-brand img {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; border: 1px solid var(--line-2); flex: none;
    background: var(--white);
}
.store-brand small {
    display: block; font-weight: 400; font-size: .62rem;
    color: var(--muted); letter-spacing: .1em; text-transform: uppercase; line-height: 1;
}
/* Shop / New arrivals / All products and Sign In / Sign Up are drawer-only
   now; nothing is rendered inline between the brand and the actions. */

.store-nav-actions { display: flex; gap: .5rem; align-items: center; min-width: 0; }
.store-nav-actions a {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--line-2); color: var(--slate); position: relative; transition: .2s;
}
.store-nav-actions a:hover { background: var(--accent); color: #fff; }
.cart-count {
    position: absolute; top: -4px; right: -4px;
    background: var(--accent); color: #fff;
    font-size: .62rem; font-weight: 700; min-width: 18px; height: 18px;
    border-radius: 20px; display: grid; place-items: center; padding: 0 4px;
    border: 2px solid var(--white);
}
.store-nav-actions a:hover .cart-count { background: var(--ink); border-color: var(--accent); }

/* Signed-in account pill. The generic rule above forces a 38px circle, which
   grid-stacked the icon over the name and clipped it to "Accoun" — so this
   branch opts back into an auto-width pill with an ellipsised label. */
.store-nav-actions a.sn-who {
    width: auto; height: 38px; max-width: 210px;
    display: inline-flex; align-items: center; gap: .5rem;
    padding: 0 .95rem; border-radius: 40px;
    background: var(--line-2); color: var(--ink);
    font-size: .85rem; font-weight: 600;
}
.store-nav-actions a.sn-who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-nav-actions a.sn-who:hover { background: var(--accent); color: #fff; }

/* --------------------------------------------------- nav drawer (sidebar) */

/* The hamburger is a first-class control at EVERY width. The top bar only
   carries Shop / New arrivals / All products now, so the drawer is how
   Affiliate, Dropshipping, Contact and the category list stay reachable. */
.sn-toggle {
    display: flex; width: 40px; height: 40px; flex: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    padding: 0; border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--white); cursor: pointer;
    transition: background .2s, border-color .2s;
}
.sn-toggle:hover { background: var(--line-2); border-color: var(--line); }
.sn-toggle:focus-visible { outline: 3px solid rgba(165, 101, 101, .35); outline-offset: 2px; }
.sn-toggle span {
    display: block; width: 17px; height: 2px;
    background: var(--ink); border-radius: 2px;
    transition: transform .25s, opacity .2s;
}
.sn-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sn-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.sn-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.sn-backdrop {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(15, 23, 42, .5);
    -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.sn-backdrop[hidden] { display: none; }

body.nav-open { overflow: hidden; }

.sn-drawer {
    position: fixed; top: 0; right: 0; z-index: 210;
    height: 100%; height: 100dvh;
    width: min(320px, 86vw);
    display: flex; flex-direction: column;
    padding-bottom: 1.4rem;
    background: var(--white);
    box-shadow: -8px 0 30px rgba(15, 23, 42, .18);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sn-drawer.is-open { transform: none; visibility: visible; }

.sn-drawer-hd {
    position: sticky; top: 0; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    font-weight: 700; color: var(--ink);
}
.sn-drawer-hd button {
    padding: .2rem .45rem; border: 0; border-radius: 8px;
    background: none; color: var(--muted);
    font-size: 1.1rem; cursor: pointer; transition: .18s;
}
.sn-drawer-hd button:hover { background: var(--line-2); color: var(--ink); }

.sn-me { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem .1rem; }
.sn-me-av {
    width: 38px; height: 38px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dk));
    color: #fff; font-weight: 700; font-size: .95rem;
}
.sn-me-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.sn-me-txt b { font-size: .92rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sn-me-txt small { font-size: .74rem; color: var(--muted); }

.sn-drawer-cta {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    margin: .9rem 1.1rem 0; padding: .66rem;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--white); color: var(--ink);
    font-size: .87rem; font-weight: 600;
    transition: border-color .18s, background .18s;
}
.sn-drawer-cta:hover { border-color: var(--ink); background: var(--line-2); }
.sn-drawer-cta.alt { background: var(--accent); border-color: var(--accent); color: #fff; }
.sn-drawer-cta.alt:hover { background: var(--accent-dk); border-color: var(--accent-dk); }

.sn-drawer-lbl {
    padding: 1.15rem 1.1rem .35rem;
    font-size: .68rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--muted);
}
.sn-drawer-links { display: flex; flex-direction: column; padding: 0 .55rem; }
.sn-drawer-links a {
    display: flex; align-items: center; gap: .65rem;
    padding: .58rem .55rem; border-radius: 8px;
    font-size: .87rem; color: var(--slate);
    transition: background .16s, color .16s;
}
.sn-drawer-links a:hover { background: var(--line-2); color: var(--accent); }
.sn-drawer-links a i {
    width: 18px; flex: none; text-align: center;
    color: var(--muted); font-size: .78rem;
}
.sn-drawer-links a:hover i { color: var(--accent); }

/* --------------------------------------------------------- layout */

.wrap { max-width: 1200px; margin: 0 auto; padding: 2rem; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 2rem; }

.crumbs {
    display: flex; align-items: center; gap: .55rem; flex-wrap: wrap;
    font-size: .82rem; color: var(--muted); margin-bottom: 1.4rem;
}
.crumbs i { font-size: .55rem; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--slate); font-weight: 500; }

.page-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.02em; }
.page-sub { color: var(--slate); margin-top: .4rem; max-width: 60ch; }
.section-head {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}

/* --------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1.5rem; border-radius: 40px;
    font-size: .9rem; font-weight: 600; font-family: inherit;
    border: 1px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--slate); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: .4rem .95rem; font-size: .8rem; }

/* ------------------------------------------------------- toolbar */

.toolbar {
    display: flex; gap: .75rem; flex-wrap: wrap; align-items: center;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1.5rem;
}
.toolbar .grow { flex: 1 1 220px; }
.field, .toolbar select, .toolbar input {
    width: 100%; padding: .6rem .85rem; font-family: inherit; font-size: .88rem;
    border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink);
}
.field:focus, .toolbar select:focus, .toolbar input:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(165,101,101,.12);
}
.chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
    padding: .4rem 1rem; border-radius: 40px; font-size: .82rem; font-weight: 500;
    background: var(--white); border: 1px solid var(--line); color: var(--slate); transition: .2s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------------------------------------------- product grid */

.grid {
    display: grid; gap: 1.4rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden;
    display: flex; flex-direction: column; transition: .22s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-media {
    aspect-ratio: 4 / 3; background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    display: grid; place-items: center; position: relative; overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-flag {
    position: absolute; top: .7rem; left: .7rem;
    background: var(--ink); color: #fff; font-size: .66rem; font-weight: 700;
    padding: .22rem .6rem; border-radius: 30px; letter-spacing: .05em; text-transform: uppercase;
}
.card-flag.sale { background: var(--accent); }
.card-body { padding: 1.1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-cat { font-size: .7rem; font-weight: 600; color: var(--accent); letter-spacing: .07em; text-transform: uppercase; }
.card-title { font-size: .98rem; font-weight: 600; line-height: 1.35; }
.card-title a:hover { color: var(--accent); }
.card-desc { font-size: .82rem; color: var(--slate); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .3rem; }
.price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.price-now { font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.price-was { font-size: .82rem; color: var(--muted); text-decoration: line-through; }

.badge {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 600; padding: .25rem .65rem; border-radius: 30px;
}
.badge-stock { background: #ecfdf5; color: var(--ok); }
.badge-low   { background: #fffbeb; color: var(--warn); }
.badge-out   { background: #fef2f2; color: var(--bad); }

/* ------------------------------------------------- product detail */

.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: start; }
/* The column exists so the thumbnail strip can sit under the hero without
   leaving the sticky area — sticky on the image alone would pin it and let
   the strip scroll away from it. */
.pdp-col { position: sticky; top: 90px; }
.pdp-media {
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    border: 1px solid var(--line); border-radius: var(--radius);
    aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden;
}
.pdp-media img { width: 100%; height: 100%; object-fit: cover; }

/* Thumbnail strip. Hidden entirely for a single-photo product, so the
   two-column layout keeps its original proportions when there is nothing
   to choose between. */
.pdp-thumbs {
    display: flex; flex-wrap: wrap; gap: .5rem;
    list-style: none; margin: .7rem 0 0; padding: 0;
}
.pdp-thumbs button {
    display: block; width: 64px; height: 48px; padding: 0; cursor: pointer;
    border: 2px solid var(--line); border-radius: 10px; background: #fff;
    overflow: hidden; transition: border-color .15s ease, transform .15s ease;
}
.pdp-thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp-thumbs button:hover { border-color: #94a3b8; transform: translateY(-1px); }
.pdp-thumbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pdp-thumbs li.is-on button { border-color: var(--accent); }
.pdp h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -.02em; margin: .5rem 0; }
.pdp .price-now { font-size: 2rem; }
.pdp .price-was { font-size: 1rem; }
.pdp-desc { color: var(--slate); margin: 1.1rem 0; }
.pdp-meta {
    display: grid; gap: .55rem; margin: 1.3rem 0;
    padding: 1.1rem; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.pdp-meta div { display: flex; justify-content: space-between; gap: 1rem; font-size: .87rem; }
.pdp-meta span:first-child { color: var(--muted); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 40px; overflow: hidden; background: var(--white); }
.qty button {
    width: 40px; height: 44px; border: 0; background: transparent;
    font-size: 1.05rem; cursor: pointer; color: var(--slate); font-family: inherit;
}
.qty button:hover { background: var(--line-2); color: var(--accent); }
.qty input {
    width: 52px; height: 44px; border: 0; text-align: center; font-family: inherit;
    font-size: .95rem; font-weight: 600; color: var(--ink); background: transparent;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* ------------------------------------------------------------- cart */

.panel {
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.5rem;
}
.panel + .panel { margin-top: 1.2rem; }
.panel h2, .panel h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; }

.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem; align-items: start; }

.cart-row {
    display: grid; grid-template-columns: 72px 1fr auto auto auto;
    gap: 1rem; align-items: center;
    padding: 1rem 0; border-bottom: 1px solid var(--line-2);
}
.cart-row:last-child { border-bottom: 0; }
.cart-thumb {
    width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
    background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
    display: grid; place-items: center;
}
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-weight: 600; font-size: .92rem; }
.cart-cat { font-size: .75rem; color: var(--muted); }
.cart-line { font-weight: 700; text-align: right; white-space: nowrap; }
.icon-btn {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--white); color: var(--muted); cursor: pointer; transition: .2s;
    display: grid; place-items: center; font-family: inherit;
}
.icon-btn:hover { border-color: var(--bad); color: var(--bad); background: #fef2f2; }

.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; font-size: .9rem; }
.summary-row span:first-child { color: var(--slate); }
.summary-total {
    display: flex; justify-content: space-between; gap: 1rem;
    border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .9rem;
    font-size: 1.15rem; font-weight: 700;
}

.empty {
    text-align: center; padding: 4rem 1rem; color: var(--slate);
}
.empty i { font-size: 2.6rem; color: var(--line); display: block; margin-bottom: 1rem; }
.empty h2 { color: var(--ink); margin-bottom: .5rem; }

/* ---------------------------------------------------------- forms */

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.form-grid .full { grid-column: 1 / -1; }
label.lbl { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .35rem; color: var(--slate); }
label.lbl .req { color: var(--accent); }
textarea.field { min-height: 92px; resize: vertical; }
.err { color: var(--bad); font-size: .76rem; margin-top: .3rem; display: none; }
.field.has-err { border-color: var(--bad); background: #fef2f2; }
.field.has-err + .err, .err.show { display: block; }

.pay-options { display: grid; gap: .7rem; }
.pay-option {
    display: flex; gap: .8rem; align-items: flex-start;
    border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; cursor: pointer; transition: .2s;
}
.pay-option:hover { border-color: var(--accent-lt); }
.pay-option input { margin-top: .3rem; accent-color: var(--accent); }
.pay-option.is-sel { border-color: var(--accent); background: #fdf7f7; box-shadow: 0 0 0 3px rgba(165,101,101,.1); }
.pay-option strong { display: block; font-size: .9rem; }
.pay-option small { color: var(--slate); font-size: .78rem; }

/* Wallet destinations. The details live inside the option they belong to and
   are revealed by CSS alone when that option is the checked one, so the
   customer can read where their money is going before committing to it — and
   it still works with JavaScript unavailable. */
.pay-details { display: none; margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.pay-option input:checked ~ span .pay-details { display: block; }
/* Outside the option list there is no radio to reveal it — the confirmation
   page, say — so it is shown as it stands. */
.pay-plain .pay-details { display: block; margin-top: 0; padding-top: 0; border-top: 0; }
.pay-detail { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; padding: .18rem 0; }
.pay-k {
    flex: none; min-width: 7.2rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--slate);
}
.pay-v { font-size: .85rem; font-weight: 600; word-break: break-word; }
.pay-copy {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: .3rem;
    border: 1px solid var(--line); border-radius: 7px; background: #fff;
    padding: .16rem .5rem; cursor: pointer;
    font: inherit; font-size: .7rem; font-weight: 600; color: var(--slate);
    transition: .15s;
}
.pay-copy:hover { color: var(--accent); border-color: var(--accent); }
.pay-inst { margin: .55rem 0 0; font-size: .78rem; line-height: 1.55; color: var(--slate); }
.pay-qr {
    display: block; margin-top: .8rem;
    max-width: 150px; width: 100%; height: auto;
    border-radius: 10px; border: 1px solid var(--line); background: #fff;
}

/* The transaction reference only applies to a wallet, so it is toggled with
   the method and stays out of the way for the simulated paths. */
.pay-ref { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.pay-ref[hidden] { display: none; }
.pay-ref .field { max-width: 26rem; }
.pay-ref-hint { margin: .45rem 0 0; font-size: .76rem; line-height: 1.55; color: var(--slate); }

.alert {
    display: flex; gap: .7rem; align-items: flex-start;
    padding: .9rem 1.1rem; border-radius: 12px; font-size: .87rem; margin-bottom: 1.2rem;
}
.alert i { margin-top: .18rem; }
.alert-ok   { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-bad  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ---------------------------------------------------- confirmation */

.confirm-hero { text-align: center; padding: 2.5rem 1rem; }
.confirm-hero .tick {
    width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1.2rem;
    background: #ecfdf5; color: var(--ok); display: grid; place-items: center; font-size: 2rem;
}
.confirm-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 600; }
.confirm-hero p { color: var(--slate); margin-top: .5rem; }
.order-ref {
    display: inline-block; margin-top: 1rem; padding: .55rem 1.4rem;
    background: var(--ink); color: #fff; border-radius: 40px;
    font-weight: 700; letter-spacing: .06em;
}

/* --------------------------------------------------------- footer */

.store-footer { background: var(--ink); color: #cbd5e1; margin-top: 3rem; padding: 3rem 2rem 1.5rem; }
.store-footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.store-footer strong { display: block; color: #fff; margin-bottom: .8rem; font-size: .95rem; }
.store-footer p { font-size: .85rem; line-height: 1.7; color: var(--muted); }
.store-footer-grid a { display: block; font-size: .85rem; color: #94a3b8; padding: .22rem 0; }
.store-footer-grid a:hover { color: var(--accent-lt); }
.store-footer-base {
    max-width: 1200px; margin: 2.2rem auto 0; padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    font-size: .78rem; color: var(--muted);
}

/* ------------------------------------------------------ pagination */

.pager { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 38px; height: 38px; padding: 0 .7rem;
    display: grid; place-items: center; border-radius: 10px;
    background: var(--white); border: 1px solid var(--line);
    font-size: .85rem; font-weight: 500; color: var(--slate);
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .is-disabled { opacity: .4; pointer-events: none; }

/* ------------------------------------------------------- responsive */

@media (max-width: 900px) {
    .pdp { grid-template-columns: 1fr; }
    .pdp-col { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .store-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .wrap, .wrap-narrow { padding: 1.4rem 1rem; }
    .store-nav { padding: .6rem .8rem; gap: .5rem; }
    .store-brand { gap: .45rem; min-width: 0; font-size: .94rem; }
    .store-brand img { width: 32px; height: 32px; }
    .store-brand span {
        min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .store-brand small { display: none; }
    .store-nav-actions { gap: .4rem; }
    .store-nav-actions a,
    .sn-toggle { width: 36px; height: 36px; }
    .cart-count { top: -5px; right: -5px; }
    .form-grid { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 60px 1fr auto; row-gap: .6rem; }
    .cart-row .qty { grid-column: 2; }
    .store-footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    /* The account pill is redundant on a narrow screen — the drawer opens with
       "My account" / "Sign In" as its first action, so drop it here. */
    .store-nav-actions a.sn-who { display: none; }
    .store-brand span { font-size: .87rem; }
}
@media (max-width: 380px) {
    .store-nav { padding: .55rem .65rem; }
    .store-brand span { font-size: .82rem; }
    .store-nav-actions a, .sn-toggle { width: 34px; height: 34px; }
}

/* ------------------------------------------------------ print */

@media print {
    .store-nav, .store-footer, .sn-drawer, .sn-backdrop, .no-print { display: none !important; }
    body.store { background: #fff; }
    .panel { border: 1px solid #ccc; }
}
