/* Poppins, self-hosted (SIL Open Font License, see /fonts/OFL.txt). latin-ext only downloads if a page uses those characters. */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/poppins-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/poppins-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/poppins-800-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/poppins-800-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #14213a;
  --ink-soft: #4b5870;
  --paper: #edf0f4;        /* page base: ink 14.04:1, navy 13.18:1, ink-soft 6.27:1 */
  --white: #ffffff;
  --navy: #122647;
  --navy-deep: #0c1b33;
  --orange: #f58c28;        /* bright brand orange: borders, underlines, badges, on navy. Never white text on it (2.42:1). */
  --button: #b35900;        /* primary buttons: white text 4.83:1 */
  --button-hover: #8f4700;  /* white text 6.84:1 */
  --orange-text: #a85400;   /* orange text ("Only N left") on white 5.34:1 and on --paper 4.67:1 */
  --accent-ui: #cc6600;     /* non-text indicators (focus marks, active thumbnail, progress fill): 3.84:1 on white, 3.36:1 on --paper */
  --sale: #b42318;          /* genuine savings badges only, white text 6.57:1. Never for low stock or the logo. */
  --success: #177245;       /* In stock: 5.95:1 on white, 5.21:1 on --paper */
  --danger: #a8322d;        /* Out of stock and errors: 6.65:1 on white */
  --line: #c5cdda;          /* dividers and card borders (decorative) */
  --input-line: #7d8aa0;    /* input, select and stepper borders: 3.49:1 on white, 3.05:1 on --paper */
  --track: #e9edf2;         /* progress track: --accent-ui fill 3.27:1 */
  --disabled-bg: #e4e9f0;
  --disabled-text: #4b5870; /* 5.88:1 on --disabled-bg */
  --card-shadow: 0 1px 2px rgba(18,38,71,.06), 0 4px 14px rgba(18,38,71,.07);
  --contact-text: #d5deeb;
  --contact-muted: #9fb1cc;
  --measure: 64ch;
  --wrap: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-color: var(--orange); }
a:hover { color: var(--orange-text); }

/* Focus ring: navy outline with a white inner ring (WCAG technique C40), so one of the two colours
   always contrasts: navy on light pages (13.9:1 or more) and on the orange promo bar (6.2:1),
   white on the navy header and footer (15:1 or more). */
:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--white);
}
/* The quantity box clips anything outside it, so draw the same ring inside the control. */
.qty button:focus-visible, .qty input:focus-visible {
  outline-offset: -3px;
  box-shadow: inset 0 0 0 5px var(--white);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 10;
}

/* Header */
.site-header {
  background: var(--navy);
  border-bottom: 4px solid var(--orange);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.wordmark:hover { color: var(--white); }
.wordmark svg { width: 40px; height: 40px; }
.wordmark span span { color: var(--orange); }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.site-nav a {
  color: var(--contact-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--orange); }

/* Hero */
.hero { padding: 56px 0 64px; overflow-x: clip; }
.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}
.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 16ch;
  color: var(--navy);
}
.hero h1 em {
  font-style: normal;
  color: var(--navy-deep);
  text-decoration: underline;
  text-decoration-color: var(--accent-ui);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
}
.hero p {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--ink-soft);
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--orange);
}
.button.primary { background: var(--button); border-color: var(--button); color: var(--white); }
.button.primary:hover { background: var(--button-hover); border-color: var(--button-hover); color: var(--white); }
.button.secondary { color: var(--navy); border-color: var(--navy); background: transparent; }
.button.secondary:hover { background: var(--navy); color: var(--white); }

/* The address label: the one bold element */
.label {
  position: relative;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 0;
  box-shadow: 6px 6px 0 var(--orange);
  transform: rotate(-1.2deg);
  max-width: 440px;
  justify-self: center;
  width: 100%;
}
.label::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 28px;
  margin-left: -60px;
  background: var(--orange);
  opacity: 0.9;
  transform: rotate(2deg);
}
.label-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 22px 22px 14px;
  border-bottom: 2px solid var(--navy);
}
.label-head .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.label-head svg { width: 34px; height: 34px; }
.label-head strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}
.label-head span.kind { font-size: 0.82rem; color: var(--ink-soft); }
.label dl { margin: 0; }
.label .row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 12px;
  padding: 11px 22px;
  border-bottom: 1px dashed var(--line);
}
.label .row:last-child { border-bottom: 0; }
.label dt { font-size: 0.85rem; color: var(--ink-soft); }
.label dd { margin: 0; font-weight: 600; font-size: 0.95rem; }
.label-foot {
  overflow: hidden;
  display: flex;
  gap: 3px;
  height: 34px;
  padding: 0 22px 18px;
  align-items: flex-end;
}
.label-foot i { display: block; background: var(--navy); height: 100%; }

