/* ==========================================================================
   ATLETIKA — Components
   Every interactive control defines hover / focus-visible / active /
   disabled. Minimum target 44x44 for primary actions, never below the
   WCAG 2.2 SC 2.5.8 floor of 24x24 for dense controls.
   ========================================================================== */

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --btn-h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--btn-h);
  padding-inline: var(--s-6);
  border: var(--bw) solid transparent;
  border-radius: var(--radius);
  font-size: var(--t-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition:
    background-color var(--dur-fast) var(--ease-standard),
    color            var(--dur-fast) var(--ease-standard),
    border-color     var(--dur-fast) var(--ease-standard),
    opacity          var(--dur-fast) var(--ease-standard);
}

/* Primary — solid black. The single strongest action on any page. */
.btn--primary {
  background: var(--c-ink);
  color: var(--c-on-inverse);
  border-color: var(--c-ink);
}
.btn--primary:hover:not(:disabled) { background: var(--c-ink-secondary); border-color: var(--c-ink-secondary); }
.btn--primary:active:not(:disabled){ background: #000; border-color: #000; }

/* Secondary — outlined. Fills on hover, so the affordance is unmistakable. */
.btn--secondary {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn--secondary:hover:not(:disabled) { background: var(--c-ink); color: var(--c-on-inverse); }

/* Ghost — text only, for tertiary actions inside dense UI. */
.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: transparent;
  padding-inline: var(--s-3);
}
.btn--ghost:hover:not(:disabled) { background: var(--c-surface-sunken); }
.is-sunken .btn--ghost:hover:not(:disabled) { background: var(--c-surface); }

/* Inverse — for use on dark imagery. */
.btn--inverse {
  background: var(--c-on-inverse);
  color: var(--c-ink);
  border-color: var(--c-on-inverse);
}
.btn--inverse:hover:not(:disabled) { background: transparent; color: var(--c-on-inverse); }

.btn--lg    { --btn-h: 56px; padding-inline: var(--s-8); font-size: var(--t-sm); }
.btn--sm    { --btn-h: 36px; padding-inline: var(--s-4); font-size: var(--t-2xs); }
.btn--block { display: flex; width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  background: var(--c-surface-sunken);
  color: var(--c-ink-disabled);
  border-color: var(--c-line);
}

/* Busy state — the label is replaced by a spinner but the button keeps its
   width, so the layout does not jump mid-submit. */
.btn[data-busy="true"] { color: transparent; position: relative; pointer-events: none; }
.btn[data-busy="true"]::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 16px; height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: var(--radius-full);
  color: var(--c-on-inverse);
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .btn[data-busy="true"]::after { animation-duration: 2s; }
}

/* Icon-only button. 44x44 keeps it comfortably above the 24x24 floor. */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: var(--c-ink);
  background: transparent;
  border-radius: var(--radius);
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.btn-icon:hover { opacity: 0.6; }
.btn-icon:active { opacity: 0.4; }
.btn-icon svg { width: 20px; height: 20px; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: var(--s-2); }

.field__label {
  font-size: var(--t-2xs);
  line-height: var(--lh-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  color: var(--c-ink-secondary);
}
/* Optional is marked, required is not — the inverse of the common pattern,
   because on a checkout nearly every field is required and marking them all
   is noise. Stated once at the top of each form instead. */
.field__optional {
  text-transform: none;
  letter-spacing: var(--track-normal);
  color: var(--c-ink-muted);
  font-weight: var(--fw-regular);
}

.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s-3) var(--s-4);
  background: var(--c-surface);
  color: var(--c-ink);
  border: var(--bw) solid var(--c-line-input);   /* 3.26:1 — meets 1.4.11 */
  border-radius: var(--radius);
  font-size: var(--t-body);   /* 16px: prevents iOS zoom-on-focus */
  line-height: var(--lh-base);
  transition: border-color var(--dur-fast) var(--ease-standard),
              box-shadow   var(--dur-fast) var(--ease-standard);
}
.textarea { min-height: 96px; padding-block: var(--s-3); }

.input::placeholder, .textarea::placeholder { color: var(--c-ink-muted); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-ink-secondary); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  border-color: var(--c-ink);
  outline: var(--focus-w) solid var(--c-focus);
  outline-offset: var(--focus-offset);
}
.input:disabled, .select:disabled, .textarea:disabled {
  background: var(--c-surface-sunken);
  color: var(--c-ink-disabled);
  cursor: not-allowed;
}

.select {
  appearance: none;
  padding-inline-end: var(--s-10);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230A0A0A' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  background-size: 12px 8px;
  cursor: pointer;
}

