/* Dog Coats UK storefront styles.
   Order: fonts, tokens, base, layout, controls, shell, home, catalogue, product, basket/checkout, content, utilities. */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Baloo 2"; src: url("/fonts/baloo-2-latin-wght-normal.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ink: #250226; --aubergine: #2D0930; --plum: #592A5B;
  --cream: #FEF8EC; --paper: #FFFFFF;
  --gold: #FDCB39; --tan: #DF984E;
  --lilac: #E6C9FF; --sky: #A9ECF4; --mint: #B8F2C2; --peach: #FFD8BA;
  --periwinkle: #677CFF; --coral: #F1948C;
  --success: #207A52; --warning: #9A5A00; --error: #B42318;
  --muted: #675C68; --line: #D8CFD8;

  --font-display: "Fredoka", "Baloo 2", ui-rounded, system-ui, sans-serif;
  --font-body: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-ui: 12px; --r-card: 20px; --r-panel: 32px; --r-pill: 999px;
  --arch: 999px 999px 24px 24px;
  --shadow-lift: 0 10px 30px rgba(37, 2, 38, 0.10);
  --offset: 4px 4px 0 var(--ink);

  --wrap: 1440px; --wrap-wide: 1440px; --wrap-text: 720px;
  --gutter: 20px;
  --section: clamp(56px, 8vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Breed folders override these three. */
  --theme-surface: var(--lilac);
  --theme-accent: var(--gold);
  --theme-loop: var(--periwinkle);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--font-body); font-size: 1rem; font-weight: 450; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
picture { display: contents; } /* so the image itself fills (and is cropped to) its frame */
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1; }
h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 1.6vw, 1.5rem); line-height: 1.15; }
h4 { font-size: 1.125rem; line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--periwinkle); }
a:hover { text-decoration-color: currentColor; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--periwinkle); outline-offset: 2px; border-radius: 6px; }
.on-dark :focus-visible, .on-dark:focus-visible { outline-color: var(--gold); }

.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--gold); color: var(--ink); padding: 12px 18px; border-radius: var(--r-pill); font-weight: 700; border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; }
.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; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--wide { max-width: calc(var(--wrap-wide) + var(--gutter) * 2); }
.wrap--text { max-width: calc(var(--wrap-text) + var(--gutter) * 2); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 48px); }
.section-head p { color: var(--muted); max-width: 46ch; font-size: 1.0625rem; }
.stack > * + * { margin-top: var(--gap, 16px); }
.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 32px; height: 32px; }

.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1.2; }
.lead { font-size: 1.125rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; font-weight: 500; line-height: 1.45; }

/* Pastel surfaces. One class sets the tone for a whole block. */
.tone-lilac { --tone: var(--lilac); } .tone-sky { --tone: var(--sky); } .tone-mint { --tone: var(--mint); }
.tone-peach { --tone: var(--peach); } .tone-gold { --tone: var(--gold); } .tone-coral { --tone: var(--coral); }
.tone-cream { --tone: var(--cream); } .tone-paper { --tone: var(--paper); } .tone-theme { --tone: var(--theme-surface); }
[class*="tone-"] { background: var(--tone); }

/* Scalloped edge: a row of half-circles in the block's own colour, hanging into the next section. */
.scallop-bottom, .scallop-top { position: relative; }
.scallop-bottom::after, .scallop-top::before {
  content: ""; position: absolute; left: 0; right: 0; height: 22px; pointer-events: none;
  background: radial-gradient(circle at 22px 0, var(--tone) 21.5px, transparent 22px) 0 0 / 44px 22px repeat-x;
}
.scallop-bottom::after { top: calc(100% - 1px); }
.scallop-top::before { bottom: calc(100% - 1px); transform: scaleY(-1); }
.scallop-bottom { margin-bottom: 22px; } .scallop-top { margin-top: 22px; }

