/* ==========================================================================
   TK Ranch
   Carried across from the design TK Ranch supplied, and keyed to the shop's
   own palette so a merchant changing a colour in the admin changes the page.

   The brand tokens below read --tk-* first, which the layout writes from the
   shop's settings, and fall back to the sampled logo values when a shop has
   never set one. Change a hex here and you change the fallback only.

   Bump theme.json's version whenever this file changes, or a returning
   visitor keeps the copy they already have.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand. --tk-* is written by the layout from the shop's own settings. */
  --blue-900: color-mix(in srgb, var(--tk-brand, #01659b) 70%, #000000);
  --blue-800: color-mix(in srgb, var(--tk-brand, #01659b) 85%, #000000);
  --blue: var(--tk-brand, #01659b);
  --blue-400: #4e9cc4;
  --blue-100: #dcecf4;

  --orange: var(--tk-accent, #f68932);
  --orange-600: #a4500c;
  --orange-100: #fdecdc;

  --yellow: #fde63a;
  --yellow-100: #fef8d2;

  --green: var(--tk-grass, #5bbb54);
  --green-700: #357430;
  --green-100: #e4f4e2;

  /* Neutrals — warm prairie paper */
  --ink: var(--tk-ink, #1b2329);
  --ink-700: #3b474f;
  --muted: var(--tk-muted, #65757e);
  --line: #e2dbcf;
  --line-soft: #efe9de;
  --cream: var(--tk-cream, #fbf8f2);
  --sand: #f3ece0;
  --white: var(--tk-paper, #ffffff);

  /* Semantic */
  --brand: var(--blue);
  --brand-ink: var(--blue-900);
  --accent: var(--orange);
  --bg: var(--white);
  --bg-alt: var(--cream);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Space + shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(27, 35, 41, .06), 0 2px 8px rgba(27, 35, 41, .05);
  --shadow: 0 2px 6px rgba(27, 35, 41, .06), 0 12px 32px rgba(27, 35, 41, .09);
  --shadow-lg: 0 24px 60px rgba(6, 54, 79, .18);

  --container: 1280px;
  --gutter: 24px;
  --header-h: 116px;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset / base

   Wrapped in @layer base on purpose. Tailwind keeps its utilities in
   @layer utilities, and an unlayered rule beats a layered one however weak
   its selector. Left unlayered, the resets below would defeat the utility
   classes on every shared template: the basket, the account pages and the
   checkout. That is how one theme's Checkout button came out black on black
   while its stylesheet plainly contained the right class.
   -------------------------------------------------------------------------- */
@layer base {
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.015em; color: var(--brand-ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--blue-900); color: #fff; padding: 10px 18px;
  border-radius: 0 0 var(--radius) var(--radius); transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; }

}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.container--medium { max-width: 1040px; }
/* Full width means the width of the screen, not 1480.
   1480 against a 1280 page is the worst place to stop: wider than the
   header, the announcement strip and every other band, but not edge to
   edge either, so it reads as one section out of alignment rather than as
   a deliberately wider one. Either match the page or leave it; this is
   leave it, and the gutter keeps the words off the glass. */
.container--wide { max-width: none; }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(36px, 4.5vw, 60px); }
.section--cream { background: var(--cream); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--blue-900); color: #e8f1f6; }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.stack > * + * { margin-top: var(--stack-gap, 16px); }
.flow-center { text-align: center; }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.display-1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.03em; }
.display-2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
.h4 { font-size: 1.1rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--orange-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }
.eyebrow--center { justify-content: center; }
.eyebrow--light { color: var(--yellow); }
.eyebrow--light::before { background: var(--yellow); }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--ink-700); max-width: 62ch; }
.lede--center { margin-inline: auto; }
.muted { color: var(--muted); }
.script { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* a heading running straight into its first paragraph reads cramped */
h2 + p, h2 + .lede { margin-top: 16px; }
.cta-banner h2 + p, .post-hero__body h2 + p, .seo-copy h2 + p { margin-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }

/* --------------------------------------------------------------------------
   5. Buttons + pills
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  --btn-bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border: 2px solid var(--btn-bd); border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(1, 101, 155, .25); }
.btn:active { transform: translateY(0); }

/* White on the orange, asked for directly.

   Worth writing down what it costs, because the previous note here was
   right: white on #F68932 is 2.46:1, and AA wants 4.5:1 for text this size.
   The navy it replaced measured 4.03:1, so that was already under the line,
   just far less so. If this should pass, the orange has to come down to
   about #B45309, which measures 5.02:1 against white and still reads as the
   brand. That is a change to the brand colour, so it is not made here. */
.btn--accent { --btn-bg: var(--orange); --btn-bd: var(--orange); --btn-fg: #fff; }
.btn--accent:hover { box-shadow: 0 10px 22px rgba(246, 137, 50, .35); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--blue-900); --btn-bd: var(--blue-900); }
.btn--ghost:hover { --btn-bg: var(--blue-900); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--blue-900); --btn-bd: #fff; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--blue-900); --btn-bd: #fff; }
.btn--sm { padding: 10px 20px; font-size: .86rem; }
.btn--lg { padding: 17px 36px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--blue); border-bottom: 2px solid var(--blue-100);
  padding-bottom: 2px; transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { border-color: var(--orange); gap: 13px; }
.link-arrow svg { width: 16px; height: 16px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--green-100); color: var(--green-700);
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pill--sun { background: var(--yellow-100); color: #8a6c05; }
.pill--sky { background: var(--blue-100); color: var(--blue-800); }
.pill--ember { background: var(--orange-100); color: var(--orange-600); }
.pill--grass { background: var(--green-100); color: var(--green-700); }

/* --------------------------------------------------------------------------
   6. Announcement bar
   -------------------------------------------------------------------------- */
.announce {
  background: var(--blue-900); color: #dbeaf2;
  font-size: .82rem; letter-spacing: .02em;
}
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 40px; text-align: center; }
.announce strong { color: var(--yellow); font-weight: 700; }
.announce__aside { display: none; color: #9dc0d2; }
.announce a { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) { .announce__aside { display: inline; } }

/* --------------------------------------------------------------------------
   7. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header__inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
  transition: min-height .28s var(--ease);
}
.header__logo { display: block; padding-block: 10px; }
.header__logo img { width: auto; height: calc(var(--header-h) - 24px); transition: height .28s var(--ease); }

.nav { display: none; margin-inline: auto; }
@media (min-width: 1040px) { .nav { display: block; } }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-pill);
  font-size: .93rem; font-weight: 600; color: var(--ink-700);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.nav__link:hover, .nav__item--active > .nav__link { background: var(--blue-100); color: var(--blue-800); }
.nav__link svg { width: 12px; height: 12px; opacity: .6; }

.nav__item { position: relative; }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  width: min(720px, 86vw); padding: 26px; background: #fff;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: all .22s var(--ease);
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.nav__panel h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.nav__panel a { display: block; padding: 5px 0; font-size: .92rem; color: var(--ink-700); }
.nav__panel a:hover { color: var(--blue); }
.nav__promo { background: var(--cream); border-radius: var(--radius); padding: 16px; }
.nav__promo img { border-radius: var(--radius-sm); margin-bottom: 10px; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.nav__promo p { font-size: .85rem; color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 42px; height: 42px; border-radius: 50%; color: var(--blue-900);
  transition: background .18s var(--ease);
}
.icon-btn:hover { background: var(--blue-100); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn__count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--radius-pill);
  background: var(--orange); color: #241506; font-size: .68rem; font-weight: 800;
}
/* .header__cta — removed; the Shop mega menu and the hero CTA both cover it.
   Restore by re-adding the <a class="btn btn--accent btn--sm header__cta"> in
   .header__actions and un-commenting the two rules below.
   .header__cta { display: none; margin-left: 8px; }
   @media (min-width: 1160px) { .header__cta { display: inline-flex; } } */
.nav-toggle { display: inline-flex; }
@media (min-width: 1040px) { .nav-toggle { display: none; } }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120; visibility: hidden;
}
.mobile-nav[data-open="true"] { visibility: visible; }
.mobile-nav__scrim { position: absolute; inset: 0; background: rgba(6, 54, 79, .5); opacity: 0; transition: opacity .25s var(--ease); }
.mobile-nav[data-open="true"] .mobile-nav__scrim { opacity: 1; }
.mobile-nav__panel {
  position: absolute; inset: 0 0 0 auto; width: min(400px, 88vw);
  background: #fff; padding: 22px; overflow-y: auto;
  transform: translateX(100%); transition: transform .3s var(--ease);
}
.mobile-nav[data-open="true"] .mobile-nav__panel { transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mobile-nav__head img { width: auto; height: 44px; }
.mobile-nav details { border-bottom: 1px solid var(--line-soft); }
.mobile-nav summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 2px; font-weight: 600; cursor: pointer; list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; font-size: 1.25rem; color: var(--muted); }
.mobile-nav details[open] > summary::after { content: "–"; }
.mobile-nav details a { display: block; padding: 9px 2px 9px 14px; color: var(--ink-700); font-size: .94rem; }
.mobile-nav__link { display: block; padding: 15px 2px; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mobile-nav__foot { margin-top: 22px; display: grid; gap: 12px; }


/* --------------------------------------------------------------------------
   7d. "Help Feed a Cow" — support programme entry point
   -------------------------------------------------------------------------- */
.feed-pill {
  display: none; align-items: center; gap: 8px;
  padding: 9px 17px 9px 13px; margin-right: 10px;
  border-radius: var(--radius-pill); border: 1.5px solid #bfe4ba;
  background: var(--green-100); color: var(--green-700);
  font-size: .86rem; font-weight: 700; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
@media (min-width: 880px) { .feed-pill { display: inline-flex; } }
.feed-pill svg { width: 18px; height: 18px; flex: none; }
.feed-pill:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* in the mobile drawer it is always shown, full width */
.feed-pill--block {
  display: flex !important; justify-content: center;
  width: 100%; margin: 20px 0 0; padding: 14px 18px; font-size: .95rem;
}

/* the announce bar carries the link wherever the header pill does not fit */
.announce__feed { display: none; color: var(--green) !important; font-weight: 700; }
.announce__feed:hover { color: var(--yellow) !important; }
@media (max-width: 879px) { .announce__feed { display: inline; } }
@media (max-width: 600px) {
  .announce__inner { flex-wrap: wrap; justify-content: center; gap: 2px 16px; padding-block: 7px; }
  .announce { font-size: .76rem; }
}


/* feed-a-cow donation tiers */
.feed-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin: 26px 0; }
.feed-tier {
  padding: 16px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; text-align: center; transition: all .18s var(--ease);
}
.feed-tier strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--blue-900); line-height: 1.1; }
.feed-tier span { display: block; font-size: .8rem; color: var(--muted); margin-top: 3px; }
.feed-tier:hover { border-color: var(--green); }
.feed-tier[aria-pressed="true"] { border-color: var(--green-700); background: var(--green-100); }
.feed-tier[aria-pressed="true"] strong { color: var(--green-700); }


/* --------------------------------------------------------------------------
   7a. Condensed header on scroll
   `main.js` sets data-scrolled on <html>; everything keyed to --header-h
   (bar height, logo size, sticky offsets, anchor scroll-margin) follows.
   -------------------------------------------------------------------------- */
@media (max-width: 900px) { :root { --header-h: 86px; } }
html[data-scrolled="true"] { --header-h: 74px; }
@media (max-width: 900px) { html[data-scrolled="true"] { --header-h: 62px; } }
html[data-scrolled="true"] .header { box-shadow: 0 2px 18px rgba(6, 54, 79, .10); }

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(6, 54, 79, .86) 0%, rgba(6, 54, 79, .62) 45%, rgba(6, 54, 79, .18) 100%);
}
.hero__inner { padding-block: clamp(72px, 12vw, 148px); max-width: 680px; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--yellow); font-weight: 400; }
.hero__text { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: rgba(255, 255, 255, .9); max-width: 52ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
/* The same row of buttons used as the last thing in a band, where the
   band's own padding is the space below it. */
.hero__actions--flush { margin-bottom: 0; }
.hero__points { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.hero__points li { display: flex; align-items: center; gap: 9px; font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.92); }
.hero__points svg { width: 18px; height: 18px; color: var(--yellow); flex: none; }
.hero__badge {
  position: absolute; right: 40px; bottom: 40px; z-index: 1;
  display: none; align-items: center; gap: 14px;
  background: rgba(255,255,255,.95); border-radius: var(--radius-lg); padding: 14px 20px; box-shadow: var(--shadow);
}
@media (min-width: 1100px) { .hero__badge { display: flex; } }
.hero__badge img { width: 54px; }
.hero__badge span { font-size: .8rem; line-height: 1.35; color: var(--ink-700); font-weight: 600; max-width: 150px; }

/* --------------------------------------------------------------------------
   9. Trust / marquee bar
   -------------------------------------------------------------------------- */
.trustbar { border-bottom: 1px solid var(--line-soft); background: var(--cream); }
.trustbar__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-soft); }
@media (min-width: 760px) { .trustbar__list { grid-template-columns: repeat(4, 1fr); } }
.trustbar__item {
  display: flex; align-items: center; gap: 13px;
  background: var(--cream); padding: 22px 20px;
}
.trustbar__item svg { width: 27px; height: 27px; color: var(--blue); flex: none; }
.trustbar__item strong { display: block; font-size: .92rem; color: var(--blue-900); }
.trustbar__item span { font-size: .8rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   10. Category tiles
   -------------------------------------------------------------------------- */
.cat-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-grid--feature { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cat-grid--feature { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); } }
.cat-grid--feature .cat-card:first-child { grid-row: span 2; }
@media (max-width: 899px) { .cat-grid--feature .cat-card:first-child { grid-column: span 2; grid-row: auto; } }
.cat-grid--three { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .cat-grid--three { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) { .cat-grid--three { grid-template-columns: 1fr; } }
.cat-grid--three .cat-card { min-height: 290px; }

.cat-card {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg); min-height: 230px; color: #fff; isolation: isolate;
}
.cat-grid--feature .cat-card:first-child { min-height: 380px; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(6, 54, 79, .88) 8%, rgba(6, 54, 79, .22) 60%, rgba(6, 54, 79, .05) 100%);
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card__body { position: absolute; inset: auto 0 0 0; padding: 22px; }
.cat-card__body h3 { color: #fff; font-size: 1.3rem; margin-bottom: 4px; }
.cat-card__body p { font-size: .85rem; color: rgba(255,255,255,.82); margin: 0; }
.cat-card__tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--yellow); color: #3d3000; font-size: .7rem; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--radius-pill);
}

/* --------------------------------------------------------------------------
   11. Product card
   -------------------------------------------------------------------------- */
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card__media {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius); background: var(--sand); aspect-ratio: 4 / 3;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.badge {
  padding: 5px 11px; border-radius: var(--radius-pill); font-size: .68rem;
  font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: var(--blue-900); color: #fff;
}
.badge--sun { background: var(--yellow); color: #3d3000; }
.badge--grass { background: var(--green); color: #0f2f0d; }
.badge--ember { background: var(--orange); color: var(--blue-900); }
.badge--out { background: #fff; color: var(--muted); border: 1px solid var(--line); }

.product-card__wish {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px;
  border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink-700);
  display: grid; place-items: center; transition: color .2s var(--ease), transform .2s var(--ease);
}
.product-card__wish svg { width: 17px; height: 17px; }
.product-card__wish:hover { color: var(--orange-600); transform: scale(1.08); }

.product-card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  opacity: 0; transform: translateY(8px); transition: all .25s var(--ease);
}
.product-card:hover .product-card__quick,
.product-card:focus-within .product-card__quick { opacity: 1; transform: none; }
@media (hover: none) { .product-card__quick { opacity: 1; transform: none; } }

.product-card__body { padding-top: 14px; display: flex; flex-direction: column; flex: 1; }
.product-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.product-card__title { font-size: 1.04rem; line-height: 1.3; margin-bottom: 6px; }
.product-card__title a:hover { color: var(--blue); }
.product-card__meta { font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.product-card__foot { margin-top: auto; display: flex; align-items: baseline; gap: 10px; }
.price { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--blue-900); }
.price__unit { font-size: .78rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.price--was { font-size: .9rem; color: var(--muted); text-decoration: line-through; font-family: var(--font-body); font-weight: 400; }

.rating { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.rating__stars { display: inline-flex; gap: 1px; color: var(--orange); }
.rating__stars svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   12. Value props / story
   -------------------------------------------------------------------------- */
.value-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.value-card {
  text-align: left;
  display: grid; grid-template-columns: auto 1fr;
  column-gap: 14px; row-gap: 10px;
  /* centre the icon against its title, but pack the rows to the top — otherwise
     the shorter cards centre their whole contents inside the stretched row */
  align-items: center; align-content: start;
}
.value-card__icon {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-800); flex: none;
}
.value-card__icon svg { width: 25px; height: 25px; }
/* A numbered grid uses the same tinted square, with a figure in it. */
.value-card__icon strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1; }
.value-card p { grid-column: 1 / -1; }
.value-card:nth-child(2) .value-card__icon { background: var(--green-100); color: var(--green-700); }
.value-card:nth-child(3) .value-card__icon { background: var(--orange-100); color: var(--orange-600); }
.value-card:nth-child(4) .value-card__icon { background: var(--yellow-100); color: #8a6c05; }
.value-card h3 { font-size: 1.08rem; margin-bottom: 0; }
.value-card p { font-size: .92rem; color: var(--ink-700); }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split--reverse .split__media { order: 2; }
@media (max-width: 899px) { .split--reverse .split__media { order: 0; } }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media-stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.split__media-stack img:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.split__media-stack img { aspect-ratio: 1; }
/* One photograph is not a stack. The 16:9 band is right for the first of
   three, where the squares under it carry the rest of the subject; on its
   own it takes a head-and-shoulders shot and cuts the head off. A carried
   over page has one picture far more often than three.

   So a lone picture matches the height of the words beside it: the columns
   come out equal, there is no colour left over under the shorter one, and
   the next section starts straight under both. A floor keeps it from
   collapsing to a strip when the words are only a line or two. */
/* Standing on its own, a lone picture takes 4:3: shorter than the 16:9
   band, and it keeps the subject. This is what Middle and Top give. */
.split__media-stack img:only-child { aspect-ratio: 4 / 3; }

/* Full height is the other answer, for words long enough that a fixed
   shape would leave colour under the picture. A floor stops it collapsing
   to a strip, and a ceiling stops a long page of words dragging a
   photograph into a tower. */
.split--single .split__media,
.split--single .split__media-stack { height: 100%; }
.split--single .split__media-stack img:only-child {
  aspect-ratio: auto; height: 100%; min-height: 340px; max-height: 560px; object-fit: cover;
}
.split__stamp {
  position: absolute; bottom: -22px; right: -14px; background: #fff;
  border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow);
  display: flex; gap: 14px; align-items: center;
}
.split__stamp strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--blue); line-height: 1; display: block; }
.split__stamp span { font-size: .78rem; color: var(--muted); max-width: 110px; display: block; }

