/* ==========================================================================
   MONOS — main stylesheet
   Everything below the fold. Loaded without blocking the first paint;
   the critical sheet has already drawn the top of the page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section scaffolding
   -------------------------------------------------------------------------- */
.section { padding-block: var(--s8); border-bottom: 1px solid var(--hair); }
.sechead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
  margin-bottom: var(--s6);
}
.sechead__left { display: flex; flex-direction: column; gap: var(--s3); }
.sechead__meta { display: flex; gap: var(--s3); color: var(--fg-mute); }
.sechead p.sechead__desc { color: var(--fg-mute); max-width: 36ch; font-size: var(--t-small); }

/* --------------------------------------------------------------------------
   FILTER STRIP
   The Clothing/Accessories question answered as layout rather than as
   navigation: one Armoury, filtered in place. No separate browse paths
   for a catalogue this size, and the taxonomy and its URLs are untouched.
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s5);
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--hair);
}
.filters__label { color: var(--fg-mute); margin-right: var(--s3); }
.filter {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  padding: 6px var(--s4);
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.filter:hover { border-color: var(--fg); }
/* The active state inverts rather than taking the accent: this section
   has already spent its accent on the artwork tile and the Add control. */
.filter[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* --------------------------------------------------------------------------
   PRODUCT GRID
   Even, quiet, every product weighted the same. Two other treatments (a
   spec-sheet index and a horizontal rail) were built and compared during
   design; the grid was chosen and they were removed rather than carried.
   -------------------------------------------------------------------------- */
.display--cards {
  display: grid;
  /* minmax(0, …), not 1fr: a plain 1fr floors at min-content, so one long
     product name would widen its whole column. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* Tight columns, looser rows: at a uniform 12px the caption of one row
     sits as close to the image below it as to its own. */
  column-gap: var(--s3);
  row-gap: var(--s6);
}


.card { display: flex; flex-direction: column; gap: var(--s3); height: 100%; }
.card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-tile);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms var(--ease);
}
.card:hover .card__media img { transform: scale(1.025); }

.card__corner {
  position: absolute;
  top: var(--s3);
  left: var(--s3);
  z-index: 2;
  color: var(--fg-mute);
}
/* The one accent on a card, and only on hover. */
.card__add {
  position: absolute;
  right: var(--s3);
  bottom: var(--s3);
  z-index: 2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.card:hover .card__add,
.card:focus-within .card__add { opacity: 1; transform: none; }

.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.card__name { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.012em; }
.card__brand { color: var(--fg-mute); }
.card__spec {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--hair);
}
.card__sizes { color: var(--fg-mute); }
.card__price { font-family: var(--font-mono); font-size: var(--t-micro); font-weight: 500; letter-spacing: 0.04em; }


/* --------------------------------------------------------------------------
   BRAND BAND
   The artwork keeps its own 4:3 — the crosshair and the splash are the
   composition and a full-bleed strip would cut both — and the copy sits
   beside it on the band's own ground.
   -------------------------------------------------------------------------- */
.band {
  position: relative;
  background: var(--art-matte);
  border-block: 1px solid rgba(239, 239, 236, 0.1);
}

/* The artwork fades ITSELF, with a mask, rather than having a panel laid
   over it.

   The panel could not win. A strip of gradient has to end somewhere, and
   wherever it ends it meets the solid panel; tilt that boundary and the
   top-right corner is the last point to reach full opacity — at 110deg it
   was only ~92% opaque where it met the panel, and that was the edge
   showing. Pushing the fade deeper to bury it meant covering more of the
   image. No value satisfied both.

   Masking the art removes the join: there is no second layer to align, the
   art simply stops existing, and the band's own ground is what the copy
   sits on. The fade can be as deep or as shallow as it likes and a seam is
   not possible. */
