/* ==========================================================================
   Haku Japan Store — storefront
   ========================================================================== */

:root {
    --red: #ff0000;
    --red-dark: #d40000;
    --ink: #111111;
    --muted: #767676;
    --line: #e5e5e5;
    --line-strong: #111111;
    --soft: #f5f5f5;
    --white: #ffffff;
    --header-h: 56px;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial,
        "Noto Sans", "Segoe UI", sans-serif;
    --maxw: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }

.shell { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 900px) { .shell { padding: 0 32px; } }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------- utilities */

.eyebrow {
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
}
.section-head h2 { font-size: 20px; }
@media (min-width: 900px) { .section-head h2 { font-size: 26px; } }

.link-more {
    font-size: 13px;
    font-weight: 600;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 1px;
    white-space: nowrap;
}
.link-more:hover { color: var(--red); border-color: var(--red); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 28px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 2px;
    transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--red); border-color: var(--red); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--sm { height: 38px; padding: 0 18px; font-size: 13px; }

/* ------------------------------------------------------------------ header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: background .3s ease, border-color .3s ease, color .3s ease;
}

/*
 * On pages that open with a hero the header floats over the media instead of
 * sitting above it, so the banner starts at the very top of the screen. It
 * turns solid once the hero has scrolled past.
 */
.has-hero .site-header {
    position: fixed;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom-color: transparent;
    color: #fff;
}

/* A soft scrim keeps the nav readable over a busy photo. */
.has-hero .site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, 0) 100%);
    transition: opacity .3s ease;
}

/* Light banner photos carry black copy, so the header flips with them. */
.has-hero.hero-on-light .site-header { color: var(--ink); }
.has-hero.hero-on-light .site-header::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 100%);
}

/* Scrolled past the hero, or with a mega menu open behind it. */
.has-hero .site-header.is-solid,
.has-hero.hero-on-light .site-header.is-solid {
    background: var(--white);
    border-bottom-color: var(--line);
    color: var(--ink);
}
.has-hero .site-header.is-solid::before { opacity: 0; }

/* Transparent-state treatments for the controls inside the bar. */
.has-hero .site-header:not(.is-solid) .nav-link--sale { color: inherit; }
.has-hero .site-header:not(.is-solid) .nav-link:hover,
.has-hero .site-header:not(.is-solid) .nav-item.is-open .nav-link,
.has-hero .site-header:not(.is-solid) .nav-link.is-active {
    color: inherit;
    border-bottom-color: currentColor;
}
.has-hero .site-header:not(.is-solid) .icon-btn:hover {
    background: rgba(255, 255, 255, .2);
}
.has-hero.hero-on-light .site-header:not(.is-solid) .icon-btn:hover {
    background: rgba(0, 0, 0, .08);
}
/* The search field stays a solid white box over the banner so it reads the
   same way whether the photo behind it is light or dark. */