.story__cta { margin-top: 28px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--blue); line-height: 1; }
.stat span { font-size: .82rem; color: var(--muted); }
.section--ink .stat strong { color: var(--yellow); }
.section--ink .stat span { color: #a8c7d7; }
.section--ink .stat-row { border-color: rgba(255,255,255,.16); }

/* --------------------------------------------------------------------------
   13. Bulk / CTA banner
   -------------------------------------------------------------------------- */
.cta-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  color: #fff; isolation: isolate; padding: clamp(40px, 6vw, 76px);
}
.cta-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(6,54,79,.92), rgba(6,54,79,.55)); }
.cta-banner h2 { color: #fff; margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.88); max-width: 52ch; margin-bottom: 26px; }
.cta-banner__inner { max-width: 620px; }
.cta-banner__list { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 28px; }
.cta-banner__list li { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.cta-banner__list svg { width: 17px; height: 17px; color: var(--yellow); }

/* --------------------------------------------------------------------------
   14. Testimonials
   -------------------------------------------------------------------------- */
.quote-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.quote-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.quote-card blockquote { margin: 14px 0 18px; font-size: 1rem; color: var(--ink-700); line-height: 1.6; }
.quote-card__who { display: flex; align-items: center; gap: 12px; }
.quote-card__avatar {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue-100); color: var(--blue-800); font-weight: 700; font-size: .9rem;
}
.quote-card__who strong { display: block; font-size: .9rem; }
.quote-card__who span { font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   15. Newsletter
   -------------------------------------------------------------------------- */
.newsletter { position: relative; overflow: hidden; }
.newsletter__inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .newsletter__inner { grid-template-columns: 1fr 1fr; } }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.newsletter__form input {
  flex: 1 1 240px; padding: 15px 20px; border-radius: var(--radius-pill);
  border: 2px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter__form input:focus { border-color: var(--yellow); outline: none; }
.newsletter__text { color: #a8c7d7; max-width: 48ch; }
.newsletter__fine { font-size: .78rem; color: #9dc0d2; margin-top: 12px; }
.newsletter__art img { border-radius: var(--radius-lg); aspect-ratio: 16/11; object-fit: cover; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer { background: var(--blue-900); color: #bcd6e3; padding-block: 64px 28px; font-size: .9rem; }
.footer a { color: #bcd6e3; }
.footer a:hover { color: var(--yellow); }
.footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand img.footer-logo { width: 210px; height: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 38ch; color: #9dc0d2; }
.footer__certs { display: flex; gap: 16px; margin-top: 22px; }
.footer__certs img { width: 78px; background: #fff; border-radius: 10px; padding: 8px; }
.footer h4 { color: #fff; font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer__links li { margin-bottom: 9px; }
.footer__contact li { margin-bottom: 11px; display: flex; gap: 10px; }
.footer__contact svg { width: 17px; height: 17px; color: var(--blue-400); flex: none; margin-top: 3px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.footer__social a:hover { background: var(--orange); color: #fff; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
  font-size: .82rem; color: #8fb3c6;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__pay { display: flex; gap: 8px; align-items: center; }
.footer__pay img {
  width: 46px; height: auto; border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
}

/* --------------------------------------------------------------------------
   17. Breadcrumbs + page headers
   -------------------------------------------------------------------------- */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); padding-block: 18px; }
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

.page-head { background: var(--cream); border-bottom: 1px solid var(--line-soft); }
.page-head__inner { display: grid; gap: 28px; align-items: center; padding-block: clamp(26px, 4vw, 44px); }
@media (min-width: 960px) { .page-head__inner { grid-template-columns: 1.4fr 1fr; } }
.page-head h1 { margin-bottom: 12px; }
.page-head p { color: var(--ink-700); max-width: 60ch; }
.page-head__art img { border-radius: var(--radius); aspect-ratio: 16/8; object-fit: cover; }

/* --------------------------------------------------------------------------
   18. Shop layout (filters + grid)
   -------------------------------------------------------------------------- */
.shop { display: grid; gap: 36px; align-items: start; }
@media (min-width: 1000px) { .shop { grid-template-columns: 268px 1fr; } }

.filters { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 999px) {
  .filters { position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(360px, 90vw); background: #fff;
    padding: 22px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); box-shadow: var(--shadow-lg); }
  .filters[data-open="true"] { transform: none; }
}
.filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filters__head h2 { font-size: 1.1rem; }
.filters__close { display: inline-flex; }
@media (min-width: 1000px) { .filters__close { display: none; } }

.filter-group { border-top: 1px solid var(--line-soft); padding-block: 6px; }
.filter-group summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 2px; font-weight: 600; font-size: .95rem; cursor: pointer; list-style: none;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.filter-group[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.filter-group__body { padding: 2px 2px 16px; display: grid; gap: 10px; }

.check { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-700); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.check span.count { margin-left: auto; font-size: .78rem; color: var(--muted); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  padding: 7px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-pill);
  font-size: .84rem; color: var(--ink-700); background: #fff; transition: all .18s var(--ease);
}
.swatch:hover { border-color: var(--blue-400); }
.swatch[aria-pressed="true"] { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }

.shop__toolbar {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  padding-bottom: 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 26px;
}
.shop__count { font-size: .88rem; color: var(--muted); }
.shop__count strong { color: var(--ink); }
.select {
  appearance: none; padding: 10px 38px 10px 16px; border: 1.5px solid var(--line);
  border-radius: var(--radius-pill); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2365757e' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center / 15px;
  font-size: .88rem; cursor: pointer;
}
.filters-toggle { display: inline-flex; }
@media (min-width: 1000px) { .filters-toggle { display: none; } }

.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px 6px 14px;
  border-radius: var(--radius-pill); background: var(--blue-100); color: var(--blue-800);
  font-size: .82rem; font-weight: 600;
}
.chip button { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(1,101,155,.14); }
.chip svg { width: 11px; height: 11px; }

.product-grid-cols { display: grid; gap: 30px 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .product-grid-cols { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1300px) { .product-grid-cols { grid-template-columns: repeat(4, 1fr); } }

.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 52px; }
/* Only the controls, never the sentence.

   Laravel puts a plain line of text in the pager, "Showing 1 to 24 of 59
   results", with each number in a span of its own. A rule for
   .pagination span therefore drew a 42px bordered pill around the 1, the
   24 and the 59, and because a pill is display:grid each one broke the
   line it sat in. The sentence came apart down the page, one word to a
   row, which is most of what Colleen's screenshot showed.

   So match what a reader can actually click: a link, the current page,
   and the greyed out ends. Each of those is an <a> or a span carrying
   aria-current or aria-disabled, and the numbers in the sentence are
   neither. */
.pagination a,
.pagination [aria-current] > span,
.pagination [aria-disabled] > span {
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--radius-pill);
  display: grid; place-items: center; font-size: .9rem; font-weight: 600;
  border: 1.5px solid var(--line); color: var(--ink-700);
}
.pagination a:hover { border-color: var(--blue); color: var(--blue); }

/* Laravel's own pager chrome, undone.

   products.links() renders the framework's default Tailwind pagination, and
   every control in it carries `bg-white border border-gray-300 rounded-md`.
   The rules above then draw the theme's pill on top, so each number sat
   inside two borders. The controls are also glued together with -ml-px
   inside a `shadow-sm rounded-md` wrapper, which is the band with a line
   above and below it, and why the numbers looked cramped against each
   other. The theme draws its own control, so the framework's has to go
   rather than be drawn underneath. */
.pagination nav > div { gap: 16px; }
.pagination nav span.inline-flex { box-shadow: none; border-radius: 0; display: inline-flex; gap: 8px; }
.pagination nav a,
.pagination nav span.inline-flex > span,
.pagination nav span.inline-flex > a { margin-left: 0; }
.pagination nav p { margin: 0; }

.pagination [aria-current] > span { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }
.pagination [aria-disabled] > span { opacity: .45; }

/* The sentence itself, left as a sentence. */
.pagination p { margin: 0; font-size: .9rem; color: var(--ink-700); }
.pagination p span { font-weight: 600; color: var(--blue-900); }

.seo-copy { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line-soft); }
.seo-copy h2 { font-size: 1.5rem; margin-bottom: 14px; }
.seo-copy p { color: var(--ink-700); max-width: 76ch; font-size: .95rem; }

/* --------------------------------------------------------------------------
   19. Product detail
   -------------------------------------------------------------------------- */
.pdp { display: grid; gap: clamp(32px, 4vw, 60px); align-items: start; }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.05fr .95fr; } }
.pdp > * { min-width: 0; }

.gallery__main { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); aspect-ratio: 4/3; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 8px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 12px; }
.gallery__thumb { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1; border: 2px solid transparent; background: var(--sand); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--blue); }

.pdp__info { position: sticky; top: calc(var(--header-h) + 20px); }
@media (max-width: 959px) { .pdp__info { position: static; } }
.pdp__title { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-block: 10px 12px; }
.pdp__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 18px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.pdp__price .price { font-size: 2rem; }
.pdp__priceline { font-size: .85rem; color: var(--muted); margin-bottom: 24px; }

.field { margin-bottom: 22px; }
.field__label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.field__label strong { font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; }
.field__label a { font-size: .82rem; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.size-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(104px, 100%), 1fr)); gap: 10px; }
.size-option {
  border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 11px 8px; text-align: center; transition: all .18s var(--ease);
}
.size-option strong { display: block; font-size: .9rem; }
.size-option span { font-size: .74rem; color: var(--muted); }
/* One size on sale and the rest at list price is a normal week here, so the
   saving has to be legible on the chip itself. The headline above only ever
   shows the size that is selected. */
