/*
 * The shop.
 *
 * Written by hand and served as it is — no build step, and that is a decision
 * rather than an omission. This hosting has no Node, so anything compiled is a
 * step somebody has to remember on a machine that is not the server; a shop
 * whose stylesheet failed to deploy is a shop with no clothes on.
 *
 * The shape is H&M's, which is the owner's reference and a sound one: a hero
 * that fills the screen with one thing to press, a product page whose
 * photograph runs off the left edge with the detail held beside it, size boxes
 * in a joined row, one full-width button, and everything secondary folded away.
 * It is a layout Bangladeshi shoppers already know how to read, which is worth
 * more than an original one.
 *
 * What is *not* H&M's is the temperature. Their black, red and hard white is a
 * fast-fashion signal — loud, urgent, discounted. §10.3 asks for the opposite:
 * paper and ink, the garment doing the talking, colour belonging to the product
 * rather than the brand. So the structure is theirs and the surface is ours.
 */

/*
 * One glyph, borrowed from a font that draws it properly.
 *
 * ৳ (U+09F3) is the most-repeated character on a Bangladeshi shop and it is in
 * no Latin UI font. Left alone the browser finds *a* face that has it and sets
 * it at two-thirds the height of the digits beside it, so every price looks
 * subtly broken and nothing explains why. `unicode-range` consults this face for
 * that character and nothing else; every source is already on the device, so
 * nothing is downloaded.
 */
@font-face {
    font-family: "Taka";
    src:
        local("Nirmala UI"),
        local("Noto Sans Bengali"),
        local("Hind Siliguri"),
        local("Kohinoor Bangla"),
        local("Bangla MN");
    unicode-range: U+09F2-09F3;
    font-display: swap;
}

:root {
    /*
     * Paper, not white. A pure #fff ground makes an ecru Panjabi look grey, and
     * every garment in this catalogue is photographed on off-white.
     */
    --paper: #faf9f7;
    --paper-sunk: #f1efea;
    --ink: #171512;
    --ink-soft: #56504a;
    --ink-faint: #8a837a;
    --rule: #e3dfd8;
    --quiet: #a79e92;

    --weight-regular: 400;
    --weight-medium: 500;

    /* "Taka" first, and it covers exactly one character — see the @font-face. */
    --font-faces: "Taka", ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --font-latin: var(--font-faces), sans-serif;
    --font-bengali: "Taka", "Hind Siliguri", "Noto Sans Bengali", "Nirmala UI", ui-sans-serif, sans-serif;

    --gutter: clamp(1rem, 3.5vw, 3rem);
    --measure: 34rem;
    --header: 3.5rem;
}

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

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

body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-latin);
    font-weight: var(--weight-regular);
    font-size: 0.9375rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/*
 * Bengali sets larger than Latin at the same nominal size and its descenders
 * need more room. One attribute on <html> rather than a second stylesheet.
 */