.band__art {
  position: relative;
  /* Wider than where the fade finishes, so the art's own right edge is
     always inside the transparent region and never shows as a line. */
  width: 72%;
  aspect-ratio: 4 / 3;
  overflow: hidden;

  /* 44/76, not 52/86. The art box's TOP-RIGHT corner is the last point
     the mask reaches: at 52/86 it was still 22% opaque there, so the box's
     own right edge showed as a line at the top. These are the shallowest
     stops that take that corner to zero — the fade moves left only as far
     as it has to. */
  -webkit-mask-image: linear-gradient(110deg, #000 44%, transparent 76%);
  mask-image: linear-gradient(110deg, #000 44%, transparent 76%);
}

/* The series. Stacked, one visible; the rest are painted but transparent,
   which is what makes the change a cross-fade rather than a swap. */
.band__shot {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 1200ms var(--ease);
}
.band__shot.is-active { opacity: 1; }
.band__img { width: 100%; height: 100%; object-fit: cover; }

.band__tag {
  position: absolute;
  left: var(--s5);
  top: var(--s5);
  z-index: 2;
  color: rgba(239, 239, 236, 0.72);
}

.band__copy {
  position: absolute;
  inset-block: 0;
  right: 0;
  /* Narrow enough that the text begins past where the fade has finished at
     every height, so it never sits on dissolving artwork. */
  width: 36%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s5);
  padding: var(--s7) var(--gutter);
  /* No background of its own: the band's ground is behind it. One surface,
     so nothing can disagree with anything. */
  color: #efefec;
}

.band__kicker { display: flex; flex-wrap: wrap; gap: var(--s3); color: rgba(239, 239, 236, 0.7); }
.band__text { display: flex; flex-direction: column; gap: var(--s4); color: rgba(239, 239, 236, 0.82); }
.band__copy .h-display { color: #efefec; }

@media (prefers-reduced-motion: reduce) {
  /* The script also stops advancing; this covers the paint. */
  .band__shot { transition: none; }
}

@media (max-width: 1000px) {
  /* Stacked: the art full width at its own ratio with no mask — there is
     nothing beside it to fade into — and the copy below it. */
  .band { display: flex; flex-direction: column; }
  .band__art {
    width: 100%;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .band__copy {
    position: static;
    width: 100%;
    padding: var(--s7) var(--gutter);
  }
}

/* --------------------------------------------------------------------------
   COLLABORATIONS — secondary by construction.
   The house line gets the grid; collaborations get a LIST. One row per
   collaboration: so a second and third are content entries rather than a
   redesign, and so no collaboration can ever outweigh the Monos line.
   Each row links out to /brand/{slug}/, where its full story lives.
   -------------------------------------------------------------------------- */
.collabs {
  background: var(--bg-panel);
  border-block: 1px solid var(--hair);
  padding-block: var(--s8);
}
.collab-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s6) var(--s8);
  align-items: start;
  padding-block: var(--s6);
  border-top: 1px solid var(--hair);
}
.collab-row:last-child { padding-bottom: 0; }
.collab-row__copy { display: flex; flex-direction: column; gap: var(--s4); max-width: 40rem; }
.collab-row__meta { display: flex; flex-wrap: wrap; gap: var(--s3); color: var(--fg-mute); }
.collab-row__text { color: var(--fg-mute); font-size: var(--t-small); max-width: 48ch; }
.collab-row__actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* The product strip is a glance, not a grid — three small plates, no
   names or prices. The detail belongs on the collaboration page. */
.collab-row__strip { display: flex; gap: var(--s2); }
.collab-row__strip .thumb {
  width: clamp(72px, 9vw, 104px);
  aspect-ratio: 1;
  background: var(--bg-tile);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}
.collab-row__strip .thumb img { width: 100%; height: 100%; object-fit: cover; }
.collab-row__aside { display: flex; flex-direction: column; gap: var(--s3); align-items: flex-end; }


/* --------------------------------------------------------------------------
   FOOTER — the one accent-ground block on the page.
   It works here because it is terminal: nothing competes with it, and the
   page has otherwise spent the accent twice at most. Type is ink, never
   paper — white on acid is 1.2:1 and white on the orange is 3.1:1.
   -------------------------------------------------------------------------- */
.footer {
  background: var(--accent);
  color: var(--on-accent);
  /* Shorter than it was. This used to open on --s8 and carry a four-track
     grid; with one brand block, one icon and a row of policy links there
     is nothing to fill that height with but air. */
  padding-block: var(--s6) var(--s4);
}

/* Wordmark left, profiles right, one row. */
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.footer .logotype { color: var(--on-accent); }

.footer__social { display: flex; align-items: center; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.footer__icon {
  display: grid;
  place-items: center;
  width: var(--control-h);
  height: var(--control-h);
  border-radius: var(--radius-pill);
  color: var(--on-accent-mute);
  transition: color var(--dur) var(--ease);
}
.footer__icon .icon { width: 19px; height: 19px; }
.footer__icon:hover { color: var(--on-accent); }
/* The fallback for a profile with no glyph: a word, padded to the same
   height so it sits on the same line as the icons beside it. */
.footer__icon--word {
  width: auto;
  padding-inline: var(--s3);
  font-size: var(--t-small);
}

/* The bottom row: copyright, then the pages the store is required to carry,
   one centred group. No type of its own — it inherits .micro from the row,
   so the links are set like the copyright beside them rather than reading
   as a second, louder thing on the same line. */
.footer__legal {
  display: flex;
  justify-content: center;
  align-items: baseline;
  text-align: center;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  margin-top: var(--s5);
  padding-top: var(--s4);
  /* Ink at 42%, not the currentColor hairline: 16% ink on acid is invisible. */
  border-top: 1px solid var(--on-accent-hair-strong);
  color: var(--on-accent-mute);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__links a {
  color: var(--on-accent-mute);
  transition: color var(--dur) var(--ease);
}
.footer__links a:hover { color: var(--on-accent); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero { min-height: min(76vh, 680px); }
  .hero__tag { display: none; }
}

@media (max-width: 860px) {
  .collab-row { grid-template-columns: 1fr; gap: var(--s5); }
  .collab-row__aside { align-items: flex-start; }
}

@media (max-width: 1100px) {
  .display--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band { grid-template-columns: 1fr; }
  /* Stacked: the image keeps its own 4:3 instead of a viewport height. */
  .band__art { min-height: 0; aspect-ratio: 4 / 3; }
  .band__copy { max-width: none; padding-block: var(--s7); }
}

@media (max-width: 720px) {
  .display--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s2); row-gap: var(--s5); }
  /* The index drops to thumb + name + price; sizes and category go. */
  .section { padding-block: var(--s7); }
  .card__sizes { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  /* Autoplay is also suppressed in script; this covers the paint. */
  .hero__media video { display: none; }
}

/* ==========================================================================
   PAGES OTHER THAN HOME
   The header is fixed, so anything without a hero starts underneath it.
   ========================================================================== */
.page { padding-top: var(--masthead-h); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  align-items: center;
  padding-block: var(--s5);
  color: var(--fg-mute);
  border-bottom: 1px solid var(--hair);
}
.crumbs a:hover { color: var(--fg); }
.crumbs span[aria-current] { color: var(--fg); }

/* --------------------------------------------------------------------------
   PRODUCT
   -------------------------------------------------------------------------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(var(--s5), 4vw, var(--s8));
  padding-block: var(--s7) var(--s8);
  align-items: start;
}
/* Two children on desktop: the gallery, and ONE column holding the head and
   the detail together. They have to be a single element to stick as a
   single element — position: sticky pins one box, so when the head was its
   own grid item the title scrolled away and only the detail below it
   stayed. */
.pdp__gallery { grid-column: 1; }
.pdp__col {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  /* Pin from the top of the column, so the eyebrow, the title and the
     price stay visible with everything under them. */
  position: sticky;
  top: calc(var(--masthead-h) + var(--s5));
  /* Without this the column stretches to the gallery's height and there is
     nothing left to stick. */
  align-self: start;
}
.pdp__head { display: flex; flex-direction: column; gap: var(--s3); }
/* One image per row rather than a thumbnail strip: the accessories have
   three to six real photographs and they are the only chance to show the
   product properly. */
.pdp__gallery { display: flex; flex-direction: column; gap: var(--s3); }
.pdp__shot {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-tile);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}
.pdp__shot img { width: 100%; height: 100%; object-fit: cover; }
.pdp__shot .micro {
  position: absolute;
  left: var(--s3);
  top: var(--s3);
  color: var(--fg-mute);
}

/* Sticky, so the price and the buy control stay reachable while the
   gallery scrolls past. */
/* The column does the sticking now; this is just a stack. */
.pdp__detail {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.pdp__meta { display: flex; flex-wrap: wrap; gap: var(--s3); color: var(--fg-mute); }
.pdp__name { font-size: clamp(1.75rem, 2.8vw, 2.5rem); font-weight: 600; line-height: 1.06; letter-spacing: var(--track-display); }
.pdp__price { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 500; letter-spacing: 0.02em; }
.pdp__short { color: var(--fg-mute); }

.sizes { display: flex; flex-direction: column; gap: var(--s3); }
.sizes__row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.size {
  min-width: 3.25rem;
  padding: 9px var(--s3);
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.size:hover { border-color: var(--fg); }
.size[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* The page's single accent moment. */
.buy {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: var(--s4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.buy:hover { background: var(--fg); color: var(--bg); }

.specs { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.specs__row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: var(--s4);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--hair);
}
.specs__row dt { color: var(--fg-mute); }
.specs__row dd { margin: 0; }

.disc { border-bottom: 1px solid var(--hair); }
.disc summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  padding-block: var(--s4);
  cursor: pointer;
  list-style: none;
}
.disc summary::-webkit-details-marker { display: none; }
.disc summary::after { content: "+"; font-family: var(--font-mono); color: var(--fg-mute); }
.disc[open] summary::after { content: "–"; }
.disc__body { padding-bottom: var(--s4); color: var(--fg-mute); display: flex; flex-direction: column; gap: var(--s3); }

/* The collaboration page's own rules are in critical.css: its hero is the
   first thing on the page. Nothing of the old two-column campaign block
   survives here — the picture became the ground. */

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }

  /* The column stops being a column: its children join the page grid so
     the gallery can sit between the head and the detail. Nothing sticks on
     a phone — there is no room beside anything. */
  .pdp__col { display: contents; }
  .pdp__head, .pdp__gallery, .pdp__detail { grid-column: 1; grid-row: auto; }
  .pdp__head { order: 1; }
  .pdp__gallery { order: 2; }
  .pdp__detail { order: 3; }

  /* ---- gallery on a phone ---------------------------------------------
     One list of figures, same markup as the desktop column — only the
     axis changes. Scroll-snap does the swiping, so there is no carousel
     script to keep in step with the column layout, and no second
     component to maintain.

     Four full-width photographs stacked is a long scroll past the thing
     people came to do, which is choose a size and add it. */
  .pdp__gallery {
    display: flex;
    flex-direction: row;
    gap: var(--s2);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    /* Full bleed, so it reads as a gallery rather than a squeezed column. */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .pdp__gallery::-webkit-scrollbar { display: none; }

  /* Not 100%: the next photograph peeks in, which is what tells you there
     are more without needing a row of dots to say so. */
  .pdp__shot {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }
  .pdp__detail { position: static; }
  .pdp { padding-block: var(--s6) var(--s7); }
}

/* --------------------------------------------------------------------------
   COLOUR SELECTOR
   The swatch carries the colour AND the name. Colour alone would be the
   only cue for a choice that changes what you receive (WCAG 1.4.1), and
   "Raven" against "Teardrop" is not guessable from a 14px dot anyway.
   -------------------------------------------------------------------------- */
.swatches__row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.swatch {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 7px var(--s3) 7px 7px;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius-pill);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.swatch:hover { border-color: var(--fg); }
.swatch[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.swatch__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sw);
  /* Raven is near-black on a near-black page; the ring is what makes the
     swatch a swatch rather than a hole. */
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.55);
}

/* --------------------------------------------------------------------------
   COLOURWAY DOTS on the card
   Which colours, not how many — the dots answer "is there a black one?"
   at a glance, where a "4 colours" label would not. Products with no
   colour attribute render nothing rather than an empty slot.
   -------------------------------------------------------------------------- */
.dots { display: flex; align-items: center; gap: 4px; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sw);
  /* Same reason as the swatch: Raven would be a hole without the ring. */
  box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.55);
}
/* Dots and sizes are both specification; the price is the odd one out and
   is the thing that should sit on the right edge. */