.size-option__was { margin-inline-start: 4px; opacity: .7; }
.size-option:hover { border-color: var(--blue-400); }
.size-option[aria-pressed="true"] { border-color: var(--blue-900); background: var(--blue-100); }
.size-option[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

.purchase-modes { display: grid; gap: 10px; margin-bottom: 22px; }
.purchase-mode {
  display: flex; gap: 12px; align-items: flex-start; padding: 15px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: all .18s var(--ease);
}
.purchase-mode:has(input:checked) { border-color: var(--blue-900); background: var(--blue-100); }
.purchase-mode input { margin-top: 3px; accent-color: var(--blue); width: 18px; height: 18px; flex: none; }
.purchase-mode strong { display: block; font-size: .94rem; }
.purchase-mode span:not(.pill) { font-size: .83rem; color: var(--muted); }
.purchase-mode .pill { margin-left: auto; }

.buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 18px; }
.buy-row .btn { white-space: normal; min-width: 0; padding-inline: 18px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 44px; height: 100%; min-height: 52px; font-size: 1.2rem; color: var(--ink-700); }
.qty button:hover { background: var(--sand); }
.qty input { width: 44px; text-align: center; border: 0; background: none; font-weight: 600; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp__assurances { display: grid; gap: 12px; padding: 20px; background: var(--cream); border-radius: var(--radius); margin-bottom: 26px; }
.pdp__assurances li { display: flex; gap: 11px; align-items: flex-start; font-size: .87rem; color: var(--ink-700); }
.pdp__assurances svg { width: 19px; height: 19px; color: var(--green-700); flex: none; margin-top: 2px; }

.accordion { border-top: 1px solid var(--line-soft); }
.accordion details { border-bottom: 1px solid var(--line-soft); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 2px; font-weight: 600; cursor: pointer; list-style: none; font-size: .98rem;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.3rem; color: var(--muted); font-weight: 400; }
.accordion details[open] summary::after { content: "–"; }
.accordion__body { padding: 0 2px 22px; color: var(--ink-700); font-size: .93rem; }
.accordion__body ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.spec-table th { font-weight: 600; color: var(--muted); width: 45%; }
/* A real table of several columns, rather than the two column spec
   list the base class is shaped for: there the first cell is a label
   and 45% is right, here every column is content. */
.spec-table--cols th { width: auto; color: var(--blue-900); }
.spec-table--cols th, .spec-table--cols td { padding-inline-end: 18px; }

/* Reviews */
.reviews { display: grid; gap: 36px; }
@media (min-width: 900px) { .reviews { grid-template-columns: 300px 1fr; } }
.reviews__summary { background: var(--cream); border-radius: var(--radius-lg); padding: 26px; }
.reviews__score { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--blue-900); }
.bar-row { display: flex; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); margin-bottom: 7px; }
.bar { flex: 1; height: 7px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--orange); border-radius: 4px; }
.review { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line-soft); }
.review:last-child { border: 0; margin-bottom: 0; }
.review__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.review__head strong { font-size: .95rem; }
.review__head time { font-size: .8rem; color: var(--muted); margin-left: auto; }
.verified { font-size: .74rem; font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: 5px; }
.verified svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   20. Blog
   -------------------------------------------------------------------------- */