html[lang="bn"] body {
    font-family: var(--font-bengali);
    line-height: 1.85;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

h1,
h2,
h3 {
    font-weight: var(--weight-medium);
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0;
}

button {
    font: inherit;
}

/*
 * Western figures, in every language. Bengali numerals are typographically
 * correct and commercially unhelpful — ৳2,450 is read faster here than ২,৪৫০,
 * and price is the one number nobody should have to decode. §10.4.
 */
.figure {
    font-family: var(--font-latin);
    font-variant-numeric: tabular-nums;
}

.shell {
    /*
     * `width: 100%` is load-bearing. The body is a flex column so the footer can
     * sit at the bottom of a short page, and an auto inline margin on a flex
     * item cancels stretch — without this the masthead and footer shrink-wrap to
     * their own text and huddle in the middle of the screen.
     */
    width: 100%;
    max-width: 96rem;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.body-main {
    flex: 1;
}

/* ── the line above everything ─────────────────────────────────────────── */

/*
 * H&M's promo strip, doing an entirely different job.
 *
 * Theirs shouts a discount. Ours answers, before anything else on the page, the
 * two questions a Bangladeshi shopper has before they will consider buying
 * clothes from a website they have not heard of: can I pay the rider, and what
 * does delivery cost. §10.3.
 */
.strip {
    background: var(--ink);
    color: var(--paper);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.strip__inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: center;
    padding-block: 0.6rem;
}

/* ── masthead ──────────────────────────────────────────────────────────── */

.masthead {
    position: sticky;
    top: 0;
    z-index: 5;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.masthead__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(1rem, 3vw, 2.5rem);
    min-height: var(--header);
}

/*
 * Below a wide desktop the categories take their own line.
 *
 * Sharing the row with the wordmark and the bag clipped "Panjabi" to "Pa" —
 * and a menu that scrolls sideways with no hint that it does is a menu whose
 * later items nobody finds. The alternative is H&M's hamburger, which needs
 * JavaScript to open; a second row needs none and shows everything at once.
 *
 * **This was 48rem, chosen when the catalogue had one category.** With a real
 * range it is six, and on anything from a phone to a 1024px laptop the single
 * row overflowed: `flex-wrap` then pushed `Search · বাংলা · Track · Bag` onto
 * a line of its own, where `margin-inline-start: auto` parked it against the
 * right edge under the menu. It reads as a header that has come apart, which
 * is precisely what it is.
 */
@media (max-width: 63.99rem) {
    .masthead__nav {
        order: 3;
        flex: 1 0 100%;
        padding-bottom: 0.6rem;
        gap: 1.25rem;
    }
}

.masthead__mark {
    font-size: 1.05rem;
    font-weight: var(--weight-medium);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    white-space: nowrap;
}

.masthead__mark:hover {
    text-decoration: none;
}

.masthead__nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.75rem);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    overflow-x: auto;
    scrollbar-width: none;
}

.masthead__nav::-webkit-scrollbar {
    display: none;
}

.masthead__nav a {
    white-space: nowrap;
    padding-block: 0.35rem;
    border-bottom: 1px solid transparent;
}

.masthead__nav a:hover,
.masthead__nav a[aria-current="page"] {
    text-decoration: none;
    border-bottom-color: var(--ink);
}

.masthead__end {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1.5rem);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
    /*
     * Never the thing that gives way.
     *
     * Above the breakpoint the three groups share a row, and the day the POS
     * publishes a ninth category that row will be tight again. The nav already
     * scrolls; this makes sure the nav is what does it, rather than the bag and
     * the language toggle being wrapped away to a line of their own.
     */
    flex-shrink: 0;
}

.masthead__lang {
    color: var(--ink-faint);
}

/* The count belongs on the bag, where a shopper looks for it. */
.bag-count {
    font-variant-numeric: tabular-nums;
}

/* ── hero ──────────────────────────────────────────────────────────────── */

/*
 * Full-bleed and nearly the height of the screen, with one thing to press.
 *
 * `85dvh` rather than `100dvh`: a hero that exactly fills a phone gives no hint
 * that anything is below it, and the commonest complaint about this layout is
 * people not scrolling.
 */
/*
 * The banner: the shop's own artwork, shown at the shape it was made in.
 *
 * `aspect-ratio` and no cropping, which is the whole difference from the hero
 * below. This banner's headline and button are painted into the right-hand
 * half of a 2:1 picture, so anything that crops it — `object-fit: cover` in a
 * box of some other proportion — cuts the words in half on exactly the screens
 * nobody tests on.
 *
 * Capped by height too: a true 2:1 across a 1920-wide desktop is 960px tall
 * and would push the collection off the fold all over again. At that point
 * letterboxing is the lesser evil — `contain` keeps every word, and the band
 * behind it is the shop's own paper rather than a gap.
 */
.banner {
    background: var(--paper-sunk);
}

.banner__link:hover {
    text-decoration: none;
}

.banner__image {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 1;
    max-height: min(70dvh, 34rem);
    object-fit: contain;
    margin-inline: auto;
}

.hero {
    position: relative;
    background: var(--paper-sunk);
}