.card__spec { justify-content: flex-start; gap: var(--s3); margin-top: auto; }
.card__spec .card__price { margin-left: auto; }

/* ==========================================================================
   THE PURCHASE PATH — cart, checkout, receipt
   Same bones as the product page: content left, a sticky column right.
   ========================================================================== */
.pagehead { padding-block: var(--s7) var(--s5); display: flex; flex-direction: column; gap: var(--s3); }
.pagehead h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: var(--track-display); line-height: 1.06; }
.pagehead__meta { color: var(--fg-mute); display: flex; flex-wrap: wrap; gap: var(--s3); }
.pagehead__desc { color: var(--fg-mute); max-width: 52ch; }

.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(var(--s6), 4vw, var(--s8));
  align-items: start;
  padding-bottom: var(--s8);
}

/* --- cart lines -----------------------------------------------------------
   Two cells only: thumbnail, and a stack. Title, then one meta row that
   carries the variation terms AND the line total, then the controls.
   The earlier five-track row put the quantity stepper in a stretched grid
   column, which is what made it look like a full-width input.
   -------------------------------------------------------------------------- */
.lines { border-top: 0; }
.line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  column-gap: var(--s4);
  row-gap: var(--s4);
  align-items: start;
  padding-block: var(--s5);
  /* Two weights, two jobs: 20% between products, 10% inside one. Both are
     faint; the difference is what makes the grouping readable. */
  border-bottom: 1px solid var(--hair-strong);
}
.line__thumb { grid-column: 1; grid-row: 1; }
.line__main { grid-column: 2; grid-row: 1; }
/* Full width, under the thumbnail as well. */
.line__controls {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: var(--s4);
  border-top: 1px solid var(--hair);
}
.line[hidden] { display: none; }
.line__thumb {
  width: 64px;
  aspect-ratio: 1;
  background: var(--bg-tile);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }

.line__main { display: flex; flex-direction: column; gap: var(--s3); min-width: 0; }
.line__name { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.012em; }
.line__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s3); color: var(--fg-mute); }
/* The total ends the meta row, so price sits with the variation it is for. */
/* text-transform: none — the row is .micro, which was uppercasing the
   currency to "ДЕН" while every other price on the site reads "ден". */
.line__total { margin-left: auto; text-transform: none; color: var(--fg); font-family: var(--font-mono); font-size: var(--t-micro); font-weight: 500; letter-spacing: 0.04em; }
.line__controls { display: flex; align-items: center; gap: var(--s3); }

/* Quantity: a real control, so it keeps the 38% border like every other
   interactive thing. justify-self/flex keep it at its own width instead of
   stretching to the column. */
.qty {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-self: start;
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius-pill);
}
.qty button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--t-small);
  line-height: 1;
  color: var(--fg-mute);
  transition: color var(--dur) var(--ease);
}
.qty button:hover { color: var(--fg); }
.qty output {
  min-width: 2.25rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  font-variant-numeric: tabular-nums;
}

/* Remove: icon only, so it needs its own accessible name in the markup. */
.line__remove {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--fg-mute);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.line__remove:hover { color: var(--fg); border-color: var(--hair-ui); }
.line__remove svg { width: 15px; height: 15px; }

/* --- summary ------------------------------------------------------------- */
.sum {
  position: sticky;
  top: calc(var(--masthead-h) + var(--s5));
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s5);
  background: var(--bg-panel);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
.sum__rows { display: flex; flex-direction: column; gap: var(--s3); }
.sum__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); }
.sum__row span:last-child { font-family: var(--font-mono); font-size: var(--t-micro); }
.sum__row--total {
  padding-top: var(--s4);
  border-top: 1px solid var(--hair);
  font-weight: 600;
}
.sum__row--total span:last-child { font-size: var(--t-body); }
.sum__mini { display: flex; flex-direction: column; gap: var(--s3); padding-bottom: var(--s4); border-bottom: 1px solid var(--hair); }
.sum__mini-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; }
.sum__mini-row .line__thumb { width: 48px; }

/* --- forms --------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: var(--s6); padding-bottom: var(--s6); }
.fieldset { display: flex; flex-direction: column; gap: var(--s4); }
.fieldset__head { display: flex; align-items: baseline; gap: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--hair); }
.fieldset__n { color: var(--fg-mute); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.field { display: flex; flex-direction: column; gap: var(--s2); }
.field--wide { grid-column: 1 / -1; }
.field > span { color: var(--fg-mute); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px var(--s4);
  font: inherit;
  font-size: var(--t-body);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.field input::placeholder { color: var(--fg-mute); }
.field input:hover, .field select:hover { border-color: var(--fg); }

/* --- focus ---------------------------------------------------------------
   One hairline ring, held off the element by a gap. 1px, because every
   other line in this theme is 1px and a 2px ring reads as an error state.

   It sets NO border-radius, and that is the whole of the fix for buttons
   squaring off. The rule here used to end `border-radius: var(--radius)` —
   2px — and because :where() contributes no specificity at all, that 2px
   landed on top of every shaped control the moment it took focus: a pill
   button became a rounded box, then sprang back when focus left. An
   outline already follows the element's own radius. It only needed to be
   left alone.

   The colour is --fg, never currentColor, however tempting: the ring is
   offset, so it is drawn OUTSIDE the element on the page ground, not on
   the element. On an acid .buy, currentColor is ink — a near-black ring on
   a near-black page. Never the accent either: acid on the light ground is
   1.12:1 and would be an invisible focus indicator.

   This is WCAG 2.4.7 (focus visible), not the AAA 2.4.13 focus-appearance
   criterion, which wants a 2px perimeter. That is the trade the brief
   asked for, and it is a deliberate one.
   -------------------------------------------------------------------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
}

/* A bare link has no shape, so the ring would be a tight rectangle around
   the words. Give it the pill the controls wear, in a muted ink — a
   full-contrast box around one word in a sentence is louder than the word.
   Mixed from --fg rather than picked, so it tracks the ground: 5.58:1 on
   the dark ground, 3.79:1 on the light one, both clear of the 3:1 a
   non-text indicator has to meet.

   The exclusions are the links that are already controls and already have
   a shape to keep: .pill and .buy are pills, .page-numbers is a 2px tile,
   .skip-link is its own acid pill. The wordmark is NOT one of them — it
   carries no radius, so excluding it only bought it the rectangle. */
:where(a):not(.pill, .buy, .page-numbers, .skip-link, .card__link):focus-visible {
  border-radius: var(--radius-pill);
  outline-color: color-mix(in srgb, var(--fg) 55%, transparent);
  outline-offset: 4px;
}

/* The card's link covers the whole tile through its ::after, so a ring on
   the link box would sit around the product name while the thing you are
   actually about to activate is the tile. Put it around the tile. */
.card:has(.card__link:focus-visible) {
  outline: 1px solid var(--fg);
  outline-offset: 3px;
  border-radius: var(--radius);
}
.card__link:focus-visible { outline: none; }

