/* ===========================================================================
   Internal Sale - shopper storefront
   ---------------------------------------------------------------------------
   Black, white and silver. No hue at all, so the work that colour normally
   does is carried by FILL and WEIGHT instead:

       solid white block   primary action, and the selected state
       outline             available, secondary
       dashed ghost        unavailable
       inverted panel      a case the reader must not confuse with another

   That last one is not decoration. A Volindo guest is invoiced to their group
   rather than deducted from a salary, and telling one buyer the other's story
   sends someone hunting for money that never moves. It is told apart by
   inverting the panel, which survives a black-and-white print and colour
   blindness in a way a red/green pair does not.

   NO CDN. The storefront runs on the office LAN with no internet egress, so
   the typeface is served from public/fonts.
   =========================================================================== */

/*
 * TYPE, taken from volcom.co.id.
 *
 * The public site sets its nav, headings and product names in Garage Gothic
 * Bold - condensed, uppercase, letterspaced - over Poppins for body copy and
 * DIN OT for prices. Garage Gothic and DIN are both commercial licences that
 * cannot be shipped here, so:
 *
 *     Oswald    stands in for Garage Gothic. Same job: a condensed grotesque
 *               that only ever appears in caps. It is not a guess - Oswald is
 *               already loaded on volcom.co.id alongside the licensed faces.
 *     Poppins   is their real body font, and open licence, so it is exact.
 *
 * If the licensed files ever arrive, only the two @font-face families below
 * change; nothing else in this file names a typeface.
 *
 * NO CDN. The storefront runs on the office LAN with no internet egress, so
 * every file is served from public/fonts - 49 KB for the five, latin subset.
 */

@font-face {
    font-family: 'Oswald';
    src: url('/fonts/oswald-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Oswald';
    src: url('/fonts/oswald-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('/fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --ground:      #0B0B0C;
    --surface:     #141416;
    --raised:      #1B1B1E;
    --tone-1:      #17171A;
    --tone-2:      #1C1C20;
    --tone-3:      #202024;

    --line:        #2A2A2D;
    --line-strong: #3C3C41;

    --ink:         #FFFFFF;
    --silver:      #C7C7CC;
    --muted:       #8E8E94;
    --dim:         #5C5C62;

    --display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
    --body:    'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /*
     * SQUARE. Every corner on volcom.co.id is a right angle - 400 elements
     * sampled and the only non-zero radius on the page is the 50% that makes
     * the Stone a circle. It is the single loudest thing about the brand's
     * layout, louder than the typeface, so the tokens stay as tokens (the
     * rules below all reference them) and simply resolve to nothing.
     */
    --r-sm: 0;
    --r:    0;
    --r-lg: 0;
    --r-xl: 0;

    /* Letterspacing for the condensed caps. volcom.co.id sets 1.05px at 21px;
       as a ratio that is the 0.05em used throughout here. */
    --track:      0.05em;
    --track-wide: 0.09em;

    /* 44px is the floor for anything tapped: this is used on a phone, in a
       queue, one-handed. */
    --tap: 44px;
}

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

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

body {
    margin: 0;
    /*
     * The page is a flex column, not .shell.
     *
     * The header and the footer moved OUT of .shell so their rules can span
     * the window, which left .shell unable to push the footer down on a short
     * page - that was its margin-top:auto against .shell's min-height. The
     * column moves up one level and does the same job.
     */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: var(--body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--ground);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--silver); text-decoration: none; }
a:hover, a:focus { color: var(--ink); }

/*
 * HEADINGS - condensed caps, the way volcom.co.id sets every one of them.
 *
 * Three things travel together and none works without the others: the
 * condensed face, uppercase, and POSITIVE tracking. The previous serif took
 * negative tracking because a wide face set tight reads as considered; caps
 * set tight read as a mistake. Oswald's caps need air between them.
 *
 * Condensed also means a given pixel height is far less ink than the serif
 * it replaces, so the sizes go UP rather than down.
 */
h1, h2, h3 {
    margin: 0;
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track);
    line-height: 1.1;
}

h1 { font-size: 30px; }
h2 { font-size: 23px; }
h3 { font-size: 18px; }

@media (min-width: 900px) {
    h1 { font-size: 38px; }
    h2 { font-size: 26px; }
}

/* The hero. Condensed carries a size a wide face could not, and this is the
   one place the brand is allowed to shout. */
.h-hero {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 46px;
    line-height: 0.98;
    letter-spacing: var(--track);
}

@media (min-width: 900px) {
    .h-hero { font-size: 72px; }
}

/*
 * Display numerals: a total, pieces left, a document number.
 *
 * NOT uppercased and NOT tracked like the headings - a tracked figure reads
 * as a serial number rather than a quantity. Tabular so a changing number
 * does not shift the layout under it.
 */
.num {
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

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

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

/* --- shell ---------------------------------------------------------------- */

.shell {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    background: var(--ground);
}

/* The bottom padding is not optional: without it the last thing on the page -
   a Sign out button, a pagination row - sits straight on the footer's rule.
   Only the desktop override had it, so every page was tight on a phone. */
.shell__body { flex: 1 1 auto; padding: 0 16px 28px; }
.shell__body--pad { padding-top: 14px; }

/* A bar pinned to the bottom of the viewport on a phone: the primary action
   has to be reachable with a thumb, not at the end of a long scroll. */
.bar {
    position: sticky;
    bottom: 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 4px));
    background: var(--surface);
    border-top: 1px solid var(--line);
}

/* --- head ----------------------------------------------------------------- */

.head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 10px;
}

.head__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    flex: 0 0 auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--ink);
}

.head__title { font-size: 22px; }

/* --- the HUD: pieces left and minutes left -------------------------------- */

/*
 * THE ANNOUNCEMENT BAR.
 *
 * volcom.co.id runs one above the nav - a single centred line, small caps,
 * inverted against the header. There it carries a shipping offer; here it
 * carries the one fact that governs everything on the page, which is whether
 * the sale is open and until when.
 *
 * It is the header's own strip rather than a banner in the body, so it cannot
 * be scrolled away from or mistaken for a dismissible message.
 *
 * FULL WIDTH, with no inner column. Everything else in the header is aligned
 * to the content - but this is one centred line, and a centred line is
 * already centred on the window; constraining it to the column moved nothing
 * except the black behind it, which then stopped 24px short of the rule
 * directly beneath it.
 */
.announce {
    display: block;
    padding: 7px 16px;
    background: var(--ink);
    color: var(--ground);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: var(--track-wide);
    text-transform: uppercase;
    text-align: center;
}