/*
 * The fallback hero, for when there is no banner.
 *
 * This was `height: min(85dvh, 46rem)` with `object-fit: cover` — which takes
 * a 4:5 flat-lay and crops it into a portrait slot nearly the height of the
 * screen, so the front page opened on a vast close-up of one t-shirt's
 * midriff with the collar and the hem both out of frame.
 *
 * Wider and shorter, so the whole garment is in shot and the rest of the page
 * begins above the fold on a laptop.
 */
.hero__image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    max-height: min(60dvh, 30rem);
    object-fit: cover;
    /* Flat-lays are centred but shot head-on, so favouring the upper half
       keeps a collar in frame when the crop has to take something. */
    object-position: center 35%;
}

@media (max-width: 40rem) {
    /* On a phone the fold is short and a letterboxed 2:1 is a stripe, so the
       banner may be as tall as it likes and the hero goes back to portrait —
       which is the shape a phone screen actually wants. */
    .banner__image {
        max-height: none;
    }

    .hero__image {
        aspect-ratio: 4 / 5;
        max-height: 70dvh;
    }
}

/*
 * The caption is a bar under the photograph rather than text laid over it.
 *
 * H&M lays theirs over the image and it works because their photography is shot
 * for it — flat backgrounds, space left deliberately empty. Ours is a first
 * shoot on a rail in Chattogram, and white type over a busy corner of a
 * photograph is unreadable in a way nobody notices until it is live.
 */
.hero__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--ink);
    color: var(--paper);
    padding-block: 1rem;
}

.hero__caption:hover {
    text-decoration: none;
}

