/* Self-hosted fonts (OFL licensed, see assets/fonts). Replaces next/font from the old Next.js shop. */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/assets/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("/assets/fonts/public-sans-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root {
  --font-display-face: "Big Shoulders Display";
  --font-body-face: "Public Sans";
}
/* next/image "fill" equivalent: <img class="fill"> fills its positioned box. */
img.fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Storefront styles. Colours come from each store's theme via --brand, --paper, --ink
   (set on <html> in layout.tsx), so every store can look different. */

:root {
  --brand: #1f2a44;
  --paper: #ffffff;
  --ink: #1a1a1a;
}

/* Derived colours are declared on .shop too, so they follow each store's theme. */
:root,
.shop {
  --muted: color-mix(in srgb, var(--ink) 62%, var(--paper));
  --line: color-mix(in srgb, var(--ink) 14%, var(--paper));
  --tint: color-mix(in srgb, var(--ink) 5%, var(--paper));
  --font-display: var(--font-display-face), "Arial Narrow", sans-serif;
  --font-body: var(--font-body-face), system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

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

body {
  margin: 0;
  background: #fff;
  color: #1a1a1a;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}

.shop {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shop main {
  flex: 1;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  margin: 0;
}

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

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

/* Test banner */
.test-banner {
  margin: 0;
  padding: 6px var(--gutter);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.8125rem;
  text-align: center;
}

/* Where the shop is from: strip above the header (stores.theme.origin_bar) */
.origin-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 0;
  padding: 7px var(--gutter);
  list-style: none;
  background: var(--brand);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.origin-bar li + li::before {
  content: "\2022";
  margin: 0 10px;
  opacity: 0.7;
}

/* Homepage trust strip under the banner */
.origin-points {
  margin-top: 40px;
}

.origin-points ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.origin-points li {
  display: grid;
  gap: 4px;
  justify-items: center;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
}

.origin-points strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.origin-points span {
  color: var(--muted);
  font-size: 0.925rem;
}

.origin-leaf {
  width: 26px;
  height: 26px;
  color: var(--brand);
}

@media (max-width: 600px) {
  .origin-bar {
    column-gap: 14px;
  }
  .origin-bar li + li::before {
    content: none;
  }
  .origin-points li {
    padding: 16px 10px;
  }
}

.origin-more {
  margin: 14px 0 0;
  text-align: center;
}

/* Product page: where it's made */
.pdp-origin {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 600;
}

.pdp-origin-leaf {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--brand);
}

.cart-origin {
  font-weight: 600;
}

.footer-origin {
  font-weight: 600;
  color: var(--ink);
}

/* About page */
.about-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 0 24px;
  border-radius: 12px;
}

.about-signoff {
  font-weight: 700;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  text-decoration: none;
  color: var(--brand);
  white-space: nowrap;
}

.wordmark-logo {
  display: block;
}

.logo-img {
  display: block;
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 24px;
  flex: 1;
}

.site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cart-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 0.8125rem;
}

/* Hero: three bands in the flag's 1:2:1 proportion */
.hero {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  min-height: clamp(380px, 58vh, 560px);
  border-bottom: 1px solid var(--line);
}

.hero-band {
  background: var(--brand);
}

.hero-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px clamp(16px, 4vw, 56px);
}

.hero-title {
  font-size: clamp(3rem, 7.2vw, 6.25rem);
  font-weight: 900;
  max-width: 9ch;
  text-wrap: balance;
}

/* Flag hero (theme.hero_style = "flag"): maple leaf in the white centre, headline inside the leaf */
.hero-flag .hero-centre {
  padding-block: clamp(28px, 4vw, 48px);
}

.flag-leaf {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 540px);
  aspect-ratio: 1;
  container-type: inline-size;
}

.flag-leaf-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--brand);
}

.flag-leaf-title {
  position: relative;
  max-width: 7ch;
  margin-top: 9cqi;
  color: #fff;
  font-size: 9cqi;
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  text-wrap: balance;
}

.hero-flag .hero-text {
  margin-top: 12px;
}

.hero-text {
  margin: 20px 0 28px;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
}

.button:hover {
  background: color-mix(in srgb, var(--brand) 85%, black);
}

/* Product shelves and grids */
.shelf {
  padding-block: 56px 8px;
}