.post-hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  isolation: isolate; display: flex; align-items: flex-end; min-height: 440px;
}
.post-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.post-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(6,54,79,.92) 10%, rgba(6,54,79,.3) 70%); }
.post-hero__body { padding: clamp(26px, 4vw, 48px); max-width: 720px; }
.post-hero__body h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.6rem); margin-block: 12px; }
.post-hero__body p { color: rgba(255,255,255,.85); max-width: 56ch; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .82rem; color: var(--muted); }
.post-meta--light { color: rgba(255,255,255,.8); }
.post-meta li { display: flex; align-items: center; gap: 8px; }
.post-meta li + li::before { content: "•"; color: currentColor; opacity: .5; }

.post-grid { display: grid; gap: 34px 28px; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.post-card { display: flex; flex-direction: column; align-items: flex-start; }
.post-card > * { width: 100%; }
.post-card > .pill { width: auto; }
.post-card__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--sand); margin-bottom: 16px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card h3 { font-size: 1.22rem; margin-block: 10px 8px; }
.post-card h3 a:hover { color: var(--blue); }
.post-card p { font-size: .92rem; color: var(--ink-700); margin-bottom: 14px; }
.post-card__foot { margin-top: auto; }

.topic-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }

/* Article */
/* article body + a single right-hand rail, inside the normal page container */
.article { display: grid; gap: 56px; align-items: start; }
@media (min-width: 1040px) { .article { grid-template-columns: minmax(0, 1fr) 300px; } }
.article .prose { max-width: 760px; }