.hero__title {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero__go {
    font-size: 1.25rem;
    line-height: 1;
}

/* ── sections ──────────────────────────────────────────────────────────── */

.section {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: clamp(1rem, 2vw, 1.75rem);
}

.section__head h2 {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section__more {
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--ink);
}

.section__more:hover {
    text-decoration: none;
}

/* Two campaign blocks side by side, the way H&M's sit under the hero. */
.features {
    display: grid;
    gap: 0.5rem;
}

@media (min-width: 48rem) {
    .features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.feature {
    position: relative;
    display: block;
    background: var(--paper-sunk);
}

.feature:hover {
    text-decoration: none;
}

.feature img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.feature__label {
    position: absolute;
    inset-inline: 1rem;
    bottom: 1rem;
    background: var(--paper);
    color: var(--ink);
    padding: 0.7rem 1rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* ── product grid and rail ─────────────────────────────────────────────── */

.grid {
    display: grid;
    /*
     * Two across on a phone, which is how every shopper here browses and how
     * Aarong and Sailor both do it. One across wastes the fold; three is too
     * small to judge a fabric.
     */
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2.5rem) clamp(0.5rem, 1.5vw, 1.25rem);
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 60rem) {
    .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/*
 * The rail scrolls sideways on a phone and becomes a grid on a desktop. Four
 * cards stacked two-by-two on a phone would push everything below "new in" off
 * the bottom of the world.
 */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem;
    scrollbar-width: thin;
}

.rail > li {
    scroll-snap-align: start;
}

@media (min-width: 48rem) {
    .rail {
        grid-auto-columns: 30%;
    }
}

@media (min-width: 60rem) {
    .rail {
        grid-auto-flow: row;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(1.25rem, 2.5vw, 2.5rem) clamp(0.5rem, 1.5vw, 1.25rem);
        overflow: visible;
    }
}

.card__frame {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--paper-sunk);
    overflow: hidden;
}

.card__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card__body {
    padding-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.card__name {
    font-size: 0.875rem;
}

.card__price {
    font-size: 0.875rem;
    font-weight: var(--weight-medium);
}

.card__flag {
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    background: var(--paper);
    padding: 0.3rem 0.6rem;
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.note {
    color: var(--ink-faint);
    font-size: 0.8125rem;
}

/* ── category tiles ────────────────────────────────────────────────────── */

.tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 60rem) {
    .tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.tile {
    position: relative;
    display: block;
    background: var(--paper-sunk);
}

.tile:hover {
    text-decoration: none;
}

.tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.tile__label {
    position: absolute;
    inset-inline: 0.75rem;
    bottom: 0.75rem;
    background: var(--paper);
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── the product page ──────────────────────────────────────────────────── */

/*
 * H&M's shape: the photographs run off the left edge of the screen with no
 * gutter at all, and the detail sits in a column beside them. It is the single
 * most effective thing about that page — the garment is genuinely the largest
 * object on the screen, which is what §10.3 means.
 */
.pdp {
    display: grid;
}

@media (min-width: 60rem) {
    .pdp {
        grid-template-columns: minmax(0, 1fr) clamp(23rem, 32vw, 30rem);
        align-items: start;
    }
}

.pdp__gallery {
    display: grid;
    gap: 2px;
    background: var(--paper-sunk);
}

@media (min-width: 48rem) {
    .pdp__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* The first photograph is the one that sells the garment. */
    .pdp__gallery > :first-child {
        grid-column: 1 / -1;
    }

    /*
     * And a last photograph with nothing beside it spans too, rather than
     * leaving half a row of empty grey. With the first one full width, the rest
     * pair up — so the odd one out is always at an even position.
     */
    .pdp__gallery > :nth-child(even):last-child {
        grid-column: 1 / -1;
    }
}

.pdp__gallery figure {
    margin: 0;
    background: var(--paper-sunk);
    aspect-ratio: 4 / 5;
}

.pdp__gallery img,
.pdp__gallery video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdp__detail {
    padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 60rem) {
    .pdp__detail {
        position: sticky;
        top: var(--header);
        max-height: calc(100dvh - var(--header));
        overflow-y: auto;
    }
}

.pdp__name {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pdp__price {
    font-size: 1.15rem;
    font-weight: var(--weight-medium);
    margin-top: 0.35rem;
}

.pdp__copy {
    color: var(--ink-soft);
    margin: 0;
}

.field-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.6rem;
}

/* ── choosing ──────────────────────────────────────────────────────────── */

.swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.swatch {
    display: block;
    width: 3rem;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--rule);
    background: var(--paper-sunk);
    overflow: hidden;
}

.swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swatch[aria-current="true"] {
    outline: 1px solid var(--ink);
    outline-offset: 2px;
    border-color: var(--ink);
}

/*
 * Sizes as a joined row of radios, which is H&M's exactly — and the reason it
 * is radios rather than buttons is that the whole page then works with no
 * JavaScript at all. Choose a size, press the button, the form posts. §10.2.
 */
.sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.sizes input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.size {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--rule);
    /* Shared edges, so the run reads as one control. */
    margin-inline-start: -1px;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
}

.sizes > label:first-of-type .size {
    margin-inline-start: 0;
}

.size:hover {
    border-color: var(--ink);
    position: relative;
    z-index: 1;
}

input:checked + .size {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
    position: relative;
    z-index: 2;
}

input:focus-visible + .size {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/*
 * A sold-out size is struck through, not removed. A size that vanishes reads as
 * a broken site; a size struck through reads as a garment that sold — and tells
 * somebody their size exists at all, which is what makes a restock worth
 * telling them about.
 */
.size--gone {
    color: var(--quiet);
    text-decoration: line-through;
    cursor: not-allowed;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 5px,
        var(--paper-sunk) 5px,
        var(--paper-sunk) 6px
    );
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1.05rem 1.5rem;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-weight: var(--weight-medium);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8125rem;
    cursor: pointer;
}

.button:hover {
    text-decoration: none;
    opacity: 0.88;
}

.button--quiet {
    background: transparent;
    color: var(--ink);
}

.button[disabled] {
    background: transparent;
    color: var(--quiet);
    border-color: var(--rule);
    cursor: not-allowed;
}

.alert {
    border: 1px solid var(--ink);
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* ── the three answers ─────────────────────────────────────────────────── */

/*
 * Cash on delivery, what delivery costs, and how long they have to send it
 * back — on the product page rather than behind a policy link. Every one is an
 * objection a Bangladeshi shopper raises before buying clothing online, and
 * answering them where the decision happens is worth more than a tidier panel.
 */
.assurances {
    border-top: 1px solid var(--rule);
    padding-top: 1.25rem;
    display: grid;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--ink-soft);
}

/*
 * Accordions, and they are `<details>` — no script, works when JavaScript fails
 * to load, and a browser's own find-in-page can open them.
 */
.fold {
    border-bottom: 1px solid var(--rule);
}

.fold:first-of-type {
    border-top: 1px solid var(--rule);
}

.fold > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.fold > summary::-webkit-details-marker {
    display: none;
}

.fold > summary::after {
    content: "+";
    font-size: 1.1rem;
    line-height: 1;
    color: var(--ink-faint);
}

.fold[open] > summary::after {
    content: "–";
}

.fold__body {
    padding-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--ink-soft);
    display: grid;
    gap: 0.75rem;
}

.facts-list {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.25rem;
}

.facts-list dt {
    color: var(--ink-faint);
}

.facts-list dd {
    margin: 0;
}

.measure-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.measure-table th,
.measure-table td {
    text-align: start;
    padding: 0.4rem 0.75rem 0.4rem 0;
    border-bottom: 1px solid var(--rule);
    font-weight: var(--weight-regular);
}

.measure-table th {
    color: var(--ink-faint);
    font-size: 0.8125rem;
}

/* ── the bag ───────────────────────────────────────────────────────────── */

.bag {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    padding-bottom: 5rem;
}

@media (min-width: 60rem) {
    .bag {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 24rem);
        align-items: start;
    }
}