.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.shelf-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.shelf-head a {
  font-weight: 600;
  font-size: 0.9375rem;
  text-underline-offset: 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 24px;
}

.card {
  min-width: 0;
}

.card-link {
  text-decoration: none;
  display: block;
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--tint);
  overflow: hidden;
}

.card-media img {
  object-fit: cover;
}

.card-media .mockup {
  width: 100%;
  height: 100%;
}

.card-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  margin-top: 12px;
}

.card-link:hover .card-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card-price {
  margin: 2px 0 0;
  color: var(--muted);
}

.card-swatches {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
}

.card-swatches li {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

/* Inner pages */
.page {
  padding-block: 28px 72px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.crumbs a {
  text-underline-offset: 3px;
}

.crumbs > span:not([aria-current]):not([aria-hidden]) {
  display: contents;
}

.page-head {
  margin-bottom: 36px;
  max-width: 60ch;
}

.page-head h1 {
  font-size: clamp(2.75rem, 6vw, 4.5rem);
}

.page-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.empty {
  padding-block: 48px;
}

.empty h1,
.empty h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}

.empty p {
  color: var(--muted);
  margin: 0 0 24px;
}

/* Product page */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.pdp-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--tint);
}

.pdp-media img {
  object-fit: cover;
}

.pdp-media .mockup {
  width: 100%;
  height: 100%;
}

/* Collections list */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px 24px;
}

.collection-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.collection-media {
  position: relative;
  aspect-ratio: 1;
  background: var(--tint);
  margin-bottom: 14px;
}

.collection-media img {
  object-fit: cover;
}

.collection-card h2 {
  font-size: 2rem;
  margin: 0 0 6px;
}

.collection-card:hover h2 {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.collection-card p {
  margin: 0 0 8px;
  color: var(--muted);
}

.collection-count {
  font-size: 0.875rem;
  font-weight: 600;
}

.policy section {
  max-width: 68ch;
  margin-bottom: 36px;
}

.policy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 12px;
}

.policy li {
  margin-bottom: 8px;
}

.pdp-delivery {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.collection-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collection-links a {
  display: inline-block;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.collection-links a:hover {
  background: var(--ink);
  color: var(--paper);
}

.pdp-collections {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.related {
  margin-top: clamp(48px, 8vw, 96px);
  padding-inline: 0;
}

/* Product photos: hover zoom, thumbnails, full-screen zoom */
.gallery {
  min-width: 0;
}

.pdp-media.zoomable {
  cursor: zoom-in;
  overflow: hidden;
}

.hover-zoom {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-color: var(--tint);
  pointer-events: none;
}

/* Hover zoom only makes sense with a mouse */
@media (hover: none) {
  .hover-zoom {
    display: none;
  }
}

.zoom-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--ink);
  font: 600 0.85rem var(--font-body);
  cursor: pointer;
}

.zoom-button:hover {
  border-color: var(--ink);
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
}

.thumbs button {
  position: relative;
  flex: 0 0 76px;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  background: var(--tint);
  cursor: pointer;
}

.thumbs button img {
  object-fit: cover;
}

.thumbs button[aria-pressed="true"] {
  border-color: var(--ink);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #1a1a1a;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  font: 0.9rem var(--font-body);
  color: #555;
}

.lightbox-close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f0f0f0;
  color: #1a1a1a;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: pan-y;
  user-select: none;
}

.lightbox-stage.is-zoomed {
  cursor: zoom-out;
  touch-action: none;
}

.lightbox-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  -webkit-user-drag: none;
}

.lightbox-stage.is-zoomed img {
  transition: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.06);
  color: #1a1a1a;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav.prev {
  left: 12px;
}

.lightbox-nav.next {
  right: 12px;
}

.pdp-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.pdp-price {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 14px 0 28px;
}

.pdp-compare {
  margin-left: 10px;
  color: var(--muted);
  font-weight: 400;
}

.option {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}

.option legend {
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0;
}

.option-current {
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}

.option-swatches,
.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-swatches button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.option-swatches button[aria-pressed="true"] {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 0 3px var(--paper),
    0 0 0 5px var(--ink);
}

.option-pills button {
  min-width: 56px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
}