@media (max-width: 520px) {
  .label { box-shadow: 4px 4px 0 var(--orange); transform: rotate(-0.6deg); }
  .label .row { grid-template-columns: 6.5rem 1fr; padding: 10px 16px; }
  .label-head { padding: 20px 16px 12px; }
  .label-foot { padding: 0 16px 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .label { animation: settle 700ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes settle {
    from { transform: translateY(-14px) rotate(-4deg); opacity: 0; }
    to { transform: rotate(-1.2deg); opacity: 1; }
  }
}

/* Home page around products: a short value line, category tiles, then a product grid (render.ts renderHomePage). */
.hero-compact { padding: 40px 0 28px; }
.hero-compact .wrap { display: block; }
.hero-compact h1 { max-width: 20ch; }
.hero-compact p { margin-bottom: 20px; }
@media (min-width: 900px) { .hero-compact { padding: 40px 0 24px; } }
.home-block { padding: 8px 0 28px; }
.home-block h2 { margin: 0 0 14px; font-size: clamp(1.3rem, 2.6vw, 1.6rem); font-weight: 800; color: var(--navy); letter-spacing: -0.01em; }
.home-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.home-tiles a { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; height: 100%; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--card-shadow); color: var(--navy); text-decoration: none; }
.home-tiles a:hover { border-color: var(--input-line); }
.home-tiles a:hover .tile-name { text-decoration: underline; text-decoration-color: var(--accent-ui); }
.tile-img { grid-row: 1 / span 2; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--white); }
.tile-img img { width: 100%; height: 100%; object-fit: contain; }
.tile-noimg { width: 100%; height: 100%; border-radius: 6px; background: var(--track); }
.tile-name { font-weight: 700; line-height: 1.3; font-size: 0.95rem; align-self: end; min-width: 0; overflow-wrap: break-word; }
.tile-count { font-size: 0.82rem; color: var(--ink-soft); align-self: start; }
.home-grid-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home-grid-head a { font-weight: 600; }
.home-grid { padding-bottom: 12px; }
.home-fallback { margin: 0; }

/* Sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--white); }
.section-grid { display: grid; gap: 20px 64px; }
@media (min-width: 900px) {
  .section { padding: 88px 0; }
  .section-grid { grid-template-columns: 0.8fr 1.2fr; }
}
.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.section h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 14px;
  background: var(--orange);
  border-radius: 2px;
}
.section p { margin: 0 0 16px; max-width: var(--measure); }
.section p:last-child { margin-bottom: 0; }

.categories {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  border-top: 2px solid var(--navy);
}
@media (min-width: 640px) {
  .categories { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
.categories li { border-bottom: 1px solid var(--line); }
/* Each category opens the shop filtered to it. */
.categories a { display: block; height: 100%; padding: 16px 0; color: inherit; text-decoration: none; }
.categories strong { display: block; font-weight: 700; color: var(--navy); }
.categories a strong::after { content: "\2192"; content: "\2192" / ""; margin-left: 0.35em; color: var(--orange-text); }
.categories a:hover strong { color: var(--orange-text); text-decoration: underline; text-underline-offset: 3px; }
.categories span { color: var(--ink-soft); font-size: 0.95rem; }
.note { margin-top: 20px !important; color: var(--ink-soft); }

.commitments {
  list-style: none;
  margin: 0;
  padding: 0;
}
.commitments li {
  position: relative;
  padding: 0 0 18px 30px;
  max-width: var(--measure);
}
.commitments li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 14px;
  background: var(--orange);
  border-radius: 50%;
}
.commitments strong { font-weight: 700; color: var(--navy); }

/* Contact */
.contact { background: var(--navy); color: var(--white); border-top: 0; }
.contact h2 { color: var(--white); margin-bottom: 12px; }
.contact p { color: var(--contact-text); }
.contact a { color: var(--white); }
.contact a:hover { color: var(--orange); }
.contact-list { margin: 8px 0 0; display: grid; gap: 18px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list dt { font-size: 0.85rem; color: var(--contact-muted); }
.contact-list dd { margin: 0; font-size: 1.15rem; font-weight: 600; }
.contact-list dd a { text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Footer */
.site-footer { padding: 28px 0 36px; font-size: 0.9rem; color: var(--contact-muted); background: var(--navy-deep); }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--orange); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.site-footer p { margin: 0; }
.footer-id p + p { margin-top: 6px; }
.footer-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.footer-links a { display: inline-block; padding: 4px 0; }

/* Plain text pages */
.page { padding: 56px 0 80px; }
.page h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
}
.page .updated { color: var(--ink-soft); margin: 0 0 40px; }
.page h2 {
  margin: 40px 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.page p, .page li { max-width: var(--measure); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 6px; }

/* ===================== Shop ===================== */
.site-nav .basket-link { display: inline-flex; align-items: center; gap: 6px; color: var(--white); font-weight: 600; }
.basket-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--orange); color: var(--navy); font-size: 0.75rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.basket-count[hidden] { display: none; }