/* Stitch line: the shop's quiet signature divider. */
.stitch { border: 0; height: 0; border-top: 2px dashed currentColor; opacity: .35; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border-radius: var(--r-pill);
  border: 2px solid var(--ink); background: var(--theme-accent); color: var(--ink);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), background-color .16s var(--ease);
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(1px, 1px); box-shadow: none; }
.btn--promo { box-shadow: var(--offset); }
.btn--promo:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn--promo:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--secondary { background: var(--paper); }
.btn--dark { background: var(--aubergine); color: var(--cream); border-color: var(--aubergine); }
.btn--dark:hover { box-shadow: 3px 3px 0 var(--gold); }
.btn--ghost { background: transparent; }
.btn--small { min-height: 44px; padding: 8px 18px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { background: #EDE7ED; border-color: #B9AEBA; color: #6B5F6C; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.is-loading { pointer-events: none; opacity: .7; }
.text-link { font-weight: 700; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; position: relative; text-decoration: none; transition: background-color .16s var(--ease); }
.icon-btn:hover { background: rgba(37, 2, 38, .08); }
.on-dark .icon-btn:hover { background: rgba(254, 248, 236, .14); }

.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 14px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: var(--paper); font-size: .875rem; font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--lilac); }
.chip .icon { width: 16px; height: 16px; }

.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 800; line-height: 1.2; border: 1.5px solid var(--ink); background: var(--paper); }
.badge--new { background: var(--mint); } .badge--sale { background: var(--coral); } .badge--low { background: var(--gold); } .badge--out { background: #EDE7ED; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 700; font-size: .9375rem; }
.field .hint { color: var(--muted); font-size: .875rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; background: var(--paper);
  border: 1.5px solid #8C7F8D; border-radius: var(--r-ui); font-size: 1rem;
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23250226' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 9.5l5.5 5.5 5.5-5.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { color: var(--error); font-weight: 700; font-size: .875rem; }
.error-summary { border: 2px solid var(--error); border-radius: var(--r-ui); background: #FFF4F2; padding: 16px 20px; }
.error-summary h2 { font-size: 1.25rem; margin-bottom: 8px; }
.error-summary a { color: var(--error); font-weight: 700; }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding-block: 8px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--plum); flex: none; }
.form-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 600px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }

.notice { border-radius: var(--r-ui); padding: 14px 18px; border: 1.5px solid var(--ink); background: var(--paper); display: flex; gap: 12px; align-items: flex-start; }
.notice--info { background: var(--sky); } .notice--warn { background: #FFF1CC; } .notice--error { background: #FFF4F2; border-color: var(--error); } .notice--success { background: var(--mint); }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--ink); border-radius: var(--r-pill); background: var(--paper); }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.qty button:hover { background: var(--lilac); }
.qty input { width: 40px; text-align: center; border: 0; background: transparent; font-weight: 700; padding: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Announcement + header ---------- */
.test-banner { background: var(--gold); color: var(--ink); text-align: center; font-weight: 700; font-size: .875rem; padding: 6px var(--gutter); border-bottom: 2px solid var(--ink); }
.announce { background: var(--aubergine); color: var(--cream); font-size: .875rem; font-weight: 600; }
.announce .wrap { display: flex; align-items: center; justify-content: center; gap: 24px; min-height: 36px; }
.announce a { text-decoration-color: var(--gold); }
.announce__utility { display: none; gap: 20px; margin-left: auto; font-weight: 500; }
.announce__utility a { text-decoration: none; opacity: .9; }
.announce__utility a:hover { text-decoration: underline; opacity: 1; }
@media (min-width: 1024px) { .announce .wrap { justify-content: flex-start; } .announce__utility { display: flex; } }

.header { background: var(--cream); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(37, 2, 38, .06); }
.header__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 64px; gap: 8px; }
.header__logo { display: block; justify-self: center; }
.header__logo img { width: 156px; height: auto; }
.header__tools { display: flex; justify-content: flex-end; align-items: center; }
.header__menu-btn { justify-self: start; }
.nav { display: none; }
.basket-count { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold); border: 1.5px solid var(--ink); font-size: .6875rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }
.basket-count.pop { animation: pop .3s var(--ease); }
@keyframes pop { 50% { transform: scale(1.35); } }
.header .fav-link { display: none; }
@media (min-width: 400px) { .header .fav-link { display: inline-grid; } }