.has-hero .site-header:not(.is-solid) .search-form,
.has-hero.hero-on-light .site-header:not(.is-solid) .search-form {
    background: #fff;
    border-color: rgba(0, 0, 0, .08);
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.has-hero .site-header:not(.is-solid) .search-form input::placeholder,
.has-hero.hero-on-light .site-header:not(.is-solid) .search-form input::placeholder {
    color: var(--muted);
}
.has-hero .site-header:not(.is-solid) .search-form:focus-within {
    border-color: var(--ink);
}
.header-bar {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
@media (max-width: 899px) { .header-bar { padding-top: 10px; } }
@media (min-width: 900px) {
    .header-bar { min-height: 64px; gap: 24px; flex-wrap: nowrap; }
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .04em;
    line-height: 1;
}
.brand-word {
    display: none;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
}
@media (min-width: 1100px) { .brand-word { display: block; } }

/*
 * Below 900px the nav wraps onto a full-width second row and spreads across
 * it, the way the reference header does on phones and tablets.
 */
.main-nav {
    display: flex;
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    height: 44px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.main-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
    .main-nav {
        order: 0;
        flex-basis: auto;
        justify-content: flex-start;
        gap: 0;
        height: auto;
        overflow: visible;
    }
}
.main-nav > li { display: flex; }
.nav-link {
    display: flex;
    align-items: center;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
}
.nav-link:hover, .nav-item.is-open .nav-link, .nav-link.is-active {
    color: var(--red);
    border-bottom-color: var(--red);
}
@media (min-width: 900px) { .nav-link { padding: 0 16px; font-size: 13px; } }
.nav-link--sale { color: var(--red); }

/*
 * On phones the nav items share one row, so each gets breathing room plus a
 * hairline divider — without it the uppercase labels read as one long strip.
 */
@media (max-width: 899px) {
    .main-nav > li { flex: 1 0 auto; justify-content: center; position: relative; }
    .main-nav > li + li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 1px;
        height: 14px;
        background: currentColor;
        opacity: .3;
    }
    .nav-link { padding: 0 clamp(5px, 1.8vw, 10px); font-size: clamp(9px, 2.7vw, 11px); letter-spacing: .02em; }
    .main-nav > li:first-child .nav-link { padding-left: 0; }
    .main-nav > li:last-child .nav-link { padding-right: 0; }
}

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
@media (min-width: 900px) { .header-tools { flex: none; } }

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    background: var(--soft);
    border: 1px solid transparent;
    border-radius: 999px;
    flex: 1;
    min-width: 0;
    transition: border-color .15s, width .15s, background .15s;
}
@media (min-width: 1000px) {
    .search-form { flex: none; width: 210px; }
    .search-form:focus-within { width: 260px; }
}
.search-form:focus-within { border-color: var(--ink); background: #fff; }
.search-form input {
    border: 0; background: none; outline: none; width: 100%; min-width: 0; font-size: 13px;
}
.search-form input::placeholder { color: var(--muted); }

.icon-btn {
    flex: none;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 2px;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .icon-btn--menu { display: none; } }

/* -------------------------------------------------------------- mega menu */

.mega {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 32px -22px rgba(0, 0, 0, .35);
    padding: 28px 0 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
@media (min-width: 900px) { .mega { display: block; } }
.nav-item.is-open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-inner { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1100px) { .mega-inner { grid-template-columns: minmax(0, 1fr) 260px; } }

.mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px 16px;
}
.mega-tile img, .mega-tile .ph {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    background: var(--soft);
    margin-bottom: 8px;
}
.mega-tile span { font-size: 13px; font-weight: 500; }
.mega-tile:hover span { color: var(--red); text-decoration: underline; }

/* Generated sale / limited-time tiles. The artwork is flat colour rather than a
   photo, so it is contained instead of cropped and its label reads as a mark. */
/* Padding shrinks the mark to ~74% of the tile (about 26% smaller) without
   changing the box, so these labels stay on the same line as the photo tiles. */
.mega-tile--auto img { object-fit: contain; background: transparent; padding: 13%; }
.mega-tile--auto span { color: var(--red); font-weight: 600; }

.mega-side {
    border-left: 1px solid var(--line);
    padding-left: 24px;
    display: none;
}
@media (min-width: 1100px) { .mega-side { display: block; } }
.mega-side h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.mega-side li + li { margin-top: 10px; }
.mega-side a { font-size: 13px; color: var(--muted); }
.mega-side a:hover { color: var(--red); }

/* ------------------------------------------------------------ mobile drawer */

.drawer-backdrop {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .4);
    opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 80;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed; top: 0; bottom: 0; left: 0;
    width: min(88vw, 340px);
    background: #fff;
    z-index: 90;
    transform: translateX(-100%);
    transition: transform .24s ease;
    display: flex; flex-direction: column;
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h); padding: 0 12px 0 16px; border-bottom: 1px solid var(--line);
}
.drawer-body { overflow-y: auto; padding: 8px 0 40px; flex: 1; }
.drawer-search { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-search form {
    display: flex; align-items: center; gap: 8px; height: 42px;
    padding: 0 12px; background: var(--soft);
}
.drawer-search input { border: 0; background: none; outline: none; width: 100%; font-size: 14px; }

.acc-head {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid var(--line);
}
.acc-head svg { width: 16px; height: 16px; transition: transform .2s; }
.acc-head[aria-expanded="true"] svg { transform: rotate(180deg); }
.acc-panel { display: none; background: var(--soft); border-bottom: 1px solid var(--line); }
.acc-panel.is-open { display: block; }
.acc-panel a { display: block; padding: 11px 26px; font-size: 14px; }
.acc-panel a:hover { color: var(--red); }
.acc-panel a.acc-mark { color: var(--red); font-weight: 600; }
.drawer-links { padding: 18px 16px; }
.drawer-links a { display: block; padding: 8px 0; font-size: 13px; color: var(--muted); }

/* -------------------------------------------------------------------- hero */

/*
 * Full-bleed banner driven by the admin "Banners" screen. It fills most of the
 * first screen the way a Uniqlo hero does, so the media is the page opener
 * rather than a strip above the fold.
 */
.hero {
    position: relative;
    background: #000;
    overflow: hidden;
    /* Vertical scrolling stays with the browser; horizontal is the carousel's,
       so a sideways swipe is not stolen as a page pan. */
    touch-action: pan-y;
}
.hero-track { display: flex; transition: transform .6s cubic-bezier(.4, 0, .2, 1); }

.hero-slide {
    flex: 0 0 100%;
    position: relative;
    display: grid;
    height: 85vh;
    min-height: 480px;
    max-height: 720px;
}
@media (min-width: 900px) {
    .hero-slide {
        /* The header floats over the banner, so it takes the whole screen and
           the next section stays just below the fold. */
        height: 100vh;
        min-height: 600px;
        max-height: 940px;
    }
}

.hero-media { position: absolute; inset: 0; }
.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Scrim keeps the copy readable over a busy photo; a banner with no copy is
   left completely clean. */
.hero-slide::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
}
.hero-slide--bare::after { content: none; }