.radios { display: flex; flex-direction: column; border: 1px solid var(--hair); border-radius: var(--radius); }
.radio {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s4);
  border-bottom: 1px solid var(--hair);
  cursor: pointer;
}
.radio:last-child { border-bottom: 0; }
.radio__mark {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--hair-ui);
}
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio input:checked + .radio__mark { border-color: var(--fg); box-shadow: inset 0 0 0 4px var(--fg); }
.radio__price { font-family: var(--font-mono); font-size: var(--t-micro); }
.radio__note { grid-column: 2 / -1; color: var(--fg-mute); font-size: var(--t-small); }

/* --- empty + receipt ----------------------------------------------------- */
/* Empty states.

   Both carts get the same drawing the search overlay uses — same file,
   already in the browser cache by the time anyone reaches a second one.
   In the drawer it is cropped hard to a 440px panel, which lands on the
   barbell and the kettlebells rather than on the room, and that is the
   right half of the picture for a cart with nothing in it. */
/* display: flex, not none.
   
   This block used to be display:none, revealed by [data-cart="empty"] on
   an ancestor — an attribute NOTHING in the theme has ever emitted. So the
   drawer rendered its empty state and then hid it, and an empty cart
   opened as a blank panel. The server already decides: the template emits
   this block only when the cart is empty and returns before the lines, so
   the CSS gate had nothing left to decide and only ever hid the thing. */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s4); padding-block: var(--s8) var(--s9); }
.empty__line { color: var(--fg-mute); max-width: 32ch; margin-bottom: var(--s3); }

.empty,
.empty--art { position: relative; isolation: isolate; }
.empty::before,
.empty--art::before {
  content: "";
  position: absolute;
  inset: auto -10% -2% -10%;
  height: 62%;
  z-index: -1;
  background: url("../img/gym.webp") center bottom / cover no-repeat;
  filter: invert(1);
  opacity: 0.12;
  pointer-events: none;
  /* Faded out at the top, so the drawing dissolves into the panel instead
     of ending on a hard horizontal edge halfway up it. */
  mask-image: linear-gradient(to bottom, transparent, #000 55%);
}
[data-ground="light"] .empty::before,
[data-ground="light"] .empty--art::before,
[data-ground="sage"] .empty::before,
[data-ground="sage"] .empty--art::before { filter: none; opacity: 0.09; }

.receipt { display: flex; flex-direction: column; gap: var(--s6); padding-block: var(--s7) var(--s8); max-width: 44rem; }
.receipt__badge { align-self: flex-start; background: var(--accent); color: var(--on-accent); padding: 5px var(--s4); border-radius: var(--radius-pill); }

.err { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); padding-block: var(--s9); }
.err__code { font-size: clamp(4rem, 14vw, 10rem); font-weight: 600; line-height: 0.9; letter-spacing: -0.04em; }

@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .sum { position: static; }
  .fields { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CART DRAWER
   The cart is a drawer, not a destination. WooCommerce's /cart/ page still
   exists server-side as the no-JS fallback; nothing in the UI links to it.
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 900; }
.drawer[hidden] { display: none; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid var(--hair);
  transform: translateX(100%);
  transition: transform 260ms var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) var(--s5) var(--s4);
  border-bottom: 1px solid var(--hair);
}
.drawer__title { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.012em; }
.drawer__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  color: var(--fg-mute);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.drawer__close:hover { color: var(--fg); border-color: var(--fg); }

/* The body scrolls; the foot lives inside it because one template part
   renders both and one AJAX response replaces both. So the padding sits on
   the lines rather than the body, which lets the foot run the full width
   of the panel instead of being inset like a card. */
.drawer__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.drawer__body .lines,
.drawer__body .empty { padding-inline: var(--s5); }

/* Grow so the foot is at the bottom when the cart is short... */
.drawer__body .lines { flex: 1 0 auto; }

.drawer__foot {
  /* ...and stick there once it is long enough to scroll. */
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s5);
  border-top: 1px solid var(--hair);
  /* Opaque: lines scroll underneath it. */
  background: var(--bg-panel);
}

.drawer .empty { padding-block: var(--s7) var(--s8); }

/* Scroll lock while the drawer is open. */
html.is-locked { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__scrim { transition: none; }
}

/* The card is an article with one primary link; the link's ::after covers
   the card so the whole tile is clickable, and the Add button sits above it.
   A <button> inside an <a> would be invalid and unreachable by keyboard. */