.article__rail { position: sticky; top: calc(var(--header-h) + 24px); display: none; min-width: 0; }
@media (min-width: 1040px) { .article__rail { display: grid; gap: 30px; } }
.article__rail-block h4 { font-family: var(--font-body); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc li a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); font-size: .88rem; color: var(--muted); }
.toc li a:hover, .toc li a[aria-current="true"] { border-color: var(--orange); color: var(--blue-900); }
.share { display: flex; gap: 9px; }
.share a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink-700); }
.share a:hover { border-color: var(--blue); color: var(--blue); }
.share svg { width: 17px; height: 17px; }

.prose { font-size: 1.06rem; line-height: 1.78; color: var(--ink-700); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-top: 2em; margin-bottom: .5em; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; margin-bottom: .4em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose a.btn { color: var(--btn-fg); text-decoration: none; }
.prose ul, .prose ol { list-style: disc; padding-left: 24px; display: grid; gap: 9px; }
.prose ol { list-style: decimal; }
.prose img { border-radius: var(--radius); margin-block: 2em; }
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: .84rem; color: var(--muted); text-align: center; margin-top: 10px; }
.prose blockquote {
  margin: 2em 0; padding: 26px 30px; border-left: 4px solid var(--orange);
  background: var(--cream); border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display); font-size: 1.22rem; line-height: 1.5; color: var(--blue-900);
}
.prose blockquote cite { display: block; margin-top: 12px; font-family: var(--font-body); font-size: .85rem; font-style: normal; color: var(--muted); }
.callout {
  display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius);
  background: var(--blue-100); border: 1px solid #c4e0ee; margin-block: 2em;
}
.callout svg { width: 24px; height: 24px; color: var(--blue); flex: none; }
.callout strong { display: block; color: var(--blue-900); margin-bottom: 4px; font-family: var(--font-display); font-size: 1.05rem; }
.callout p { font-size: .94rem; margin: 0; }

