/* ==========================================================================
   Forty Nine Unbeaten — homepage
   ========================================================================== */

:root {
  --ink: #000;
  --paper: #fff;
  --muted: #8a8a8a;
  --rule: #000;
  --rule-dark: #2a2a2a;
  --ph: #d9d9d9;
  --ph-ink: #111;

  --header-h: 50px;
  --pad: 16px;
  /* The footer's contents sit in a centred column; the header, hero and
     product grid are full-bleed. */
  --container: 860px;
  --font: "Poppins", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;

  /* Design values are specified at full HD (1920px) and scale down
     fluidly — each max below is the 1920px figure, and the vw middle
     term is that figure as a percentage of 1920. */
  --edge: clamp(16px, 2.0833vw, 40px);          /* header inset from the page edges */
  --card-pad-top: clamp(20px, 4.1667vw, 80px);  /* top rule to image */
  --card-pad-x: clamp(14px, 1.25vw, 24px);      /* image to card sides */
  --card-pad-bottom: clamp(14px, 1.25vw, 24px);
  --card-gap: clamp(18px, 2.9167vw, 56px);      /* image bottom to first line of text */

  /* Line heights are kept as ratios so the specified size/line-height
     pairs hold at every width: 28/20 and 24/16 both reduce to these. */
  --fs-title: clamp(14px, 1.0417vw, 20px);
  --lh-title: 1.4;
  --fs-type: clamp(12px, 0.8333vw, 16px);
  --lh-type: 1.5;
  --fs-price: clamp(14px, 1.0417vw, 20px);
  --lh-price: 1.4;
  --fs-heading: clamp(22px, 2.0833vw, 40px);
  --lh-heading: 1.2;

  --green: #1a8a1a;
  --green-dark: #146d14;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  /* Keeps the footer at the bottom of the window on short pages like
     Contact, instead of leaving white space beneath it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main { flex: 1 0 auto; }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus { left: 0; }

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

/* Image placeholders — swap these for real <img> elements
   ========================================================================== */

.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ph);
  color: var(--ph-ink);
  font-weight: 500;
  letter-spacing: -0.01em;
  user-select: none;
}

.ph--hero {
  width: 100%;
  aspect-ratio: 1200 / 310;
  min-height: 200px;
  font-size: clamp(32px, 4.4vw, 54px);
}

.ph--card {
  width: 100%;
  aspect-ratio: 1 / 1;
  font-size: clamp(28px, 3.2vw, 44px);
}

/* Category pages get a short band rather than the homepage's tall hero. */
.ph--hero-sm {
  width: 100%;
  height: 260px;
  font-size: clamp(30px, 3.4vw, 44px);
}

img.ph--hero-sm {
  object-fit: cover;
  background: var(--ph);
}

/* Real photos swapped in by the CMS reuse the placeholder's sizing
   classes but render as <img>, so crop them to fit instead of
   stretching. */
img.ph--hero,
img.ph--card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ph);
}

/* Header
   ========================================================================== */

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

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  padding: 0 var(--edge);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  font-weight: 500;
}