.card { position: relative; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__add { z-index: 3; }

/* ==========================================================================
   WORDPRESS CHROME
   Rules the mockups never needed: editorial content, the footer menus as
   WordPress renders them, and the pieces the admin bar and comments bring.
   ========================================================================== */

/* --- footer menus, as wp_nav_menu outputs them -------------------------- */
.logotype__svg { width: 100%; height: auto; fill: currentColor; }

/* --- long-form content: the policy pages --------------------------------
   Text fills the box it is in. Nothing caps a paragraph narrower than its
   container, because a capped paragraph leaves a dead gutter beside it and
   the reader sees the gutter, not the measure. The measure comes from the
   LAYOUT instead, and only once there is width to spare: below 900px the
   column is already a sane width, so the text simply runs edge to edge.

   Measure matters more here than elsewhere: the terms are Macedonian, and
   Macedonian words are long. "одговорност" is 11 characters, and at phone
   width one word that will not fit costs up to a fifth of the line, which
   is what a ragged right edge on this page actually is.
   ------------------------------------------------------------------- */
.prose {
  max-width: none;
  padding-bottom: var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  color: var(--fg-mute);
}
.prose :where(p, li, blockquote) { text-wrap: pretty; }
.prose :where(h2, h3, h4, strong, b) { color: var(--fg); }
.prose h2 { font-size: var(--t-h2); font-weight: 600; letter-spacing: -0.015em; margin-top: var(--s5); }
.prose h3 { font-size: var(--t-h3); font-weight: 600; margin-top: var(--s4); }

/* --- a legal document ----------------------------------------------------
   Numbered clauses, each one a heading and a body. Below 900px that is a
   stack like any other page; above it the heading moves into a rail of its
   own, so the document uses the whole width and the body still reads at a
   sane measure. A hairline per clause does the rest — this is a reference
   document, and you navigate it by finding the clause, not by reading it
   end to end.
   -------------------------------------------------------------------- */
.legal { display: flex; flex-direction: column; gap: var(--s6); }
.legal__lead { display: flex; flex-direction: column; gap: var(--s4); }
.legal__lead p:first-child { color: var(--fg); }

.legal__section { display: grid; gap: var(--s3); padding-top: var(--s5); border-top: 1px solid var(--hair); }
.legal__section h3 { margin: 0; }
.legal__body { display: flex; flex-direction: column; gap: var(--s4); }
.legal__body :where(p, li) { margin: 0; }
.legal__body :where(ul, ol) { display: flex; flex-direction: column; gap: var(--s3); padding-left: 1.25rem; }
.legal__body a { color: var(--fg); }

/* Macedonian has no hyphenation dictionary in every browser, so this is a
   gain where there is one and a no-op where there is not. lang="mk" on the
   wrapper is what makes it legal to try. */
.legal { hyphens: auto; }

@media (min-width: 900px) {
  /* Above 900px there is width to spare, so the measure becomes a track:
     the clause body is bounded by the column it sits in, not by a cap on
     its own paragraphs, and it still fills that column completely. */
  .legal__section {
    grid-template-columns: minmax(0, 15rem) minmax(0, 80ch);
    gap: var(--s6);
    align-items: start;
  }
  /* The heading sits with its clause while you scroll past it. */
  .legal__section h3 { position: sticky; top: calc(var(--masthead-h) + var(--s5)); }

  /* Flat policy pages and My Account have no rail to bound them. */
  .prose :is(p, ul, ol, blockquote) { max-width: 80ch; }
  .legal__body :is(p, ul, ol, blockquote) { max-width: none; }
}
/* --- WordPress block layout inside .prose -------------------------------
   A Group block with "inner blocks use content width" on emits
   .is-layout-constrained, and WordPress's global stylesheet then caps every
   child of it at --wp--style--global--content-size and centres it with
   `margin-left/right: auto !important`. Both are wrong here: the theme owns
   the measure, and nothing on this site is centred. The !important is
   theirs, so matching it is the only way to answer it.

   Explicit alignments are left alone — if somebody centres an image on
   purpose, that is a decision, not a layout default.
   -------------------------------------------------------------------- */
.prose :where(.is-layout-constrained, .is-layout-flow)
  > :not(.aligncenter, .alignleft, .alignright) {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
/* The legal document lays itself out in two columns and needs the width. */
.prose :where(.is-layout-constrained) > .legal { max-width: none; }

.prose a { text-decoration: underline; text-underline-offset: 0.18em; }
.prose a:hover { color: var(--fg-mute); }
.prose ul, .prose ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: var(--s2); }
.prose blockquote {
  margin: 0;
  padding-left: var(--s4);
  border-left: 1px solid var(--hair-strong);
  color: var(--fg-mute);
}
.prose :where(img, video) { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; }
.prose :where(th, td) { text-align: left; padding: var(--s3) 0; border-bottom: 1px solid var(--hair); }

/* --- post lists ---------------------------------------------------------- */
.stack { display: flex; flex-direction: column; padding-bottom: var(--s8); }
.entry { padding-block: var(--s5); border-bottom: 1px solid var(--hair); }
.entry__title { font-size: var(--t-h2); font-weight: 600; letter-spacing: -0.015em; }
.entry__excerpt { color: var(--fg-mute); max-width: 60ch; margin-top: var(--s3); }

/* --- search -------------------------------------------------------------- */
/* stretch, not center: the input is 47px (11px padding + border) and the
   pill is 37px, so centring them leaves a 10px mismatch on both edges.
   Stretching makes the button take the input's height instead of guessing
   at padding that happens to match. The visually-hidden label is
   position:absolute, so it is out of flow and unaffected. */
.searchform { display: flex; align-items: stretch; gap: var(--s3); max-width: 28rem; }
.searchform__input {
  flex: 1;
  min-width: 0;
  padding: 11px var(--s4);
  font: inherit;
  font-size: var(--t-body);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.searchform__input::placeholder { color: var(--fg-mute); }
.searchform__input:hover { border-color: var(--fg); }
/* Safari paints its own decorations inside a type=search. */
.searchform__input::-webkit-search-decoration,
.searchform__input::-webkit-search-cancel-button { -webkit-appearance: none; }

/* The search overlay — a full surface, not a dropdown off the masthead.

   Opaque, not a scrim over the page: it carries a results grid, and product
   cards on a dimmed homepage read as two pages at once. The masthead stays
   underneath it rather than on top, which is why the overlay repeats the
   wordmark and the close control instead of letting them show through. */
.searchover {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  /* Bigger controls here than anywhere else on the site: the field is the
     whole point of this screen. Set once, and the close button and the
     Search button both read it. */
  --control-h: 48px;
}
.searchover[hidden] { display: none; }
.searchover.is-open { opacity: 1; }

/* The empty state: the gym, drawn.

   Greyscale in the file, inverted here, so the ink becomes light lines on
   the page's own near-black rather than a cream rectangle. At 14% it is
   atmosphere, not an image — the test is that you can read a product name
   over it without noticing it is there.

   display:none on the hidden overlay is doing real work: a background image
   on a display:none element is never fetched, so the 131 KB costs nothing
   until somebody actually opens the search. */
.searchover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/gym.webp") center bottom / cover no-repeat;
  filter: invert(1);
  opacity: 0.14;
  pointer-events: none;
  transition: opacity 400ms var(--ease);
}
/* Paper grounds need no inversion — the drawing is already ink on paper. */
[data-ground="light"] .searchover::before,
[data-ground="sage"] .searchover::before { filter: none; opacity: 0.1; }

/* Once there are results to read, the room steps back further. */
.searchover.has-results::before { opacity: 0.05; }

/* Everything above the body sits over the artwork. */
.searchover__bar,
.searchover__find,
.searchover__body { position: relative; }

/* The wordmark, centred as it is in the masthead so the page does not
   appear to jump when the overlay opens over it. */
.searchover__bar {
  flex: none;
  padding-block: var(--s4);
  min-height: var(--masthead-h);
  display: flex;
  align-items: center;
}
.searchover__bar .shell { display: flex; justify-content: center; }

/* The field does not scroll away. Someone four screens into the results
   still has the thing they are typing in. */
.searchover__find { flex: none; padding-block: var(--s5) var(--s6); }
.searchover__findinner { display: flex; align-items: center; gap: var(--s4); }
.searchover__findinner .searchform { flex: 1; max-width: none; align-items: center; }

/* Big, and no box around it. A field this size with a border reads as a
   form; without one it reads as a prompt, which is what it is. The caret is
   acid — the one piece of the brand that belongs on a blinking line. */
.searchover .searchform__input {
  /* Padding, not margin: the focus rule is drawn off the border box, so
     padding is what puts air between the baseline and the line rather
     than moving the line further from the field. */
  padding: 0 0 var(--s4);
  border: 0;
  border-radius: 0;
  background: transparent;
  caret-color: var(--accent);
  font-size: clamp(1.25rem, 3.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.searchover .searchform__input:hover { border-color: transparent; }
.searchover .searchform__input::placeholder { color: var(--fg-mute); opacity: 1; }

/* The focus indicator is a rule under the field rather than a ring around
   it — a ring on a box this big is a box, which is the thing we removed.
   It is visible the moment the overlay opens, because the field takes focus
   then, and that is correct: it is where you are. */
.searchover .searchform__input:focus-visible {
  outline: none;
  box-shadow: 0 1px 0 0 var(--accent);
}
[data-ground="light"] .searchover .searchform__input:focus-visible,
[data-ground="sage"] .searchover .searchform__input:focus-visible {
  /* Acid on a paper ground is 1.12:1 and would not be an indicator. */
  box-shadow: 0 1px 0 0 var(--fg);
}

/* The body is the only scroller, so the page behind can stay locked. */
.searchover__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: var(--s9);
}
.searchover__status { color: var(--fg-mute); min-height: 1.2em; margin-bottom: var(--s5); }
.searchover__status:empty { margin-bottom: 0; }
.searchover__more { margin-top: var(--s6); }

/* A pending fetch dims the results rather than removing them. Blanking the
   grid on every keystroke makes a fast search feel broken. */
.searchover[aria-busy="true"] [data-search-results] {
  opacity: 0.45;
  transition: opacity var(--dur) var(--ease);
}

.searchover .noresults { padding-block: var(--s6) var(--s7); }
.searchover .results-pages { margin-top: var(--s7); }

@media (prefers-reduced-motion: reduce) {
  .searchover,
  .searchover::before { transition: none; }
}

.noresults { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); padding-block: var(--s7) var(--s9); }
.noresults p { color: var(--fg-mute); }

.results-pages { padding-block: var(--s6) var(--s8); border-top: 1px solid var(--hair); }
.results-pages h2 { color: var(--fg-mute); margin-bottom: var(--s2); }
.results-pages__list { list-style: none; margin: 0; padding: 0; }
.results-pages__list li { border-bottom: 1px solid var(--hair); }
.results-pages__list a { display: block; padding-block: var(--s3); }

/* --- pagination ---------------------------------------------------------- */
/* There was none. Twelve products never fill a page, so neither the shop
   archive nor search has ever rendered it — it would have appeared
   unstyled the first time either did. */
.woocommerce-pagination,
.navigation.pagination { padding-block: var(--s6) var(--s8); }
.woocommerce-pagination ul,
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--s2); list-style: none; margin: 0; padding: 0; }
.woocommerce-pagination li { display: block; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding-inline: var(--s3);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.page-numbers:hover { border-color: var(--fg); }
.page-numbers.current { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.page-numbers.dots { border-color: transparent; color: var(--fg-mute); }

.err__text { color: var(--fg-mute); max-width: 34ch; }

/* --- skip link ----------------------------------------------------------- */
/* Visible only on focus, but genuinely visible: the first thing a keyboard
   user meets on a page whose header has no navigation to tab through. */
/* Positioning is in critical.css, where it has to be: this is the first
   element in the document and it would otherwise paint in flow. */
.skip-link {
  padding: 10px var(--s4);
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
}

/* --- admin bar ----------------------------------------------------------- */
/* The masthead is fixed, so it sits under the admin bar for logged-in
   users unless it is pushed down. Front end only; 46px/32px are core's. */
.admin-bar .masthead { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .masthead { top: 46px; }
}

/* Hidden from sight and from assistive technology, but still a real form
   control that WooCommerce's script can read and write. Used for the
   variation selects, whose interface is the button groups above them. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The buy row: quantity beside the button, button taking the rest. */
.monos-buy { display: flex; flex-direction: column; gap: var(--s5); }

/* Quantity and the button, side by side and the SAME HEIGHT.
   align-items: stretch does the matching, so neither carries a hard-coded
   height that the other has to be kept in sync with. */
.buy-row { display: flex; gap: var(--s3); align-items: stretch; }
.buy-row .buy { flex: 1; }
.buy-row .quantity { flex: 0 0 auto; }
/* Out of stock, said by the control you were about to press rather than by
   a line of text underneath it. Transparent with a red border: it still
   reads as the same object, but it is plainly not the accent-filled thing
   that buys something. */
.buy.buy--out,
.buy.buy--out:hover,
.buy-row .buy.buy--out:hover {
  background: transparent;
  color: var(--alert);
  box-shadow: inset 0 0 0 1px var(--alert);
  cursor: not-allowed;
  opacity: 1;
}

/* Woo's real class names, read from add-to-cart-variation.js: the WRAPPER
   gets `woocommerce-variation-add-to-cart-disabled` (one dash, not BEM)
   and the BUTTON gets `disabled`. I had guessed `--disabled`, so the
   button looked fully enabled while Woo had already disabled it — click
   it and you got the "select some product options" alert instead of any
   visible reason why. */
.woocommerce-variation-add-to-cart-disabled .buy,
.buy.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
/* Hovering a disabled button must not animate toward "yes". :not() keeps
   this away from the out-of-stock state, which has its own colours — the
   earlier version painted it the accent, so an out-of-stock button turned
   green under the cursor. */
.woocommerce-variation-add-to-cart-disabled .buy:not(.buy--out):hover,
.buy.disabled:not(.buy--out):hover { background: var(--accent); color: var(--on-accent); }

/* Woo prints the resolved variation's price and stock here. */
.woocommerce-variation-price { font-family: var(--font-mono); font-size: var(--t-body); }
.woocommerce-variation-availability { color: var(--fg-mute); font-size: var(--t-small); }
/* The button says "Out of stock" itself, so the paragraph repeating it is
   noise. Other availability notices — low stock, on backorder — stay. */
.woocommerce-variation-availability .out-of-stock { display: none; }
.stock.out-of-stock { color: var(--fg-mute); font-family: var(--font-mono); font-size: var(--t-micro); text-transform: uppercase; letter-spacing: var(--track-micro); }

/* ==========================================================================
   WOOCOMMERCE'S OWN MARKUP
   Checkout fields, the review table and the payment box are rendered by
   WooCommerce and its gateways, not by this theme — every gateway hooks in
   by class and id. So they are styled, not rewritten.
   ========================================================================== */

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- quantity ------------------------------------------------------------ */
.quantity { display: inline-flex; align-items: stretch; border: 1px solid var(--hair-ui); border-radius: var(--radius-pill); }
.quantity.hidden { display: none; }
.quantity__step {
  /* No fixed height: the row stretches these to match the button beside
     them, so the two never drift apart when the button's padding changes. */
  width: 36px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: var(--t-small); line-height: 1;
  color: var(--fg-mute);
  transition: color var(--dur) var(--ease);
}
.quantity__step:hover { color: var(--fg); }
.quantity input[type="number"] {
  width: 2.75rem;
  padding: 0;
  font: inherit;
  font-family: var(--font-mono); font-size: var(--t-micro);
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--fg);
  background: transparent;
  border: 0;
  appearance: textfield;
}
.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }

/* --- checkout layout ----------------------------------------------------- */
.checkout__fields { display: flex; flex-direction: column; gap: var(--s7); }
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields { display: flex; flex-direction: column; gap: var(--s4); }
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3,
#order_review_heading,
.sum__title {
  font-size: var(--t-h2); font-weight: 600; letter-spacing: -0.015em;
  padding-bottom: var(--s3); border-bottom: 1px solid var(--hair);
}
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4);
}
.form-row { display: flex; flex-direction: column; gap: var(--s2); margin: 0; }
.form-row-wide, .form-row.notes, .form-row#billing_address_1_field, .form-row#billing_country_field { grid-column: 1 / -1; }
.form-row label { color: var(--fg-mute); font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: var(--track-micro); text-transform: uppercase; }
.form-row .required { color: var(--fg); text-decoration: none; }
.form-row .optional { text-transform: none; letter-spacing: 0; }
.woocommerce-input-wrapper { display: block; }
.input-text, .form-row select, .form-row textarea, .select2-selection {
  width: 100%;
  padding: 11px var(--s4);
  font: inherit; font-size: var(--t-body);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.input-text:hover,
.form-row select:hover,
.form-row textarea:hover { border-color: var(--fg); }
.input-text::placeholder { color: var(--fg-mute); }
.form-row textarea { min-height: 7rem; resize: vertical; }

/* Focus strengthens the border as well as drawing the ring. On a column of
   bordered boxes the offset ring alone reads as something floating beside
   the field rather than as the field being active, and it is the same move
   hover already makes. */
.input-text:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible { border-color: var(--fg); }

/* Autofill.
   
   Chrome paints a pale blue over any field it fills and ignores
   background-color doing it, so a dark checkout turns into a row of light
   boxes with near-white text in them the moment somebody uses their saved
   address. An inset shadow the size of the field is the one thing that
   overrides it, and -webkit-text-fill-color is the only way to reach the
   text. The long transition delay is a second-order trick: Chrome applies
   the colour on a transition, so outrunning it keeps ours on top. */
.input-text:-webkit-autofill,
.input-text:-webkit-autofill:hover,
.input-text:-webkit-autofill:focus,
.form-row textarea:-webkit-autofill,
.form-row select:-webkit-autofill {
  -webkit-text-fill-color: var(--fg);
  caret-color: var(--fg);
  box-shadow: inset 0 0 0 100px var(--bg);
  transition: background-color 100000s ease-in-out 0s;
}

/* --- validation ----------------------------------------------------------
   WooCommerce adds these to the .form-row as you leave each field, and
   prints a .woocommerce-error list above the form on a failed submit.
   Untouched they come out in Woo's own #a00 and a green tick border,
   neither of which is in this palette — and once Woo's stylesheets are
   dequeued in Phase 5 the invalid state would have no indication at all.

   --alert, the same token the out-of-stock button uses. It is the only
   other colour in the system and it says one thing: this will not go
   through.

   Validated gets nothing. A field that is merely correct does not need to
   announce itself, and a column of green ticks on a dark ground is noise
   at exactly the moment somebody is trying to finish. */
.form-row.woocommerce-invalid .input-text,
.form-row.woocommerce-invalid select,
.form-row.woocommerce-invalid textarea,
.form-row.woocommerce-invalid .select2-selection { border-color: var(--alert); }
.form-row.woocommerce-invalid label { color: var(--alert); }
.form-row.woocommerce-validated .input-text,
.form-row.woocommerce-validated select { border-color: var(--hair-ui); }

.woocommerce-NoticeGroup-checkout { margin-bottom: var(--s5); }

/* --- the country / state field -------------------------------------------
   WooCommerce swaps these two <select>s for selectWoo, so what renders is
   a span pretending to be a field. Its stylesheet stays — it builds the
   dropdown, the search box and the results list, and without it the widget
   is broken rather than plain — but its paint has to be overridden, and
   that means matching its specificity:

     .select2-container--default .select2-selection--single   0-2-0
         background-color: #fff;  border: 1px solid #aaa;  border-radius: 4px

   A bare `.select2-selection` is 0-1-0 and loses, which is the same trap
   woocommerce.css set with `.woocommerce form .form-row .input-text`. Every
   rule here is written at the selector the thing it is beating uses.
   ------------------------------------------------------------------- */
.select2-container--default .select2-selection--single {
  height: auto;
  margin: 0;
  padding: 11px var(--s4);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease);
}
.select2-container--default .select2-selection--single:hover { border-color: var(--fg); }
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single { border-color: var(--fg); }