.author-box {
  display: flex; gap: 18px; align-items: flex-start; padding: 26px;
  background: var(--cream); border-radius: var(--radius-lg); margin-top: 48px;
}
.author-box img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box h4 { font-size: 1.05rem; margin-bottom: 4px; }
.author-box p { font-size: .9rem; color: var(--ink-700); margin: 0; }

.inline-cta {
  display: grid; gap: 20px; align-items: center; padding: 28px;
  border: 2px dashed var(--line); border-radius: var(--radius-lg); margin-block: 2.4em;
}
@media (min-width: 640px) { .inline-cta { grid-template-columns: 90px 1fr auto; } }
.inline-cta img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); }
.inline-cta h4 { font-size: 1.12rem; margin-bottom: 4px; }
.inline-cta p { font-size: .9rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   21. Misc utilities
   -------------------------------------------------------------------------- */
.scroll-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(250px, 100%), 1fr); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.scroll-row > * { scroll-snap-align: start; }
@media (min-width: 1000px) { .scroll-row { margin-inline: 0; padding-inline: 0; grid-auto-columns: minmax(258px, 1fr); } }

.head-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; margin-bottom: clamp(24px, 3vw, 40px); }
.head-row .section-head { margin-bottom: 0; }

.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

@media (max-width: 520px) {
  .btn { white-space: normal; }
}

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

/* --------------------------------------------------------------------------
   7b. Mega menu — three levels (category → sub-category → cut)
   -------------------------------------------------------------------------- */
.header__inner { position: relative; }
.nav__item--mega { position: static; }
.mega { transition-property: opacity, transform, visibility; }