.announce a, .announce strong { color: inherit; font-weight: 700; }

/*
 * THE CONTENT COLUMN, as its own object.
 *
 * The header and the footer now sit OUTSIDE .shell so their rules can run the
 * full width of the window - which is how volcom.co.id draws both: a hairline
 * edge to edge, with the nav and the footer columns centred on the same
 * column as the page.
 *
 * Every band that needs its contents on that column wraps them in this. The
 * padding matches .shell__body exactly, or the header's text would sit a few
 * pixels off the content beneath it - which is the whole problem this fixes.
 */
/*
 * It tracks .shell at every breakpoint - 480 / 720 / 1180 - and its padding
 * matches .shell__body's, so the inner edges land on the same pixel. Get this
 * wrong by 8px and the nav sits visibly off the catalogue below it, which is
 * the exact fault this replaced.
 */
.wrap {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

@media (min-width: 640px) { .wrap { max-width: 720px; } }

/*
 * THE HEADER BAND. Full width: background and bottom rule span the window.
 * .hud__inner carries the layout, on the column.
 */
.hud {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

/*
 * A GRID, so the nav is centred on the BAND rather than on what is left over.
 *
 * As a flex row the nav took margin:0 auto and the cart margin-left:auto,
 * which centres the nav in the space the other two do not use - and the
 * brand is a logo plus two words while the cart is an icon and a digit, so
 * the leftover space is not symmetrical and the nav sat left of centre.
 *
 * Three columns, the outer two an equal fraction each, puts the middle one on
 * the band's centre line whatever the sides contain. The cart is placed in
 * column 3 explicitly: with the nav hidden on a phone, auto-placement would
 * otherwise drop it into the empty middle.
 */
.hud__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.hud__inner > .hud__brand { grid-column: 1; justify-self: start; }
.hud__inner > .hud__nav   { grid-column: 2; justify-self: center; }

.hud__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    white-space: nowrap;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track);
    color: var(--ink);
}

/*
 * THE NAV, centred between the Stone and the cart exactly as volcom.co.id
 * lays it out.
 *
 * Hidden below 900px rather than collapsed into a hamburger: there are three
 * destinations, the dashboard already lists all three as full-width rows, and
 * a menu that has to be opened to show three links is a control for its own
 * sake.
 */
.hud__nav { display: none; }

@media (min-width: 900px) {
    .hud__nav {
        display: flex;
        align-items: center;
        gap: 28px;
    }

    .hud__nav a {
        font-family: var(--display);
        font-size: 16px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: var(--track);
        color: var(--silver);
        padding: 4px 0;
        border-bottom: 2px solid transparent;
    }

    .hud__nav a:hover { color: var(--ink); }

    /* The current page, marked by the same 2px rule the buttons use rather
       than by colour - it survives the greyscale this whole palette is. */
    .hud__nav a[aria-current="page"] {
        color: var(--ink);
        border-bottom-color: var(--ink);
    }
}

.hud__brand:hover { color: var(--silver); }

/*
 * The Stone, from public/img/volcom.png - the artwork that already shipped
 * with this project, not a redrawn approximation of it.
 *
 * It is black on transparent, which is invisible on a near-black ground, so
 * it is inverted to white here rather than being re-exported. That keeps ONE
 * asset for both the light contexts (the pick slip, e-mail) and this one, so
 * a future brand update replaces a single file.
 */
.logo {
    display: block;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    filter: invert(1);
}

.logo--lg { width: 56px; height: 56px; }

.hud__brand:hover .logo { opacity: 0.75; }

.hud__row { display: flex; align-items: center; gap: 12px; }

/* On a phone the cart lives in the thumb-reachable bottom bar on the shopping
   screens; here it is a small square so the header stays one line. */
/*
 * .hud > .hud__desk-cart, not .hud__desk-cart.
 *
 * .btn carries width: 100% and is declared AFTER this block, so at equal
 * specificity it won and the cart stretched across the header on a phone.
 * The child selector settles it without moving either rule.
 */
.hud__inner > .hud__desk-cart {
    grid-column: 3;
    justify-self: end;
    width: auto;
    min-height: 36px;
    padding: 8px 11px;
    gap: 7px;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.hud .meter { margin-top: 0; }

.hud__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.hud__big { font-family: var(--display); font-size: 28px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.hud__of  { font-size: 14px; font-weight: 600; color: var(--muted); }

/* Urgency without a warning colour: a bordered block nothing else has. */

.meter { height: 5px; border-radius: 0; background: var(--line); margin-top: 11px; overflow: hidden; }
.meter--tall { height: 6px; margin-top: 12px; }
.meter__fill { height: 100%; background: var(--ink); border-radius: 0; }

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

/*
 * BUTTONS, as volcom.co.id draws them: square, a 2px rule, and a small
 * tracked cap rather than a large word.
 *
 * The 2px matters more than it sounds. At 1px an outline button on a dark
 * ground reads as a disabled field; at 2px it reads as a border someone drew
 * on purpose, which is the whole of the ghost style's job here.
 *
 * The label drops from 16px to 13px because caps at 16px in a 44px control
 * fill it wall to wall. min-height keeps the tap target regardless - this is
 * used one-handed, in a queue.
 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: var(--tap);
    padding: 14px 20px;
    font-family: var(--body);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    border-radius: var(--r);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn--primary { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn--primary:hover, .btn--primary:focus { background: var(--silver); border-color: var(--silver); color: var(--ground); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover, .btn--ghost:focus { color: var(--ink); border-color: var(--silver); }

.btn--split { justify-content: space-between; }

.btn[disabled], .btn--disabled {
    background: var(--surface);
    color: var(--dim);
    border-color: var(--line-strong);
    cursor: not-allowed;
}

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

.field { display: flex; flex-direction: column; gap: 7px; }

/* Field labels borrow the nav's treatment - condensed caps, widely tracked -
   so a form reads as part of the same page rather than as a browser default. */
.field__label {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--muted);
}

.input {
    width: 100%;
    padding: 15px 16px;
    font-family: inherit;
    font-size: 17px;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
}

.input::placeholder { color: var(--dim); }
.input:focus { border-color: var(--line-strong); outline: none; }

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
}

.search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 15px;
    outline: none;
}

/* --- chips ---------------------------------------------------------------- */

.chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }

.chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--silver);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 0;
    cursor: pointer;
}