.option-pills button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.option button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.add-to-cart {
  width: 100%;
  padding: 16px;
  margin-top: 8px;
  border: 0;
  border-radius: 2px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  cursor: pointer;
}

.add-to-cart:disabled {
  background: var(--tint);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: not-allowed;
}

.pdp-note {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.pdp-description {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 60ch;
}

/* Cart */
.cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

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

.cart-thumb {
  position: relative;
  display: block;
  width: 96px;
  aspect-ratio: 1;
  background: var(--tint);
}

.cart-thumb img {
  object-fit: cover;
}

.cart-thumb .mockup {
  width: 100%;
  height: 100%;
}

.cart-line-title {
  font-weight: 700;
  text-decoration: none;
}

.cart-line-title:hover {
  text-decoration: underline;
}

.cart-line-variant,
.cart-line-price {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.cart-line-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.cart-line-qty select {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}

.cart-line-total {
  margin: 0;
  font-weight: 700;
  min-width: 80px;
  text-align: right;
}

.link-button {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
}

.cart-summary {
  background: var(--tint);
  padding: 24px;
}

.cart-summary dl {
  margin: 0 0 16px;
}

.cart-summary dl div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
}

.cart-summary dt,
.cart-summary dd {
  margin: 0;
}

.cart-total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px !important;
  font-weight: 700;
  font-size: 1.125rem;
}

.cart-hint {
  margin: 10px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.cart-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--brand) 10%, var(--paper));
  border-left: 3px solid var(--brand);
  font-size: 0.9375rem;
}

.cart-message {
  color: var(--muted);
}

.order-summary {
  margin-bottom: 32px;
  max-width: 60ch;
}

.order-summary h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.order-summary ul {
  padding-left: 20px;
}

.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;
}

/* Footer */
.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-inner {
  padding-block: 36px 48px;
}

.footer-inner p {
  margin: 0 0 6px;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--brand);
  margin-bottom: 10px !important;
}

/* No store for this domain */
.no-store {
  max-width: 560px;
  margin: 15vh auto;
  padding: 0 24px;
  font-family: system-ui, sans-serif;
}

/* Grid / Gallery switch on category and collection pages */
.view-toggle {
  display: flex;
  gap: 8px;
  margin: -12px 0 24px;
}

.view-toggle button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 600 0.875rem var(--font-body);
  cursor: pointer;
}

.view-toggle button:hover {
  border-color: var(--ink);
}

.view-toggle button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.view-toggle button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Gallery: full screen width, bigger photos (3 across on wide screens, 2 on medium,
   1 on phones), title only, no prices or colour dots */
html[data-shop-view="gallery"] .listing {
  max-width: none;
}

html[data-shop-view="gallery"] .listing .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 24px;
}

html[data-shop-view="gallery"] .listing .card-price,
html[data-shop-view="gallery"] .listing .card-swatches {
  display: none;
}

html[data-shop-view="gallery"] .listing .card-title {
  font-size: 1.125rem;
  margin-top: 12px;
}

@media (max-width: 1100px) {
  html[data-shop-view="gallery"] .listing .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 16px;
  }
}

/* Smaller screens */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 16px;
  }

  .pdp,
  .cart {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  /* Gallery on phones: one big photo per row */
  html[data-shop-view="gallery"] .listing .grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-block: 14px;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 2px;
  }

  .cart-link {
    margin-left: auto;
  }

  .hero {
    grid-template-columns: 18px 1fr 18px;
    min-height: 0;
  }

  .hero-centre {
    padding-block: 56px;
  }

  .hero-flag {
    grid-template-columns: 40px 1fr 40px;
  }

  .hero-flag .hero-centre {
    padding: 32px 12px 40px;
  }

  .cart-line {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px 16px;
  }

  .cart-thumb {
    width: 72px;
  }

  .cart-line-total {
    grid-column: 2 / -1;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Collection pages: long-form text under the grid */
.story {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
  max-width: 72ch;
}

.story-section + .story-section {
  margin-top: 40px;
}

.story h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  margin: 0 0 14px;
}

.story p {
  margin: 0 0 14px;
  line-height: 1.7;
}

.story a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.story-faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.story-faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style-position: outside;
}

.story-faq details p {
  margin: 10px 0 0;
}