.nav a {
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.nav a:hover { border-bottom-color: var(--ink); }

/* Centred wordmark */
.logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.logo__mark {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

/* Uploaded logo replaces the typeset wordmark; height is capped so any
   aspect ratio still fits the header band. */
.logo__img {
  height: clamp(24px, 1.98vw, 38px);
  width: auto;
  max-width: min(46vw, 320px);
  object-fit: contain;
}

.logo__type {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.cart {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
}

.cart__icon { width: 19px; height: 19px; }

.cart__meta { font-variant-numeric: tabular-nums; }

/* Cart count pulse when an item is added */
.cart--bump { animation: bump 0.32s ease; }

@keyframes bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Mobile menu button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 24px;
  height: 24px;
}

.burger span {
  display: block;
  height: 1.8px;
  width: 100%;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* Hero
   ========================================================================== */

.hero {
  border-bottom: 1px solid var(--rule);
}

.hero__link { display: block; }

/* Section head
   ========================================================================== */

.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* Matches the cards' side padding so the heading lines up with the
     left edge of the first product image. */
  padding: 18px var(--card-pad-x);
}

.section__title {
  margin: 0;
  font-size: var(--fs-heading);
  line-height: var(--lh-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section__link {
  font-size: 14px;
  font-weight: 400;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.section__link:hover { border-bottom-color: var(--ink); }

.section__intro {
  margin: -6px 0 18px;
  padding: 0 var(--card-pad-x);
  max-width: 64ch;
  font-size: clamp(13px, 0.83vw, 15px);
  line-height: 1.6;
  color: var(--muted);
}

.grid-empty {
  margin: 0;
  padding: 56px var(--card-pad-x);
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted);
}

/* Product grid — hairlines between cells, flush to the page edges
   ========================================================================== */

.grid {
  display: grid;
  /* minmax(0, ...) rather than a bare 1fr: a bare fr floors at the
     column's min-content width, so an open size picker would widen its
     own column and squeeze the card beside it. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}

.card {
  display: flex;
  flex-direction: column;
  padding: var(--card-pad-top) var(--card-pad-x) var(--card-pad-bottom);
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* No rail on the last column. Every card keeps its bottom rule — the
   grid has none of its own, so a part-full last row still gets a line. */
.grid > .card:nth-child(4n) { border-right: 0; }

.card__media { display: block; }

.card__body { padding-top: var(--card-gap); }

.card__title {
  margin: 0;
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card__type {
  margin: 1px 0 0;
  font-size: var(--fs-type);
  line-height: var(--lh-type);
  color: var(--muted);
}

.card__price {
  margin: clamp(12px, 1.25vw, 24px) 0 0;
  font-size: var(--fs-price);
  line-height: var(--lh-price);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.card a:hover .ph { opacity: 0.88; }
.ph { transition: opacity 0.15s ease; }

/* Product page
   ========================================================================== */

.product {
  display: grid;
  grid-template-columns: minmax(0, 48.6fr) minmax(0, 51.4fr);
  border-bottom: 1px solid var(--rule);
}

.product__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 4.2vw, 80px) clamp(20px, 3.1vw, 60px);
  background: #f1f2f6;
  border-right: 1px solid var(--rule);
}

.product__figure {
  display: flex;
  justify-content: center;
  width: 100%;
}

.ph--product {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  font-size: clamp(28px, 3.2vw, 44px);
}

/* A real photo keeps the same 540px square box so switching material
   never shifts the layout; contain shows the whole artwork. */
img.ph--product {
  object-fit: contain;
  background: none;
}

.product__panel {
  padding: clamp(24px, 2.1vw, 40px) clamp(20px, 2.1vw, 40px);
}

.product__inner {
  max-width: 640px;
}

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

.crumbs a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.crumbs a:hover { border-bottom-color: currentColor; }
.crumbs a:last-child { color: var(--ink); }

.product__title {
  margin: 14px 0 0;
  font-size: clamp(22px, 1.6vw, 30px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.product__price {
  margin: 12px 0 0;
  font-size: clamp(30px, 2.34vw, 45px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.product__ship {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.product__label {
  margin: clamp(20px, 1.8vw, 32px) 0 12px;
  font-size: clamp(15px, 0.94vw, 18px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Variant picker — a radio group of bordered cells, the chosen one filled */

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

.variant {
  display: grid;
  place-items: center;
  min-height: clamp(40px, 2.6vw, 50px);
  padding: 8px 12px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-size: clamp(13px, 0.83vw, 16px);
  font-weight: 500;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.variant:hover { background: #f1f2f6; }

.variant--selected,
.variant--selected:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Apparel: sizes in one row, colours as swatches below */

.sizes-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 10px;
}

.variant--size { padding: 8px 4px; }

.product__label-value {
  font-weight: 400;
  color: var(--muted);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.swatch {
  display: grid;
  place-items: center;
  width: clamp(38px, 2.6vw, 50px);
  height: clamp(38px, 2.6vw, 50px);
  flex: none;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: box-shadow 0.15s ease;
}

.swatch__dot {
  width: 100%;
  height: 100%;
  /* Inset so the cell's black border reads as the frame, not the colour
     itself — pale shirt colours would otherwise have no visible edge. */
  transform: scale(0.78);
}

.swatch--selected,
.swatch:hover {
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--ink);
}

/* Info lines — the ⓘ mark is a background image so the note text can
   come straight from the CMS as a plain string. */

.note,
.notes .note {
  position: relative;
  margin: 12px 0 0;
  padding-left: 24px;
  font-size: clamp(12px, 0.73vw, 14px);
  line-height: 1.5;
}

.note::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 15px;
  height: 15px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23000'/%3E%3Crect x='7.1' y='6.7' width='1.8' height='5.6' fill='%23fff'/%3E%3Ccircle cx='8' cy='4.3' r='1.1' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}

.notes { margin-top: 18px; }

/* Quantity stepper */

.qty {
  display: inline-grid;
  grid-template-columns: auto auto auto;
  align-items: stretch;
  border: 1px solid var(--rule);
}

.qty__btn {
  display: grid;
  place-items: center;
  width: clamp(38px, 2.1vw, 41px);
  min-height: clamp(38px, 2.1vw, 41px);
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.qty__btn:hover { background: var(--ink); color: var(--paper); }

.qty__input {
  width: clamp(38px, 2.1vw, 41px);
  border: 0;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  background: none;
  color: inherit;
  font: inherit;
  font-size: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-cart {
  display: block;
  width: 100%;
  margin-top: clamp(20px, 1.8vw, 32px);
  padding: clamp(14px, 0.94vw, 18px);
  background: var(--green);
  color: #fff;
  font-size: clamp(14px, 0.83vw, 16px);
  font-weight: 600;
  text-align: center;
  transition: background-color 0.15s ease;
}

.btn-cart:hover { background: var(--green-dark); }

/* Collapsible panels */

.panels { margin-top: clamp(22px, 1.8vw, 32px); }

.panel { border-top: 1px solid var(--rule); }
.panel:last-child { border-bottom: 1px solid var(--rule); }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 0.94vw, 18px) 0;
  font-size: clamp(14px, 0.83vw, 16px);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.panel__head::-webkit-details-marker { display: none; }

.panel__head::after {
  content: "";
  flex: none;
  margin-right: 12px; /* pulls the chevron in from the right edge */
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--ink);
  border-bottom: 1.6px solid var(--ink);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.panel[open] .panel__head::after { transform: rotate(45deg); }

.panel__body {
  padding: 0 0 clamp(14px, 0.94vw, 18px);
  font-size: clamp(12px, 0.73vw, 14px);
  line-height: 1.6;
  max-width: 60ch;
}

/* Full-bleed detail image below the buy panel */

.showcase { display: block; }

.ph--showcase {
  width: 100%;
  aspect-ratio: 1920 / 620;
  min-height: 220px;
  font-size: clamp(40px, 4.7vw, 90px);
}

img.ph--showcase {
  height: 100%;
  object-fit: cover;
  background: var(--ph);
}

/* Simple content pages — contact, privacy, terms
   ========================================================================== */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 88px) var(--edge) clamp(56px, 6vw, 104px);
}

.page__title {
  margin: 0;
  font-size: var(--fs-heading);
  line-height: var(--lh-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page__updated {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.page__intro {
  margin: 18px 0 0;
  font-size: clamp(14px, 0.94vw, 18px);
  line-height: 1.6;
  max-width: 60ch;
}

/* Legal copy */

.prose { margin-top: clamp(28px, 3vw, 48px); }

.prose__block + .prose__block { margin-top: clamp(24px, 2.4vw, 40px); }

.prose__heading {
  margin: 0 0 10px;
  padding-top: clamp(16px, 1.6vw, 26px);
  border-top: 1px solid var(--rule);
  font-size: clamp(15px, 0.94vw, 18px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.prose p {
  margin: 0 0 12px;
  font-size: clamp(13px, 0.83vw, 15px);
  line-height: 1.65;
  max-width: 68ch;
}

.prose p:last-child { margin-bottom: 0; }

/* Contact */

.contact {
  display: flex;
  flex-direction: column;
  margin-top: clamp(28px, 3vw, 48px);
  border-top: 1px solid var(--rule);
}

.contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 24px;
  padding: clamp(18px, 1.8vw, 28px) 0;
  border-bottom: 1px solid var(--rule);
  transition: padding-left 0.15s ease;
}

.contact__row:hover { padding-left: 8px; }

.contact__label {
  flex: none;
  width: 110px;
  font-size: 13px;
  color: var(--muted);
}

.contact__value {
  font-size: clamp(17px, 1.25vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  word-break: break-word;
}

/* Cart — drawer and cart page share the line and summary components
   ========================================================================== */

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.line:first-child { border-top: 1px solid var(--rule); }

.line__thumb {
  width: 72px;
  height: 72px;
  flex: none;
  background: var(--ph);
  overflow: hidden;
}

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

.line__thumb--empty {
  display: grid;
  place-items: center;
  color: var(--ph-ink);
  font-size: 15px;
}

.line__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.line__variant {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.line__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}

.line__remove {
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.line__remove:hover {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.line__price {
  margin: 0;
  text-align: right;
  font-size: 15px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.line__each {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}

/* Compact stepper used inside a cart line */
.qty--sm .qty__btn {
  width: 28px;
  min-height: 28px;
  font-size: 14px;
}

.qty__count {
  display: grid;
  place-items: center;
  min-width: 32px;
  padding: 0 4px;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

/* Summary block */

.sum {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.sum__note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.sum__notice {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.5;
}

.sum__link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  border-bottom: 1px solid transparent;
}

.sum__link:hover { border-bottom-color: var(--ink); }

.cart-empty {
  padding: 48px 0;
  text-align: center;
}

.cart-empty p {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
}

.cart-empty__link {
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
}

/* Drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.drawer[hidden] { display: none; }

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }

body.has-drawer { overflow: hidden; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px var(--card-pad-x);
  border-bottom: 1px solid var(--rule);
}

.drawer__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border: 1px solid var(--rule);
  font-size: 19px;
  line-height: 1;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.drawer__close:hover {
  background: var(--ink);
  color: var(--paper);
}

.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 0 var(--card-pad-x);
}

.drawer__body .line:first-child { border-top: 0; }

.drawer__foot {
  flex: none;
  padding: 18px var(--card-pad-x) 22px;
  border-top: 1px solid var(--rule);
}

.drawer__foot .btn-cart { margin-top: 14px; }

/* Cart page */

.page--cart { max-width: 1040px; }

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-top: clamp(24px, 3vw, 40px);
}

.cart-page__summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 22px;
  border: 1px solid var(--rule);
}

.cart-page .line__thumb {
  width: 96px;
  height: 96px;
}

@media (max-width: 760px) {
  .cart-page { grid-template-columns: minmax(0, 1fr); }
  .cart-page__summary { position: static; }
  .cart-page .line__thumb { width: 72px; height: 72px; }
}

@media (max-width: 480px) {
  .line {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
  }
  /* Price drops under the details rather than squeezing a third column. */
  .line__price {
    grid-column: 2;
    text-align: left;
    margin-top: 10px;
  }
}

/* Footer
   ========================================================================== */

.footer {
  background: var(--ink);
  color: var(--paper);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--pad) 48px;
}

.footer__brand {
  display: flex;
  justify-content: center;
}

.seal { width: 150px; height: 150px; }

.seal--img {
  height: auto;
  max-height: 150px;
  object-fit: contain;
}

.seal__text {
  fill: var(--paper);
  font-family: var(--font);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.seal__num {
  fill: var(--paper);
  font-family: var(--font);
  font-size: 62px;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.seal__dot { fill: var(--paper); }

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: start;
  font-size: 13px;
  padding-top: 8px;
}

.footer__col a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.footer__col a:hover { border-bottom-color: currentColor; }

.social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social a { border: 0; }

.social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.social a:hover svg { opacity: 1; }

.footer__bar {
  border-top: 1px solid var(--rule-dark);
  padding: 16px var(--pad);
  text-align: center;
}

.footer__bar p {
  margin: 0;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfcfcf;
}

/* Responsive
   ========================================================================== */

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid > .card:nth-child(4n) { border-right: 1px solid var(--rule); }
  .grid > .card:nth-child(3n) { border-right: 0; }

  .footer__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 24px;
  }
  .footer__brand {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .burger { display: flex; }

  .header__inner {
    justify-content: space-between;
    min-height: 54px;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0 var(--edge);
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s ease, visibility 0.25s ease;
  }

  .nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--rule);
  }
  .nav a:last-child { border-bottom: 0; }
  .nav a:hover { border-bottom-color: var(--rule); }

  .nav.is-open {
    max-height: 260px;
    visibility: visible;
  }

  /* Image above, buy panel below. */
  .product { grid-template-columns: minmax(0, 1fr); }

  .product__media {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .ph--product { max-width: 420px; }

  .product__inner { max-width: none; }

  .logo__mark { font-size: 23px; }
  .logo__type { font-size: 11px; }

  .cart__meta { font-size: 12px; }

  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .card:nth-child(3n),
  .grid > .card:nth-child(4n) { border-right: 1px solid var(--rule); }
  .grid > .card:nth-child(2n) { border-right: 0; }
}

@media (max-width: 480px) {
  /* Four variant cells side by side get too cramped to read. */
  .variants { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .logo__type span:first-child { letter-spacing: -0.02em; }
  .section__head { padding: 14px var(--pad); }
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px var(--pad) 36px;
  }
  .seal { width: 124px; height: 124px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