.chip:hover { color: var(--ink); }
.chip--on { color: var(--ground); background: var(--ink); border-color: var(--ink); }

/* Status marks. Fill, not colour: an inverted block needs attention, an
   outline is fine, a dimmed one was not run. */
.chip--mark { color: var(--ink); border-color: var(--ink); background: transparent; }
.chip--dim  { color: var(--dim); border-color: var(--line); background: transparent; }

/* --- the product grid ------------------------------------------------------
   43% of the catalogue has no photograph (3.669 of 8.481 SKUs), so the card is
   built to read WITHOUT one. A tonal panel carries the class code at size; an
   image is an enhancement, never the layout's backbone.                      */

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

@media (min-width: 420px) { .grid { gap: 14px; } }

/*
 * THE CARD IS NOTHING, as it is on volcom.co.id - no background, no border,
 * no padding, no radius. Their .product-item is literally an image with text
 * under it, and the grid reads as a wall of garments rather than as a wall of
 * boxes.
 *
 * The photograph keeps its panel, though, and that is NOT a half-measure:
 * 3 669 of the 8 481 sellable SKUs have no image at all. On a site where
 * every product has a photo the panel is invisible anyway; here it is what
 * 43% of the grid actually shows, carrying the class code at size. Strip it
 * and nearly half the catalogue becomes holes in the page.
 */
.card {
    display: flex;
    flex-direction: column;
    color: inherit;
}

/* No border to light up, so hover dims the image instead - the same feedback
   their grid gives, and it works on the tonal panel too. */
.card:hover { color: inherit; }
.card:hover .card__thumb { opacity: 0.82; }

/*
 * A SQUARE box, because the files are square.
 *
 * Both sizes the ERP serves are 1:1 - TH is 200x200 and SQ 1892x1892 - so a
 * fixed pixel height was a box of a different shape from its contents, and
 * object-fit had to resolve the difference by cropping. Matching the ratio
 * means nothing is lost at any width, and the tiles keep a consistent shape
 * as the columns change from 2 to 5.
 */
.card__thumb {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    background: var(--tone-1);
    overflow: hidden;
}

.card__thumb--a { background: var(--tone-1); }
.card__thumb--b { background: var(--tone-2); }
.card__thumb--c { background: var(--tone-3); }

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

/*
 * The DETAIL image is shown whole, never cropped.
 *
 * The grid uses object-fit: cover, which is right there - a tile wants a full
 * bleed and a consistent shape, and losing the edges of a garment costs
 * nothing at 190px. On the detail page it is the opposite: this is the one
 * place someone looks at the product properly, and cover was cutting the top
 * and bottom off every portrait photograph.
 *
 * contain letterboxes instead, and the padding keeps the garment off the
 * panel's edges so it does not read as clipped either.
 */
.detail__media img {
    width: 100%;
    height: 100%;
    /* contain rather than cover even though the ratios match: a design whose
       photograph is NOT square still shows whole rather than being trimmed to
       fit the box. */
    object-fit: contain;
    box-sizing: border-box;
}

/* The class code standing in for a photograph. */
.card__code {
    font-family: var(--display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track);
    font-size: 34px;
    line-height: 1;
    color: var(--line-strong);
}

.card__nophoto {
    position: absolute;
    left: 9px;
    bottom: 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--dim);
}

/* Flush left with the image, and no bottom padding: the gap below a card is
   the grid's gap, not a box's. */
.card__body { display: flex; flex-direction: column; gap: 5px; padding: 11px 0 0; }

/*
 * The product name, condensed caps - the single most recognisable thing on a
 * volcom.co.id grid. "FLYING HI CREW FLEECE - ANTIQUE BLACK" is set that way
 * there, and a condensed face is what lets a name that long sit on two lines
 * at a legible size instead of being truncated.
 */
/*
 * NO FIXED HEIGHT.
 *
 * It was 34px - two lines - so that the price rows lined up across a row of
 * cards whatever the names did. The cost was paid by every one-line name:
 * a whole empty line between it and the colour, while every other gap in the
 * card is 5px. Most names here are one line, so most cards showed the fault.
 *
 * Losing the alignment costs little, because the cards are read DOWN a column
 * rather than across a row, and it is what volcom.co.id does - their names
 * run to one or two lines and the price simply follows.
 */
.card__name {
    font-family: var(--display);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--track);
    line-height: 1.22;
}

.card__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }

.swatch {
    display: block;
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.swatch--sm { width: 9px; height: 9px; border-radius: 0; }

/* The price stays in the BODY face. volcom.co.id sets it in DIN rather than
   in the condensed display face, so a figure never reads as a heading. */
.price { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.price__now { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.price__was { font-size: 11px; color: var(--dim); text-decoration: line-through; }

/* Big, but still the BODY face: on volcom.co.id every price is DIN, never
   the condensed display face, so a figure never reads as a heading. */
.price--lg .price__now { font-size: 27px; font-weight: 600; line-height: 1.15; letter-spacing: 0; }
.price--lg .price__was { font-size: 14px; }

/* --- panels --------------------------------------------------------------- */

.panel {
    padding: 15px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
}

.panel--quiet { background: var(--raised); border-radius: 0; padding: 12px 13px; }
.panel--mark  { border-color: var(--line-strong); }

/* Inverted, for the case a reader must not confuse with the other one. */
.panel--invert { background: var(--silver); border-color: var(--silver); color: var(--ground); }
.panel--invert .panel__body { color: #2A2A2D; }

.panel__label {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--muted);
}

/* A label standing above a group rather than inside a panel: it needs the
   same optical gap a panel's own padding gives, or the group floats. */
.section__label { display: block; padding: 6px 2px 2px; }
.panel__title { font-size: 14px; font-weight: 700; }
.panel__body  { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--silver); }

.note { display: flex; gap: 11px; }

/* The hold countdown.                      (cart, checkout - partials/hold-timer)

   Built on .panel--quiet .note so it reads as the page's own furniture rather
   than a widget bolted on, and the states reuse the palette the alerts already
   established: emphasis by BORDER while time is short, and the inverted block
   once it is gone - the same "cannot be told apart by colour alone" rule
   .alert--error and .panel--invert follow. */
.hold__clock {
    /* Tabular figures, or the whole line shuffles sideways once a second as
       the glyph widths change - the sort of movement that pulls the eye away
       from the thing being read. */
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-weight: 600;
}

.hold--warn { border-color: var(--line-strong); }

.hold--gone {
    background: var(--silver);
    border-color: var(--silver);
    color: var(--ground);
}

.hold--gone .panel__body { color: #2A2A2D; }
.hold--gone .hold__reload { color: var(--ground); text-decoration: underline; }
.hold__reload { align-self: flex-start; }
.note svg { flex: 0 0 auto; margin-top: 1px; }

/* Rules, not boxes - the same construction as .orders and .tiles. A list of
   nine bordered cards stacked with a 9px gap reads as nine things; a list
   separated by hairlines reads as one list of nine. */
.rows { display: flex; flex-direction: column; border-top: 1px solid var(--line); }

/*
 * .split and its aside, on a phone.
 *
 * Both only had rules inside the 900px media query, so below that they were
 * plain blocks with no gap at all and their panels butted together - the
 * dashboard's YOU, ALLOWANCE and Sign out sat in one undifferentiated slab.
 * Six pages use this pair, so all six had it.
 *
 * The column IS the mobile layout; the grid at 900px is the special case.
 */
.split {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.split__aside {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/*
   The aside, started level with the column beside it.      (order/show)

   .split sits straight under .hero, which ends in a rule. The main column
   opens with .sect, whose `padding: 26px 0 12px` clears that rule - so its
   heading has air. The aside opens with .panel, which is a BORDERED box with
   no such padding, so its top border landed a pixel or two under the hero's
   and the two lines read as one thick smudge.

   Cart and confirm have the same pair and solve it by dropping the hero rule
   (.hero--flush) - they have nothing below worth separating. This page does:
   the pieces list follows. So the rule stays and the aside gets the air.

   26px is .sect's own top padding, not a number chosen by eye: it puts the
   panel's top border on the same line as the section title across the gap,
   which is the alignment the two-column grid implies. Unchanged at 900px
   because .sect is 26px at every width.

   A MODIFIER, not a rule on .split__aside - six views use that class, and
   only this one opens its aside with a bare panel under a rule.             */
.split__aside--inset { margin-top: 26px; }

.row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: 13px;
}

.row__k { color: var(--muted); }
.row__v { font-weight: 700; }

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

.line {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

/* A .line used OUTSIDE a .rows list - the dashboard's slot row, a single
   standalone item - still needs its own frame, since there is no list around
   it for a hairline to belong to. */
.line--boxed {
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
}

.line__chip {
    display: flex;
    align-items: center;
    justify-content: center;
    /* 56, not 46. It was sized for a three-letter code; it now carries a
       photograph on the one page whose whole job is letting someone check
       they picked the right thing. */
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    font-family: var(--display);
    font-size: 12px;
    color: var(--silver);
    background: var(--tone-2);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
}

/* The photograph fills the chip. cover rather than contain: the box and the
   files are both square, so nothing is cropped, and cover survives a design
   whose photograph is not. */
.line__chip img { width: 100%; height: 100%; object-fit: cover; display: block; }

.line__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.line__name { font-size: 13px; font-weight: 600; }
.line__meta { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.line__amt  { font-size: 13px; font-weight: 700; margin-top: 2px; }

.line__x {
    align-self: flex-start;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--tap);
    height: var(--tap);
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--muted);
    cursor: pointer;
}

.line__x:hover { color: var(--ink); }

/* --- sizes ---------------------------------------------------------------- */

.sizes { display: flex; flex-wrap: wrap; gap: 8px; }

/*
 * A size is a CHIP, not a bar.
 *
 * flex: 1 1 60px made every size share the row, which is right for four of
 * them and absurd for one - a design with a single size left rendered "28" as
 * a 350px slab across the whole column, reading as the page's primary action
 * rather than as a size. They keep a consistent width now however many there
 * are, as on volcom.co.id.
 */
.size {
    flex: 0 0 auto;
    min-width: 78px;
    min-height: 48px;
    padding: 14px 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    cursor: pointer;
}

.size--on  { color: var(--ground); background: var(--ink); border-color: var(--ink); }
.size--out {
    color: #4A4A50;
    background: transparent;
    border-style: dashed;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* --- the collection number ------------------------------------------------
   Inverted to white because it is read off a phone at arm's length, in a
   queue, under warehouse lighting.                                          */

.ticket {
    padding: 24px 20px;
    background: var(--ink);
    border-radius: var(--r-xl);
    color: var(--ground);
    text-align: center;
}

.ticket__label { font-size: 11px; font-weight: 700; letter-spacing: 0.13em; color: var(--dim); }
.ticket__no    { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 42px; line-height: 1.02; letter-spacing: var(--track); margin-top: 7px; }

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

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: #E4E4E8;
    border: 1px solid var(--line-strong);
    border-radius: 0;
}

.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--ink); display: block; }

.muted { color: var(--muted); }
.silver { color: var(--silver); }
.tiny { font-size: 12px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }

/* A stack that opens with a rule.

   On confirm the hero above it is .hero--flush, so the left column had
   nothing separating it from the heading - .rows carries a border-top, but
   that sits BELOW the "3 pieces / Edit" row rather than above it.
   
   A modifier rather than `.split > .stack`, because .stack is a bare utility
   - display:flex and a column - used in a dozen places, and a descendant
   selector would claim every future one. */
.stack--ruled { border-top: 1px solid var(--line); }
.between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.eyebrow {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--muted);
}

.total { font-size: 20px; font-weight: 600; letter-spacing: 0; }

.empty { padding: 56px 20px; text-align: center; color: var(--muted); }

/* An empty list INSIDE a page that has content, rather than an empty page.
   Centred text under a left-aligned section head reads as a different block
   from the rows it stands in for. */
.empty--flush { padding: 26px 0 30px; text-align: left; }

.alert {
    padding: 13px 15px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
}

/* An error has to be distinguishable without colour: it is the inverted one. */
.alert--error { background: var(--silver); border-color: var(--silver); color: var(--ground); font-weight: 600; }

.signin {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding-top: 56px;
    padding-bottom: 24px;
}

.signin__brand { flex: 1 1 auto; }

/* --- footer ---------------------------------------------------------------
   Quiet by design. It carries the two things worth having on every page - what
   this site is, and the way to the things a shopper looks for twice - and
   nothing else. No link farm. */

/*
 * THE FOOTER BAND, the header's mirror: full width, one hairline on the top
 * edge, contents on the column via .foot__inner.
 */
.foot {
    margin-top: auto;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    /* The header's mirror: same surface, same hairline, on the other edge. */
    background: var(--surface);
    border-top: 1px solid var(--line);
}

/* .foot__inner also carries .wrap in the markup, which owns its width. */
.foot__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.foot__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track);
}