/* Error. Colour is never the only signal — there is an icon and a text
   message, satisfying SC 1.4.1. */
.field[data-invalid="true"] .input,
.field[data-invalid="true"] .select,
.field[data-invalid="true"] .textarea { border-color: var(--c-danger); border-width: var(--bw-thick); }

.field__error {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
  color: var(--c-danger);
}
.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  margin-top: 1px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: var(--fw-bold);
  line-height: 1;
}
.field__error:empty { display: none; }
.field__hint { font-size: var(--t-xs); line-height: var(--lh-xs); color: var(--c-ink-muted); }

/* Checkbox / radio. The native control is hidden but still focusable and
   still the accessibility source of truth. */
.check { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.check__input {
  appearance: none;
  flex: none;
  width: 20px; height: 20px;
  margin: 1px 0 0;
  border: var(--bw) solid var(--c-line-input);
  border-radius: var(--radius);
  background: var(--c-surface);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard),
              border-color     var(--dur-fast) var(--ease-standard);
}
.check__input[type="radio"] { border-radius: var(--radius-full); }
.check__input:hover { border-color: var(--c-ink); }
.check__input:checked { background: var(--c-ink); border-color: var(--c-ink); }
.check__input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1 5.5l4 4 8-8' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 9px;
}
.check__input[type="radio"]:checked {
  background-image: radial-gradient(circle, var(--c-on-inverse) 0 3.5px, transparent 3.5px);
}
.check__input:focus-visible { outline: var(--focus-w) solid var(--c-focus); outline-offset: var(--focus-offset); }
.check__label { font-size: var(--t-base); line-height: var(--lh-base); }

/* ==========================================================================
   PRICE  — Omnibus-aware
   The struck-through figure is the lowest price in the prior 30 days, not
   the RRP. The disclosure is rendered, not implied. See 14-EU-COMPLIANCE.
   ========================================================================== */
.price { display: flex; align-items: baseline; gap: var(--s-2); flex-wrap: wrap; }
.price__now { font-size: var(--t-base); font-weight: var(--fw-medium); font-variant-numeric: tabular-nums; }
.price__was {
  font-size: var(--t-sm);
  color: var(--c-ink-muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  font-variant-numeric: tabular-nums;
}
.price--sale .price__now { color: var(--c-ink); }
.price__note {
  flex-basis: 100%;
  font-size: var(--t-2xs);
  line-height: var(--lh-2xs);
  color: var(--c-ink-muted);
}
.price--lg .price__now { font-size: var(--t-xl); font-weight: var(--fw-medium); }
.price--lg .price__was { font-size: var(--t-base); }

/* ==========================================================================
   BADGE / TAG
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: var(--s-2);
  font-size: var(--t-3xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
  background: var(--c-ink);
  color: var(--c-on-inverse);
  border-radius: var(--radius);
}
.badge--outline { background: transparent; color: var(--c-ink); border: var(--bw) solid var(--c-ink); }
.badge--muted   { background: var(--c-surface-sunken); color: var(--c-ink-secondary); }

/* ==========================================================================
   PRODUCT CARD
   Baymard's current finding: shoppers expect a gallery on the list tile
   (2+ minimum, 3+ optimal for apparel), not a single hover swap. The
   track scroll-snaps on touch; arrows appear on hover for pointer users;
   dots signpost image count on both. Falls back to the first image if
   JS never runs.
   ========================================================================== */
.card { position: relative; display: flex; flex-direction: column; }

.card__media {
  position: relative;
  aspect-ratio: var(--ratio-product);
  overflow: hidden;
  background: var(--c-surface-sunken);
}
.card__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.card__track::-webkit-scrollbar { display: none; }
.card__slide {
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
}
.card__slide img, .card__slide picture { width: 100%; height: 100%; }
.card__slide img { object-fit: cover; }

/* A link covering the media, beneath the arrows, so a tap on the image
   still opens the product. */
.card__link { position: absolute; inset: 0; z-index: var(--z-raised); }

.card__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 36px; height: 36px;
  margin-top: -18px;
  display: grid; place-items: center;
  background: rgb(255 255 255 / 0.9);
  color: var(--c-ink);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard);
}
.card__arrow svg { width: 16px; height: 16px; }
.card__arrow--prev { left: var(--s-2); }
.card__arrow--next { right: var(--s-2); }
.card__arrow:hover { background: var(--c-surface); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__arrow, .card:focus-within .card__arrow { opacity: 1; }
}
@media (hover: none) { .card__arrow { display: none; } }