.select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  color: var(--fg);
  font-size: var(--t-body);
  line-height: normal;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--fg-mute); }

/* Woo's arrow is a CSS triangle in #888, positioned against a 28px box. */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: auto;
  top: 50%;
  right: var(--s4);
  width: 10px;
  transform: translateY(-50%);
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--fg-mute) transparent transparent;
  margin-left: -5px;
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--fg-mute);
}

/* The dropdown. */
.select2-container--default .select2-dropdown {
  background: var(--bg-panel);
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius);
  color: var(--fg);
}
.select2-container--default .select2-search--dropdown { padding: var(--s3); }
.select2-container--default .select2-search--dropdown .select2-search__field {
  padding: var(--s2) var(--s3);
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius);
}
.select2-container--default .select2-results__option {
  padding: var(--s2) var(--s4);
  font-size: var(--t-small);
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
  background: var(--fg);
  color: var(--bg);
}
.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
  background: transparent;
  color: var(--fg-mute);
}
.select2-container--default .select2-results > .select2-results__options { max-height: 18rem; }

/* Invalid, at the specificity Woo used for the same thing. */
.woocommerce-invalid .select2-container--default .select2-selection--single { border-color: var(--alert); }

/* --- order review -------------------------------------------------------- */
.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
  text-align: left; padding: var(--s3) 0; border-bottom: 1px solid var(--hair); vertical-align: top;
}
.woocommerce-checkout-review-order-table thead th { color: var(--fg-mute); font-family: var(--font-mono); font-size: var(--t-micro); letter-spacing: var(--track-micro); text-transform: uppercase; font-weight: 500; }
.woocommerce-checkout-review-order-table td:last-child,
.woocommerce-checkout-review-order-table th:last-child { text-align: right; font-family: var(--font-mono); font-size: var(--t-micro); }
.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td { font-weight: 600; border-bottom: 0; }
.woocommerce-checkout-review-order-table .order-total td { font-size: var(--t-body); }
.product-quantity { color: var(--fg-mute); }
.variation { margin: var(--s2) 0 0; color: var(--fg-mute); font-size: var(--t-micro); }
.variation dt, .variation dd { display: inline; margin: 0; }
.variation dd + dt::before { content: " · "; }

/* --- payment ------------------------------------------------------------- */
#payment { display: flex; flex-direction: column; gap: var(--s4); }
.wc_payment_methods { list-style: none; margin: 0; padding: 0; border: 1px solid var(--hair); border-radius: var(--radius); }
.wc_payment_method { border-bottom: 1px solid var(--hair); }
.wc_payment_method:last-child { border-bottom: 0; }
.wc_payment_method > label {
  display: flex; align-items: center; gap: var(--s3);
  padding: var(--s4); cursor: pointer;
  font-family: var(--font-mono); font-size: var(--t-micro);
  letter-spacing: var(--track-micro); text-transform: uppercase;
}
.wc_payment_method .payment_box { padding: 0 var(--s4) var(--s4); color: var(--fg-mute); font-size: var(--t-small); }
.wc_payment_method .payment_box p:last-child { margin-bottom: 0; }
#place_order {
  display: flex; justify-content: center; width: 100%;
  padding: var(--s4);
  background: var(--accent); color: var(--on-accent);
  border: 0; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--t-micro);
  letter-spacing: var(--track-micro); text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
#place_order:hover { background: var(--fg); color: var(--bg); }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--t-small); color: var(--fg-mute); }

/* --- cart page ----------------------------------------------------------- */
.cart__actions { display: flex; justify-content: flex-end; padding-top: var(--s5); }
.cart_totals table, .shop_table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.cart_totals th, .cart_totals td { text-align: left; padding: var(--s3) 0; border-bottom: 1px solid var(--hair); }
.cart_totals td { text-align: right; font-family: var(--font-mono); font-size: var(--t-micro); }
.cart_totals .order-total th, .cart_totals .order-total td { font-weight: 600; border-bottom: 0; }
.wc-proceed-to-checkout { padding-top: var(--s4); }
.wc-proceed-to-checkout .checkout-button {
  display: flex; justify-content: center; width: 100%;
  padding: var(--s4);
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: var(--t-micro);
  letter-spacing: var(--track-micro); text-transform: uppercase;
}
.wc-proceed-to-checkout .checkout-button:hover { background: var(--fg); color: var(--bg); }

/* --- WooCommerce's own buttons ------------------------------------------
   .button is Woo's generic class, and it lands on controls we do not own
   the markup for: apply-coupon, log in, lost password, the noscript
   "update totals". WooCommerce's stylesheets are still enqueued at this
   stage, so without a rule here those render in Woo's default grey and sit
   next to our acid pills looking like another site's furniture.

   Outline by default and accent for .alt, which is the distinction Woo
   itself draws — .alt is the primary action in any given form. #place_order
   and .checkout-button keep their own rules; an id and a two-class
   selector both outrank this. */
:where(.woocommerce) .button,
.woocommerce-button,
.woocommerce-Button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: var(--control-h);
  padding: 0 var(--s5);
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
:where(.woocommerce) .button:hover,
.woocommerce-button:hover,
.woocommerce-Button:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

:where(.woocommerce) .button.alt {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
:where(.woocommerce) .button.alt:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* --- coupon (dormant) ----------------------------------------------------
   `woocommerce_coupons_enabled` is filtered to false in inc/woocommerce.php,
   so none of this renders today. It is kept rather than deleted because
   turning coupons back on is one line, and this is what the markup needs
   when it returns: Woo draws the toggle as a .woocommerce-info notice with
   a link in it and the form hidden underneath. */
.woocommerce-form-coupon-toggle { margin-bottom: var(--s5); }
.woocommerce-form-coupon-toggle .woocommerce-info { margin-bottom: 0; }
.showcoupon { text-decoration: underline; text-underline-offset: 3px; }

.woocommerce-form-coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--s3) var(--s4);
  margin-bottom: var(--s6);
  padding: var(--s5);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
}
.woocommerce-form-coupon > p:first-child { grid-column: 1 / -1; margin: 0; color: var(--fg-mute); font-size: var(--t-small); }
.woocommerce-form-coupon .form-row-first { grid-column: 1; }
.woocommerce-form-coupon .form-row-last { grid-column: 2; }
.woocommerce-form-coupon .button { white-space: nowrap; }

@media (max-width: 560px) {
  .woocommerce-form-coupon { grid-template-columns: 1fr; }
  .woocommerce-form-coupon .form-row-first,
  .woocommerce-form-coupon .form-row-last { grid-column: 1; }
}