/* The sign-out control. A link's weight, not a button's: leaving is not
   something the page should advertise at the same size as shopping. */
.foot__signout {
    align-self: flex-start;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.foot__signout:hover { color: var(--ink); }


@media (min-width: 900px) {
    /*
     * The footer sits on the SAME column as the header and the content.
     *
     * It had 32px of its own padding and no margin, so its rule ran from 8px
     * while the header box and every page started at 24 - the border was
     * wider than the page and the text inside it narrower. Margin puts the
     * rule on the content's edges; no horizontal padding puts the text on
     * them too.
     *
     *   .shell        8px  (its own padding)
     *   .shell__body  24   ( 8 + 16 )
     *   .hud box      24   ( 8 + margin 16 )
     *   .foot         24   ( 8 + margin 16 )
     */
    /* .foot__inner stays a COLUMN - the columns block sits above the base
       row, and turning the wrapper into a row would lay those two side by
       side. Only .foot__base is a row, and it always was. */

}

/* --- stop pages: errors, and a closed sale --------------------------------
   A single column, but sized for the screen it is on rather than left at
   phone width and centred - a 520px block adrift in a 1440px window reads as
   a page that failed to load rather than one telling you something.        */

.stop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 70vh;
    padding-top: 40px;
    padding-bottom: 40px;
    max-width: 560px;
}

/* The status code on an error page. Condensed caps carry a figure this
   large without it becoming the only thing on the screen. */
.stop__code  { font-family: var(--display); font-weight: 700; font-size: 80px; line-height: 0.88; letter-spacing: var(--track); color: var(--line-strong); }
.stop__title { margin-top: 12px; }
.stop__body  { margin: 10px 0 0; }
.stop__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; max-width: 320px; }

@media (min-width: 900px) {
    /*
     * ON THE CONTENT COLUMN, not centred in the window.
     *
     * margin:0 auto put a 720px block in the middle of a 1180px page while
     * the header's brand and the footer's first column sat at the left edge -
     * so the one element on screen was visibly not lined up with the two
     * bands framing it. Every other page's hero is a left-aligned column of
     * about this width; an error page is not a special case.
     */
    .stop {
        min-height: 78vh;
        max-width: 720px;
    }

    /* The numeral carries the page at this size; at 72px it was a caption. */
    .stop__code { font-size: 132px; }

    .stop__title { font-size: 38px; }
    .stop__body  { font-size: 16px; max-width: 520px; }

    .stop__actions { flex-direction: row; max-width: none; }
    .stop__actions .btn { width: auto; min-width: 180px; }
}

/* --- list pages ------------------------------------------------------------
   Orders, health, the outbox and the pickup queue are a single column of rows.
   Left alone they stretched to the full 1180px shell, which is not a desktop
   layout - it is the phone layout with the rows pulled apart until the name
   and the chevron are a hand's width from each other.

   Two things fix it: a readable measure, and rows that actually use the width
   they are given instead of stacking as though the screen were 390px.         */

.page--list { max-width: 100%; }

@media (min-width: 900px) {
    .page--list { max-width: 900px; }

    /* The stacked mobile row becomes a real row: name, then the detail and
       the figure ranged right where the eye can compare them down the column. */
    .rows--table .line__main {
        flex-direction: row;
        align-items: center;
        gap: 18px;
    }

    .rows--table .line__name { flex: 1 1 auto; min-width: 0; }
    .rows--table .line__meta { flex: 0 1 auto; display: block; }

    .rows--table .line__amt {
        flex: 0 0 auto;
        margin-top: 0;
        min-width: 120px;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }
}

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

.pager {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 8px 0 4px;
}

.pager__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.pager__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--silver);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}

.pager__btn:hover { color: var(--ink); border-color: var(--line-strong); }

.pager__btn--on  { color: var(--ground); background: var(--ink); border-color: var(--ink); }
.pager__btn--off { color: var(--dim); background: transparent; border-color: var(--line); cursor: not-allowed; }

.pager__gap { display: inline-flex; align-items: center; height: 40px; padding: 0 4px; color: var(--dim); }

.pager__count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
    .pager { flex-direction: row; justify-content: space-between; padding: 14px 0 4px; }
    .pager__links { justify-content: flex-start; }
}

/* --- filters ---------------------------------------------------------------
   A dropdown that OVERLAYS. The flat list made the sidebar thousands of pixels
   tall - 432 colours - so opening a facet used to push the grid off the bottom
   of the page. The panel is absolutely positioned and scrolls inside itself,
   so the page height never changes.                                          */

/*
 * On a phone the panel is anchored to the FILTER ROW, not to the chip that
 * opened it.
 *
 * Anchored to the chip, a dropdown sitting near the right edge opened a 268px
 * panel off the side of a 390px screen and the options were simply gone. The
 * chips also wrap, so which ones are near the edge changes with the label
 * lengths - there is no chip that is reliably safe.
 *
 * Dropping the panel below the whole row instead makes it predictable: the
 * same place every time, full width, never clipped.
 */
.filters { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Air between the controls and what they control. On a phone the filter row
   sat straight on top of the result count, so the two read as one block and
   it was not obvious which part was doing the filtering. */
/* Clear of the header above it.

   .layout sat flush against the rule under .hero--tight, so the filters read
   as part of the page header rather than as the first thing in the results
   region. The dashboard's .tiles DO sit flush there deliberately - they are
   cells sharing a rule - but filters and a grid are a different kind of
   content and want air. Catalogue-only: .layout is used by one view. */
.layout { margin-top: 22px; }

.layout__side { margin-bottom: 22px; }

.filters .search { flex: 1 1 200px; min-width: 0; }

.dd { position: static; flex: 0 0 auto; }

/* --- applied filters ------------------------------------------------------
   The pills above the results. Each removes only itself: a single Clear all
   is no help when four filters are on and one of them is wrong.            */

.applied {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
}

.applied__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ground);
    background: var(--ink);
    border-radius: 0;
}

.applied__pill:hover { color: var(--ground); background: var(--silver); }

/* Which filter it came from, so "Black" and "MEN" are not two unlabelled
   words sitting next to each other. */
.applied__group {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
}

.applied__clear {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line-strong);
    border-radius: 0;
}

.applied__clear:hover { color: var(--ink); border-color: var(--silver); }

.dd__summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--silver);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.dd__summary::-webkit-details-marker { display: none; }
.dd__summary:hover { color: var(--ink); }