.bag__lines {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}

.bag__line {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--rule);
}

.bag__thumb {
    aspect-ratio: 4 / 5;
    background: var(--paper-sunk);
}

.bag__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bag__facts {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.875rem;
}

.bag__name {
    font-weight: var(--weight-medium);
}

.bag__controls {
    margin-top: auto;
    padding-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--rule);
}

.qty button {
    border: 0;
    background: transparent;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    color: var(--ink);
}

.qty span {
    min-width: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

.link-quiet {
    background: none;
    border: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: var(--ink-faint);
    text-decoration: underline;
    text-underline-offset: 0.2em;
    cursor: pointer;
}

.summary {
    border: 1px solid var(--rule);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    display: grid;
    gap: 0.75rem;
}

.summary__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
}

.summary__row--total {
    border-top: 1px solid var(--rule);
    padding-top: 0.75rem;
    font-size: 1rem;
    font-weight: var(--weight-medium);
}

/* ── checkout ──────────────────────────────────────────────────────────── */

.form-column {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.field {
    display: grid;
    gap: 0.35rem;
}

/*
 * `16px` is not a style choice. Any smaller and iOS zooms the whole page in
 * when the field takes focus, which on a checkout reads as the site breaking
 * at the exact moment somebody is deciding whether to trust it.
 */
.input {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--rule);
    background: var(--paper);
    color: var(--ink);
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

select.input {
    /* The arrow, drawn rather than fetched — one fewer request. */
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
        linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 1.1rem) 55%, calc(100% - 0.75rem) 55%;
    background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
    background-repeat: no-repeat;
    padding-inline-end: 2.25rem;
}

.input:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -1px;
    border-color: var(--ink);
}

.field-error {
    font-size: 0.8125rem;
    color: var(--ink);
    border-inline-start: 2px solid var(--ink);
    padding-inline-start: 0.6rem;
}

.pay-choice {
    margin: 0;
    border: 1px solid var(--ink);
    padding: 0.9rem 1rem;
    font-size: 0.9375rem;
}

.shell.narrow {
    max-width: 28rem;
}

/*
 * Where the order has got to.
 *
 * Every step shown, including the ones still ahead, because "packed" on its own
 * tells somebody nothing about how much is left — and "how much longer" is the
 * entire question this page exists to answer.
 */
.progress {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--quiet);
}

.progress__step::before {
    content: "";
    display: block;
    height: 2px;
    background: var(--rule);
    margin-bottom: 0.5rem;
}