.shop-head { padding-top: 40px; padding-bottom: 8px; }
.shop-head h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.shop-head p { margin: 0; color: var(--ink-soft); }
.delivery-strip { margin: 18px 0 0; padding: 10px 14px; border-left: 4px solid var(--orange); background: var(--white); color: var(--ink); font-size: 0.95rem; }

.shop-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 24px 0 18px; }
.shop-tools input, .shop-tools select { font: inherit; padding: 10px 12px; border: 1px solid var(--input-line); border-radius: 6px; background: var(--white); color: var(--ink); min-width: 0; }
.shop-tools input { flex: 1 1 240px; }
/* Sort menu with its visible label inside the box ("Sort: Featured"), so the active sort is always named. */
.sort-box { position: relative; display: flex; min-width: 0; }
.sort-prefix { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 0.9em; pointer-events: none; }
.shop-tools .sort-box select { padding-left: 3.4em; width: 100%; }
.shop-tools .count { color: var(--ink-soft); font-size: 0.9rem; margin-left: auto; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 18px; padding-bottom: 64px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--card-shadow); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(18,38,71,.13); transform: translateY(-2px); }

/* Product image box: the same square, white, padded box everywhere a product photo shows (shop cards,
   product gallery and its thumbnails, basket lines, added-to-basket panel). Tall and wide photos are
   both shown whole and centred. The skeleton, the fade-in and "Image unavailable" use this same box,
   so nothing stretches or jumps when an image loads or fails. */
.card .media, .gallery .main, .thumbs button, .line .thumb, .ap-img {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1; background: var(--white); overflow: hidden;
}
.card .media img, .gallery .main img, .thumbs img, .line .thumb img, .ap-img img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 8%;
}
.card .noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-size: 0.85rem; }