.hero-slide--light::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .48) 100%);
}
.hero-slide--dark::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, .5) 100%);
}
@media (min-width: 900px) {
    .hero-slide--light.hero-slide--left::after {
        background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .34) 42%, rgba(0, 0, 0, 0) 78%);
    }
    .hero-slide--light.hero-slide--right::after {
        background: linear-gradient(270deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .34) 42%, rgba(0, 0, 0, 0) 78%);
    }
    .hero-slide--dark.hero-slide--left::after {
        background: linear-gradient(90deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .38) 42%, rgba(255, 255, 255, 0) 78%);
    }
    .hero-slide--dark.hero-slide--right::after {
        background: linear-gradient(270deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .38) 42%, rgba(255, 255, 255, 0) 78%);
    }
}

/* Whole-banner link for banners that have no button of their own. It sits under
   the arrows and dots so those stay clickable. */
.hero-hit { position: absolute; inset: 0; z-index: 2; }

.hero-copy {
    position: relative;
    z-index: 3;
    /* Clicks pass through the text to the whole-banner link underneath; only
       the button itself stays interactive. */
    pointer-events: none;
    align-self: end;
    padding: 0 20px 56px;
    max-width: 620px;
    color: #fff;
}
@media (min-width: 900px) {
    .hero-copy {
        align-self: center;
        padding: 0 64px 0 88px;
    }
}

.hero-slide--center .hero-copy {
    justify-self: center;
    text-align: center;
    padding-left: 20px;
    padding-right: 20px;
}
@media (min-width: 900px) {
    .hero-slide--right .hero-copy { justify-self: end; padding: 0 88px 0 64px; text-align: right; }
    .hero-slide--center .hero-copy { padding-left: 32px; padding-right: 32px; }
}

.hero-slide--dark .hero-copy { color: var(--ink); }

.hero-copy .eyebrow {
    color: rgba(255, 255, 255, .85);
    font-size: 12px;
    letter-spacing: .16em;
}
.hero-slide--dark .hero-copy .eyebrow { color: rgba(17, 17, 17, .7); }

.hero-copy h2 {
    font-size: clamp(30px, 7vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 12px 0 14px;
}
@media (min-width: 900px) { .hero-copy h2 { font-size: clamp(44px, 4.4vw, 68px); } }

.hero-copy p {
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .92);
}
@media (min-width: 900px) { .hero-copy p { font-size: 17px; } }
.hero-slide--dark .hero-copy p { color: rgba(17, 17, 17, .78); }

.hero-copy .btn {
    pointer-events: auto;
    height: 52px;
    padding: 0 40px;
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}
.hero-copy .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.hero-slide--dark .hero-copy .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero-slide--dark .hero-copy .btn:hover { background: var(--red); border-color: var(--red); }

.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: var(--ink);
    display: none; place-items: center; z-index: 4;
    transition: background .15s;
}
@media (min-width: 900px) { .hero-nav { display: grid; } }
.hero-nav:hover { background: #fff; }
.hero-nav--prev { left: 24px; }
.hero-nav--next { right: 24px; }

.hero-dots {
    position: absolute; bottom: 20px; left: 0; right: 0; z-index: 4;
    display: flex; justify-content: center; gap: 8px;
}
.hero-dots button {
    width: 34px; height: 3px;
    background: rgba(255, 255, 255, .45);
    transition: background .2s;
}
.hero-dots button[aria-current="true"] { background: #fff; }

@media (prefers-reduced-motion: reduce) {
    .hero-track { transition: none; }
}

/* ------------------------------------------------------------ home sections */

.section { padding: 44px 0; }
@media (min-width: 900px) { .section { padding: 60px 0; } }
.section--soft { background: var(--soft); }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card { position: relative; display: block; overflow: hidden; background: #ddd; }
.cat-card .cat-bg {
    aspect-ratio: 3 / 4;
    background-size: cover; background-position: center;
    transition: transform .5s ease;
}
.cat-card:hover .cat-bg { transform: scale(1.05); }
.cat-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05) 40%, rgba(0, 0, 0, .62) 100%);
}
.cat-card figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 16px; color: #fff;
}
.cat-card figcaption strong { display: block; font-size: 18px; }
.cat-card figcaption span { font-size: 12px; color: rgba(255, 255, 255, .8); }

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
}
@media (min-width: 700px) { .tile-grid { grid-template-columns: repeat(4, 1fr); } }
.tile img, .tile .ph { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--soft); }
.tile strong { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; }
.tile span { font-size: 12px; color: var(--muted); }
.tile:hover strong { color: var(--red); }

/*
 * "Ангилалаар хайх" — the lead category's sub-categories directly under the
 * hero: square photo, centred label, all of them on one grid.
 */
.subcat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 12px;
}
@media (min-width: 700px) { .subcat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .subcat-grid { grid-template-columns: repeat(6, 1fr); } }
.subcat { display: block; text-align: center; }
.subcat img, .subcat .ph {
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    background: var(--soft);
}
.subcat-name {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.35;
}
.subcat:hover .subcat-name { color: var(--red); }
.section-cta { margin-top: 28px; display: flex; justify-content: center; }
.section-cta .btn { min-width: 260px; }

