/* LingoStyles — 2026 storefront.
   One stylesheet replaces the four that shipped before (css/style.css,
   css/styles.css and the misspelled csss/ pair that the templates actually
   referenced). Everything below is authored mobile-first; nothing uses a fixed
   pixel width, which is what made the old size tables overflow every phone. */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --ink: #141414;
  --ink-soft: #5a5550;
  --ink-faint: #8d8781;
  --paper: #ffffff;
  --paper-warm: #faf7f3;
  --line: #e6e1db;
  --line-strong: #cfc8c0;
  /* Accent sampled from the S and the wordmark in the current logo. */
  --flame: #d9541e;
  --flame-deep: #b7451a;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --wrap: 1280px;
  --gut: clamp(1rem, 4vw, 3rem);
  --r: 2px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* height:auto matters. Every <img> carries width/height attributes so the
   browser reserves space and the page does not jump while photographs load —
   but a literal height="1348" also *wins* over `aspect-ratio`, which left the
   lookbook rail rendering 1348px-tall slivers. Letting height resolve from the
   ratio gives both: reserved space and the intended crop. Rules that set an
   explicit height (the hero, the card media) are more specific and still win. */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--flame); color: #fff; }

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

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.eyebrow {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--flame);
  font-weight: 600;
  margin: 0 0 .75rem;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  padding: .8rem 1.6rem;
  font: inherit; font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--r); cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { --btn-bg: var(--flame); border-color: var(--flame); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn--flame { --btn-bg: var(--flame); }
.btn--flame:hover { --btn-bg: var(--flame-deep); border-color: var(--flame-deep); }
.btn--sm { padding: .55rem 1rem; font-size: .68rem; }
.btn--block { width: 100%; }

/* ── Announcement bar ───────────────────────────────────────────────────── */
.announce {
  background: var(--ink); color: #fff;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  text-align: center; padding: .6rem 1rem;
}
.announce span { color: var(--flame); }

/* ── Masthead ───────────────────────────────────────────────────────────── */
.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__bar {
  max-width: var(--wrap); margin-inline: auto; padding: .85rem var(--gut);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.masthead__nav { display: none; justify-self: center; }
.masthead__nav a {
  font-size: .76rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 500; padding: .5rem .9rem; color: var(--ink-soft);
  position: relative; transition: color .18s ease;
}
.masthead__nav a:hover { color: var(--ink); }
.masthead__nav a::after {
  content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .25rem;
  height: 1px; background: var(--flame); transform: scaleX(0); transition: transform .2s ease;
}
.masthead__nav a:hover::after { transform: scaleX(1); }

.masthead__tools { display: flex; align-items: center; gap: .35rem; justify-self: end; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 0; background: none; color: var(--ink);
  cursor: pointer; border-radius: 50%; transition: background .18s ease;
}
.icon-btn:hover { background: var(--paper-warm); }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

/* Search drops out of the masthead rather than crowding it. */
.searchbar { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.searchbar.is-open { display: block; }
.searchbar form {
  max-width: var(--wrap); margin-inline: auto; padding: 1rem var(--gut);
  display: flex; gap: .5rem;
}
.searchbar input {
  flex: 1; font: inherit; padding: .8rem 1rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper);
  color: var(--ink);
}
.searchbar input:focus { outline: none; border-color: var(--ink); }

/* Mobile drawer */
.drawer { display: none; border-top: 1px solid var(--line); background: var(--paper); }
.drawer.is-open { display: block; }
.drawer nav { display: flex; flex-direction: column; padding: .5rem var(--gut) 1.25rem; }
.drawer nav a, .drawer nav button {
  text-align: left; background: none; border: 0; font: inherit;
  padding: .85rem 0; border-bottom: 1px solid var(--line);
  font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-bottom: 1px solid var(--line);
}
.hero__copy {
  padding: clamp(2rem, 6vw, 3.5rem) var(--gut);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 46rem; margin-inline: auto; width: 100%;
}
.hero__copy h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.06; letter-spacing: -.02em; font-weight: 600;
  margin: 0 0 1rem;
}
.hero__copy h1 em { font-style: normal; color: var(--flame); }
.hero__copy p { color: var(--ink-soft); font-size: 1rem; max-width: 34rem; margin: 0 0 1.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__media { position: relative; background: var(--paper-warm); }
/* Square on phones so the headline, the copy and both buttons still fit on the
   first screen; the shot is recropped, not shrunk. */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; aspect-ratio: 1/1; }

/* ── Marquee of promises ────────────────────────────────────────────────── */
.promises {
  border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.promises div {
  padding: 1.5rem 1rem; text-align: center;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.promises div:nth-child(2n) { border-right: 0; }
.promises strong {
  display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
}
.promises span { font-size: .8rem; color: var(--ink-faint); }

/* ── Section furniture ──────────────────────────────────────────────────── */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section--warm { background: var(--paper-warm); }
.section__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.5rem;
}
.section__head h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.1;
  letter-spacing: -.015em; margin: 0;
}
.section__head p { margin: .5rem 0 0; color: var(--ink-soft); max-width: 38rem; }
.section__link {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  border-bottom: 1px solid var(--flame); padding-bottom: 2px; white-space: nowrap;
}

/* ── Category tiles ─────────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.tile { position: relative; overflow: hidden; border-radius: var(--r); background: var(--ink); }
.tile img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1); opacity: .92;
}
.tile:hover img { transform: scale(1.05); }
.tile__label {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0));
  color: #fff;
}
.tile__label span {
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #f5cdb8;
}
.tile__label h3 { font-family: var(--display); font-size: 1.5rem; margin: .15rem 0 0; font-weight: 600; }

/* ── Product grid ───────────────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem .9rem; }
.card { display: flex; flex-direction: column; }
.card__media {
  position: relative; display: block; overflow: hidden;
  background: var(--paper-warm); border-radius: var(--r);
  aspect-ratio: 3/4;
}
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .35s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}
.card__media img + img { opacity: 0; }
.card__media:hover img + img { opacity: 1; }
.card__media:hover img { transform: scale(1.03); }
.card__flag {
  position: absolute; top: .6rem; left: .6rem; z-index: 2;
  background: var(--paper); color: var(--ink);
  font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600;
  padding: .3rem .55rem; border-radius: var(--r);
}
.card__body { padding: .75rem .1rem 0; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card__name { font-size: .95rem; font-weight: 600; margin: 0; line-height: 1.3; }
.card__meta { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.card__price { font-size: 1rem; font-weight: 600; }
.card__price small { font-size: .7rem; color: var(--ink-faint); font-weight: 500; }
.card__actions { margin-top: auto; padding-top: .6rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.card__owned { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }

/* ── Editorial split ────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr; gap: 0; align-items: stretch; }
.split__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.split__copy { padding: clamp(2rem, 6vw, 4.5rem) var(--gut); display: flex; flex-direction: column; justify-content: center; }
.split__copy h2 { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 1rem; font-weight: 600; line-height: 1.12; }
.split__copy p { color: var(--ink-soft); margin: 0 0 1rem; }

/* ── Lookbook rail ──────────────────────────────────────────────────────── */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: var(--gut); padding-bottom: .75rem;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
.rail img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: var(--r); }