.card__dots {
  position: absolute;
  inset-inline: 0; bottom: var(--s-2);
  z-index: 2;
  display: flex; justify-content: center; gap: 4px;
  pointer-events: none;
}
.card__dot {
  width: 16px; height: 2px;
  background: rgb(10 10 10 / 0.25);
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.card__dot[aria-current="true"] { background: var(--c-ink); }
.card[data-images="1"] .card__dots,
.card[data-images="1"] .card__arrow { display: none; }

.card__badges {
  position: absolute;
  top: var(--s-3); left: var(--s-3);
  z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--s-1);
  pointer-events: none;
}

.card__wish {
  position: absolute;
  top: var(--s-2); right: var(--s-2);
  z-index: 2;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  color: var(--c-ink);
  background: rgb(255 255 255 / 0.85);
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.card__wish:hover { background: var(--c-surface); }
.card__wish svg { width: 18px; height: 18px; }
.card__wish[aria-pressed="true"] svg { fill: currentColor; }

/* Quick-add strip. Slides up over the image on hover for pointer users;
   sits statically below it on touch, where hover does not exist. */
.card__quickadd {
  position: absolute;
  inset-inline: 0; bottom: 0;
  z-index: 3;
  display: flex;
  gap: var(--s-1);
  padding: var(--s-2);
  background: rgb(255 255 255 / 0.94);
  transform: translateY(101%);
  transition: transform var(--dur-quick) var(--ease-enter);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__quickadd,
  .card:focus-within .card__quickadd { transform: translateY(0); }
  .card:hover .card__dots { bottom: 56px; }
}
@media (hover: none) {
  .card__quickadd { position: static; transform: none; background: none; padding: var(--s-2) 0 0; }
}
.card__size {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  padding-inline: var(--s-1);
  font-size: var(--t-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  border: var(--bw) solid var(--c-line-strong);
  background: var(--c-surface);
  transition: background-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
.card__size:hover:not(:disabled) { background: var(--c-ink); color: var(--c-on-inverse); border-color: var(--c-ink); }
.card__size:disabled { color: var(--c-ink-disabled); cursor: not-allowed; text-decoration: line-through; }

.card__body { display: flex; flex-direction: column; gap: var(--s-1); padding-block-start: var(--s-3); }
.card__title { font-size: var(--t-base); line-height: var(--lh-base); font-weight: var(--fw-regular); }
.card__title a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.card__meta { font-size: var(--t-xs); color: var(--c-ink-muted); }

.card[data-stock="out"] .card__media { opacity: 0.55; }

/* ==========================================================================
   SIZE SELECTOR (PDP)
   Unavailable sizes stay visible and struck through rather than hidden —
   the shopper needs to know the size exists but is gone, not be left
   wondering whether it was ever made.
   ========================================================================== */
.sizes { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.size-opt { position: relative; }
.size-opt__input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.size-opt__label {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 48px;
  padding-inline: var(--s-3);
  border: var(--bw) solid var(--c-line-strong);
  font-size: var(--t-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
}
.size-opt__input:hover + .size-opt__label { border-color: var(--c-ink); }
.size-opt__input:checked + .size-opt__label { background: var(--c-ink); color: var(--c-on-inverse); border-color: var(--c-ink); }
.size-opt__input:focus-visible + .size-opt__label { outline: var(--focus-w) solid var(--c-focus); outline-offset: var(--focus-offset); }
.size-opt__input:disabled + .size-opt__label {
  color: var(--c-ink-disabled);
  border-color: var(--c-line);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ==========================================================================
   QUANTITY STEPPER  — absent from the current site entirely
   ========================================================================== */
.qty { display: inline-flex; align-items: center; border: var(--bw) solid var(--c-line-input); }
.qty__btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--c-ink);
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.qty__btn:hover:not(:disabled) { background: var(--c-surface-sunken); }
.qty__btn:disabled { color: var(--c-ink-disabled); cursor: not-allowed; }
.qty__btn svg { width: 12px; height: 12px; }
.qty__input {
  width: 44px; height: 40px;
  border: 0;
  text-align: center;
  font-size: var(--t-base);
  font-variant-numeric: tabular-nums;
  background: transparent;
  -moz-appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ==========================================================================
   FREE-SHIPPING PROGRESS  — the €100 threshold the site already advertises
   ========================================================================== */
.ship-progress { display: flex; flex-direction: column; gap: var(--s-2); }
.ship-progress__text { font-size: var(--t-xs); line-height: var(--lh-xs); }
.ship-progress__track { height: 2px; background: var(--c-line); overflow: hidden; }
.ship-progress__bar {
  height: 100%;
  background: var(--c-ink);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out);
}
.ship-progress[data-complete="true"] .ship-progress__text { font-weight: var(--fw-medium); }

/* ==========================================================================
   ACCORDION
   ========================================================================== */
.acc { border-block-start: var(--bw) solid var(--c-line); }
.acc:last-of-type { border-block-end: var(--bw) solid var(--c-line); }
.acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  width: 100%;
  min-height: 56px;
  padding-block: var(--s-4);
  text-align: left;
  font-size: var(--t-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-ui);
  text-transform: uppercase;
}
.acc__icon { flex: none; width: 12px; height: 12px; position: relative; }
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; inset: 50% 0 auto;
  height: 1px; background: currentColor;
}
.acc__icon::after { transform: rotate(90deg); transition: transform var(--dur-quick) var(--ease-standard); }
.acc__trigger[aria-expanded="true"] .acc__icon::after { transform: rotate(0deg); }

/* grid-template-rows animates height without needing a measured px value. */
.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-standard);
}
.acc__trigger[aria-expanded="true"] + .acc__panel,
.acc__heading:has(.acc__trigger[aria-expanded="true"]) + .acc__panel { grid-template-rows: 1fr; }
.acc__heading { margin: 0; font: inherit; }
.acc__panel > * { overflow: hidden; }
.acc__content { padding-block-end: var(--s-5); font-size: var(--t-base); line-height: var(--lh-body); color: var(--c-ink-secondary); }

/* ==========================================================================
   DRAWER  (mini-cart, filters, mobile nav)
   ========================================================================== */
.overlay {
  position: fixed; inset: 0;
  z-index: var(--z-overlay);
  background: var(--c-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-exit) var(--ease-exit),
              visibility 0s linear var(--dur-exit);
}
.overlay[data-open="true"] {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-enter) var(--ease-enter);
}