.mega {
  /* anchored off the nav row rather than the bottom of the bar, so the gap
     under "Shop" stays tight whether the header is full height or condensed */
  position: absolute; top: calc(var(--header-h) / 2 + 28px); left: 0; right: 0; z-index: 95;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item--mega:hover > .mega,
.nav__item--mega:focus-within > .mega,
.mega[data-open="true"] { opacity: 1; visibility: visible; transform: none; }

.mega__inner { display: grid; grid-template-columns: 252px 256px minmax(0, 1fr); min-height: 360px; }

/* level 1 — category rail */
.mega__rail { padding: 16px 12px; background: var(--cream); border-right: 1px solid var(--line-soft); }
.mega__l1 {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 14px; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; color: var(--ink-700); text-align: left;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.mega__l1 svg { width: 15px; height: 15px; opacity: 0; transform: translateX(-4px); transition: all .16s var(--ease); flex: none; }
.mega__l1:hover { background: #fff; color: var(--blue-900); }
.mega__l1[aria-expanded="true"] { background: var(--blue-900); color: #fff; }
.mega__l1[aria-expanded="true"] svg { opacity: 1; transform: none; }
.mega__rail-foot { margin-top: 10px; padding: 12px 14px 4px; border-top: 1px solid var(--line); }

/* level 2 — sub-category column */
.mega__pane { display: contents; }
.mega__pane[hidden] { display: none; }
.mega__col { padding: 10px 12px; border-right: 1px solid var(--line-soft); max-height: 460px; overflow-y: auto; }
.mega__l2 {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  /* tight enough that the longest category (Sausages, 11 rows) clears the
     column's max-height without a scrollbar */
  width: 100%; padding: 7px 13px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--ink-700); text-align: left;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.mega__l2 svg { width: 12px; height: 12px; transform: rotate(-90deg); opacity: .45; flex: none; }
.mega__l2:hover { background: var(--blue-100); color: var(--blue-800); }
.mega__l2[aria-expanded="true"] { background: var(--blue-100); color: var(--blue-800); font-weight: 600; }
.mega__l2--leaf { justify-content: flex-start; }

/* level 3 — cuts sheet */
.mega__sheets { padding: 22px 26px; max-height: 460px; overflow-y: auto; }
.mega__sheet[hidden] { display: none; }
.mega__sheet-head {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; color: var(--blue-900);
  transition: gap .18s var(--ease);
}
.mega__sheet-head svg { width: 15px; height: 15px; color: var(--orange); }
.mega__sheet-head:hover { gap: 13px; }
.mega__leaves { columns: 2; column-gap: 28px; }
@media (min-width: 1360px) { .mega__leaves { columns: 3; } }
.mega__leaves li { break-inside: avoid; }
.mega__leaves a {
  display: block; padding: 6px 0; font-size: .89rem; color: var(--ink-700);
  border-bottom: 1px solid transparent; transition: color .16s var(--ease);
}
.mega__leaves a:hover { color: var(--blue); }

.mega__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  padding: 14px 26px; background: var(--sand); border-top: 1px solid var(--line-soft);
  font-size: .84rem; color: var(--ink-700);
}
.mega__foot span { display: inline-flex; align-items: center; gap: 9px; }
.mega__foot svg { width: 18px; height: 18px; color: var(--blue); }
.mega__foot .btn { margin-left: auto; }

/* --------------------------------------------------------------------------
   7c. Mobile nested category accordion
   -------------------------------------------------------------------------- */
.mnav__l1 > summary { font-size: 1rem; }
.mnav__l2 { border-bottom: 0 !important; margin-left: 12px; border-left: 2px solid var(--line-soft); padding-left: 12px; }
.mnav__l2 > summary { padding: 11px 2px; font-weight: 500; font-size: .93rem; }
.mnav__l2 a { padding: 7px 2px 7px 12px !important; font-size: .88rem !important; color: var(--muted) !important; }
.mnav__l2 a:hover { color: var(--blue) !important; }
.mnav__all { font-weight: 600; color: var(--blue) !important; }
/* comfortable 44px+ touch targets throughout the mobile tree */
.mobile-nav__panel a,
.mobile-nav summary { min-height: 44px; display: flex; align-items: center; }

.mobile-nav .mnav__l1 > a.mnav__l2-leaf {
  margin-left: 12px; border-left: 2px solid var(--line-soft); padding: 11px 2px 11px 12px;
  font-size: .93rem; font-weight: 500; color: var(--ink-700);
}

.mega__panes { display: contents; }

/* --------------------------------------------------------------------------
   14. The bands this theme adds

   Everything above came across from the design TK Ranch supplied. These are
   the sections the shop's own data asked for, plus the few shells the
   platform needs that a static prototype has no reason to carry: the form
   builder, the checkout frame and the page heads.
   -------------------------------------------------------------------------- */

/* Shared heads ----------------------------------------------------------- */
.section-head--center { text-align: center; margin-inline: auto; max-width: 62ch; }
.section-cta { margin-top: 28px; text-align: center; }

.tk-page-head { padding-top: 32px; }
.tk-page-title { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1.1; margin: 12px 0 0; color: var(--blue-900); }
.tk-page-sub { color: var(--muted); max-width: 68ch; margin-top: 10px; }

/* Long-form copy from the editor. The merchant's own formatting survives. */
.tk-prose { color: var(--ink-700); }
/* A reading measure, on a band of prose that has the page's whole
   width to play with. Narrowing the band instead centred it, so the
   text started in a different place from every row above and below
   it and the page had no left edge. Capping the line length inside a
   full width band keeps both: one edge, and lines you can read. */
.tk-prose--measure { max-width: 72ch; margin-inline: auto; }
.tk-prose--measure img { max-width: 100%; }
.tk-prose > * + * { margin-top: 1em; }
.tk-prose h2, .tk-prose h3 { font-family: var(--font-display); color: var(--blue-900); line-height: 1.2; }
.tk-prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.tk-prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.tk-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.tk-prose ul, .tk-prose ol { padding-inline-start: 1.3em; }
.tk-prose li + li { margin-top: .4em; }
.tk-prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
/* A line drawing is not a photograph. The old site's icons are 1920px PNGs
   that it capped inline at 132px tall; the carry-over kept the file and
   dropped the cap, so a pig the size of half the page opened the Happy Pigs
   page. Square-ish, no corner rounding, and it keeps the left edge of the
   text it sits above. */
.tk-prose img.tk-icon { max-height: 132px; width: auto; border-radius: 0; margin-bottom: .4em; }
.story__icon { max-height: 132px; width: auto; margin-bottom: 14px; }

/* A grid of photographs. Every tile is given its shape here rather than
   left to decide its own: one tall shot among a row of wide ones pulls the
   row down with it and the grid stops reading as a grid. */
.photo-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .photo-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .photo-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.photo-grid__item { margin: 0; }
.photo-grid__item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); display: block;
}
.photo-grid__item figcaption {
  margin-top: 8px; font-size: .85rem; color: var(--muted); line-height: 1.4;
}

/* Delivery routes, as a list of routes rather than nine sentences.
   The number is the thing a customer matches against the table, so it is
   the thing drawn large. */
.route-list { display: grid; gap: 10px; padding: 0; margin: 1.4em 0; list-style: none; }
@media (min-width: 640px) { .route-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .route-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.route-list li {
  display: flex; align-items: center; gap: 14px; margin: 0;
  padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: color-mix(in srgb, var(--cream, #faf6ef) 55%, transparent);
}
.route-list__n {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue, #0d5c75); color: #fff;
  font-family: var(--font-display); font-size: 1.05rem; line-height: 1;
}
.route-list__day { font-weight: 600; color: var(--blue-900); }
.route-list__every { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }
/* A mark in the margin beside the words. The ranch marks a species with a
   line drawing, and a paragraph carried over on its own has a wide empty
   left side it belongs in. Below the breakpoint the column collapses and
   the mark sits above the text, which is the only place it fits. */
.tk-aside { display: grid; gap: 20px; --mark: 180px; }
.tk-aside--small { --mark: 132px; }
.tk-aside--medium { --mark: 180px; }
.tk-aside--large { --mark: 240px; }
.tk-aside__mark { max-height: var(--mark); width: auto; }
@media (min-width: 768px) {
  .tk-aside { grid-template-columns: var(--mark) minmax(0, 1fr); gap: 36px; }
}
/* The page head already carries a band's worth of padding under the title,
   so the first section after it was opening on two of them. */
.page-head + .section { padding-top: clamp(28px, 3vw, 44px); }
.tk-prose blockquote { margin: 1.4em 0; padding-inline-start: 1em; border-inline-start: 3px solid var(--orange); font-family: var(--font-display); font-size: 1.15rem; color: var(--blue-900); }
/* Tables.
   Wide ones scroll rather than squeeze: a table of fifty communities
   crushed into a phone is unreadable in a way that cannot be styled away. */
.tk-prose table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin-block: 1.6em; font-size: .95rem; display: block; overflow-x: auto;
}
@media (min-width: 900px) { .tk-prose table { display: table; } }
.tk-prose th, .tk-prose td { text-align: start; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tk-prose thead th { background: var(--cream, #faf6ef); font-family: var(--font-display); color: var(--blue-900); border-bottom-width: 2px; white-space: nowrap; }
/* A paragraph inside a cell is the carried-over markup's doing, not a
   paragraph anybody wrote. It must not bring a paragraph's margins. */
.tk-prose td > p, .tk-prose th > p { margin: 0; }
.tk-prose tbody tr:last-child td { border-bottom: 0; }

/* Carried over from a site that set every cell bold, header and body
   alike, which is why 207 cells of place names read as one grey slab. The
   first row is the header here because the old markup has no thead, and
   the rest goes back to normal weight so the header can be the thing that
   stands out. */
.delivery-table tr:first-child td { background: var(--cream, #faf6ef); border-bottom: 2px solid var(--line-soft); white-space: nowrap; }
.delivery-table tr:first-child td strong { font-family: var(--font-display); color: var(--blue-900); font-weight: 600; letter-spacing: .02em; }
.delivery-table tr:not(:first-child) td strong { font-weight: 400; color: var(--ink-700); }
.delivery-table tr:nth-child(even):not(:first-child) td { background: color-mix(in srgb, var(--cream, #faf6ef) 45%, transparent); }
/* Route number and fee are figures: narrow, and read down the column. */
.delivery-table td:nth-child(3n+2) { text-align: center; white-space: nowrap; }
.delivery-table td:nth-child(3n) { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* A seam between the three community blocks the table repeats across. */
.delivery-table td:nth-child(3n+1):not(:first-child) { border-inline-start: 1px solid var(--line-soft); }

/* Species tiles ---------------------------------------------------------- */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.cat-tile a { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); box-shadow: var(--shadow-sm); color: #fff; }
.cat-tile img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .4s var(--ease); }
.cat-tile a:hover img { transform: scale(1.04); }
.cat-tile a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 54, 79, 0) 42%, rgba(6, 54, 79, .78) 100%); }
.cat-tile__name { position: absolute; left: 16px; right: 16px; bottom: 34px; z-index: 1; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.2; }
.cat-tile__count { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-size: .8rem; opacity: .85; }

/* Nose to tail ----------------------------------------------------------- */
.ntt__walk { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; list-style: none; margin: 28px 0 0; padding: 0; counter-reset: ntt; }
.ntt__step { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 16px; }
.ntt__step a { display: block; color: inherit; }
.ntt__n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: var(--radius-pill); background: var(--orange); color: #fff; font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
.ntt__step strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--blue-900); }
.ntt__note { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); }

/* By the box ------------------------------------------------------------- */
.ladder { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; list-style: none; margin: 28px 0 0; padding: 0; }
.ladder__rung { text-align: center; padding: 26px 18px; border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); }
.ladder__rung strong { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--blue-900); }
.ladder__rung span { display: block; margin-top: 6px; color: var(--green-700); font-weight: 600; }

/* Delivery --------------------------------------------------------------- */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; list-style: none; margin: 28px 0 0; padding: 0; }
.zone { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--cream); }
.zone svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.zone strong { display: block; color: var(--blue-900); }
.zone span { display: block; font-size: .88rem; color: var(--muted); }
.zones__note { margin-top: 18px; color: var(--muted); font-size: .9rem; }

/* Article page -------------------------------------------------------- */
/* The hero carries the whole opening, so the band above it closes up and
   the one below it starts flush against it. */
.article__top { padding-top: 0; }
.article__main { padding-top: 0; }
.post-hero__body h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 3.2rem); margin-block: 14px; line-height: 1.08; }
.post-hero__body .pill { color: var(--blue-900); }
/* A post with no picture of its own. The same block, on the ink blue, so
   the page opens the same way rather than falling back to a bare heading. */