.progress__step--done {
    color: var(--ink);
}

.progress__step--done::before {
    background: var(--ink);
}

.tracked {
    border: 1px solid var(--rule);
    padding: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1.25rem;
}

.tracked__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.tracked .bag__lines {
    border-top: 1px solid var(--rule);
}

.steps {
    margin: 0 0 2rem;
    padding-inline-start: 1.1rem;
    display: grid;
    gap: 0.5rem;
    color: var(--ink-soft);
    font-size: 0.9375rem;
}

/* ── page furniture ────────────────────────────────────────────────────── */

.page-head {
    padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 2.5vw, 2rem);
    max-width: var(--measure);
}

.page-head h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    letter-spacing: 0.02em;
}

.page-head p {
    margin: 0.6rem 0 0;
    color: var(--ink-soft);
}

.empty {
    padding-block: 3rem 6rem;
    color: var(--ink-soft);
    max-width: var(--measure);
}

.foot {
    border-top: 1px solid var(--rule);
    margin-top: auto;
    padding-block: clamp(2rem, 5vw, 3.5rem);
}

.foot__columns {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 48rem) {
    .foot__columns {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.foot h3 {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 0.75rem;
}

.foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.875rem;
}

.foot__base {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--rule);
    color: var(--ink-faint);
    font-size: 0.8125rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    justify-content: space-between;
}

.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;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: var(--gutter);
    top: 0.5rem;
    background: var(--ink);
    color: var(--paper);
    padding: 0.5rem 1rem;
    z-index: 10;
}

/* ── The policy pages ──────────────────────────────────────────────────────
   Long prose, which nothing else on this shop is. Held to one measure and
   given generous leading, because these four pages are read rather than
   scanned — somebody is deciding whether to trust a name they have not heard
   of with ৳3,400. §10.3.
*/
.prose {
    max-width: var(--measure);
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.prose h2 {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 2.25rem 0 0.75rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p {
    margin: 0 0 0.9rem;
    line-height: 1.75;
}

.policy-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    border-top: 1px solid var(--rule);
    padding-block: 1.25rem;
    margin-bottom: clamp(2rem, 5vw, 4rem);
    font-size: 0.85rem;
}

/* ── Search and the back-in-stock ask ──────────────────────────────────────
   Both are secondary to the wall of photographs and both are typed into, so
   they get room rather than emphasis.
*/
.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
    max-width: var(--measure);
}

.search-form .field-label {
    flex-basis: 100%;
}

.search-form .input {
    flex: 1 1 16rem;
}

.stock-ask {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    padding-block: 0.5rem;
}

.stock-ask .field-label {
    min-width: 4rem;
}

.stock-ask .input {
    flex: 1 1 10rem;
}

/* ── a sale ────────────────────────────────────────────────────────────── */

/*
 * The struck-through figure, and the word beside it.
 *
 * Quiet rather than loud: §10.3 asks for the opposite of a fast-fashion
 * signal, so this is not red and it does not shout. The reduction reads
 * because the old figure is beside the new one, which is the whole mechanism —
 * not because the page has turned into a banner.
 */
.card__was,
.pdp__was {
    color: var(--quiet);
    font-weight: var(--weight-regular);
    margin-inline-start: 0.5rem;
}

.pdp__saving {
    display: inline-block;
    margin-inline-start: 0.6rem;
    padding: 0.15rem 0.5rem;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.6875rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: middle;
}

/* ── reviews ───────────────────────────────────────────────────────────── */

/*
 * Below the decision, not beside it. Somebody still choosing a size is not
 * reading paragraphs; somebody who has scrolled past the fold is.
 */
.reviews {
    margin-block: 3rem;
}

.reviews__score {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.reviews__score .figure {
    font-size: 1.75rem;
}

.review {
    border-top: 1px solid var(--rule);
    padding: 1rem 0;
}

.review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin: 0 0 0.4rem;
}

.review p {
    margin: 0 0 0.4rem;
    line-height: 1.7;
}