.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  width: min(420px, 100vw);
  background: var(--c-surface);
  box-shadow: var(--shadow-drawer);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-exit) var(--ease-exit),
              visibility 0s linear var(--dur-exit);
}
.drawer[data-open="true"] {
  transform: translateX(0); visibility: visible;
  transition: transform var(--dur-slow) var(--ease-drawer);
}
.drawer--left { inset-inline: 0 auto; transform: translateX(-100%); }
.drawer--left[data-open="true"] { transform: translateX(0); }
.drawer--wide { width: min(520px, 100vw); }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border-block-end: var(--bw) solid var(--c-line);
}
.drawer__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-5); }
.drawer__foot { border-block-start: var(--bw) solid var(--c-line); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }

/* ==========================================================================
   MODAL  (size guide)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: grid;
  place-items: center;
  padding: var(--s-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-exit) var(--ease-exit),
              visibility 0s linear var(--dur-exit);
}
.modal[data-open="true"] {
  opacity: 1; visibility: visible;
  transition: opacity var(--dur-enter) var(--ease-enter);
}
.modal__panel {
  position: relative;
  width: min(720px, 100%);
  max-height: min(80vh, 720px);
  overflow-y: auto;
  background: var(--c-surface);
  padding: var(--s-8);
  transform: translateY(var(--reveal-y));
  transition: transform var(--dur-exit) var(--ease-exit);
}
.modal[data-open="true"] .modal__panel { transform: translateY(0); transition: transform var(--dur-enter) var(--ease-enter); }
.modal__close { position: absolute; top: var(--s-3); right: var(--s-3); }

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast-region {
  position: fixed;
  inset-block-end: var(--s-5);
  inset-inline: var(--s-4) auto;
  max-width: calc(100vw - var(--s-8));
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--s-2);
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--s-3);
  min-height: 48px;
  padding: var(--s-3) var(--s-5);
  background: var(--c-ink);
  color: var(--c-on-inverse);
  font-size: var(--t-base);
  pointer-events: auto;
  flex-wrap: wrap;
  animation: toast-in var(--dur-base) var(--ease-out);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ==========================================================================
   FILTER CHIP
   ========================================================================== */
.chip {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 34px;
  padding-inline: var(--s-3);
  border: var(--bw) solid var(--c-line-strong);
  border-radius: var(--radius-full);
  font-size: var(--t-2xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  transition: border-color var(--dur-fast) var(--ease-standard),
              background-color var(--dur-fast) var(--ease-standard);
}
.chip:hover { border-color: var(--c-ink); }
.chip__x { display: grid; place-items: center; width: 16px; height: 16px; }
.chip__x svg { width: 9px; height: 9px; }

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font-size: var(--t-xs); color: var(--c-ink-muted); }
.crumbs li { display: flex; align-items: center; gap: var(--s-2); }
.crumbs li + li::before { content: "/"; color: var(--c-line-strong); }
.crumbs a:hover { color: var(--c-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.crumbs [aria-current="page"] { color: var(--c-ink); }

/* ==========================================================================
   SKELETON
   ========================================================================== */
.skeleton { position: relative; overflow: hidden; background: var(--c-surface-sunken); }
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.6), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .skeleton::after { animation: none; } }

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-4);
  padding-block: var(--s-20);
  text-align: center;
}
.empty__title { font-size: var(--t-xl); font-weight: var(--fw-medium); letter-spacing: var(--track-tight); }
.empty__text  { font-size: var(--t-base); color: var(--c-ink-muted); max-width: 42ch; }