.dd[open] > .dd__summary { color: var(--ground); background: var(--ink); border-color: var(--ink); }

.dd__caret { font-size: 10px; opacity: 0.7; }

.dd__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ground);
    background: var(--ink);
    border-radius: 0;
}

.dd[open] > .dd__summary .dd__badge { color: var(--ink); background: var(--ground); }

.dd__panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

/* The list scrolls inside the panel, so 432 colours cost 280px of screen
   rather than 20 000. */
.dd__scroll { max-height: 280px; overflow-y: auto; padding: 6px; }

.dd__foot { padding: 8px; border-top: 1px solid var(--line); }

.opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--r-sm);
    cursor: pointer;
    min-height: 38px;
}

.opt:hover { background: var(--raised); }

.opt input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: #FFFFFF; cursor: pointer; }

.opt__label { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt__n     { flex: 0 0 auto; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
    /* In the sidebar the dropdowns stack, and the panel opens beside them so
       it never covers the control that opened it. */
    .filters { flex-direction: column; align-items: stretch; }
    .filters .search { flex: 0 0 auto; }
    /* In the sidebar each dropdown owns its panel again: the column is
       narrow, so there is no edge to fall off. */
    .dd { position: relative; }

    .dd__summary { width: 100%; justify-content: space-between; border-radius: var(--r-sm); }

    .dd__panel { top: calc(100% + 6px); left: 0; right: auto; width: 100%; min-width: 240px; }
}

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

/* ===========================================================================
   DESKTOP
   ---------------------------------------------------------------------------
   The screens above are the phone layout and the phone layout was built
   first, deliberately: employees shop during a three-hour departmental slot,
   most of them on a handset. But a 480px column centred in a 1440px window is
   not "mobile-first", it is unfinished - it wastes the space a desktop
   actually has and makes the catalogue, which is the whole point, scroll four
   times longer than it needs to.

   So the layout changes shape rather than merely stretching:

     the HUD          a bottom bar on a phone, a top bar on a desktop, where
                      the thumb is not the constraint
     facets           a horizontal chip rail becomes a real sidebar
     the grid         2 columns becomes 3, 4, then 5
     product & cart   one column becomes two, so the action is never below
                      the fold

   Breakpoints are named for what they are for, not for devices: 640 is where
   two columns stop being cramped, 900 is where a sidebar earns its width.
   =========================================================================== */

@media (min-width: 640px) {
    body { font-size: 15.5px; }

    .shell { max-width: 720px; }
    .grid  { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

    .card__code  { font-size: 36px; }
    .card__name  { font-size: 13.5px; }
}

@media (min-width: 900px) {

    .shell {
        max-width: 1180px;
        padding: 0 8px;
    }

    .shell__body { padding: 0 16px 40px; }

    /* --- the top bar replaces the phone HUD ------------------------------ */

    /*
     * The header box sits on the SAME column as the content.
     *
     * .shell pads 8px and .shell__body another 16px, so a header spanning the
     * shell's inner edge was 16px wider on each side than everything below
     * it - close enough to look like a mistake rather than a choice. The
     * margin puts its edges on the content's edges.
     */
    .wrap { max-width: 1180px; padding: 0 24px; }

    .announce { padding: 9px 24px; font-size: 12px; }

    /*
     * The band sticks; its rule runs the full width of the window. Only the
     * inner column is constrained, so the hairline is continuous and the nav
     * still lines up with the catalogue beneath it.
     */
    .hud {
        position: sticky;
        top: 0;
        z-index: 20;
        margin-bottom: 14px;
    }

    .hud__inner {
        gap: 20px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .hud__brand { font-size: 15px; }

    /* The desktop copy of the cart, which the phone hides in favour of the
       bottom bar. Only one is ever in the accessibility tree. */
    .hud__inner > .hud__desk-cart {
        display: inline-flex;
        min-height: 40px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .hud__row { flex: 0 0 auto; gap: 28px; align-items: center; }

    /* The meter is a phone affordance: on a desktop the numbers are already
       readable and a full-width rule under them reads as a page divider. */
    .hud .meter { display: none; }


    /* --- sidebar + grid --------------------------------------------------- */

    .layout {
        /* 28 against 22: the hero's own padding grows here too, so the same
           gap would read as tighter next to it. */
        margin-top: 28px;
        display: grid;
        grid-template-columns: 224px minmax(0, 1fr);
        /* 40, not 28: at 28 the dropdown summaries and the first column of
           cards read as one run of boxes rather than two regions. */
        gap: 40px;
        align-items: start;
    }

    .layout__side {
        position: sticky;
        top: 88px;
        display: flex;
        flex-direction: column;
        gap: 18px;
        /* The mobile separation is the grid gap's job here. */
        margin-bottom: 0;
    }

    /* The chip rail becomes a list. Same markup, same links - a horizontal
       scroller on a mouse is a worse control than a column. */
    .chips {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        overflow: visible;
    }

    .chip {
        justify-content: flex-start;
        text-align: left;
        padding: 8px 12px;
        border: 0;
        border-radius: var(--r-sm);
        background: transparent;
    }

    .chip:hover { background: var(--surface); }
    .chip--on   { background: var(--ink); color: var(--ground); }

    .chips__label {
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.1em;
        color: var(--muted);
        padding: 0 12px 4px;
    }

    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

    .card__code  { font-size: 42px; }

    /* --- the bottom bar is a phone thing --------------------------------- */

    .bar--mobile { display: none; }

    .bar {
        position: static;
        padding: 0;
        background: transparent;
        border-top: 0;
    }

    /* --- product: image beside the detail, so Add is never below the fold - */

    .detail {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 36px;
        align-items: start;
        padding-top: 8px;
    }

    .detail__media { height: auto !important; }
    .detail__media .card__code { font-size: 120px !important; }
    .detail__body { padding-top: 0 !important; }

    /* --- cart and checkout: lines beside the summary ---------------------- */

    .split {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 28px;
        align-items: start;
    }

    .split__aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }

    /* --- the single-column screens stay single, just centred ------------- */

    .shell--narrow { max-width: 460px; }

    /* Login reads as a card rather than a page that forgot to fill itself. */
    .signin {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 420px;
        gap: 64px;
        align-items: center;
        /* Not 100vh: the shell is a flex column with a footer under this, and
           a hard viewport height would push the footer out of reach. */
        min-height: 78vh;
        max-width: 1040px;
        margin: 0 auto;
        padding: 0 24px;
    }

    
    .signin__form { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); }
}

/*
 * FOUR ACROSS, and no more.
 *
 * The grid went to five at 1200px, which on a 1180px shell made each card
 * about 215px - narrower than the three-across phone-to-tablet step, so the
 * photographs got SMALLER as the window got bigger. Four is where a garment
 * is still worth looking at, and it is what volcom.co.id runs.
 */

/* A mouse gets hover feedback a finger never will. */
@media (hover: hover) {
    /* No lift. A card with no edges has nothing to lift off, and the
       translate made the text jump under the cursor. */
    .card__thumb { transition: opacity 120ms ease; }
    .size:hover:not(.size--out) { border-color: var(--silver); }
}


/* ===========================================================================
   VOLCOM.CO.ID LAYOUT PATTERNS
   ---------------------------------------------------------------------------
   Three structures lifted from the public site, all of them built out of
   1px rules rather than boxes.

   That is the substance of the difference. The storefront was panels: every
   group of anything sat in its own bordered, padded, rounded container, so a
   page read as a stack of cards. volcom.co.id draws almost nothing - content
   sits on the ground and is separated by hairlines. It is quieter, and it
   lets the one thing that IS drawn (the hero, a button) actually carry.
   =========================================================================== */

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

/*
 * One statement at the top of the page, the way their campaign banner works.
 *
 * The period's name set as large as it will go, because on a site with a
 * single purpose the name of the thing that is open IS the page's headline.
 */
.hero {
    padding: 30px 0 26px;
    border-bottom: 1px solid var(--line);
}

/*
    A hero with nothing to divide it from.

    The rule under .hero separates a page's opening statement from the content
    below it. On the cart and on confirm there is no such content to separate -
    the next thing is already a bordered block, so the two lines sit a few
    pixels apart and read as a mistake rather than as structure.
*/
.hero--flush {
    border-bottom: 0;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--display);
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--muted);
}