/* ── Reviews ────────────────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.quote {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.quote p { margin: 0; font-family: var(--display); font-size: 1.05rem; line-height: 1.55; }
.quote__who { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote__who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.quote__who strong { display: block; font-size: .88rem; }
.quote__who span { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.stars { color: var(--flame); font-size: .8rem; letter-spacing: .1em; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pager {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
}
.pager span { color: var(--ink-faint); font-weight: 500; letter-spacing: .1em; }

/* ── Empty state ────────────────────────────────────────────────────────── */
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--r);
  padding: clamp(2rem, 6vw, 4rem); text-align: center; color: var(--ink-soft);
}
.empty h3 { font-family: var(--display); margin: 0 0 .5rem; color: var(--ink); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: #cfc8c0; padding: clamp(3rem, 7vw, 4.5rem) 0 2rem; }
.footer a { color: #cfc8c0; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
.footer__brand img { height: 46px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer__brand p { margin: 1rem 0 0; max-width: 24rem; font-size: .9rem; color: #9d968e; }
.footer h4 {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: #fff; margin: 0 0 1rem; font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.footer__social a {
  width: 38px; height: 38px; border: 1px solid #3a3531; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer__social a:hover { border-color: var(--flame); background: var(--flame); color: #fff; }
.footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.footer__base {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #2c2724;
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  font-size: .78rem; color: #8d8781;
}

/* ── Forms and flat pages (login, register, profile, basket) ────────────── */
.page { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.page__title { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 .5rem; font-weight: 600; }
.page__lead { color: var(--ink-soft); margin: 0 0 2rem; }
.panel {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--paper);
}
.panel--narrow { max-width: 30rem; margin-inline: auto; }
.panel label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.panel input, .panel select, .panel textarea {
  width: 100%; font: inherit; padding: .7rem .85rem; margin-top: .3rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink);
}
.panel input:focus, .panel select:focus, .panel textarea:focus { outline: none; border-color: var(--ink); }
.panel .helptext, .panel .form-text { font-size: .78rem; color: var(--ink-faint); }
.panel ul { padding-left: 1.1rem; }

.messages { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; }
.messages li {
  padding: .8rem 1rem; border-radius: var(--r); font-size: .9rem;
  background: var(--paper-warm); border-left: 3px solid var(--flame);
}

.table-wrap { overflow-x: auto; }
.ltable { width: 100%; border-collapse: collapse; min-width: 34rem; }
.ltable th, .ltable td { text-align: left; padding: .9rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ltable th { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.ltable img { width: 64px; height: 80px; object-fit: cover; border-radius: var(--r); }

/* ── Breakpoints ────────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .promises { grid-template-columns: repeat(4, 1fr); }
  .promises div { border-bottom: 0; }
  .promises div:nth-child(2n) { border-right: 1px solid var(--line); }
  .promises div:last-child { border-right: 0; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem 1.1rem; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-auto-columns: 38%; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
}

@media (min-width: 900px) {
  .masthead__nav { display: flex; }
  /* The hero is sized to the screen, not to the photograph.
     Left alone, the image sets the row height at its own 2:3 ratio — 1078px for
     a 720px column — so the fold landed below the buttons and the copy floated
     in a tall band of white. Absolutely positioning the image takes it out of
     the height calculation entirely, and the row is then whatever this
     min-height says: most of the screen, capped so it never gets silly on a
     tall monitor. svh rather than vh so a mobile browser's collapsing toolbar
     does not make it overflow. */
  .hero { grid-template-columns: 1.05fr 1fr; min-height: min(74svh, 40rem); }
  .hero__copy { padding-inline: clamp(2rem, 5vw, 4.5rem); margin-inline: 0; max-width: none; }
  .hero__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    aspect-ratio: auto; object-fit: cover; object-position: 50% 22%;
  }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
  .rail { grid-auto-columns: 24%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── Confirmation dialog ────────────────────────────────────────────────────
   Replaces window.confirm(). The native dialog cannot be styled, appears
   detached from the page, and phrases everything as OK/Cancel — so emptying a
   basket and deleting a product presented as the same grey box. */
.modal {
  border: 0; padding: 0; background: transparent;
  max-width: min(28rem, calc(100vw - 2rem));
}
.modal::backdrop { background: rgba(20,18,16,.55); backdrop-filter: blur(2px); }
.modal__panel {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}
.modal__panel h3 { font-family: var(--display); font-size: 1.35rem; margin: 0 0 .5rem; font-weight: 600; }
.modal__panel p { margin: 0 0 1.5rem; color: var(--ink-soft); }
.modal__actions { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.modal--danger .modal__confirm { --btn-bg: #a32118; border-color: #a32118; }
.modal--danger .modal__confirm:hover { --btn-bg: #8a1a12; border-color: #8a1a12; }

/* ── Product page ───────────────────────────────────────────────────────── */
.pdp { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); }
.pdp__gallery { display: grid; gap: .6rem; align-content: start; }
.pdp__main { position: relative; background: var(--paper-warm); border-radius: var(--r); overflow: hidden; }
.pdp__main img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.pdp__thumbs { display: flex; gap: .5rem; }
.pdp__thumbs button {
  flex: 0 0 auto; width: 74px; padding: 0; border: 1px solid var(--line);
  background: none; border-radius: var(--r); overflow: hidden; cursor: pointer;
}
.pdp__thumbs button[aria-current="true"] { border-color: var(--ink); }
.pdp__thumbs img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }

.pdp__info h1 { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: .25rem 0 .5rem; font-weight: 600; line-height: 1.12; }
.pdp__price { display: flex; align-items: baseline; gap: .6rem; margin: 0 0 1rem; flex-wrap: wrap; }
.pdp__price strong { font-size: 1.5rem; font-weight: 600; }
.pdp__price del { color: var(--ink-faint); font-size: 1rem; }
.pdp__price .save {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: #fff; background: var(--flame); padding: .2rem .5rem; border-radius: var(--r);
}
.pdp__desc { color: var(--ink-soft); margin: 0 0 1.5rem; }

.field { margin-bottom: 1.25rem; }
.field > label, .field__label {
  display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 600; margin-bottom: .5rem;
}
.field__error { color: #a32118; font-size: .8rem; margin-top: .35rem; }
.field__hint { color: var(--ink-faint); font-size: .8rem; margin-top: .35rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }

.sizes { display: flex; flex-wrap: wrap; gap: .4rem; }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes label {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 3.4rem; padding: .55rem .8rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--r);
  font-size: .8rem; letter-spacing: .04em; text-transform: none; font-weight: 500;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.sizes label:hover { border-color: var(--ink); }
.sizes input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }
.sizes input:focus-visible + label { outline: 2px solid var(--flame); outline-offset: 2px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); }
.stepper button {
  width: 42px; height: 42px; border: 0; background: none; cursor: pointer;
  font-size: 1.1rem; color: var(--ink); line-height: 1;
}
.stepper button:hover { background: var(--paper-warm); }
.stepper input {
  width: 3rem; text-align: center; border: 0; font: inherit; font-weight: 600;
  background: none; color: var(--ink); -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.stock { font-size: .78rem; letter-spacing: .06em; }
.stock--in { color: #1d6b3f; }
.stock--low { color: var(--flame); }
.stock--out { color: #a32118; }

.pdp__meta { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 1.25rem; display: grid; gap: .5rem; font-size: .88rem; color: var(--ink-soft); }

/* ── Basket ─────────────────────────────────────────────────────────────── */
.basket { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
.line {
  display: grid; grid-template-columns: 88px 1fr; gap: 1rem;
  padding: 1.25rem 0; border-bottom: 1px solid var(--line);
}
.line__img img { width: 88px; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r); }
.line__body { display: grid; gap: .5rem; }
.line__top { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.line__name { font-weight: 600; margin: 0; font-size: 1rem; }
.line__size { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.line__price { font-weight: 600; white-space: nowrap; }
.line__controls { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.linkish {
  background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); border-bottom: 1px solid var(--line-strong);
}
.linkish:hover { color: #a32118; border-color: #a32118; }

.summary {
  border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--paper-warm);
}
.summary h3 { font-family: var(--display); margin: 0 0 1rem; font-size: 1.25rem; font-weight: 600; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: .95rem; }
.summary__row--total {
  border-top: 1px solid var(--line-strong); margin-top: .5rem; padding-top: .85rem;
  font-size: 1.1rem; font-weight: 600;
}
.summary__note { font-size: .8rem; color: var(--ink-faint); margin: .75rem 0 0; }

.steps { display: flex; gap: .5rem; align-items: center; margin-bottom: 1.5rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.steps b { color: var(--ink); font-weight: 600; }
.steps span { color: var(--line-strong); }

.radio-cards { display: grid; gap: .6rem; }
.radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.radio-cards label {
  display: block; border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 1rem 1.15rem; cursor: pointer; text-transform: none; letter-spacing: 0;
  font-size: .95rem; font-weight: 500;
}
.radio-cards label small { display: block; color: var(--ink-faint); font-size: .82rem; margin-top: .2rem; font-weight: 400; }
.radio-cards input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-cards input:focus-visible + label { outline: 2px solid var(--flame); outline-offset: 2px; }

/* ── Status badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-block; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line-strong);
  color: var(--ink-soft); white-space: nowrap;
}
.badge--pending   { border-color: #d8b24c; color: #8a6a12; background: #fdf6e3; }
.badge--paid      { border-color: #4c9a68; color: #1d6b3f; background: #edf7f0; }
.badge--packed    { border-color: #6f8fd8; color: #33529c; background: #eef2fc; }
.badge--shipped   { border-color: #b07ad8; color: #6b3596; background: #f6eefc; }
.badge--delivered { border-color: #3f7d55; color: #1d6b3f; background: #e6f4ea; }
.badge--cancelled { border-color: #c98a84; color: #a32118; background: #fdeeec; }

/* ── Back office ────────────────────────────────────────────────────────── */
.staffbar { border-bottom: 1px solid var(--line); background: var(--paper-warm); }
.staffbar nav { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gut); display: flex; gap: .25rem; overflow-x: auto; }
.staffbar a {
  padding: .9rem; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-faint); border-bottom: 2px solid transparent; white-space: nowrap;
}
.staffbar a:hover { color: var(--ink); }
.staffbar a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--flame); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat {
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem;
  background: var(--paper); display: grid; gap: .3rem; align-content: start;
}
.stat__label { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.stat__value { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; font-family: var(--display); line-height: 1.1; }
.stat__note { font-size: .78rem; color: var(--ink-faint); }
.stat__note--up { color: #1d6b3f; }
.stat__note--down { color: #a32118; }

.sparkline { display: flex; align-items: flex-end; gap: 3px; height: 72px; margin-top: .75rem; }
.sparkline div { flex: 1; background: var(--flame); opacity: .75; border-radius: 1px 1px 0 0; min-height: 2px; }
.sparkline div:hover { opacity: 1; }

.panelcard { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.panelcard__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.panelcard__head h3 { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.panelcard__body { padding: 1.25rem; }
.panelcard__body--flush { padding: 0; }

.bar { display: grid; gap: .85rem; }
.bar__row { display: grid; grid-template-columns: 1fr auto; gap: .5rem .75rem; align-items: center; font-size: .9rem; }
.bar__track { grid-column: 1 / -1; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--ink); }

.inline-form { display: inline-flex; gap: .35rem; align-items: center; }
.inline-form input[type="number"] {
  width: 4.5rem; padding: .4rem .5rem; font: inherit; font-size: .85rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink);
}
.inline-form select {
  padding: .4rem .5rem; font: inherit; font-size: .85rem;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink);
}

.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.toolbar form { display: flex; gap: .5rem; flex: 1 1 16rem; }
.toolbar input[type="search"] {
  flex: 1; padding: .6rem .8rem; font: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--paper); color: var(--ink);
}

.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.filters a {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  padding: .45rem .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-soft);
}
.filters a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.authwrap { max-width: 27rem; margin-inline: auto; }
.authwrap .panel { padding: clamp(1.5rem, 4vw, 2.25rem); }
.auth-alt { text-align: center; margin-top: 1.25rem; font-size: .9rem; color: var(--ink-soft); }
.auth-alt a { border-bottom: 1px solid var(--flame); }

.errorlist { list-style: none; margin: .4rem 0 0; padding: 0; color: #a32118; font-size: .8rem; }

@media (min-width: 700px) {
  .pdp { grid-template-columns: 1.05fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .line { grid-template-columns: 110px 1fr; }
  .line__img img { width: 110px; }
}
@media (min-width: 900px) {
  .basket { grid-template-columns: 1.6fr 1fr; gap: 3rem; }
  .summary { position: sticky; top: 7rem; }
}

.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--flame); color: #fff; border-radius: 999px;
  font-size: .62rem; font-weight: 600; line-height: 17px; text-align: center;
}