.promo-band {
    display: grid; gap: 12px; grid-template-columns: 1fr;
}
@media (min-width: 800px) { .promo-band { grid-template-columns: repeat(3, 1fr); } }
.promo {
    padding: 28px 24px; background: var(--soft); border: 1px solid var(--line);
}
.promo h3 { font-size: 16px; margin-bottom: 6px; }
.promo p { margin: 0; font-size: 13px; color: var(--muted); }

/* Hero stand-in for when no banner has been set up in the admin yet: no photo,
   so it stays shorter than a real banner rather than filling the viewport. */
.hero--fallback { background: var(--ink); }
.hero--fallback .hero-slide {
    height: auto;
    min-height: 62vh;
    max-height: none;
    padding: 96px 0 56px;
}
@media (min-width: 900px) {
    .hero--fallback .hero-slide { min-height: 68vh; padding: 120px 0 72px; }
}

/* Departments grid. On phones an odd count would leave a lone half-width tile,
   so the last one spans the row. */
.cat-grid--3 > :last-child { grid-column: span 2; }
@media (min-width: 700px) {
    .cat-grid--3 { grid-template-columns: repeat(3, 1fr); }
    .cat-grid--3 > :last-child { grid-column: auto; }
}

/* ------------------------------------------------- promotional banner (§6) */

/* Full-bleed band. Vertical breathing room comes from the neighbouring
   sections' padding, so this one adds none of its own. */
.section--flush { padding: 0; }

.promo-banner {
    position: relative;
    display: grid;
    overflow: hidden;
    min-height: 300px;
    background: var(--ink);
}
@media (min-width: 900px) { .promo-banner { min-height: 400px; } }

.promo-banner-media { position: absolute; inset: 0; }
.promo-banner-media img,
.promo-banner-media video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* Scrim so the copy stays readable over any photo, keyed to the text colour. */
.promo-banner::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, .05) 100%);
}
.promo-banner--center::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .5) 100%);
}
.promo-banner--right::after {
    background: linear-gradient(270deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .28) 55%, rgba(0, 0, 0, .05) 100%);
}
.promo-banner--dark::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .4) 55%, rgba(255, 255, 255, 0) 100%);
}
.promo-banner--dark.promo-banner--center::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .72) 100%);
}
.promo-banner--dark.promo-banner--right::after {
    background: linear-gradient(270deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .4) 55%, rgba(255, 255, 255, 0) 100%);
}

/* Copy-only variant used when no promo banner has been uploaded. */
.promo-banner--plain { background: var(--soft); min-height: 0; }
.promo-banner--plain::after { display: none; }

.promo-banner-hit { position: absolute; inset: 0; z-index: 2; }

.promo-banner-copy {
    position: relative;
    z-index: 3;
    /* Clicks fall through to the whole-banner link; only the button stays live. */
    pointer-events: none;
    align-self: center;
    justify-self: start;
    max-width: 620px;
    padding: 48px 24px;
    color: #fff;
}
@media (min-width: 900px) { .promo-banner-copy { padding: 56px 72px; } }

.promo-banner--center .promo-banner-copy { justify-self: center; text-align: center; }
.promo-banner--right .promo-banner-copy { justify-self: end; text-align: right; }
.promo-banner--dark .promo-banner-copy,
.promo-banner--plain .promo-banner-copy { color: var(--ink); }

.promo-banner-copy .eyebrow { color: rgba(255, 255, 255, .85); font-size: 12px; letter-spacing: .16em; }
.promo-banner--dark .promo-banner-copy .eyebrow,
.promo-banner--plain .promo-banner-copy .eyebrow { color: rgba(17, 17, 17, .7); }

.promo-banner-copy h2 {
    font-size: clamp(26px, 5.5vw, 36px);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 10px 0 12px;
}
@media (min-width: 900px) { .promo-banner-copy h2 { font-size: clamp(34px, 3vw, 48px); } }

.promo-banner-copy p {
    margin: 0 0 22px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .92);
}
.promo-banner--dark .promo-banner-copy p,
.promo-banner--plain .promo-banner-copy p { color: rgba(17, 17, 17, .78); }

.promo-banner-copy .btn {
    pointer-events: auto;
    height: 50px;
    padding: 0 36px;
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}
.promo-banner-copy .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.promo-banner--dark .promo-banner-copy .btn,
.promo-banner--plain .promo-banner-copy .btn {
    background: var(--ink); color: #fff; border-color: var(--ink);
}
.promo-banner--dark .promo-banner-copy .btn:hover,
.promo-banner--plain .promo-banner-copy .btn:hover { background: var(--red); border-color: var(--red); }

/* ------------------------------------------------- trust / service info (§8) */

.trust-band {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}
/* Three cards, so on phones the last one spans the row rather than sitting
   half-width next to a gap. */
.trust-band > :last-child { grid-column: span 2; }
@media (min-width: 900px) {
    .trust-band { grid-template-columns: repeat(3, 1fr); }
    .trust-band > :last-child { grid-column: auto; }
}

.trust { padding: 24px 20px; background: var(--soft); border: 1px solid var(--line); }
.trust svg { display: block; width: 26px; height: 26px; margin-bottom: 12px; color: var(--ink); }
.trust h3 { font-size: 15px; margin-bottom: 6px; }
.trust p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted); }