.hero__title { margin: 10px 0 0; }

.hero__meta {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--silver);
    max-width: 52ch;
}

.hero__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

/* For a page whose job is the content directly beneath it. The catalogue
   needs a heading, not a landing area - 46px of chrome would push the first
   row of garments off a laptop screen. */
.hero--tight { padding: 20px 0 16px; }
.hero--tight .hero__title { margin-top: 4px; line-height: 1; }

@media (min-width: 900px) {
    .hero { padding: 46px 0 40px; }
    .hero--tight { padding: 26px 0 20px; }
    .hero__actions { flex-direction: row; }
    .hero__actions .btn { width: auto; min-width: 230px; }
}

/* --- tiles ---------------------------------------------------------------- */

/*
 * A row of figures under the hero. The 1px gap on a --line background is the
 * whole border: cells share their rules instead of each drawing its own, so
 * three tiles have three rules between them rather than twelve around them.
 *
 * FLEX, not a fixed grid.
 *
 * A grid of four columns leaves a hole when there are three tiles - and the
 * hole is not empty, it is a strip of the --line background showing through
 * where a cell should be, which reads as a rendering fault rather than as
 * space. The allowance tile is conditional (a guest has no quota), so three
 * is a real case and not a hypothetical.
 *
 * flex: 1 1 <basis> makes whatever tiles exist share the row, so the section
 * is always filled whatever it holds.
 */
.tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}

.tile { flex: 1 1 150px; background: var(--ground); padding: 18px 16px; min-width: 0; }

.tile__label {
    font-family: var(--display);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    color: var(--muted);
}

.tile__value {
    display: block;
    margin-top: 7px;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: var(--track);
    font-variant-numeric: tabular-nums;
}

.tile__of { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.tile__note { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }

@media (min-width: 900px) {
    .tile { flex-basis: 200px; padding: 22px 20px; }
}

/* --- section heads -------------------------------------------------------- */

.sect {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 0 12px;
}

.sect__title {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track);
}

.sect__link { font-size: 12px; color: var(--muted); }
.sect__link:hover { color: var(--ink); }

/* --- order rows ----------------------------------------------------------- */

/*
 * The orders list, as rules rather than as chips in boxes.
 *
 * The document number leads in the display face because it is the one thing
 * someone is scanning for - they arrive here holding a number, from the
 * receipt e-mail or from the counter, and everything else on the row is
 * confirmation once they have found it.
 */
.orders { border-top: 1px solid var(--line); }

.order {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "no     status"
        "meta   meta"
        "amt    amt";
    gap: 5px 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--silver);
}

.order:hover { color: var(--ink); background: var(--tone-1); }

.order__no {
    grid-area: no;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track);
    color: var(--ink);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order__meta { grid-area: meta; font-size: 12px; color: var(--muted); }

.order__amt {
    grid-area: amt;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/*
 * The state, as a square outlined cap.
 *
 * No colour, deliberately: this palette has none, and a state that is only
 * told apart by hue is invisible on the warehouse's washed-out screens. The
 * one state that must never be misread - a completed purchase - inverts to a
 * filled block instead, which survives greyscale and a monochrome print.
 */
.order__status {
    grid-area: status;
    align-self: start;
    padding: 4px 9px;
    font-family: var(--display);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
    white-space: nowrap;
    color: var(--silver);
    border: 1px solid var(--line-strong);
}

.order__status--done { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.order__status--off  { color: var(--dim); border-style: dashed; }

@media (min-width: 900px) {
    .order {
        grid-template-columns: minmax(0, 1fr) 190px 130px 120px;
        grid-template-areas: "no meta amt status";
        align-items: center;
        gap: 0 20px;
        padding: 18px 12px;
        margin: 0 -12px;
    }

    .order__meta   { text-align: left; }
    .order__amt    { text-align: right; }
    .order__status { justify-self: end; align-self: center; }
}

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

/*
 * Columns with condensed-caps headings, as volcom.co.id runs its own
 * (TENTANG VOLCOM / BANTUAN / BERGABUNG DENGAN VOLCOM).
 *
 * Their columns are a link farm because a public shop has a hundred pages.
 * This one has six, so the third column carries the sentence people actually
 * need instead - what happens to the money - rather than padding the list
 * out to look like theirs.
 *
 * SPACE-BETWEEN, not a fixed grid, for the same reason .tiles is flex: the
 * columns are conditional. Staff only appears for warehouse and admin, and
 * Account only when signed in, so a four-column grid left a signed-in shopper
 * with an empty fourth cell and the last real column stranded mid-page.
 *
 * Between means the first column starts on the content's left edge and the
 * last ends on its right, whether there are two of them or four.
 */
.foot__cols {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 26px 32px;
    padding: 30px 0 26px;
}

.foot__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    flex: 0 1 auto;
    max-width: 300px;
}

.foot__head {
    font-family: var(--display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--track);
    color: var(--ink);
}

.foot__col a { font-size: 13px; color: var(--muted); }
.foot__col a:hover { color: var(--ink); }
.foot__col p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }

/* Even above and below. It was 16 over 22 - the extra at the bottom was
   paying for a safe-area inset that .foot already handles, so on a desktop it
   simply sat low in its own rule. */
.foot__base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

.foot__copy { font-size: 12px; color: var(--dim); }

@media (min-width: 900px) {
    .foot__cols { gap: 24px 40px; padding: 40px 0 32px; }
    /* Wide enough for the prose column, narrow enough that three of them
       still reach both edges. */
    .foot__col { max-width: 320px; }
}

/* The product name on its own page. Bigger than an h1 elsewhere, because
   here it IS the page - but not .h-hero, which would put a four-word garment
   name across three lines. */
.detail__title {
    margin-top: 5px;
    font-size: 34px;
    line-height: 1.02;
}

@media (min-width: 900px) {
    .detail__title { font-size: 46px; }
}

/* --- a summary under a list ----------------------------------------------- */

/*
 * The figures that close a list of rows - subtotal lines, then the total.
 *
 * Continues the list's own hairlines rather than sitting in a panel beside
 * it: the total is the last row of the thing above it, not a separate object,
 * and boxing it made the cart's most important number the one element on the
 * page that looked detached from what it was totalling.
 */
.sum { display: flex; flex-direction: column; }

.sum__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--line);
}

.sum__row--total {
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 0;
}

/* The outbox's error text. Monospace and unclipped: it is the only thing on
   the row anyone reads, and a truncated stack trace is worse than none -
   people paste these into a ticket. */
.outbox__err {
    display: block;
    margin-top: 4px;
    font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace;
    font-size: 11px;
    line-height: 1.5;
    color: var(--silver);
    word-break: break-word;
}

/* A staff row carries prose rather than a quantity, so it needs the width a
   shopper's amount column was holding. */
@media (min-width: 900px) {
    .orders--wide .order { grid-template-columns: minmax(0, 260px) minmax(0, 1fr) 0 120px; }
}

/* The scan mark on the pickup screen. Square, like everything else, and told
   by FILL rather than by colour - this is read on a warehouse terminal whose
   screen washes hue out entirely. */
.tick {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 auto;
    color: var(--ground);
    border: 1px solid var(--line-strong);
}

.tick--on { background: var(--ink); border-color: var(--ink); }


/* --- the done page's action block ----------------------------------------

   /checkout/{id}/done reuses .bar for its "Keep shopping" button, but it is
   not a sticky action bar there - it is the last thing on the page, and the
   footer begins immediately under it.

   That matters because the desktop rule at (min-width: 900px) sets
   `.bar { padding: 0 }`, so on a wide screen the button and the "emailed to
   you" line sat flush against the footer's top edge with nothing between them.

   Declared HERE, after that media query, because both selectors are a single
   class and the later one wins - put this next to .bar and the media query
   would simply undo it. padding-bottom alone, so the mobile bar keeps its own
   horizontal padding, and the safe-area allowance is kept rather than
   discarded on a notched phone. */
.bar--done {
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
}


/* --- confirm dialog, and the wait that follows it -------------------------

   Placing an order is the one irreversible thing a shopper can do here: a
   completed tb_int_sale_trans cannot be reversed by this application at all,
   because the ERP has no path for it. So it asks first.

   And then it waits, visibly. create_int_sale_order_trf raises three ERP
   documents inside one transaction and has been measured at 95 seconds under
   load. Without a busy state that is a page which appears to have died, and
   the natural response is to click again - which is exactly how two orders
   were posted twice on 2026-10-07. */

.modal {
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r);
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.modal__body {
    padding: 26px 24px 22px;
}

.modal__title {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--track-wide);
}

.modal__text {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--silver);
}

.modal__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 24px 24px;
}

/* Wide enough for two: confirm on the right, where the thumb is not. */
@media (min-width: 420px) {
    .modal__actions {
        flex-direction: row-reverse;
    }

    .modal__actions .btn {
        width: auto;
        flex: 1 1 0;
    }
}

/* --- busy ---------------------------------------------------------------

   A disabled button still has to read as the same control, so it keeps its
   size and only loses contrast. aria-busy carries the state for a screen
   reader; the spinner carries it for everyone else. */

.btn[disabled],
.btn[aria-disabled="true"] {
    cursor: progress;
    opacity: 0.6;
}

.spinner {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Honour a stated preference against motion: the spin is decoration, the
   change of state is not, so the shape stays and only the movement goes. */
@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation-duration: 2.4s;
    }
}


/* --- "add to cart", on the chip that does it ------------------------------

   A size chip IS the add button - one form per size, because without
   JavaScript a picker cannot tell a separate button what it chose. At 78px
   wide and reading "M / 8 left" it looked like a selector, so people chose a
   size and then went hunting for the button that would add it.

   Small and uppercase rather than loud: the size is still the thing being
   chosen, and eight chips each shouting ADD TO CART would be worse than the
   silence it replaces. */
.size__add {
    display: block;
    margin-top: 3px;
    font-family: var(--display);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: var(--track-wide);
    text-transform: uppercase;
    color: var(--silver);
}

.size:hover .size__add { color: var(--ink); }


/* --- how many of this line ------------------------------------------------

   The quantity was buried mid-sentence in .line__meta, at 11.5px in --muted
   and the same weight as the size next to it. The cart is the one page where
   somebody verifies they have the right NUMBER of the right thing, so it gets
   its own column at the right, in the display face at twice the size.

   Right-aligned and tabular so the figures stack into a readable column down
   the list; baseline-aligned with the unit so "12 pcs" does not look like two
   separate things. */
.line__qty {
    flex: 0 0 auto;
    align-self: center;
    display: flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    min-width: 62px;
    font-family: var(--display);
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--ink);
}

/* Fixed width, left-aligned, because "PC" is narrower than "PCS" - without it
   a right-aligned group puts the digits of a 1-piece line 6px further right
   than every other, and the column stops being a column. Measured. */
.line__qty-unit {
    min-width: 26px;
    text-align: left;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: var(--track-wide);
    text-transform: uppercase;
    color: var(--muted);
}