@media (min-width: 1240px) {
  .mega { display: block; }
  .header__row { grid-template-columns: auto 1fr auto; min-height: 84px; gap: 32px; transition: min-height .2s var(--ease); }
  .header.is-stuck .header__row { min-height: 70px; }
  .header__menu-btn { display: none; }
  .header__logo { justify-self: start; }
  .header__logo img { width: 230px; transition: width .2s var(--ease); }
  .header.is-stuck .header__logo img { width: 192px; }
  .nav { display: block; justify-self: center; }
  .nav > ul { display: flex; gap: 4px; }
  .nav__link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; white-space: nowrap; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; }
  .nav__link:hover, .nav__link[aria-expanded="true"] { background: var(--lilac); }
  .nav__link .icon { width: 16px; height: 16px; transition: transform .16s var(--ease); }
  .nav__link[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .nav__link--sale { color: var(--error); }
}
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-top: 1px solid var(--line); border-bottom: 2px solid var(--ink); box-shadow: var(--shadow-lift); padding-block: 32px 40px; }
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 24px; }
.mega__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-ui); text-decoration: none; font-weight: 700; }
.mega__link:hover { background: var(--paper); }
.mega__link small { display: block; font-weight: 500; color: var(--muted); }
.mega__dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); flex: none; background: var(--tone); }
.mega__dot .icon { width: 24px; height: 24px; }
.mega__all { margin-top: 20px; }

/* ---------- Dialogs: drawers, sheets, modals ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--cream); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(37, 2, 38, .5); }
.drawer { margin: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; border-left: 2px solid var(--ink); }
.drawer--left { margin: 0 auto 0 0; border-left: 0; border-right: 2px solid var(--ink); }
.modal { margin: auto; width: min(760px, calc(100vw - 24px)); max-height: min(92dvh, 900px); border: 2px solid var(--ink); border-radius: var(--r-panel); }
.sheet { margin: auto 0 0; width: 100vw; max-height: 88dvh; border-top: 2px solid var(--ink); border-radius: var(--r-panel) var(--r-panel) 0 0; }
dialog[open] { display: flex; flex-direction: column; animation: dialog-in .26s var(--ease); }
.drawer[open] { animation-name: drawer-in; } .drawer--left[open] { animation-name: drawer-in-left; } .sheet[open] { animation-name: sheet-in; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-in-left { from { transform: translateX(-100%); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 12px 14px 24px; border-bottom: 1px solid var(--line); flex: none; }
.dialog__head h2 { font-size: 1.5rem; }
.dialog__body { padding: 20px 24px 28px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.dialog__foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--paper); flex: none; }

/* Mobile navigation drawer */
.mnav details { border-bottom: 1px solid var(--line); }
.mnav summary, .mnav__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; text-decoration: none; list-style: none; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav__top { border-bottom: 1px solid var(--line); }
.mnav details[open] summary .icon { transform: rotate(180deg); }
.mnav details a { display: flex; align-items: center; min-height: 48px; padding-left: 12px; text-decoration: none; font-weight: 600; }
.mnav details ul { padding-bottom: 12px; }
.mnav__utility { margin-top: 24px; display: grid; gap: 2px; }
.mnav__utility a { min-height: 44px; display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; color: var(--muted); }