/* ------------------------------------------------------------ product cards */

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 12px;
}
@media (min-width: 700px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-grid--rail { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .product-grid--rail { grid-template-columns: repeat(4, 1fr); } }

.card { position: relative; }
.card-media {
    position: relative; display: block; overflow: hidden;
    background: var(--soft); aspect-ratio: 3 / 4;
}
.card-media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity .35s ease, transform .6s ease;
}
.card-media .img-hover { opacity: 0; }
.card:hover .card-media .img-hover { opacity: 1; }
.card:hover .card-media .img-main.has-hover { opacity: 0; }
.card:hover .card-media img:only-child { transform: scale(1.04); }

/* A card can carry more than one mark (sale + limited time), so they stack
   down the corner instead of overlapping. */
.card-flags {
    position: absolute; top: 0; left: 0; z-index: 2;
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
}
.card-flag {
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    padding: 4px 8px; text-transform: uppercase;
}
.card-flag--out { background: rgba(17, 17, 17, .82); }
.card-flag--limited { background: var(--ink); letter-spacing: .04em; }

.card-body { padding-top: 10px; }
.card-cat { font-size: 11px; color: var(--muted); }
.card-name {
    font-size: 13px; font-weight: 500; margin: 3px 0 5px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card-name { text-decoration: underline; }
.card-price { font-size: 14px; font-weight: 700; }
.card-price.is-sale { color: var(--red); }
.card-price .old { margin-left: 6px; font-weight: 400; font-size: 12px; color: var(--muted); text-decoration: line-through; }

.swatches { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.swatch {
    width: 14px; height: 14px; border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .18);
    display: inline-block;
}
.swatch-more { font-size: 11px; color: var(--muted); align-self: center; }

.ph {
    display: grid; place-items: center;
    background: var(--soft); color: #c9c9c9;
    font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
    width: 100%; height: 100%;
}

/* ---------------------------------------------------------------- listing */

.crumbs { font-size: 12px; color: var(--muted); padding: 16px 0; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span + span::before { content: "/"; margin: 0 8px; color: var(--line); }

.page-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 24px; }
@media (min-width: 900px) { .page-head h1 { font-size: 30px; } }
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 13px; max-width: 60ch; }
.page-head p.page-mark { color: var(--red); font-weight: 600; letter-spacing: .02em; }

.sub-chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.sub-chips::-webkit-scrollbar { display: none; }
.chip {
    flex: none; padding: 8px 16px; border: 1px solid var(--line);
    border-radius: 999px; font-size: 13px; white-space: nowrap; background: #fff;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.listing { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 24px 0 60px; }
@media (min-width: 1000px) { .listing { grid-template-columns: 232px minmax(0, 1fr); gap: 40px; } }

.filters { display: none; }
@media (min-width: 1000px) { .filters { display: block; align-self: start; position: sticky; top: calc(64px + 16px); } }
.filters.is-open { display: block; }

.filter-group { border-bottom: 1px solid var(--line); padding: 16px 0; }
.filter-group:first-child { padding-top: 0; }
.filter-group h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.filter-list { display: flex; flex-direction: column; gap: 9px; max-height: 340px; overflow-y: auto; }
.filter-opt { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; }
.filter-opt input { accent-color: var(--red); width: 15px; height: 15px; margin: 0; }
.filter-opt .dot {
    width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2);
}
.filter-opt .count { margin-left: auto; color: var(--muted); font-size: 12px; }

.size-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.size-opt {
    min-width: 46px; text-align: center; padding: 8px 10px;
    border: 1px solid var(--line); font-size: 13px; cursor: pointer; background: #fff;
}
.size-opt input { position: absolute; opacity: 0; pointer-events: none; }
.size-opt:hover { border-color: var(--ink); }
.size-opt.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.price-row { display: flex; align-items: center; gap: 8px; }
.price-row input {
    width: 100%; height: 38px; padding: 0 10px;
    border: 1px solid var(--line); font-size: 13px; border-radius: 2px;
}
.price-row input:focus { outline: none; border-color: var(--ink); }

.listing-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding-bottom: 16px;
}
.listing-count { font-size: 13px; color: var(--muted); }
.listing-count strong { color: var(--ink); }
.sort-select {
    height: 38px; padding: 0 32px 0 12px; border: 1px solid var(--line);
    font-size: 13px; border-radius: 2px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23111'%3E%3Cpath d='M4 6l4 4 4-4z'/%3E%3C/svg%3E") no-repeat right 8px center/14px;
    -webkit-appearance: none; appearance: none; cursor: pointer;
}
.filter-toggle { display: inline-flex; }
@media (min-width: 1000px) { .filter-toggle { display: none; } }

.applied { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }
.applied a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 10px; background: var(--soft); font-size: 12px; border-radius: 2px;
}
.applied a:hover { background: #e8e8e8; }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }
.empty h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }

.pager { display: flex; justify-content: center; gap: 6px; padding: 44px 0 0; }
.pager a, .pager span {
    min-width: 38px; height: 38px; display: grid; place-items: center;
    border: 1px solid var(--line); font-size: 13px; padding: 0 10px;
}
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .is-disabled { color: #c4c4c4; }

/* ------------------------------------------------------------- product page */

.pdp { display: grid; gap: 28px; grid-template-columns: 1fr; padding: 8px 0 60px; max-width: 1160px; margin: 0 auto; }
@media (min-width: 1000px) { .pdp { grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; } }

.gallery { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery { grid-template-columns: 76px minmax(0, 1fr); } }
.gallery--single { grid-template-columns: minmax(0, 1fr) !important; }
.thumbs { display: flex; gap: 8px; order: 2; overflow-x: auto; }
@media (min-width: 700px) { .thumbs { order: 0; flex-direction: column; overflow: visible; } }
.thumb {
    flex: none; width: 64px; aspect-ratio: 3 / 4; background: var(--soft);
    border: 1px solid transparent; padding: 0; overflow: hidden;
}
@media (min-width: 700px) { .thumb { width: 100%; } }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); }

.stage { background: var(--soft); aspect-ratio: 3 / 4; max-height: 680px; overflow: hidden; }
.stage img { width: 100%; height: 100%; object-fit: contain; }

.pdp-info { align-self: start; }
@media (min-width: 1000px) { .pdp-info { position: sticky; top: 88px; } }
.pdp-info h1 { font-size: 22px; line-height: 1.3; margin: 6px 0 4px; }
@media (min-width: 900px) { .pdp-info h1 { font-size: 26px; } }
.pdp-sku { font-size: 12px; color: var(--muted); }
.pdp-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.pdp-flag {
    background: var(--red); color: #fff;
    font-size: 11px; font-weight: 700; letter-spacing: .06em;
    padding: 5px 10px; text-transform: uppercase;
}
.pdp-flag--limited { background: var(--ink); letter-spacing: .04em; }

.pdp-price { font-size: 26px; font-weight: 800; margin: 16px 0 4px; }
.pdp-price.is-sale { color: var(--red); }
.pdp-price .old {
    margin-left: 10px;
    font-size: 16px; font-weight: 500;
    color: var(--muted); text-decoration: line-through;
}
.pdp-price small { font-size: 12px; font-weight: 500; color: var(--muted); display: block; margin-top: 2px; }

.opt-block { padding: 20px 0; border-top: 1px solid var(--line); }
.opt-block h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.opt-block h3 em { font-style: normal; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }

.color-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.color-opt {
    width: 34px; height: 34px; border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .18); position: relative;
}
.color-opt.is-active { box-shadow: 0 0 0 2px #fff inset, 0 0 0 2px var(--ink); }
.color-opt.is-off { opacity: .3; cursor: not-allowed; }

.size-opts--pdp .size-opt { min-width: 56px; height: 44px; display: grid; place-items: center; }
.size-opt.is-off { color: #c4c4c4; background: var(--soft); cursor: not-allowed; text-decoration: line-through; }

.stock-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.stock-table th, .stock-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); }
.stock-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.stock-table td:last-child, .stock-table th:last-child { text-align: right; }
.pill {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600;
}
.pill--in { background: #e8f6ec; color: #1a7f37; }
.pill--low { background: #fff4e5; color: #b45309; }
.pill--out { background: var(--soft); color: var(--muted); }

.feature-list li {
    position: relative; padding-left: 18px; font-size: 14px; margin-bottom: 8px; color: #333;
}
.feature-list li::before {
    content: ""; position: absolute; left: 0; top: 8px;
    width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}
.desc { font-size: 14px; color: #333; white-space: pre-line; }

.notice {
    display: flex; gap: 10px; padding: 14px 16px; background: var(--soft);
    font-size: 13px; color: #444; margin-top: 20px;
}
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

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

.site-footer { border-top: 1px solid var(--line); margin-top: 20px; background: #fff; }
.footer-grid {
    display: grid; gap: 28px; grid-template-columns: 1fr; padding: 44px 0 32px;
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: repeat(4, 1fr) 1.2fr; } }
.footer-col h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.footer-col li + li { margin-top: 9px; }
.footer-col a { font-size: 13px; color: var(--muted); }
.footer-col a:hover { color: var(--red); }
/* Contact details fan out across the full width instead of stacking in one
   narrow column, so the footer fills the space it occupies. */
.footer-contact {
    display: grid;
    gap: 28px;
    grid-template-columns: 1fr;
    padding: 44px 0 32px;
}
@media (min-width: 700px) { .footer-contact { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
    .footer-contact {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 32px;
        align-items: start;
    }
}

.footer-contact h3 {
    font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.footer-contact p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.footer-contact a { color: inherit; }
.footer-contact a:hover { color: var(--red); }

.footer-label {
    display: block;
    margin-bottom: 8px;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--ink);
}

.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
    width: 36px; height: 36px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 50%;
}
.socials a:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.socials svg { width: 17px; height: 17px; }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 16px 0 28px;
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--muted);
}

/* ------------------------------------------------------- buy box (PDP) */

.pdp-buy { margin: 22px 0 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }

.qty { display: flex; align-items: stretch; border: 1px solid var(--ink); flex: none; }
.qty-btn {
    width: 44px;
    background: none; border: 0;
    font-size: 18px; line-height: 1; color: var(--ink);
    cursor: pointer;
}
.qty-btn:hover { background: var(--soft); }
.qty input {
    width: 58px; height: 52px;
    border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
    text-align: center; font: inherit; font-weight: 600;
    -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:disabled { background: var(--soft); color: var(--muted); }

.btn--buy { flex: 1 1 220px; height: 52px; padding: 0 28px; }
.btn:disabled, .btn--buy:disabled {
    background: var(--line); border-color: var(--line); color: var(--muted);
    cursor: not-allowed;
}
.btn:disabled:hover { background: var(--line); border-color: var(--line); }

/* Same treatment as the add button, stacked underneath it. */
.btn--checkout { display: flex; width: 100%; margin-top: 10px; }

/* Brief confirmation in place of a page change. */
.btn--buy.is-added,
.btn--buy.is-added:hover {
    background: #157347; border-color: #157347; color: #fff;
}

.buy-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.buy-hint--in { color: var(--ink); }
.buy-hint--out { color: var(--red); font-weight: 600; }

/* --------------------------------------------------------------- basket */

.cart-badge {
    position: absolute; top: 2px; right: 0;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 8px;
    background: var(--red); color: #fff;
    font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.icon-btn--cart { position: relative; }

@keyframes cart-bump {
    0% { transform: scale(1); }
    35% { transform: scale(1.45); }
    100% { transform: scale(1); }
}
.cart-badge.is-bump { animation: cart-bump .4s ease; }

/* Toast confirming the add, bottom-centre on phones and bottom-right above. */
.toast-cart {
    position: fixed;
    left: 16px; right: 16px; bottom: 20px;
    z-index: 80;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
    padding: 14px 18px;
    background: var(--ink); color: #fff;
    font-size: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .22);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
}
@media (min-width: 700px) {
    .toast-cart { left: auto; right: 24px; bottom: 24px; max-width: 400px; }
}
.toast-cart.is-in { opacity: 1; transform: translateY(0); }
.toast-cart a {
    color: #fff; font-weight: 700; text-decoration: underline;
    margin-left: auto; white-space: nowrap;
}
.toast-cart a:hover { color: #fff; opacity: .8; }
.toast-cart--bad { background: var(--red); }

@media (prefers-reduced-motion: reduce) {
    .toast-cart { transition: none; }
    .cart-badge.is-bump { animation: none; }
}

.flash { padding: 12px 16px; margin-bottom: 20px; font-size: 14px; }
.flash--ok { background: var(--soft); border-left: 3px solid var(--ink); }
.flash--bad { background: #fff0f0; border-left: 3px solid var(--red); color: var(--red); }

.cart { display: grid; gap: 32px; grid-template-columns: 1fr; padding: 24px 0 60px; }
@media (min-width: 900px) { .cart { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; } }

.cart-line {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-thumb { display: block; }
.cart-thumb img, .cart-thumb .ph {
    width: 88px; aspect-ratio: 3 / 4; object-fit: cover; background: var(--soft);
}
.cart-info h3 { font-size: 15px; font-weight: 500; margin: 0 0 6px; }
.cart-variant { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.cart-sep { color: var(--line); }
.cart-unit { margin-top: 6px; font-size: 13px; color: var(--muted); }
.cart-low { margin-top: 6px; font-size: 12px; color: var(--red); }

.cart-qty { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.cart-qty input {
    width: 68px; height: 36px; padding: 0 8px;
    border: 1px solid var(--line); text-align: center; font: inherit;
}

.cart-line-end { text-align: right; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.cart-total { font-weight: 700; }
.cart-remove {
    background: none; border: 0; padding: 0;
    font-size: 12px; color: var(--muted); text-decoration: underline; cursor: pointer;
}
.cart-remove:hover { color: var(--red); }

.cart-summary { align-self: start; padding: 24px; background: var(--soft); }
@media (min-width: 900px) { .cart-summary { position: sticky; top: 88px; } }
.cart-summary h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.cart-sum-row {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 8px 0; font-size: 13px;
}
.cart-sum-variant { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.cart-sum-row--total {
    margin-top: 8px; padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 15px; font-weight: 700;
}
.cart-note { margin: 12px 0 18px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.cart-summary .btn { width: 100%; }
.cart-back { display: inline-block; margin-top: 16px; font-size: 13px; }

/* ------------------------------------------------------ checkout steps */

.steps {
    display: flex; align-items: center; gap: 8px;
    list-style: none; margin: 20px 0 8px; padding: 0;
    flex-wrap: wrap;
}
.step { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.step + .step::before {
    content: ""; width: 28px; height: 1px; background: var(--line); margin-right: 8px;
}
.step-dot {
    width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    font-size: 12px; font-weight: 700;
}
.step a { display: flex; align-items: center; gap: 8px; color: inherit; }
.step a:hover { color: var(--red); }
.step a:hover .step-dot { border-color: var(--red); color: var(--red); }
.step.is-active { color: var(--ink); font-weight: 600; }
.step.is-active .step-dot { border-color: var(--ink); background: var(--ink); color: #fff; }
.step.is-done .step-dot { border-color: var(--ink); color: var(--ink); }

.form-heading { font-size: 15px; margin: 24px 0 14px; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field--narrow { max-width: 220px; }
.checkout-form select {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); font: inherit; background: #fff;
}

.account-box { border: 1px solid var(--line); padding: 0 18px; margin-bottom: 8px; }
.account-box summary {
    cursor: pointer; padding: 16px 0; font-size: 14px; font-weight: 600;
}
.account-body { padding-bottom: 18px; }
.inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 220px; margin-bottom: 12px; }

.signed-in {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 14px 18px; margin-bottom: 8px;
    background: var(--soft); border: 1px solid var(--line);
}
.signed-in strong { display: block; font-size: 14px; }
.signed-in span { font-size: 12px; color: var(--muted); }

/* -------------------------------------------------------------- payment */

.pay-box { text-align: center; padding: 24px; border: 1px solid var(--line); }
.pay-lead { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.pay-lead--small { margin-top: 28px; }
/* Images are display:block globally, so the parent's text-align cannot centre
   this one — auto margins do it. */
.pay-qr {
    display: block;
    margin: 0 auto;
    width: 220px; height: 220px;
    object-fit: contain;
    background: #fff;
}
.pay-qr-text { word-break: break-all; font-size: 11px; color: var(--muted); }
.pay-amount { margin-top: 16px; font-size: 24px; font-weight: 800; }

.bank-grid {
    display: grid; gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    margin-top: 8px;
}
.bank {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 10px 6px; border: 1px solid var(--line);
    font-size: 11px; line-height: 1.3; text-align: center;
}
.bank:hover { border-color: var(--ink); }
.bank img { width: 34px; height: 34px; object-fit: contain; }

.pay-waiting {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin: 28px 0 0; font-size: 13px; color: var(--muted);
}
.spinner {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid var(--line); border-top-color: var(--ink);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* -------------------------------------------------------------- account */

.icon-btn--account { position: relative; }
.account-dot {
    position: absolute; top: 4px; right: 2px;
    width: 7px; height: 7px; border-radius: 50%;
    background: #157347;
}

.auth { max-width: 480px; margin: 0 auto; padding: 20px 0 70px; }
.auth .page-head { border-bottom: 0; padding-bottom: 8px; }
.auth .checkout-form .btn { width: 100%; margin-top: 6px; }
.auth-alt { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }
.auth-alt a { text-decoration: underline; }

.link-button {
    background: none; border: 0; padding: 0;
    font: inherit; font-size: 13px; color: var(--muted);
    text-decoration: underline; cursor: pointer;
}
.link-button:hover { color: var(--red); }

/* Six digits, spaced out so a typo is easy to spot. */
.code-input {
    font-size: 24px !important;
    letter-spacing: .5em;
    text-align: center;
    font-weight: 700;
}

.order-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-table th {
    text-align: left; padding: 10px 8px;
    border-bottom: 1px solid var(--line);
    font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.order-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); }
.order-table .order-no { font-weight: 600; }
.order-table .order-no a { text-decoration: underline; }
.order-row:hover { background: var(--soft); }
.order-go { text-align: right; white-space: nowrap; }
.order-go a { font-size: 12px; color: var(--muted); }
.order-row:hover .order-go a { color: var(--red); }

/* ---- single order ---- */

.order-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.order-paid { font-size: 13px; color: var(--muted); }

.order-items { border-top: 1px solid var(--line); }
.order-item {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 20px;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.order-item strong { display: block; font-size: 14px; font-weight: 500; }
.order-item-variant { font-size: 12px; color: var(--muted); }
.order-item-price { text-align: right; white-space: nowrap; }
.order-item-unit { display: block; font-size: 12px; color: var(--muted); }

.order-aside-head { margin-top: 26px; }
.order-meta { margin: 0 0 6px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.order-meta strong { color: var(--ink); }

.account-logout { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout-form input:disabled { background: var(--soft); color: var(--muted); }

/* ------------------------------------------------------------- checkout */

.checkout-form .field { margin-bottom: 18px; }
.checkout-form label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.checkout-form .req { color: var(--red); }
.checkout-form input, .checkout-form textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line); font: inherit; background: #fff;
}
.checkout-form input:focus, .checkout-form textarea:focus {
    outline: none; border-color: var(--ink);
}
.field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.field-error { display: block; margin-top: 6px; font-size: 12px; color: var(--red); }

.order-done { max-width: 620px; margin: 0 auto; padding: 60px 0 80px; text-align: center; }
.order-done svg { width: 52px; height: 52px; color: var(--ink); margin-bottom: 20px; }
.order-done h1 { font-size: 26px; margin-bottom: 12px; }
.order-done p { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.order-number { font-size: 15px !important; color: var(--ink) !important; }
.order-lines { margin: 28px 0; padding: 20px 24px; background: var(--soft); text-align: left; }

/* ------------------------------------------------------------------ misc */

.error-page { padding: 90px 0 110px; text-align: center; }
.error-page h1 { font-size: 64px; color: var(--red); }
.error-page p { color: var(--muted); margin: 8px 0 26px; }