/* Card text rows keep fixed heights, so cards in a row line up whatever the name or brand. */
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .brand { display: block; height: calc(0.75rem * 1.65); line-height: 1.65; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h3 { margin: 0; font-size: 0.98rem; font-weight: 600; line-height: 1.35; min-height: calc(0.98rem * 1.35 * 2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { height: calc(1.15rem * 1.65); flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.card .stock { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--orange-text); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .now { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.price .was { font-size: 0.9rem; color: var(--ink-soft); text-decoration: line-through; }
.price .save { font-size: 0.75rem; font-weight: 700; color: var(--white); background: var(--sale); padding: 2px 6px; border-radius: 4px; }
.stock { font-size: 0.85rem; font-weight: 600; }
.stock.in { color: var(--success); }
.stock.low { color: var(--orange-text); }
.stock.out { color: var(--danger); }
/* "Reserved in your basket" beside the stock text, or on the next line when both do not fit (neither is
   ever cut short). Cards in a row stretch to the same height and keep their buttons at the bottom. */
.stock-line { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; max-width: 100%; }
.stock.held { color: var(--navy); font-weight: 600; }
.card .stock-line { display: flex; }
.card .stock-line .stock { overflow: visible; text-overflow: clip; }
.card .add { margin-top: auto; }
.button.small { padding: 9px 14px; font-size: 0.92rem; }
/* Unavailable (out of stock, or at the order limit but still focusable): grey, never faded orange. */
.button[disabled], .button[aria-disabled="true"] { background: var(--disabled-bg); border-color: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed; }
.button.block { width: 100%; text-align: center; }
button.button { font: inherit; font-weight: 600; cursor: pointer; }

.empty, .loading, .error-box { padding: 40px 0 80px; color: var(--ink-soft); }
.error-box { color: var(--danger); }
.grid > .empty, .grid > .error-box { grid-column: 1 / -1; max-width: var(--measure); }

/* Product page */
.product { display: grid; gap: 32px; padding: 36px 0 72px; }
@media (min-width: 860px) { .product { grid-template-columns: 1.05fr 0.95fr; gap: 48px; } }
.gallery .main { border: 1px solid var(--line); border-radius: 10px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 64px; padding: 0; border: 2px solid var(--line); border-radius: 6px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--accent-ui); }
.product h1 { margin: 4px 0 10px; font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.2; color: var(--navy); font-weight: 800; }
.product .price .now { font-size: 1.6rem; }
.buy { display: flex; gap: 10px; align-items: center; margin: 18px 0 10px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--input-line); border-radius: 6px; overflow: hidden; background: var(--white); }
/* +/- are 44x44px tap targets (WCAG 2.5.5) */
.qty button { width: 44px; min-height: 44px; border: 0; background: var(--paper); font: inherit; font-size: 1.1rem; cursor: pointer; color: var(--navy); }
.qty input { width: 52px; border: 0; text-align: center; font: inherit; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Beside the buy button: delivery cost, estimated dates and the returns link (render.ts, product.js). */
.buy-info { display: grid; gap: 2px; margin: 0 0 14px; padding: 10px 12px; border-left: 3px solid var(--accent-ui); background: var(--white); font-size: 0.92rem; line-height: 1.45; }
.buy-info p { margin: 0; }
.buy-delivery { font-weight: 600; color: var(--ink); }
.buy-eta { color: var(--ink-soft); }
/* Similar items and Goes well with (product page) */
.related { padding: 8px 0 8px; }
.related h2 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.related .grid { padding-bottom: 28px; }
#related-root:empty { display: none; }
.facts { margin: 22px 0 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 8rem 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }
.prose { white-space: pre-line; }
.notice { font-size: 0.9rem; color: var(--ink-soft); }

/* Basket */
.basket { display: grid; gap: 28px; padding: 32px 0 72px; }
@media (min-width: 860px) { .basket { grid-template-columns: 1fr 340px; align-items: start; } }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line .meta a { color: var(--ink); font-weight: 600; text-decoration: none; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.line .meta { min-width: 0; }
/* Phones: total and Checkout above the items. Wider screens have the sticky summary beside them. */
.basket-top { display: none; }
@media (max-width: 859px) {
  .basket-top { display: grid; gap: 10px; margin: 0 0 16px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--card-shadow); }
  .basket-top-total { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
  .basket-top-total strong { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
  .basket-top-note { font-size: 0.85rem; color: var(--ink-soft); }
}
/* "Have a code?": the note about entering codes on the payment page, closed until asked for. */
.summary details.code { margin: 10px 0 4px; font-size: 0.9rem; }
.summary details.code summary { cursor: pointer; color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-ui); text-underline-offset: 0.18em; display: inline-flex; align-items: center; min-height: 32px; }
.code-note { margin: 4px 0 0; color: var(--ink-soft); }
.pay-secure { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: 0.86rem; line-height: 1.45; color: var(--ink-soft); }
.pay-secure strong { color: var(--ink); }
.pay-secure .lock { flex: none; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line .meta .sub { font-size: 0.85rem; color: var(--ink-soft); }
.line .right { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: 0.85rem; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
/* Remove: 44x44px hit area; the negative margin keeps the text where it was. */
.line .right .linkish { display: inline-flex; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; margin: -12px 0; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 20px; position: sticky; top: 16px; box-shadow: var(--card-shadow); }
.summary h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--navy); }
.summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.1rem; }
.summary .hint { font-size: 0.88rem; color: var(--ink-soft); margin: 10px 0 14px; }
.progress { height: 6px; background: var(--track); border-radius: 3px; overflow: hidden; margin: 6px 0 0; }
.progress i { display: block; height: 100%; background: var(--accent-ui); }
.alert { padding: 12px 14px; border-radius: 6px; background: #fdecea; color: #7a1f1a; margin: 0 0 14px; font-size: 0.93rem; }
.alert.ok { background: #e7f5ec; color: #1f5a33; }
.alert.info { background: #e8edf5; color: var(--navy); }
/* Unfinished checkout (basket): its live region takes no space when empty. The countdown line keeps
   one height so a new minute never moves the buttons. */
.hold-wrap:empty { display: block; height: 0; overflow: hidden; }
.hold { margin: 0 0 18px; padding: 16px 18px; font-size: 0.97rem; }
.hold p { margin: 0 0 6px; }
.hold-left { min-height: 1.5em; font-variant-numeric: tabular-nums; }
.hold-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.hold-actions .button { min-height: 44px; min-width: 44px; cursor: pointer; font: inherit; font-weight: 600; }
.hold-actions .button:disabled { cursor: default; }
@media (max-width: 639px) { .hold-actions .button { flex: 1 1 100%; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cat-chip { display: inline-block; font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 4px; }
.crumbs { font-size: 0.88rem; margin: 24px 0 0; color: var(--ink-soft); }
.crumbs a { color: var(--ink-soft); }
.product > *, .basket > * { min-width: 0; }
.product h2 { font-size: 1.1rem; margin: 22px 0 6px; color: var(--navy); }
/* Offer banner (js/promo.js) */
.promo-bar[hidden] { display: none; }
.promo-bar { background: var(--orange); color: var(--navy); text-align: center; padding: 8px 16px; font-size: 0.92rem; font-weight: 600; }
.promo-bar p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.promo-code { font: inherit; font-weight: 800; letter-spacing: 0.06em; background: var(--white); color: var(--navy); border: 2px dashed var(--navy); border-radius: 4px; padding: 1px 8px; cursor: pointer; }
.promo-small { font-weight: 500; font-size: 0.82rem; }
.promo-more { font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--navy); background: transparent; border: 0; padding: 0 4px; min-height: 28px; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* Cookie banner (js/consent.js): fixed to the bottom of the screen, so it stays in place while the page
   scrolls. While it shows, js/consent.js sets --consent-h to its height: the page gets that much space at
   the bottom (and scrolling into view allows for it), so the banner never hides the end of the page.
   Under the basket panel (.ap, z-index 50). Accept and Reject share one style, so neither is more prominent. */
html { scroll-padding-bottom: var(--consent-h, 0px); }
body { padding-bottom: var(--consent-h, 0px); }
.consent {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
  background: var(--white); color: var(--ink); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(12,27,51,.12);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); font-size: 0.9rem;
}
.consent .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.consent p { margin: 0; flex: 1 1 22rem; max-width: var(--measure); }
.consent-actions { display: flex; gap: 8px; flex: none; }
.consent-btn { font: inherit; font-weight: 700; min-width: 6.5rem; min-height: 44px; padding: 8px 16px; border-radius: 8px; border: 2px solid var(--navy); background: var(--navy); color: var(--white); cursor: pointer; }
.consent-btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
@media (max-width: 480px) {
  .consent { padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px)); font-size: 0.84rem; line-height: 1.45; }
  .consent .wrap { gap: 6px; }
  .consent-actions { flex: 1 1 100%; }
  .consent-btn { flex: 1 1 0; min-width: 0; padding: 6px 12px; }
}

/* Keep the footer at the bottom of the screen on short pages */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .site-footer { margin-top: auto; }

/* ===================== Loading states ===================== */
/* Spinner: a small ring in the current text colour. Use with aria-hidden="true". */
.spinner { display: inline-block; flex: none; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -0.15em; }
/* Skeleton: a light grey placeholder block. !important so it shows over a container's own background. */
.skeleton { background: #e4e9f0 !important; border-color: transparent; }
.sk { display: block; height: 0.9em; border-radius: 4px; }
/* A bar standing in for one line of text: it sits inside the real element, so the line keeps its height */
.sk-t { display: inline-block; vertical-align: middle; height: 0.9em; max-width: 100%; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .spinner { animation: dd-spin 0.75s linear infinite; }
  .skeleton { background: linear-gradient(90deg, #e4e9f0 0%, #f1f4f8 45%, #e4e9f0 90%) 0 0 / 200% 100% !important; animation: dd-shimmer 1.4s ease-in-out infinite; }
  .img-fade { transition: opacity 0.25s ease-out; }
}
@keyframes dd-spin { to { transform: rotate(360deg); } }
@keyframes dd-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Busy buttons: spinner plus a short label; the width is held in JS. */
.is-busy { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; cursor: progress; }
.button.is-busy[disabled] { opacity: 0.85; cursor: progress; }
/* A busy primary button keeps its colour (it is working, not unavailable). */
.button.primary.is-busy[disabled] { background: var(--button); border-color: var(--button); color: var(--white); }

/* Images: skeleton until loaded, then fade in; neutral placeholder on error */
.img-fade { opacity: 0; }
.img-fade.is-loaded { opacity: 1; }
.img-fade.instant { transition: none; }
.img-fade.is-broken { display: none; }
.img-missing { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 4px; text-align: center; color: var(--ink-soft); font-size: 0.8rem; line-height: 1.2; }

/* Reserve the product count's space so it does not push the grid down when it appears */
.shop-tools .count { min-width: 6.5em; min-height: 1.65em; text-align: right; }
.card a.media { text-decoration: none; }

/* Shop grid skeleton card: the same box sizes as a real card (brand row, two-line title, price, stock) */
.sk-card:hover { box-shadow: none; transform: none; }
.sk-slot { display: flex; align-items: center; }
.sk-slot.title { height: calc(0.75rem * 1.65 + 6px + 0.98rem * 1.35 * 2); flex-direction: column; align-items: stretch; justify-content: flex-end; gap: calc(0.98rem * 0.45); padding-bottom: calc(0.98rem * 0.22); }
.sk-slot.price { height: calc(1.15rem * 1.65 + 6px + 0.85rem * 1.65); }
.sk-btn { display: block; margin-top: auto; height: calc(0.92rem * 1.65 + 22px); border-radius: 6px; } /* same as .button.small: line + padding + border */

/* Product page skeleton */
.sk-product .gallery .main { border-color: transparent; }
.sk-buy { display: block; height: calc(1rem * 1.65 + 28px); width: 260px; max-width: 100%; margin: 18px 0 10px; border-radius: 6px; }

/* Basket */
.line .thumb { text-decoration: none; border: 1px solid var(--line); border-radius: 6px; }
.line .thumb .ph { display: block; width: 100%; height: 100%; }
.line .thumb .img-missing, .thumbs .img-missing { font-size: 0.62rem; padding: 2px; }
.sk-qty { display: block; width: 142px; height: 46px; border-radius: 6px; }
.sk-remove { font-size: 0.85rem; }
.sk-pay { display: block; height: calc(1rem * 1.65 + 28px); border-radius: 6px; }

/* Order complete: keep two lines for the message on phones, so the text swaps do not move the page */
.confirming { display: inline-flex; align-items: center; gap: 0.6em; }
@media (max-width: 600px) { #order-msg { min-height: calc(2 * 1.65em); } }

/* ===================== Added to basket (js/added-panel.js) ===================== */
/* Card add buttons are 44px tap targets; the skeleton button above matches. */
.card .add { min-height: 44px; }
/* "Added" state: tick plus label, same size as before (width held in JS). */
.button.is-added { display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; }
.button.is-added .tick { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
/* At the limit: looks unavailable (grey, see .button[disabled]) but stays focusable, and pressing it says why. */

/* Header count bump */
@media (prefers-reduced-motion: no-preference) {
  .basket-count.bump { animation: dd-bump 0.4s cubic-bezier(.3,1.6,.5,1); }
}
@keyframes dd-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* Panel: fixed, outside the page flow, so opening it never moves anything. Non-modal: no backdrop.
   Phones: a bottom sheet. 640px and up: a compact panel under the header basket link (placed by JS). */
.ap {
  position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
  max-height: 85vh; max-height: 85dvh;
  display: flex; flex-direction: column;
  background: var(--white); color: var(--ink);
  border-top: 4px solid var(--orange); border-radius: 14px 14px 0 0;
  box-shadow: 0 -10px 32px rgba(12,27,51,.22);
  overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  visibility: hidden; transform: translateY(100%);
}
.ap.is-open { visibility: visible; transform: none; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .ap { transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s, visibility 0s linear .28s; }
  .ap.is-open { transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s, visibility 0s; }
}
.ap-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 10px 16px; border-radius: 10px 10px 0 0; background: var(--navy); color: var(--white); }
.ap-title { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.ap-title:focus { outline: none; }
.ap-title:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; box-shadow: none; }
.ap-close { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--white); cursor: pointer; }
.ap-close:hover { background: rgba(255,255,255,.12); }
.ap-close:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 2px var(--navy); }
.ap-close .x { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.ap-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.ap-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.ap-img { border: 1px solid var(--line); border-radius: 6px; }
.ap-img .img-missing { font-size: 0.62rem; padding: 2px; }
.ap-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ap-name { color: var(--ink); font-weight: 600; font-size: 0.95rem; line-height: 1.35; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.ap-name:hover { color: var(--orange-text); text-decoration: underline; }
.ap-line { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); }
.ap-line strong { color: var(--navy); font-weight: 800; }
.ap-have, .ap-limit, .ap-hold { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.ap-hold { padding: 8px 12px; border-left: 4px solid var(--navy); background: #e8edf5; color: var(--navy); }
.ap-have { color: var(--ink); }
.ap-limit { padding: 8px 12px; border-left: 4px solid var(--orange); background: var(--paper); color: var(--ink); font-weight: 600; }
.ap-totals { border-top: 1px solid var(--line); padding-top: 10px; }
.ap-totals .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 1.65em; }
.ap-totals .row strong { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.ap-totals .hint { margin: 2px 0 0; min-height: 1.5em; font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }
.ap-actions { display: grid; gap: 10px; }
.ap-actions .button { min-height: 44px; }
a.button.block { display: block; }

@media (min-width: 640px) {
  .ap {
    /* top and right are set by js/added-panel.js; these are fallbacks */
    top: 132px; right: 16px; left: auto; bottom: auto;
    width: 360px; max-height: none;
    border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 10px 28px rgba(12,27,51,.16), 0 2px 6px rgba(12,27,51,.08);
    overflow: visible; padding-bottom: 0;
    opacity: 0; transform: translateY(-6px);
  }
  .ap-head { border-radius: 9px 9px 0 0; padding: 4px 4px 4px 16px; }
  .ap-title { font-size: 1.02rem; }
  /* Body scrolls on very short screens; the panel itself stays unclipped so the arrow shows. */
  .ap-body { padding: 12px 16px 14px; gap: 10px; max-height: calc(100vh - 200px); overflow-y: auto; overscroll-behavior: contain; }
  .ap-item { grid-template-columns: 56px 1fr; }
  /* Two buttons in one row keeps the panel short */
  .ap-actions { display: flex; gap: 8px; }
  .ap-actions .button { flex: 1 1 auto; width: auto; white-space: nowrap; padding: 9px 12px; font-size: 0.92rem; display: inline-flex; align-items: center; justify-content: center; }
  /* Arrow pointing up at the basket link (x set by JS as --arrow-x) */
  .ap.has-arrow::before {
    content: ""; position: absolute; top: -7px; left: var(--arrow-x, 300px);
    width: 14px; height: 14px; margin-left: -7px;
    background: var(--navy); border-radius: 2px 0 0 0; transform: rotate(45deg);
  }
}

/* ===================== Phones (up to 639px) ===================== */
/* Every rule here is phone-only, so wider screens are untouched. Elements that only phones show carry the
   `hidden` attribute in the HTML and are switched on here (.m-show, .cat-tiles, .fold-btn). */
@media (max-width: 639px) {
  .m-hide { display: none; }
  .m-show[hidden] { display: inline; }

  /* Header: logo and the five links on one row; each link is a 44px tap target. */
  /* Offer bar: one line (text, code, Details). The conditions open below on request. */
  .promo-bar { padding: 4px 12px; font-size: 0.85rem; line-height: 1.4; }
  .promo-bar p { flex-wrap: nowrap; gap: 6px; }
  .promo-bar.is-open p { flex-wrap: wrap; }
  .promo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .promo-more[hidden] { display: inline-flex; align-items: center; }
  .promo-small { font-size: 0.78rem; display: none; flex-basis: 100%; }
  .promo-bar.is-open .promo-small { display: block; }
  .site-header .wrap { flex-wrap: nowrap; gap: 8px; padding-top: 6px; padding-bottom: 6px; }
  .wordmark { flex: none; gap: 8px; font-size: 1.05rem; min-width: 44px; min-height: 44px; }
  .wordmark svg { width: 36px; height: 36px; }
  .site-nav ul { flex-wrap: nowrap; gap: 0; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 7px; font-size: 0.9rem; }
  .site-nav li:last-child a { padding-right: 0; }
  /* Narrow phones: tighter links so all five still fit beside the logo. */
  @media (max-width: 420px) { .site-nav a { padding: 0 4px; font-size: 0.85rem; } }
  @media (max-width: 359px) { .site-nav a { padding: 0 3px; font-size: 0.8rem; } }

  /* Home: hero */
  .hero { padding: 24px 0 32px; }
  .hero .wrap { gap: 28px; }
  .hero h1 { font-size: 1.75rem; margin-bottom: 12px; }
  .hero p { font-size: 1rem; margin-bottom: 18px; }
  .actions { gap: 8px; }
  .hero .actions .button { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; font-size: 0.92rem; white-space: nowrap; }
  /* Business label: no wider than the screen (its shadow and tilt included), and shorter. */
  .label { width: calc(100% - 6px); justify-self: start; animation: none; transform: rotate(-0.6deg); box-shadow: 4px 4px 0 var(--orange); }
  .label::before { top: -10px; height: 20px; width: 96px; margin-left: -48px; }
  .label-head { padding: 16px 14px 10px; }
  .label-head svg { width: 28px; height: 28px; }
  .label-head strong { font-size: 1rem; }
  .label .row { grid-template-columns: 6rem minmax(0, 1fr); gap: 8px; padding: 6px 14px; }
  .label dt { font-size: 0.8rem; }
  .label dd { font-size: 0.88rem; overflow-wrap: anywhere; }
  .label .row:last-child { padding-bottom: 12px; }
  .label-foot { display: none; }

  /* Home: value line, then two compact tiles per row, so products come soon after. */
  .hero-compact { padding: 18px 0 18px; }
  .hero-compact p { margin-bottom: 14px; font-size: 0.95rem; }
  .home-block { padding: 4px 0 20px; }
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-tiles a { grid-template-columns: 40px 1fr; column-gap: 8px; padding: 8px 10px; }
  .tile-img { width: 40px; height: 40px; }
  .tile-name { font-size: 0.86rem; }
  .tile-count { font-size: 0.76rem; }
  /* Home: sections */
  .section { padding: 36px 0; }
  .section-grid { gap: 14px; }
  .section h2 { font-size: 1.4rem; }
  .section h2::after { margin-top: 10px; }
  /* "Read more": the .fold-more parts stay hidden until the button (js/fold.js) opens the box. */
  .fold:not(.is-open) .fold-more { display: none; }
  .fold:not(.is-open) p:has(+ .fold-more) { margin-bottom: 0; }
  .fold-btn[hidden] { display: inline-flex; }
  .fold-btn { align-items: center; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 0.18em; cursor: pointer; }
  .fold.is-open + .fold-btn { margin-top: 0; }
  /* What we sell: short category tiles instead of the described list. */
  .categories { display: none; }
  .cat-tiles[hidden] { display: grid; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
  .cat-tiles a { display: flex; align-items: center; min-height: 48px; height: 100%; padding: 8px 12px; border: 1px solid var(--line); border-left: 4px solid var(--orange); border-radius: 6px; background: var(--white); color: var(--navy); font-weight: 600; font-size: 0.9rem; line-height: 1.3; text-decoration: none; }
  .cat-tiles a:hover { color: var(--orange-text); }
  .note { margin-top: 14px !important; font-size: 0.9rem; }
  /* Trade enquiries */
  .contact h2 { margin-bottom: 8px; }
  .contact-list { gap: 10px; margin-top: 0; }
  .contact-list dd { font-size: 1.05rem; overflow-wrap: anywhere; }
  .contact-list dd a { display: inline-block; padding: 8px 0; margin: -8px 0; }
  .site-footer { padding: 20px 0 28px; }

  /* Shop: short intro, compact controls */
  .shop-head { padding-top: 18px; padding-bottom: 0; }
  .shop-head h1 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 2px; }
  .shop-head p { font-size: 0.9rem; }
  .delivery-strip { margin-top: 8px; padding: 5px 10px; border-left-width: 3px; font-size: 0.85rem; }
  .shop-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0 12px; }
  .shop-tools input { grid-column: 1 / -1; }
  .sort-prefix { left: 11px; }
  .shop-tools input, .shop-tools select { min-height: 44px; padding: 8px 10px; font-size: 16px; width: 100%; }
  .shop-tools .count { grid-column: 1 / -1; margin: -2px 0 0; min-width: 0; min-height: 1.4em; text-align: left; font-size: 0.8rem; line-height: 1.4; }

  /* Product grid: two columns. Brand, name (2 lines), price, stock, then the button at the bottom. */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 40px; }
  .card:hover { transform: none; }
  .card .body { padding: 8px 10px 10px; gap: 3px; }
  .card .brand { font-size: 0.68rem; height: calc(0.68rem * 1.65); }
  .card h3 { font-size: 0.9rem; line-height: 1.3; min-height: calc(0.9rem * 1.3 * 2); }
  .card .price { height: auto; flex-wrap: wrap; white-space: normal; column-gap: 6px; row-gap: 0; margin-top: 2px; }
  .card .price .now { font-size: 1.1rem; line-height: 1.4; }
  .card .price .was { font-size: 0.8rem; }
  .card .price .save { font-size: 0.68rem; padding: 1px 5px; }
  .card .stock-line { margin-bottom: 8px; }
  .card .stock, .card .stock.held { font-size: 0.78rem; line-height: 1.4; }
  /* "24 in stock" shows as "In stock" (screen readers still hear the number). */
  .card .stock.in { font-size: 0; }
  .card .stock.in::after { content: "In stock"; content: "In stock" / ""; font-size: 0.78rem; }
  .card .add { padding: 8px 6px; font-size: 0.88rem; line-height: 1.3; }
  .sk-slot.title { height: calc(0.68rem * 1.65 + 3px + 0.9rem * 1.3 * 2); }
  .sk-slot.price { height: calc(2px + 1.1rem * 1.4 + 3px + 0.78rem * 1.4 + 8px); }
  .sk-btn { height: 44px; }

  /* Product page: price and button closer to the top */
  .crumbs { margin-top: 12px; }
  .product { gap: 16px; padding: 12px 0 48px; }
  .gallery .main { max-height: 60vh; max-height: 60svh; }
  .thumbs { gap: 6px; margin-top: 8px; }
  .thumbs button { width: 52px; }
  .product h1 { font-size: 1.35rem; margin: 2px 0 6px; }
  .product .price .now { font-size: 1.45rem; }
  .buy { margin: 12px 0 8px; }

  /* Basket lines: photo, then name and price; the stepper, line total and Remove on one row below,
     so every stepper starts at the same place whatever the name. */
  .line { grid-template-columns: 64px minmax(0, 1fr); gap: 6px 12px; align-items: start; }
  .line .thumb { grid-row: 1 / span 2; }
  .line .right { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; text-align: left; }
  .line .right .linkish { margin: 0; }
  .summary { position: static; }

  /* Fact lists (product page, contact page): long values wrap instead of widening the page. */
  .facts div { grid-template-columns: 6.5rem minmax(0, 1fr); }
  .facts dd { min-width: 0; overflow-wrap: anywhere; }
}

/* Smallest phones: the logo alone (the link keeps its "Duffy Deals UK home" name), so the links fit. */
@media (max-width: 479px) {
  .wordmark > span { display: none; }
}