/* Search */
.search-dialog { margin: 0 auto auto; width: 100vw; max-height: 100dvh; border-bottom: 2px solid var(--ink); }
@media (max-width: 767px) { .search-dialog { height: 100dvh; } }
.search-form { display: flex; gap: 8px; align-items: center; }
.search-form .input { border-radius: var(--r-pill); padding-left: 20px; min-height: 52px; font-size: 1.0625rem; }
.search-results { margin-top: 20px; display: grid; gap: 4px; }
.search-row { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: var(--r-ui); text-decoration: none; }
.search-row:hover { background: var(--paper); }
.search-row img, .search-row .ph { width: 52px; height: 65px; object-fit: cover; border-radius: 10px; flex: none; }
.search-row strong { display: block; font-weight: 700; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- Footer ---------- */
.footer { --tone: var(--aubergine); background: var(--aubergine); color: var(--cream); margin-top: calc(var(--section) + 22px); }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.footer__grid { display: grid; gap: 40px 32px; padding-block: 64px 40px; }
.footer__brand p { margin-top: 20px; font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; line-height: 1.2; max-width: 16ch; }
/* The wordmark sits on a cream "sewn-in label", so the artwork is never recoloured for the dark footer. */
.label-patch { display: inline-block; background: var(--cream); padding: 14px 18px; border-radius: 14px; outline: 2px dashed var(--gold); outline-offset: -7px; }
.label-patch img { width: 200px; }
.footer h2 { font-family: var(--font-body); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 12px; }
.footer li a { display: inline-flex; min-height: 36px; align-items: center; font-weight: 500; }
.footer__base { border-top: 1px solid rgba(254, 248, 236, .2); padding-block: 24px 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: .875rem; color: #D9CBDA; }
.footer__base ul { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pay-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pay-pill { border: 1px solid rgba(254, 248, 236, .4); border-radius: 6px; padding: 3px 9px; font-size: .75rem; font-weight: 700; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__grid { overflow-x: clip; }
.hero__grid { display: grid; gap: 32px; align-items: center; padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 88px); }
.hero h1 { font-size: clamp(3rem, 8.2vw, 7rem); line-height: .92; letter-spacing: -0.02em; }
.hero__eyebrow { margin-bottom: 20px; }
.hero__body { margin-top: 24px; font-size: 1.125rem; max-width: 34ch; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px 14px; }
@media (max-width: 379px) { .hero__cta .btn { width: 100%; } }
.hero__art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero__loop { position: absolute; top: -6%; left: -62%; width: 190%; max-width: none; color: var(--theme-loop); z-index: 0; pointer-events: none; }
.hero__loop path { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .hero__loop path { animation: draw 1.1s .15s var(--ease) both; }
  @keyframes draw { from { stroke-dashoffset: 1; } }
}
.arch { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: var(--arch); border: 2px solid var(--ink); background: var(--theme-accent); overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--mascot img { object-fit: contain; object-position: center 72%; padding: 12% 8% 0; }
.rays { position: absolute; z-index: 2; color: var(--ink); width: 64px; }
.rays--a { top: -5%; right: -5%; } .rays--b { bottom: 6%; left: -17%; transform: rotate(215deg); color: var(--plum); width: 52px; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; min-height: 640px; }
  .hero__art { justify-self: end; margin-right: 4%; }
}

/* ---------- Trust strip ---------- */
.trust { border-block: 2px solid var(--ink); background: var(--paper); }
.trust ul { display: flex; gap: 32px; overflow-x: auto; padding-block: 16px; scrollbar-width: none; scroll-snap-type: x proximity; }
.trust ul::-webkit-scrollbar { display: none; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9375rem; white-space: nowrap; scroll-snap-align: start; }
@media (min-width: 1024px) { .trust ul { justify-content: space-between; } }

/* ---------- Category tiles ---------- */
.cat-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.cat-rail > * { scroll-snap-align: start; }
@media (min-width: 600px) { .cat-rail { grid-auto-columns: 42%; } }
@media (min-width: 900px) { .cat-rail { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(3, minmax(0, 340px)); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 24px; } }
@media (min-width: 1200px) { .cat-rail { grid-template-columns: repeat(var(--cols, 4), minmax(0, 340px)); }
  .cat-rail--dense .cat-card__text p { display: none; } .cat-rail--dense .cat-card__text h3 { font-size: 1.1875rem; } .cat-rail--dense .cat-card__text { padding: 14px; } }
.cat-card { display: flex; flex-direction: column; text-decoration: none; border: 2px solid var(--ink); border-radius: var(--r-card); overflow: hidden; background: var(--paper); transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.cat-card:hover { transform: translate(-2px, -2px); box-shadow: var(--offset); }
.cat-card__art { aspect-ratio: 3 / 4; background: var(--tone); display: grid; place-items: center; position: relative; overflow: hidden; }
.cat-card:nth-child(even) .cat-card__art { border-radius: 0 0 50% 50% / 0 0 18% 18%; }
.cat-card__art img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__art .icon { width: 44%; height: auto; aspect-ratio: 1; }
.cat-card__text { padding: 16px 18px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 2px solid var(--ink); margin-top: auto; }
.cat-card:nth-child(even) .cat-card__text { border-top: 0; }
.cat-card__text h3 { font-size: 1.375rem; }
.cat-card__text p { font-size: .875rem; color: var(--muted); margin-top: 2px; }
.cat-card__go { width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--gold); }

/* ---------- Product grid + card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
@media (max-width: 329px) { .grid { grid-template-columns: 1fr; } }
@media (min-width: 768px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; } }
@media (min-width: 1280px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 68%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 12px; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 600px) { .rail { grid-auto-columns: 40%; } }
@media (min-width: 1024px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 24px; } }

.card { position: relative; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .22s var(--ease), opacity .22s var(--ease); }
.card__media .alt-img { opacity: 0; }
@media (hover: hover) {
  .card:hover .card__media img { transform: scale(1.02); }
  .card:hover .card__media .alt-img { opacity: 1; }
}
.ph { display: grid; place-items: center; background: var(--tone, var(--lilac)); color: var(--ink); width: 100%; height: 100%; }
.ph .icon { width: 42%; height: auto; aspect-ratio: 1; opacity: .9; }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; pointer-events: none; }
.card__fav { position: absolute; top: 6px; right: 6px; z-index: 3; background: rgba(255, 255, 255, .88); }
.card__fav[aria-pressed="true"] .icon, .fav-btn[aria-pressed="true"] .icon { fill: var(--coral); }
.card__body { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card__title { font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.3; letter-spacing: 0; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-card); }
.card__title a:hover { text-decoration: underline; }
.card__meta { color: var(--muted); font-size: .875rem; }
.card__quick { position: relative; z-index: 2; margin-top: 10px; align-self: flex-start; }
.price { font-weight: 800; display: inline-flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.price s { color: var(--muted); font-weight: 500; }
.price .now-sale { color: var(--error); }
.swatches { display: flex; gap: 5px; margin-top: 6px; }
.swatch-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--c, #ccc); }

/* ---------- Fit panel (tape-measure edge) ---------- */
.fit-panel { border: 2px solid var(--ink); border-radius: var(--r-panel); overflow: hidden; display: grid; }
.fit-panel__text { padding: clamp(28px, 5vw, 64px); }
.fit-panel__text h2 { max-width: 12ch; }
.fit-panel__art { padding: 24px; display: grid; place-items: center; background: var(--paper); border-top: 2px solid var(--ink); }
.fit-list { margin-top: 24px; display: grid; gap: 14px; max-width: 46ch; }
.fit-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.key { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--paper); }
.key--a { background: var(--lilac); } .key--b { background: var(--gold); } .key--c { background: var(--sky); }
.tape { height: 30px; border-top: 2px solid var(--ink); background:
  repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 60px) 0 0 / 100% 16px no-repeat,
  repeating-linear-gradient(90deg, var(--ink) 0 1.5px, transparent 1.5px 12px) 0 0 / 100% 8px no-repeat, var(--gold); }
@media (min-width: 900px) {
  .fit-panel { grid-template-columns: 1.05fr 1fr; }
  .fit-panel__art { border-top: 0; border-left: 2px solid var(--ink); }
  .fit-panel .tape { grid-column: 1 / -1; }
}
.dog-diagram { width: 100%; max-width: 480px; height: auto; }
.dog-diagram text { font-family: var(--font-display); font-weight: 700; font-size: 17px; fill: var(--ink); }

/* ---------- Campaign ---------- */
.campaign__grid { display: grid; gap: 32px; align-items: center; }
.campaign h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: .95; }
.campaign__body { margin-top: 20px; max-width: 40ch; font-size: 1.125rem; }
.campaign__cta { margin-top: 28px; }
.campaign__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.campaign__tiles .card__media { border: 2px solid var(--ink); }
.campaign__tiles .card:nth-child(2) .card__media { border-radius: var(--arch); }
.campaign__tiles .card__badges, .campaign__tiles .card__fav { display: none; }
@media (max-width: 599px) { .campaign__tiles .card__meta, .campaign__tiles .card__quick, .campaign__tiles .swatches { display: none; } .campaign__tiles .card__title { font-size: .875rem; } }
@media (min-width: 900px) { .campaign__grid { grid-template-columns: 1fr 1.25fr; gap: 64px; } .campaign__tiles { gap: 20px; } }