/* ==========================================================================
   NOTICE  (info / trust rows)
   ========================================================================== */
.notice {
  display: flex; align-items: flex-start; gap: var(--s-3);
  padding: var(--s-4);
  background: var(--c-surface-sunken);
  font-size: var(--t-xs);
  line-height: var(--lh-xs);
}
.notice svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.notice--error { background: var(--c-danger-surface); color: var(--c-danger); }
/* Links inside notices (error summaries) must clear the 24×24 target floor. */
.notice a { display: inline-block; min-height: 24px; padding-block: var(--s-1); text-decoration: underline; text-underline-offset: 0.2em; }

/* Scroll-reveal. Elements opt in with .reveal; JS adds .is-visible.
   Falls back to fully visible if JS never runs — content is never
   hidden behind a script. */
.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity   var(--dur-slow) var(--ease-enter),
              transform var(--dur-slow) var(--ease-enter);
  transition-delay: calc(var(--stagger) * var(--i, 0));
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal     { opacity: 1; transform: none; }

/* ==========================================================================
   MINI-CART LINE ITEM  (rendered by app.js)
   ========================================================================== */
.mini-list { display: flex; flex-direction: column; }
.mini-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: var(--s-4);
  padding-block: var(--s-4);
  border-block-end: var(--bw) solid var(--c-line);
}
.mini-item__media { width: 72px; }
.mini-item__body { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.mini-item__title { font-size: var(--t-base); line-height: var(--lh-base); }
.mini-item__title:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.mini-item__meta { font-size: var(--t-xs); color: var(--c-ink-muted); }
.mini-item__row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-block-start: var(--s-2); }
.mini-item__price { font-size: var(--t-base); font-variant-numeric: tabular-nums; }
.mini-item__remove { width: 36px; height: 36px; align-self: start; margin: -8px -8px 0 0; }
.qty--sm .qty__btn { width: 32px; height: 32px; }
.qty--sm .qty__input { width: 36px; height: 32px; font-size: var(--t-sm); }

/* Express payment buttons — rendered only when the device can pay */
.express { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.express__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px;
  background: var(--c-ink); color: var(--c-on-inverse);
  font-size: var(--t-base); font-weight: var(--fw-medium);
  border-radius: var(--radius);
}
.express__divider { display: flex; align-items: center; gap: var(--s-3); font-size: var(--t-xs); color: var(--c-ink-muted); }
.express__divider::before, .express__divider::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }

/* ==========================================================================
   COOKIE CONSENT  — EDPB Cookie Banner Task Force (2023) / VDAI (2026):
   Reject and Accept on the first layer with identical visual weight; no
   pre-ticked categories; nothing non-essential fires before a choice.
   Bottom sheet, never blocks the page, never covers the sticky CTAs
   (they sit above it via z-index order: banner < sticky bars).
   ========================================================================== */
.cookie {
  position: fixed;
  inset-inline: 0; inset-block-end: 0;
  z-index: var(--z-sticky);
  display: grid;
  gap: var(--s-4);
  padding: var(--s-5) var(--gutter);
  background: var(--c-surface);
  border-block-start: var(--bw) solid var(--c-line);
  box-shadow: var(--shadow-bar);
  transform: translateY(100%);
  transition: transform var(--dur-enter) var(--ease-enter);
}
.cookie[data-open="true"] { transform: none; }
.cookie__text { font-size: var(--t-base); line-height: var(--lh-base); max-width: 70ch; }
.cookie__text a { text-decoration: underline; text-underline-offset: 0.2em; }
.cookie__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.cookie__actions .btn { min-height: 48px; }
/* Reject and Accept side by side at identical size; Settings beneath. */
.cookie__settings { grid-column: 1 / -1; order: 1; justify-self: start; }
@media (min-width: 768px) {
  .cookie { grid-template-columns: 1fr auto; align-items: center; }
  .cookie__actions { grid-template-columns: auto auto auto; }
  .cookie__settings { grid-column: auto; order: -1; }
}