/* --- terms and privacy at checkout --------------------------------------- */
.woocommerce-terms-and-conditions-wrapper { margin-bottom: var(--s5); }
.woocommerce-privacy-policy-text {
  color: var(--fg-mute);
  font-size: var(--t-small);
}
.woocommerce-privacy-policy-text p:last-child { margin-bottom: 0; }
.woocommerce-privacy-policy-link { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

.form-row.place-order { margin-top: var(--s5); }

/* --- my account ----------------------------------------------------------
   There are no customer accounts on this store: guest checkout only, and
   registration is off. The page exists because WooCommerce builds the
   password-reset and order-pay URLs out of it, so it has to render — and
   render like the rest of the site — even though nothing links to it and
   it is noindexed.

   All of this is Woo's markup. Only the look is ours.
   ------------------------------------------------------------------- */
.woocommerce-form { display: flex; flex-direction: column; gap: var(--s4); max-width: 26rem; }
.woocommerce-form > .form-row { gap: var(--s3); }

.woocommerce-form-login__rememberme,
.woocommerce-form__label-for-checkbox {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  color: var(--fg-mute);
  font-family: inherit;
  font-size: var(--t-small);
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}
.woocommerce-form__input-checkbox {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}

.woocommerce-LostPassword { margin: 0; font-size: var(--t-small); }
.woocommerce-LostPassword a,
.woocommerce-ResetPassword + p a { color: var(--fg-mute); text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-LostPassword a:hover { color: var(--fg); }

/* Only ever seen by somebody logged in, which on this store means an
   administrator — but an unstyled nav is still a broken page. */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  margin: 0 0 var(--s6);
  padding: 0 0 var(--s4);
  border-bottom: 1px solid var(--hair);
}
.woocommerce-MyAccount-navigation a {
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  color: var(--fg-mute);
  transition: color var(--dur) var(--ease);
}
.woocommerce-MyAccount-navigation a:hover,
.woocommerce-MyAccount-navigation li.is-active a { color: var(--fg); }

/* --- order received, and order-pay ---------------------------------------
   Two screens almost nobody sees in testing and everybody sees after
   buying something. thankyou.php provides the .receipt above this; what
   follows it is WooCommerce's own order table and address block, which
   lost their styling with woocommerce.css.

   Scoped rather than written as a bare `.shop_table th` so they cannot
   collide with the cart totals or the checkout review table, which have
   their own rules at the same specificity. form#order_review is order-pay:
   on checkout that id is a div.
   ------------------------------------------------------------------- */
.woocommerce-order-details,
.woocommerce-customer-details { margin-top: var(--s7); }

.woocommerce-order-details__title,
.woocommerce-column__title {
  font-size: var(--t-h3);
  font-weight: 600;
  letter-spacing: -0.012em;
  padding-bottom: var(--s3);
  margin-bottom: var(--s4);
  border-bottom: 1px solid var(--hair);
}

.woocommerce-table--order-details th,
.woocommerce-table--order-details td,
form#order_review .shop_table th,
form#order_review .shop_table td {
  text-align: left;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.woocommerce-table--order-details thead th,
form#order_review .shop_table thead th {
  color: var(--fg-mute);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  font-weight: 500;
}
.woocommerce-table--order-details td:last-child,
.woocommerce-table--order-details tfoot th,
form#order_review .shop_table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--t-micro);
}
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td { border-bottom: 0; font-weight: 600; }

/* Woo stacks the order actions straight against each other. */
.order-actions--heading { white-space: nowrap; }
.order-actions-button + .order-actions-button { margin-left: var(--s3); }

.woocommerce-customer-details address {
  font-style: normal;
  color: var(--fg-mute);
  line-height: 1.7;
}
.woocommerce-customer-details--phone,
.woocommerce-customer-details--email { margin: var(--s2) 0 0; }

/* --- lost and reset password ---------------------------------------------
   Reachable only from an email link, which is exactly why it is worth
   styling: it is the one page somebody lands on cold, with no way back to
   a page that looks like the shop. Woo gives these forms
   .woocommerce-ResetPassword rather than .woocommerce-form, so they miss
   the rule above. */
.woocommerce-ResetPassword {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  max-width: 26rem;
}
.woocommerce-ResetPassword > p:first-child { margin: 0; color: var(--fg-mute); }
.woocommerce-ResetPassword .form-row { gap: var(--s3); }
/* Woo's clearfix. In a flex column it is not harmless — it is a zero-height
   child that still takes a gap. */
.woocommerce-ResetPassword .clear,
.woocommerce-form .clear { display: none; }

/* --- the blocking overlay ------------------------------------------------
   WooCommerce blocks a panel with jQuery blockUI while it talks to the
   server — on checkout that is every field change, because each one
   re-runs update_order_review.

   This came with woocommerce.css, which the theme now dequeues, so it has
   to be rebuilt here or the panel dims with nothing to say it is working.
   The !important is not laziness: blockUI writes its overlayCSS inline on
   the element (a white veil at 0.6, which on this ground is a flash of
   white), and an inline style cannot be beaten any other way.
   ------------------------------------------------------------------- */
.blockUI.blockOverlay,
.woocommerce .blockUI.blockOverlay {
  position: relative;
  background: var(--bg) !important;
  opacity: 0.7 !important;
  cursor: wait;
}
.blockUI.blockOverlay::before,
.woocommerce .loader::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 1px solid var(--hair-ui);
  border-top-color: var(--accent);
  border-radius: var(--radius-pill);
  animation: monos-spin 700ms linear infinite;
}
@keyframes monos-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .blockUI.blockOverlay::before,
  .woocommerce .loader::before { animation-duration: 2.4s; }
}

/* Only ever seen on the reset-password form, and only Woo's own classes.
   Four hard-coded pastels came with its stylesheet; these are the two
   colours this system has. */
.woocommerce-password-strength {
  padding: var(--s2) var(--s3);
  border: 1px solid var(--hair-ui);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: var(--t-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
}
.woocommerce-password-strength.short,
.woocommerce-password-strength.bad { color: var(--alert); border-color: var(--alert); }
.woocommerce-password-strength.good { color: var(--fg-mute); }
.woocommerce-password-strength.strong { color: var(--accent); border-color: var(--accent); }
.woocommerce-password-hint { display: block; margin-top: var(--s2); color: var(--fg-mute); font-size: var(--t-small); }

/* --- notices ------------------------------------------------------------- */
/* The wrapper Woo prints on every shop page whether or not it has anything
   to say. Empty it collapses, so the margin lives on the notices
   themselves rather than here. */
.woocommerce-notices-wrapper:not(:empty) { margin-bottom: var(--s5); }
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-NoticeGroup {
  list-style: none;
  margin: 0 0 var(--s5);
  padding: var(--s4);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius);
  font-size: var(--t-small);
}
/* An error is --alert, not the accent. Acid is the brand and it is what
   the buy button is made of; borrowing it to say "this did not go
   through" asks one colour to mean both things. --alert is the token that
   already exists for exactly this, and the out-of-stock button uses it. */
.woocommerce-error {
  border-color: var(--alert);
  color: var(--alert);
}
.woocommerce-error li { margin: 0; }
.woocommerce-error li + li { margin-top: var(--s2); }
.woocommerce-error strong { font-weight: 600; }
.woocommerce-message { border-left: 2px solid var(--accent); }

@media (max-width: 720px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper { grid-template-columns: 1fr; }
}

/* Sold out is a label, not a control — no border, no hover, nothing to
   press. It also stays visible rather than appearing on hover: a product
   you cannot buy should say so before you reach for it. */
.card__add--out {
  position: absolute;
  right: var(--s3);
  bottom: var(--s3);
  z-index: 3;
  padding: 7px var(--s3);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-pill);
  color: var(--fg-mute);
  opacity: 1;
  transform: none;
}
.card__add[aria-busy="true"] { opacity: 0.5; pointer-events: none; }

/* While an add is in flight. Not a spinner — the drawer arriving is the
   feedback; this just stops a second click landing. */
.buy[aria-busy="true"] { opacity: 0.6; pointer-events: none; }

/* A combination that does not exist. Struck through rather than merely
   faded: at this size, "dimmed" and "dark grey on dark" look the same. */
.size[disabled], .swatch[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: var(--hair);
}
.size[disabled]:hover, .swatch[disabled]:hover { border-color: var(--hair); }