/* ---------- Size tiles ---------- */
.size-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .size-tiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; } }
.size-tile { display: grid; gap: 4px; align-content: end; min-height: 150px; padding: 18px; border-radius: var(--r-card); border: 2px solid var(--ink); background: var(--paper); text-decoration: none; position: relative; overflow: hidden; transition: background-color .16s var(--ease), transform .16s var(--ease); }
.size-tile:hover { background: var(--lilac); transform: translateY(-2px); }
.size-tile .icon { position: absolute; top: 14px; right: 14px; color: var(--plum); width: calc(22px + var(--n) * 7px); height: auto; aspect-ratio: 1; }
.size-tile strong { font-family: var(--font-display); font-size: 1.375rem; line-height: 1.1; }
.size-tile span { font-size: .875rem; color: var(--muted); }
.fine { margin-top: 20px; color: var(--muted); font-size: .9375rem; max-width: 60ch; }

/* ---------- Benefits (dark panel) ---------- */
.benefits { --tone: var(--aubergine); background: var(--aubergine); color: var(--cream); }
.benefits__grid { display: grid; gap: 32px; }
.benefits h2 { max-width: 13ch; }
.benefits details { border-top: 1px solid rgba(254, 248, 236, .28); }
.benefits details:last-child { border-bottom: 1px solid rgba(254, 248, 236, .28); }
.benefits summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.625rem); cursor: pointer; list-style: none; }
.benefits summary::-webkit-details-marker { display: none; }
.benefits summary .icon { color: var(--gold); transition: transform .2s var(--ease); }
.benefits details[open] summary .icon { transform: rotate(45deg); }
.benefits details p { padding: 0 48px 22px 0; color: #E9DFEA; max-width: 60ch; }
@media (min-width: 900px) { .benefits__grid { grid-template-columns: 1fr 1.4fr; gap: 80px; } }

/* ---------- Article cards ---------- */
.reads { display: grid; gap: 20px; }
@media (min-width: 768px) { .reads { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.read { display: flex; flex-direction: column; border-radius: var(--r-card); border: 2px solid var(--ink); overflow: hidden; text-decoration: none; background: var(--tone); min-height: 260px; padding: 24px; position: relative; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.read:hover { transform: translate(-2px, -2px); box-shadow: var(--offset); }
.read h3 { font-size: 1.625rem; max-width: 14ch; }
.read p { margin-top: 12px; font-size: .9375rem; max-width: 34ch; }
.read__go { margin-top: auto; padding-top: 24px; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.read__img { margin: -24px -24px 20px; aspect-ratio: 3 / 2; border-bottom: 2px solid var(--ink); }
.read__img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Newsletter ---------- */
.newsletter { --tone: var(--plum); background: var(--plum); color: var(--cream); border-radius: var(--r-panel); padding: clamp(28px, 5vw, 64px); display: grid; gap: 28px; position: relative; overflow: hidden; }
.newsletter h2 { font-size: clamp(1.875rem, 3.4vw, 3rem); max-width: 14ch; }
.newsletter p { color: #EADFEB; }
.newsletter__form { display: grid; gap: 10px; align-content: center; }
.newsletter__row { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__row .input { flex: 1 1 220px; border-color: var(--cream); border-radius: var(--r-pill); padding-left: 20px; }
.newsletter .small a { text-decoration-color: var(--gold); }
.newsletter .field label { color: var(--cream); }
.newsletter__status { font-weight: 700; min-height: 1.5em; }
@media (min-width: 900px) { .newsletter { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* ---------- Page headers, breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: .875rem; font-weight: 500; color: var(--muted); padding-block: 16px; }
.crumbs a { text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.page-head { padding-block: 8px clamp(24px, 4vw, 48px); }
.page-head p { margin-top: 12px; font-size: 1.0625rem; max-width: 60ch; color: var(--muted); }
.page-head--tone { border-radius: var(--r-panel); padding: clamp(24px, 4vw, 48px); margin-bottom: clamp(24px, 3vw, 40px); border: 2px solid var(--ink); }
.page-head--tone p { color: var(--ink); }
.wavy { text-decoration: underline wavy var(--periwinkle) 3px; text-underline-offset: 10px; }

/* ---------- Listing ---------- */
.listing { display: grid; gap: 24px; }
.listing__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.listing__count { font-weight: 700; }
.listing__sort { display: flex; align-items: center; gap: 8px; }
.listing__sort .select { min-height: 44px; width: auto; border-radius: var(--r-pill); font-weight: 600; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters-side { display: none; }
.filter-open { position: sticky; bottom: 16px; z-index: 20; justify-self: center; box-shadow: var(--offset); }
.filter-group { border-bottom: 1px solid var(--line); padding-block: 4px; }
.filter-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 800; cursor: pointer; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group[open] summary .icon { transform: rotate(180deg); }
.filter-group .check { min-height: 40px; padding-block: 6px; font-weight: 500; }
.filter-group__body { padding-bottom: 12px; }
@media (min-width: 1024px) {
  .listing--with-filters { grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
  .filters-side { display: block; position: sticky; top: 96px; }
  .filter-open { display: none; }
}
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; }
.pagination a:hover { border-color: var(--ink); }
.pagination [aria-current] { background: var(--ink); color: var(--cream); }
.listing[aria-busy="true"] .grid { opacity: .5; transition: opacity .15s; }

.empty { text-align: center; padding: clamp(32px, 6vw, 72px) 16px; display: grid; justify-items: center; gap: 16px; }
.empty img { width: 150px; }
.empty h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.empty p { max-width: 44ch; color: var(--muted); }
.empty__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 28px; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin-inline: calc(var(--gutter) * -1); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery__item { scroll-snap-align: center; aspect-ratio: 4 / 5; background: var(--paper); position: relative; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item button { position: absolute; inset: 0; width: 100%; height: 100%; cursor: zoom-in; }
.gallery__count { justify-self: center; margin-top: -16px; font-size: .875rem; font-weight: 700; color: var(--muted); }
.pdp__info { display: grid; gap: 20px; align-content: start; }
.pdp__title { font-size: clamp(2rem, 3.4vw, 3rem); }
.pdp__price { font-size: 1.5rem; }
.pdp__price small { font-size: .875rem; font-weight: 500; color: var(--muted); }
.lead-time { background: #FFF1CC; }
.opt legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin-bottom: 10px; font-weight: 700; gap: 12px; }
.opt legend span span { font-weight: 500; color: var(--muted); }
.opt__list { display: flex; flex-wrap: wrap; gap: 10px; }
.opt__item { position: relative; }
.opt__item input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt__item span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 52px; min-height: 48px; padding: 6px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--ink); background: var(--paper); font-weight: 700; }
.opt__item input:hover + span { background: var(--lilac); }
.opt__item input:checked + span { background: var(--ink); color: var(--cream); }
.opt__item input:focus-visible + span { outline: 3px solid var(--periwinkle); outline-offset: 2px; }
.opt__item input:disabled { cursor: not-allowed; }
.opt__item input:disabled + span { border-style: dashed; border-color: #9A8E9B; color: #6B5F6C; background: transparent; text-decoration: line-through; }
.opt__item .swatch-dot { width: 18px; height: 18px; }
.opt__item input:checked + span .swatch-dot { border-color: var(--cream); }
.size-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; }
.size-links button, .size-links a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--periwinkle); text-decoration-thickness: 2px; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.stock { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.stock--in { color: var(--success); } .stock--low { color: var(--warning); } .stock--out { color: var(--muted); }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.buy-row .btn { flex: 1 1 130px; min-height: 52px; font-size: 1.0625rem; }
.fav-btn { border: 2px solid var(--ink); width: 52px; height: 52px; background: var(--paper); }
.reassure { display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--r-ui); background: var(--paper); border: 1px solid var(--line); font-size: .9375rem; }
.reassure li { display: flex; gap: 12px; align-items: flex-start; }
.reassure .icon { color: var(--plum); width: 22px; height: 22px; margin-top: 1px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:first-child { border-top: 1px solid var(--line); }
.acc summary { display: flex; justify-content: space-between; align-items: center; min-height: 60px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc details[open] summary .icon { transform: rotate(180deg); }
.acc__body { padding-bottom: 20px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .gallery { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; margin-inline: 0; gap: 12px; }
  .gallery__item { border-radius: var(--r-card); border: 1px solid var(--line); }
  .gallery--lead .gallery__item:first-child { grid-column: 1 / -1; }
  .gallery--single .gallery__item, .gallery__item:only-child { grid-column: 1 / -1; }
  .gallery__count { display: none; }
  .pdp__info { position: sticky; top: 100px; }
}
.lightbox { width: 100vw; height: 100dvh; background: var(--cream); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox .icon-btn { position: absolute; top: 12px; right: 12px; background: var(--paper); border: 2px solid var(--ink); z-index: 2; }

/* Size chart */
.table-scroll { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--r-ui); background: var(--paper); }
.size-table th, .size-table td { padding: 12px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.size-table thead th { background: var(--lilac); font-size: .875rem; border-bottom: 1.5px solid var(--ink); }
.size-table tbody tr:last-child td, .size-table tbody tr:last-child th { border-bottom: 0; }
.size-table tr.is-match { background: var(--mint); }
.unit-toggle { display: inline-flex; border: 1.5px solid var(--ink); border-radius: var(--r-pill); overflow: hidden; background: var(--paper); }
.unit-toggle button { min-height: 40px; padding: 4px 16px; font-weight: 700; }
.unit-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
[data-units="cm"] .u-in, [data-units="in"] .u-cm { display: none; }
.fit-form { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.fit-form .btn { grid-column: 1 / -1; }
.fit-result { border: 2px solid var(--ink); border-radius: var(--r-card); padding: 20px; background: var(--paper); }
.fit-result strong.size { font-family: var(--font-display); font-size: 2.5rem; line-height: 1; display: block; }
.fit-result ul { margin-top: 10px; display: grid; gap: 4px; }

/* ---------- Basket ---------- */
.line { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.line__img { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.line__img img { width: 100%; height: 100%; object-fit: cover; }
.line__title { font-weight: 700; text-decoration: none; }
.line__title:hover { text-decoration: underline; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.line__remove { color: var(--muted); font-size: .875rem; font-weight: 600; text-decoration: underline; min-height: 44px; }
.progress { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-ui); background: var(--mint); border: 1.5px solid var(--ink); font-weight: 700; font-size: .9375rem; }
.progress__bar { height: 10px; border-radius: 5px; background: var(--paper); border: 1.5px solid var(--ink); overflow: hidden; }
.progress__bar span { display: block; height: 100%; background: var(--plum); width: var(--p, 0%); transition: width .3s var(--ease); }
.totals { display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; }
.totals .grand { font-size: 1.25rem; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 4px; }
.summary-card { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 24px; display: grid; gap: 18px; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 56px; align-items: start; } .two-col > aside { position: sticky; top: 100px; } }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid #8C7F8D; border-radius: var(--r-ui); background: var(--paper); cursor: pointer; }
.radio-card:has(input:checked) { border: 2px solid var(--ink); background: var(--lilac); }
.radio-card input { width: 22px; height: 22px; accent-color: var(--plum); margin-top: 1px; flex: none; }
.radio-card strong { display: block; }
.radio-card .price { margin-left: auto; }
.checkout h2 { font-size: 1.625rem; margin-bottom: 16px; }
.checkout section + section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.status-hero { text-align: center; display: grid; justify-items: center; gap: 16px; padding-block: clamp(24px, 5vw, 56px); }
.status-hero img { width: 140px; }
.status-hero p { max-width: 50ch; }

/* ---------- Prose (pages, articles) ---------- */
.prose { font-size: 1.0625rem; max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.625rem, 2.6vw, 2.125rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3125rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .45em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { padding-left: 1.6em; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: .25em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--tan); border: 1.5px solid var(--ink); }
.prose ol { list-style: decimal; }
.prose ol li::marker { font-family: var(--font-display); font-weight: 700; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-left: 6px solid var(--gold); background: var(--paper); border-radius: 0 var(--r-ui) var(--r-ui) 0; }
.prose table { font-size: .9375rem; display: block; overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--r-ui); background: var(--paper); }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 140px; }
.prose th { background: var(--lilac); }
.prose code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .9em; }
.prose img { border-radius: var(--r-card); }
.article-head { border-radius: var(--r-panel); border: 2px solid var(--ink); padding: clamp(28px, 5vw, 64px); }
.article-head h1 { font-size: clamp(2.25rem, 5vw, 4rem); max-width: 16ch; }
.article-head p { margin-top: 16px; font-size: 1.125rem; max-width: 52ch; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 200; background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: var(--r-pill); font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Cookie consent (only rendered when analytics is configured) ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 520px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-card); padding: 20px; box-shadow: var(--shadow-lift); display: grid; gap: 14px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__actions .btn { flex: 1 1 150px; background: var(--paper); }

/* ---------- Breed folder ---------- */
.breed-switch { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Motion + print + forced colours ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .btn:hover, .cat-card:hover, .read:hover, .size-tile:hover, .card:hover .card__media img { transform: none; }
}
@media (forced-colors: active) {
  .btn, .chip, .badge, .opt__item span { border: 2px solid ButtonText; }
  .opt__item input:checked + span { outline: 3px solid Highlight; }
}
@media print {
  .header, .announce, .footer, .newsletter, .filter-open, dialog, .test-banner { display: none !important; }
  body { background: #fff; }
}