.post-hero--plain { background: var(--blue-900); }
.post-hero--plain::after { display: none; }
/* The measure and the type of an article body, on this theme's own prose
   class. `.prose` is Tailwind's as well, and a shared name that two
   stylesheets both claim is not one to build a page on. */
.article .tk-prose { max-width: 760px; font-size: 1.06rem; line-height: 1.78; }
.article .tk-prose > * + * { margin-top: 1.1em; }
.article .tk-prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin-top: 2em; margin-bottom: .5em; scroll-margin-top: calc(var(--header-h) + 24px); }
.article .tk-prose img { width: 100%; border-radius: var(--radius); margin-block: 1.4em; }
.article__rail-cert { padding: 22px; }
.article__rail-cert h4 { margin-top: 12px; font-size: 1.05rem; }
.article__rail-cert p { font-size: .88rem; color: var(--ink-700); margin-top: 8px; }
.article__rail-certs { display: flex; gap: 12px; margin-top: 16px; }
.article__rail-certs img { width: 72px; }

/* Header search ---------------------------------------------------------- */
.header__search { position: relative; }
.header__search-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 10px); width: min(380px, 80vw); z-index: 60; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }

/* A badge the design did not need but the catalogue does ------------------ */
.badge--blue { background: var(--blue-100); color: var(--blue-800); }

/* The group price and the struck-through one, from the shared component --- */
.price__was, .price--was { margin-inline-start: 8px; color: var(--muted); text-decoration: line-through; font-weight: 400; }
.price__from { color: var(--muted); font-size: .8em; margin-inline-end: 4px; }

/* Forms ------------------------------------------------------------------ */
.tk-form__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .tk-form__grid { grid-template-columns: 1fr 1fr; } .tk-field { grid-column: span 2; } .tk-field--half { grid-column: span 1; } }
.tk-field__label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--blue-900); }
.tk-input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; font-size: .95rem; }
.tk-input:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 1px; border-color: var(--blue); }
.tk-field.is-bad .tk-input { border-color: #c0392b; }
.tk-field__error { margin: 6px 0 0; font-size: .85rem; color: #c0392b; }
.tk-check { display: inline-flex; align-items: center; gap: 10px; }
.tk-req { color: var(--orange-600); }
.tk-form__ok { padding: 12px 16px; border-radius: var(--radius-sm); background: var(--green-100); color: var(--green-700); }
.tk-form__bad { padding: 12px 16px; border-radius: var(--radius-sm); background: #fdecea; color: #c0392b; }
/* Hidden from people, filled in by bots. */
.tk-hp { position: absolute; left: -9999px; }

/* Checkout frame --------------------------------------------------------- */
.checkout-head { border-bottom: 1px solid var(--line-soft); background: var(--white); }
.checkout-head__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; }
.checkout-head__inner img { height: 46px; width: auto; }
.checkout-head__secure { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.checkout-head__secure svg { width: 16px; height: 16px; }
.checkout-foot { border-top: 1px solid var(--line-soft); margin-top: auto; background: var(--white); }
.checkout-foot__inner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-block: 16px; font-size: .82rem; color: var(--muted); }
.checkout-foot__inner a { color: var(--blue); font-weight: 600; }
.checkout-flash { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius-sm); }
.checkout-flash--ok { background: var(--green-100); color: var(--green-700); }
.checkout-flash--bad { background: #fdecea; color: #c0392b; }
.checkout-flash--warn { background: var(--yellow-100); color: var(--orange-600); }

/* Odds and ends ---------------------------------------------------------- */
.pdp__share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th { text-align: start; font-weight: 600; color: var(--blue-900); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.spec-table td { padding: 8px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-700); }
.muted { color: var(--muted); }
.footer__credit { font-size: .78rem; opacity: .8; }
.article__hero img { width: 100%; max-height: 54vh; object-fit: cover; display: block; }
.article__head { padding-top: 26px; }
.article__head h1 { font-family: var(--font-display); font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1.12; color: var(--blue-900); margin: 10px 0 0; }
.article__meta { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.article__body { margin-top: 26px; }

/* Utility classes the shared checkout layout expects ----------------------

   Layered, for the reason given in section 2, and this block is what that
   warning was about. Every name here is also a Tailwind utility, so left
   unlayered each one beat its own responsive variant: an unlayered rule
   wins against anything in @layer utilities however specific.

   The visible cost was the pagination under a category. Laravel draws the
   pager twice, a narrow one for a phone and a wide one for a desktop, and
   hides whichever does not apply. The narrow one is marked flex sm:hidden,
   so .flex below outranked sm:hidden and the phone pager never went away:
   Colleen saw Previous and Next stacked above a second set of page numbers
   on a full size screen, and read it as the page falling apart.

   Keep them for the case where this sheet loads without Tailwind, but keep
   them in a layer so they lose every argument they should lose. */
@layer base {
  .flex { display: flex; }
  .flex-1 { flex: 1; }
  .flex-col { flex-direction: column; }
  .min-h-screen { min-height: 100vh; }
  .antialiased { -webkit-font-smoothing: antialiased; }
}

/* A category with no picture at all. The card is positioned and its image
   sits behind the words, so without something filling that space the tile
   collapses to the height of its own heading. */
.cat-card__blank { position: absolute; inset: 0; z-index: -2; background: linear-gradient(140deg, var(--blue-800), var(--blue-900)); }

/* An inline sprite icon has no intrinsic size, so one inside a button grows
   to fill whatever box it is given. The Save button on a product page came
   out as a heart the size of the button. The design's own buttons never
   carried an icon, so there was no rule to inherit. */
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.pdp__assurances svg, .trustbar__item svg, .zone svg, .value__head svg { flex: none; }
