/* =========================================================================
   Henroo — page styles (.b-* homepage/shop, .cat-* category, .pdp-a-* PDP)
   ------------------------------------------------------------------------- */

/* ---- Direction B HOMEPAGE / SHOP ---------------------------------------- */

/* The Henroo template wrapper runs edge-to-edge so photo-portal grids
   and product rows can breathe on wide monitors — header and footer
   sit outside this wrapper and are unaffected. The PDP keeps its own
   1280px constraint via .pdp-a-wrap, so it's unaffected. The matching
   horizontal-padding clamp is at the bottom of this file so it wins
   the cascade against the per-section shorthand `padding` declarations
   below (same specificity → declaration order decides). */
.hr-page { width: 100%; margin: 0 auto; background: var(--paper); font-family: var(--font-sans); color: var(--ink); overflow: hidden; }

.b-hero { padding: 64px 56px 24px; text-align: center; position: relative; }
.b-hero--shop { padding: 48px 56px 16px; }
.b-hero h1 { font-family: var(--font-display); font-weight: 700; font-size: 120px; line-height: 0.92; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.b-hero h1 .b-em-wrap { white-space: nowrap; }
.b-hero h1 .b-em { color: var(--clay-400); position: relative; display: inline-block; }
.b-hero h1 .b-em svg { position: absolute; left: -6px; right: -6px; bottom: -8px; width: calc(100% + 12px); height: 14px; }
.b-hero p { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--ink-soft); margin: 18px auto 0; max-width: 720px; line-height: 1.5; }
.b-hero-arrow { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--clay-500); margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; transform: rotate(-2deg); text-decoration: none; transition: color 180ms var(--ease-soft), transform 180ms var(--ease-soft); }
.b-hero-arrow:hover, .b-hero-arrow:focus-visible { color: var(--clay-600, var(--ink)); transform: rotate(-2deg) translateY(2px); }

/* Banner-portal grid */
.b-portals { padding: 32px 56px; }
.b-portals-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 280px;
  gap: 16px;
}
.b-portal { position: relative; border-radius: 22px; overflow: hidden; cursor: pointer; box-shadow: 0 10px 28px rgba(60,40,20,0.14); display: block; }
.b-portal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-soft); }
.b-portal:hover img { transform: scale(1.04); }
.b-portal-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; background: linear-gradient(180deg, transparent 40%, rgba(26,23,20,0.65) 100%); }
.b-portal-content .eyebrow {
  font-family: var(--font-sans); font-weight: 700; font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--paper-warm);
}
.b-portal-content h3 { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--paper); line-height: 1; margin: 4px 0 0; }
.b-portal-content .b-portal-link { color: var(--paper); font-family: var(--font-serif); font-style: italic; font-size: 14px; margin-top: 8px; opacity: 0.9; }
.b-portal.is-feature { grid-row: span 2; }
.b-portal.is-feature h3 { font-size: 64px; }
.b-portal.is-coming { background: var(--clay-300); }
.b-portal.is-coming .b-portal-content { background: transparent; align-items: center; justify-content: center; text-align: center; }
.b-portal.is-coming .eyebrow { color: var(--paper-warm); }
.b-portal.is-coming h3 { color: var(--paper); }

/* Category page cross-sell — up to 8 sibling categories.
   Mirrors the homepage portal aesthetic but in a uniform grid. */
/* Compound selector beats `.b-pieces` shorthand (`padding: 64px 56px 32px`)
   on specificity so the symmetric top/bottom padding actually applies. */
.b-pieces.cat-cross { background: var(--paper-warm); padding-top: 64px; padding-bottom: 64px; }
.cat-cross-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cat-cross-tile {
  /* .b-portal already covers framing/hover/typography — we just supply
     the per-tile sizing the b-portals-grid normally provides via rows. */
  aspect-ratio: 4 / 3;
}
.cat-cross-tile h3 { font-size: 32px; }
/* Coming-soon tiles that DO have an uploaded category image keep the
   photo behind a readable scrim instead of the flat clay backdrop. */
.cat-cross-tile.is-coming:has(img) { background: transparent; }
.cat-cross-tile.is-coming:has(img) .b-portal-content {
  background: linear-gradient(180deg, rgba(26,23,20,0.25) 0%, rgba(26,23,20,0.65) 100%);
}

/* Sticky drop strip */
.b-drop-bar {
  background: var(--ink); color: var(--paper);
  padding: 22px 56px;
  display: flex; align-items: center; justify-content: center; gap: 48px;
  margin: 24px 0 0;
}
.b-drop-meta { display: flex; align-items: center; gap: 18px; }
.b-drop-emoji {
  width: 56px; height: 56px;
  background: var(--clay-300); color: var(--paper);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.b-drop-text h4 { font-family: var(--font-display); font-weight: 700; font-size: 32px; color: var(--paper); line-height: 1; margin: 0; }
.b-drop-text p { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--paper-warm); margin: 4px 0 0; }
.b-countdown { display: flex; gap: 10px; }
.b-count-box { background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 12px; min-width: 64px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* line-height 0.78 trims Caveat's natural line-box headroom so the digit
   sits visually centered above the label rather than floating high. The
   -2px translate compensates for Caveat numerals' rightward optical lean,
   which leaves them looking shoved against the right edge of the box. */
.b-count-num { font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 0.78; transform: translateX(-2px); }
.b-count-label { font-family: var(--font-sans); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }

/* Featured pieces row B */
.b-pieces { padding: 64px 56px 32px; }
.b-pieces-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.b-pieces-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1; margin: 0; color: var(--ink); }
.b-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.b-card { position: relative; cursor: pointer; transition: transform 180ms var(--ease-soft); display: block; color: inherit; }
.b-card:hover, .b-card:focus-visible { transform: translateY(-3px) rotate(-0.5deg); color: inherit; }
.b-card-photo { aspect-ratio: 1; border-radius: 22px; position: relative; overflow: hidden; }
.b-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.b-card-fall { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 110px; }
.b-c1 { background: linear-gradient(135deg, var(--blush-50), var(--blush-200)); }
.b-c2 { background: linear-gradient(135deg, #efe5d2, var(--clay-200)); }
.b-c3 { background: linear-gradient(135deg, #e1ecf1, var(--glaze-blue)); }
.b-c4 { background: linear-gradient(135deg, #e6efe1, var(--glaze-sage)); }
.b-card-meta { padding: 12px 4px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.b-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1; margin: 0; color: var(--ink); }
.b-card .price { font-family: var(--font-serif); font-weight: 600; font-size: 18px; font-variant-numeric: oldstyle-nums; color: var(--ink); }
.b-card-sold { position: absolute; top: 12px; left: 12px; background: var(--ink-muted); color: var(--paper); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; z-index: 2; }
.b-card.is-sold .b-card-photo img { opacity: 0.55; }

/* Pieces slider — wraps the .b-card track for the homepage tabs.
   Base layout is a horizontal scroll-snap track with arrow buttons;
   the @media blocks further down collapse it to a 2-col grid on
   narrow viewports and hide the arrows. */
.b-slider { position: relative; }
.b-slider[hidden] { display: none; }
.b-slider-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  /* No `scroll-snap-type` and no `scroll-behavior: smooth` here — Chrome
     drops programmatic `scrollBy({ behavior: 'smooth' })` calls when
     either is set. JS positions the track at exact card boundaries via
     scrollBy(step * 4), so we don't need native snap. */
  scrollbar-width: none;
  padding-bottom: 6px;
}
.b-slider-track::-webkit-scrollbar { display: none; }
.b-slider-track > .b-card {
  flex: 0 0 calc((100% - 60px) / 4);
}
.b-slider-arrow {
  position: absolute; top: calc(50% - 40px);
  transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--border-2);
  color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(60,40,20,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
  transition: background 180ms var(--ease-soft), color 180ms var(--ease-soft), opacity 180ms;
}
.b-slider-arrow:hover { background: var(--ink); color: var(--paper); }
.b-slider-arrow--prev { left: -16px; }
.b-slider-arrow--next { right: -16px; }

/* Maker block B */
.b-maker { padding: 96px 56px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; background: var(--paper); max-width: 1100px; margin: 0 auto; }
.b-maker-photo { aspect-ratio: 1; width: 100%; max-width: 380px; margin: 0 auto; border-radius: 999px; background: linear-gradient(135deg, var(--clay-100), var(--clay-300)); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 28px rgba(60,40,20,0.18); position: relative; overflow: hidden; }
.b-maker-photo .b-fall { font-size: 160px; }
.b-maker-photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.b-maker-copy h2 { font-family: var(--font-display); font-weight: 700; font-size: 84px; line-height: 0.95; margin: 0; color: var(--ink); }
.b-maker-copy h2 small { font-family: var(--font-display); font-size: 36px; color: var(--clay-400); display: block; }
.b-maker-copy p { font-family: var(--font-serif); font-size: 20px; color: var(--ink-soft); line-height: 1.55; margin-top: 18px; max-width: 540px; }
.b-maker-stats { display: flex; gap: 36px; margin-top: 28px; }
.b-stat .b-stat-num { font-family: var(--font-display); font-weight: 700; font-size: 48px; color: var(--ink); line-height: 1; }
.b-stat .b-stat-label { font-family: var(--font-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay-500); margin-top: 4px; }

/* Instagram strip */
.b-ig { padding: 64px 56px 96px; background: var(--paper-warm); }
.b-ig-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
/* Fluid sizing — h2 was 64px hardcoded which overflowed @henroo_pottery on
   ~360px viewports. clamp() down to 32px on mobile, full 64 from ~711px+. */
.b-ig-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 9vw, 64px); line-height: 1; display: inline-flex; align-items: center; gap: 14px; margin: 0; color: var(--ink); }
.b-ig-head h2::before { content: '@'; color: var(--clay-400); font-family: var(--font-brand); font-size: clamp(44px, 12vw, 88px); line-height: 0.7; }
.b-ig-head .a-handle { font-family: var(--font-serif); font-style: italic; font-size: 14px; color: var(--ink-soft); }
.b-ig-head .a-handle a { color: var(--clay-500); font-weight: 600; font-style: normal; }
.b-ig-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.b-ig-tile { aspect-ratio: 1; border-radius: 14px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 4px 14px rgba(60,40,20,0.10); display: block; }
.b-ig-tile img { width: 100%; height: 100%; object-fit: cover; }
.b-ig-fall { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.b-ig-tile .b-corner { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 6px; background: rgba(255,255,255,0.9); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--ink); }

/* When a real Instagram feed is rendered, the source plugin/block injects
   its own grid; normalise it to match our 6-col 14px-radius look. */
.b-ig-strip--live { display: block; }

/* Jetpack — wp:jetpack/instagram-gallery (the live-site source) */
.b-ig-strip--live .wp-block-jetpack-instagram-gallery,
.b-ig-strip--live .wp-block-jetpack-instagram-gallery > div {
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.b-ig-strip--live .wp-block-jetpack-instagram-gallery a,
.b-ig-strip--live .wp-block-jetpack-instagram-gallery img,
.b-ig-strip--live .wp-block-jetpack-instagram-gallery figure {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 4px 14px rgba(60,40,20,0.10);
  width: 100%;
  height: 100%;
}
.b-ig-strip--live .wp-block-jetpack-instagram-gallery img {
  object-fit: cover;
  margin: 0;
}

/* Smash Balloon Social Photo Feed (alternative plugin support) */
.b-ig-strip--live #sb_instagram { padding: 0; background: transparent; }
.b-ig-strip--live #sb_instagram .sbi_header_text,
.b-ig-strip--live #sb_instagram .sbi_follow_btn,
.b-ig-strip--live #sb_instagram #sbi_load { display: none; }
.b-ig-strip--live #sb_instagram #sbi_images { padding: 0 !important; gap: 10px !important; }
.b-ig-strip--live #sb_instagram .sbi_item,
.b-ig-strip--live #sb_instagram .sbi_photo_wrap,
.b-ig-strip--live #sb_instagram .sbi_photo {
  border-radius: 14px !important;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 4px 14px rgba(60,40,20,0.10);
}

/* Spotlight (alternative plugin support) */
.b-ig-strip--live .sli-grid { gap: 10px !important; }
.b-ig-strip--live .sli-grid .sli-tile { border-radius: 14px !important; overflow: hidden; }

/* Mobile collapse for live feeds */
@media (max-width: 720px) {
  .b-ig-strip--live .wp-block-jetpack-instagram-gallery,
  .b-ig-strip--live .wp-block-jetpack-instagram-gallery > div {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 480px) {
  .b-ig-strip--live .wp-block-jetpack-instagram-gallery,
  .b-ig-strip--live .wp-block-jetpack-instagram-gallery > div {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Newsletter B */
.b-news { padding: 64px 56px 96px; text-align: center; background: var(--ink); color: var(--paper); }
.b-news h2 { font-family: var(--font-display); font-weight: 700; font-size: 64px; color: var(--paper); margin: 0; }
.b-news p { font-family: var(--font-serif); font-style: italic; color: var(--paper-warm); font-size: 18px; max-width: 540px; margin: 12px auto 24px; line-height: 1.55; }
.b-news-form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.b-news-form input,
.b-news .b-news-form input[type="email"] {
  flex: 1; font: inherit; font-size: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--clay-500) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--paper) !important;
  outline: none;
  min-width: 0;
}
.b-news-form input::placeholder,
.b-news .b-news-form input[type="email"]::placeholder { color: var(--paper-deep); }
.b-news-form input:focus,
.b-news .b-news-form input[type="email"]:focus {
  border-color: var(--clay-300) !important;
  box-shadow: 0 0 0 3px rgba(196, 137, 90, 0.25) !important;
}
.b-news-form button { font-family: var(--font-sans); font-weight: 700; padding: 14px 26px; border-radius: 999px; background: var(--clay-300); color: var(--paper); border: 0; cursor: pointer; transition: background 180ms; }
.b-news-form button:hover { background: var(--clay-400); }

/* Jetpack contact-form variant of the newsletter form. The block is
   rendered via do_blocks() in the homepage template so submissions land
   in Feedback (matching the live site). Override Jetpack's default
   Nunito + light-grey button styling so the form fits the dark ink
   section that wraps it. */
.b-news .contact-form { max-width: 520px; margin: 0 auto; text-align: left; }
/* Don't override Jetpack's `display: flex; flex-wrap: wrap` on the inner
   container — its child wraps already carry `flex-basis: 100%` so each
   field stacks onto its own row. Just add gap and a width-safety net so
   they actually fill the row instead of shrinking to input intrinsic size. */
.b-news .contact-form > div.wp-block-jetpack-contact-form { gap: 14px; }
.b-news .contact-form .grunion-field-wrap,
.b-news .contact-form .wp-block-jetpack-input-wrap { margin: 0; width: 100%; }
.b-news .contact-form label,
.b-news .contact-form .wp-block-jetpack-label {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-warm);
  display: block;
  margin: 0 0 6px;
}
.b-news .contact-form label .required { display: none; }
/* Disable the animated-label overlay positioning — labels sit above
   the input as a plain stacked layout instead. */
.b-news .contact-form .is-style-animated .animated-label__label,
.b-news .contact-form .is-style-animated .wp-block-jetpack-label {
  position: static !important;
  transform: none !important;
  background: transparent !important;
  padding: 0 !important;
  pointer-events: auto;
  inset: auto;
}
.b-news .contact-form input[type="text"],
.b-news .contact-form input[type="email"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--clay-500) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--paper) !important;
  outline: none;
  box-sizing: border-box;
}
.b-news .contact-form input[type="text"]::placeholder,
.b-news .contact-form input[type="email"]::placeholder { color: var(--paper-deep); }
.b-news .contact-form input[type="text"]:focus,
.b-news .contact-form input[type="email"]:focus {
  border-color: var(--clay-300) !important;
  box-shadow: 0 0 0 3px rgba(196, 137, 90, 0.25) !important;
}
.b-news .contact-form .grunion-field-consent-wrap,
.b-news .contact-form .wp-block-jetpack-field-consent {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--paper-deep);
  text-align: center;
  margin-top: 4px;
}
.b-news .contact-form .grunion-field-consent-wrap label,
.b-news .contact-form .wp-block-jetpack-field-consent label {
  font-family: inherit;
  font-size: inherit;
  text-transform: none;
  letter-spacing: 0;
  color: inherit;
  margin: 0;
}
/* Button wrap inherits Jetpack's `align-self: flex-end` and shrinks to
   button width (~150px), so text-align alone can't center it. Force it
   to span the row, then text-align centres the inline-flex button inside. */
.b-news .contact-form .wp-block-jetpack-button { flex: 1 1 100%; width: 100%; text-align: center; margin-top: 4px; }
.b-news .contact-form button[type="submit"],
.b-news .contact-form .wp-block-jetpack-button button {
  font-family: var(--font-sans);
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--clay-300) !important;
  color: var(--paper) !important;
  border: 0 !important;
  cursor: pointer;
  transition: background 180ms;
  font-size: 16px;
  letter-spacing: 0.02em;
  /* Sit at content width so text-align:center on the wrap centres it
     instead of stretching the pill across the full 520px form. */
  width: auto;
  flex: 0 0 auto;
}
.b-news .contact-form button[type="submit"]:hover,
.b-news .contact-form .wp-block-jetpack-button button:hover { background: var(--clay-400) !important; }

/* Thank-you message replaces the form inline after a successful submit. */
.b-news .contact-form-submission {
  max-width: 540px; margin: 0 auto; font-family: var(--font-serif); color: var(--paper-warm); font-size: 16px; line-height: 1.55;
}
.b-news .contact-form-submission h3,
.b-news .contact-form-submission h4 {
  font-family: var(--font-display); font-weight: 700; font-size: 36px; color: var(--paper); margin: 0 0 12px;
}

/* ---- CATEGORY page ------------------------------------------------------ */

.cat-hero { position: relative; height: 380px; overflow: hidden; }
.cat-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat-hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,23,20,0.15) 0%, rgba(26,23,20,0.65) 100%); }
.cat-hero-content { position: absolute; left: 56px; right: 56px; bottom: 36px; color: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.cat-hero-content .hp-breadcrumb { color: var(--paper-warm); margin: 0; }
.cat-hero-content .hp-breadcrumb a { color: var(--paper-warm); }
.cat-hero-content .hp-breadcrumb a:hover { color: var(--paper); }
.cat-hero-content .hp-breadcrumb span { color: var(--paper-deep); }
.cat-hero-content h1 { font-family: var(--font-display); font-weight: 700; font-size: 96px; line-height: 0.95; color: var(--paper); letter-spacing: -0.01em; margin: 0; }
.cat-hero-content p { font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--paper-warm); max-width: 600px; line-height: 1.5; margin: 0; }
.cat-hero-meta { display: flex; gap: 14px; align-items: center; font-family: var(--font-sans); font-size: 14px; color: var(--paper-warm); margin-top: 6px; flex-wrap: wrap; }
.cat-hero-meta b { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--paper); margin-right: 4px; }
.cat-divider { color: var(--paper-deep); }

/* Toolbar */
.cat-toolbar { background: var(--paper); border-bottom: 1px solid var(--border-1); position: sticky; top: var(--site-header-h); z-index: 10; }
.cat-toolbar-inner { padding: 16px 56px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cat-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill {
  font-family: var(--font-sans); font-weight: 700; font-size: 13px;
  line-height: 1;
  padding: 0 18px;
  min-height: 40px;
  border-radius: 999px;
  background: var(--paper-warm); color: var(--ink);
  border: 1.5px solid var(--paper-warm);
  cursor: pointer;
  transition: all 180ms var(--ease-soft);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.cat-pill:hover { background: var(--paper-deep); border-color: var(--paper-deep); color: var(--ink); }
.cat-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.cat-tools { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cat-count {
  font-family: var(--font-serif); font-style: italic; font-size: 14px;
  color: var(--ink-muted);
  line-height: 40px;       /* share visual baseline with the 40px pills + select */
}
.cat-sort {
  font: inherit; font-family: var(--font-sans); font-size: 14px;
  line-height: 1;
  padding: 0 38px 0 16px;
  min-height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--border-2);
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231a1714' stroke-width='2' stroke-linecap='round'><path d='M6 9l6 6 6-6'/></svg>") right 14px center / 14px no-repeat;
  appearance: none; cursor: pointer;
  color: var(--ink);
}

/* Product grid */
.cat-grid-wrap { padding: 32px 56px 64px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; }
.cat-card { display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform 180ms var(--ease-soft); position: relative; }
.cat-card:hover, .cat-card:focus-within { transform: translateY(-3px) rotate(-0.5deg); }
.cat-card.is-sold:hover { transform: none; }
/* Dim the photo + meta only on sold cards — keeping the SOLD badge at
   full opacity so it stays the strongest signal. */
.cat-card.is-sold .cat-card-photo,
.cat-card.is-sold .cat-card-meta { opacity: 0.55; }
.cat-card.is-sold .cat-card-sold,
.cat-card.is-sold .cat-card-badge { opacity: 1 !important; }
.cat-card-photo { aspect-ratio: 1; border-radius: 18px; position: relative; overflow: hidden; box-shadow: 0 4px 14px rgba(60,40,20,0.10); display: flex; align-items: center; justify-content: center; background: var(--paper-warm); }
.cat-card-photo > a { display: block; width: 100%; height: 100%; }
.cat-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-emoji { font-size: 110px; }
.cat-card-badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--paper); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; z-index: 2; }
.cat-card-badge.is-low { background: var(--heart-red); }
.cat-card-sold { position: absolute; top: 12px; left: 12px; background: var(--ink-muted); color: var(--paper); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; z-index: 2; }
.cat-card-price { position: absolute; top: 12px; right: 12px; background: var(--paper); color: var(--ink); font-family: var(--font-serif); font-weight: 700; font-size: 16px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(60,40,20,0.12); font-variant-numeric: oldstyle-nums; z-index: 2; }
.cat-card-fav { position: absolute; bottom: 12px; right: 12px; width: 44px; height: 44px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--ink); border: 1.5px solid rgba(26,23,20,0.08); cursor: pointer; font-size: 20px; display: inline-flex; align-items: center; justify-content: center; transition: color 180ms, background 180ms, border-color 180ms; z-index: 2; padding: 0; }
.cat-card-fav:hover { background: var(--paper); color: var(--heart-red); border-color: var(--heart-red); }
.cat-card-fav.is-active { color: var(--heart-red); }
.cat-card-meta { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; align-items: flex-start; }
.cat-card-meta h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; line-height: 1; color: var(--ink); margin: 0; }
.cat-card-meta h3 a { color: inherit; }
.cat-card-cta { font-family: var(--font-sans); font-weight: 700; font-size: 13px; padding: 10px 14px; border-radius: 10px; background: var(--paper-warm); color: var(--ink); border: 1.5px solid var(--ink); cursor: pointer; transition: all 180ms var(--ease-soft); align-self: flex-start; text-decoration: none; display: inline-block; }
.cat-card-cta:hover { background: var(--ink); color: var(--paper); }
.cat-card-cta.is-added { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cat-card-cta.is-disabled { background: transparent; border-color: var(--border-2); color: var(--ink-muted); cursor: not-allowed; }

/* Pagination */
.cat-pager { display: flex; gap: 10px; justify-content: center; align-items: center; margin-top: 48px; }
.cat-pager-btn, .cat-pager .page-numbers { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-warm); border: 1.5px solid var(--border-2); font-family: var(--font-serif); font-weight: 600; font-size: 16px; cursor: pointer; transition: all 180ms; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cat-pager-btn:hover, .cat-pager .page-numbers:hover { background: var(--paper-deep); color: var(--ink); }
.cat-pager-btn.is-active, .cat-pager .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---- PDP Direction A ---------------------------------------------------- */

.pdp-a { background: var(--paper); }
.pdp-a-wrap { padding: 32px 56px 64px; max-width: 1280px; margin: 0 auto; }
.pdp-a-crumb { margin-bottom: 24px; }

.pdp-a-grid {
  display: grid;
  /* minmax(0, …) so a grid item with wide min-content (the product image's
     intrinsic size, or an unbreakable word in the title) can't blow the
     column out past the container width. Without this, on narrow viewports
     the gallery + buy columns each rendered at 376px inside a 320px grid. */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: flex-start;
}

.pdp-a-gallery { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--site-header-h) + 16px); }
.pdp-a-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-warm);
  box-shadow: var(--shadow-3);
}
.pdp-a-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 180ms; }
.pdp-a-no-photo {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--paper-warm), var(--paper-deep));
  color: var(--ink-muted);
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  letter-spacing: -0.01em;
}
.pdp-a-fav {
  position: absolute; bottom: 16px; right: 16px;
  width: 48px; height: 48px; border-radius: 999px;
  background: rgba(255,255,255,0.95); color: var(--ink);
  border: 0; cursor: pointer; font-size: 22px;
  box-shadow: var(--shadow-2);
  transition: all 180ms;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.pdp-a-fav:hover { color: var(--heart-red); transform: scale(1.08); }
.pdp-a-fav.is-active { color: var(--heart-red); }
.pdp-a-thumbs-wrap { position: relative; }
.pdp-a-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pdp-a-thumb {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  border: 2.5px solid transparent; padding: 0; background: var(--paper-warm);
  cursor: pointer; transition: all 180ms;
}
.pdp-a-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 180ms; }
.pdp-a-thumb:hover img { opacity: 0.9; }
.pdp-a-thumb.is-active { border-color: var(--ink); }
.pdp-a-thumb.is-active img { opacity: 1; }

/* Slider mode — kicks in when a product has >4 photos. Switches the strip
   from a static 4-up grid to a horizontal scroll track that keeps each
   thumb at the same 1/4-column size, so 4 are visible at a time and the
   rest are reachable via the arrow buttons (or trackpad/touch swipe).
   Mirrors the homepage `b-slider` JS pattern: rAF-based smooth scroll,
   no `scroll-snap-type` and no `scroll-behavior: smooth` on the track,
   because Chrome silently no-ops programmatic scrolls when either is set
   (see `feedback_smooth_scroll_snap_chrome_bug`). */
.pdp-a-thumbs-wrap.is-slider .pdp-a-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-padding-inline: 4px;
  padding-bottom: 2px; /* keeps focus rings visible without clipping */
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.pdp-a-thumbs-wrap.is-slider .pdp-a-thumbs::-webkit-scrollbar { display: none; }
.pdp-a-thumbs-wrap.is-slider .pdp-a-thumbs.is-grabbing { cursor: grabbing; }
.pdp-a-thumbs-wrap.is-slider .pdp-a-thumb {
  flex: 0 0 calc((100% - 30px) / 4); /* 4 visible, 3 gaps of 10px */
  cursor: grab; /* override the thumb's own cursor:pointer */
}
.pdp-a-thumbs-wrap.is-slider .pdp-a-thumbs.is-grabbing .pdp-a-thumb { cursor: grabbing; }
.pdp-a-thumbs-wrap.is-slider .pdp-a-thumb img { -webkit-user-drag: none; }
.pdp-a-thumbs-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 999px;
  background: var(--paper); border: 1.5px solid var(--border-2);
  color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 12px rgba(60,40,20,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2; padding: 0;
  opacity: 1; transition: background 180ms var(--ease-soft), color 180ms var(--ease-soft), opacity 180ms;
}
.pdp-a-thumbs-arrow:hover { background: var(--ink); color: var(--paper); }
.pdp-a-thumbs-arrow:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pdp-a-thumbs-arrow[hidden] { display: none; }
.pdp-a-thumbs-arrow--prev { left: -10px; }
.pdp-a-thumbs-arrow--next { right: -10px; }

.pdp-a-buy { padding-top: 8px; }
.pdp-a-eyebrow { margin-bottom: 12px; }
.pdp-a-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 96px; line-height: 0.9; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 16px;
}
.pdp-a-priceline { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.pdp-a-price {
  font-family: var(--font-serif); font-weight: 600;
  font-size: 36px; color: var(--ink);
  font-variant-numeric: oldstyle-nums;
}
.pdp-a-stock {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 14px;
  font-variant-numeric: oldstyle-nums;
  color: var(--glaze-sage-deep);
  background: rgba(155, 176, 148, 0.18);
  padding: 6px 12px; border-radius: 999px;
}
.pdp-a-stock.is-sold {
  color: var(--heart-red);
  background: rgba(194, 59, 44, 0.12);
}
.pdp-a-stock.is-sold .pdp-a-dot { background: var(--heart-red); }
.pdp-a-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glaze-sage-deep); display: inline-block; }

.pdp-a-blurb { font-family: var(--font-serif); font-size: 19px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 28px; text-wrap: pretty; }

.pdp-a-buy-row { display: flex; gap: 12px; align-items: stretch; margin-bottom: 14px; }
.pdp-a-qty { display: inline-flex; align-items: center; background: var(--paper-warm); border: 1.5px solid var(--border-2); border-radius: 12px; overflow: hidden; }
.pdp-a-qty button { width: 44px; height: 56px; border: 0; background: transparent; font-size: 22px; color: var(--ink); cursor: pointer; font-family: var(--font-serif); font-weight: 600; padding: 0; }
.pdp-a-qty button:hover { background: var(--paper-deep); }
.pdp-a-qty span, .pdp-a-qty .pdp-a-qty-val { min-width: 36px; text-align: center; font-family: var(--font-serif); font-weight: 600; font-size: 18px; }
.pdp-a-qty input { width: 44px; height: 56px; border: 0; background: transparent; text-align: center; font-family: var(--font-serif); font-weight: 600; font-size: 18px; color: var(--ink); -moz-appearance: textfield; outline: none; padding: 0; }
.pdp-a-qty input::-webkit-outer-spin-button, .pdp-a-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pdp-a-cta {
  flex: 1;
  font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  color: var(--paper); background: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  padding: 0 24px; cursor: pointer;
  transition: all 180ms var(--ease-soft);
  letter-spacing: 0.02em;
  min-height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.pdp-a-cta:hover { background: var(--clay-500); border-color: var(--clay-500); transform: translateY(-1px); box-shadow: var(--shadow-2); color: var(--paper); }
.pdp-a-cta.is-added { background: var(--glaze-sage-deep); border-color: var(--glaze-sage-deep); }
.pdp-a-cta.is-disabled { background: transparent; border-color: var(--border-2); color: var(--ink-muted); cursor: not-allowed; }
.pdp-a-cta.is-disabled:hover { background: transparent; transform: none; box-shadow: none; color: var(--ink-muted); border-color: var(--border-2); }

/* --- "Already in your basket" state ---------------------------------- *
 * Replaces the buy form for one-of-a-kind items the customer has
 * already added. Visual language matches the rest of the PDP: paper-warm
 * card, thin border, handwritten clay accent, with a small ribbon strip
 * down the left edge to mark it as a reserved/tagged piece. */
.pdp-a-reserved { margin: 0 0 14px; }
.pdp-a-reserved-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px 26px 22px 38px;
  background: var(--paper-warm);
  border: 1px solid var(--border-1);
  border-radius: 14px;
  overflow: hidden;
}
/* Vertical clay ribbon down the left edge. Gives the card a tactile
   "tagged" feel — like a piece of paper bound with a ribbon — without
   leaning into kitsch. Two stitched seams (dashed lines) softly echo
   real shop tickets. */
.pdp-a-reserved-strip {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 14px;
  background: var(--clay-500);
  background-image: linear-gradient(180deg, var(--clay-500), var(--clay-400));
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.08);
}
.pdp-a-reserved-strip::before,
.pdp-a-reserved-strip::after {
  content: '';
  position: absolute;
  top: 8px; bottom: 8px;
  width: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.45);
}
.pdp-a-reserved-strip::before { left: 4px; }
.pdp-a-reserved-strip::after  { left: 9px; }

.pdp-a-reserved-eyebrow {
  font-family: var(--font-sans); font-weight: 700;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.pdp-a-reserved-eyebrow > span:first-child { color: var(--heart-red); font-size: 13px; }
.pdp-a-reserved-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 38px; line-height: 1; color: var(--clay-500);
  letter-spacing: -0.005em;
  margin: 2px 0 0;
}
.pdp-a-reserved-meta {
  font-family: var(--font-serif); font-style: italic;
  font-size: 16px; line-height: 1.3; color: var(--ink-soft);
  margin: 4px 0 0;
  display: block;
}
.pdp-a-reserved-meta > span { display: block; }
.pdp-a-reserved-link {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; line-height: 1; color: var(--clay-500);
  text-decoration: none;
  transform: rotate(-1.5deg); transform-origin: left center;
  transition: color 180ms var(--ease-soft);
  align-self: flex-start;
}
.pdp-a-reserved-arrow { display: inline-block; }
.pdp-a-reserved-link:hover { color: var(--ink); }
.pdp-a-reserved-link:focus-visible {
  outline: 2px solid var(--clay-500); outline-offset: 4px; border-radius: 2px;
}

@keyframes pdp-a-reserved-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pdp-a-reserved-card { animation: pdp-a-reserved-in 360ms var(--ease-soft) both; }
@media (prefers-reduced-motion: reduce) {
  .pdp-a-reserved-card { animation: none; }
}

/* Wraps WooCommerce PayPal Payments output (Pay Later messaging at priority 30,
   Smart Button at priority 31). The plugin's gateway.css owns the inner look —
   we just provide spacing and cap the button width to the buy-form column so
   the Express Checkout button doesn't visually outweigh the primary CTA. */
.pdp-a-paypal { margin: 0 0 28px; }
.pdp-a-paypal .ppcp-messages { margin: 0; }
.pdp-a-paypal .ppc-button-wrapper { margin-top: 12px; max-width: 360px; }

.pdp-a-promises { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; background: var(--paper-warm); border-radius: 14px; border: 1px solid var(--border-1); }
.pdp-a-promises > div {
  font-family: var(--font-sans); font-size: 14px; color: var(--ink-soft);
  /* Two-column grid: icon on the left, label+body flowing as a single
     phrase on the right (a flex row with `gap` was forcing 10px between
     the bold label and the body text — breaking the phrase apart). */
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 12px;
  line-height: 1.5;
}
.pdp-a-promises > div b { font-weight: 700; color: var(--ink); }
.pdp-a-promise-ico {
  color: var(--clay-400); font-size: 16px;
  line-height: 1.5;       /* match the body line-height so the icon sits on the cap-height baseline */
}

/* Trust strip wrapper — at narrow widths it does nothing (the
   .pdp-a-promises panel keeps its own chrome and the dimensions
   panel is hidden); past 600px it becomes a single 50/50 panel
   with the existing promises on the left and the WC dimensions on
   the right. */
.pdp-a-trust-specs { display: none; }

@media (min-width: 600px) {
  .pdp-a-trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--paper-warm);
    border: 1px solid var(--border-1);
    border-radius: 14px;
    overflow: hidden;
  }
  .pdp-a-trust > .pdp-a-promises {
    background: transparent;
    border: 0;
    border-right: 1px solid var(--border-1);
    border-radius: 0;
  }
  .pdp-a-trust-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 18px;
    row-gap: 14px;
    padding: 20px 22px;
    align-content: start;
  }
  .pdp-a-trust-spec {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 10px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--ink-soft);
    line-height: 1.4;
  }
  .pdp-a-trust-spec-ico {
    color: var(--clay-400);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
  }
  .pdp-a-trust-spec-ico svg { display: block; width: 20px; height: 20px; }
  .pdp-a-trust-spec-text { display: flex; flex-direction: column; }
  .pdp-a-trust-spec-text b { font-weight: 700; color: var(--ink); font-size: 13px; line-height: 1.3; }
}

/* Past 1200px the trust panel has more vertical room, so the
   promise lines can break their bold lead onto its own row with the
   body text underneath — easier to scan than a long single line. */
@media (min-width: 1200px) {
  .pdp-a-trust > .pdp-a-promises > div b { display: block; }
}

/* Tabs */
.pdp-a-tabs { padding-top: 32px; }
.pdp-a-tab-row { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--border-1); }
.pdp-a-tab { font-family: var(--font-sans); font-weight: 600; font-size: 15px; padding: 14px 18px; background: transparent; color: var(--ink-muted); border: 0; border-bottom: 2px solid transparent; cursor: pointer; transition: color 180ms var(--ease-soft), border-color 180ms var(--ease-soft); margin-bottom: -1.5px; }
.pdp-a-tab:hover { color: var(--ink); }
.pdp-a-tab.is-active { color: var(--ink); border-bottom-width: 2.5px; border-bottom-color: var(--ink); }

.pdp-a-tab-body { padding: 8px 0 16px; max-width: 760px; }
.pdp-a-tab-panel { display: none; }
.pdp-a-tab-panel.is-active { display: block; }
.pdp-a-desc p { font-family: var(--font-sans); font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 16px; }
.pdp-a-desc .lead { font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--ink); line-height: 1.5; margin: 0 0 20px; }

.pdp-a-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 24px; border-top: 1px solid var(--border-1); }
/* Border BETWEEN rows via border-top, not border-bottom, so the bottom of
   the grid is naturally borderless regardless of row count. The dl
   already supplies the top edge — first-row items skip the duplicate. */
.pdp-a-specs > div { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--border-1); }
.pdp-a-specs > div:first-child { border-top: 0; }
@media (min-width: 721px) {
  .pdp-a-specs > div:nth-child(2) { border-top: 0; }
}
.pdp-a-specs dt { font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay-500); min-width: 110px; }
.pdp-a-specs dd { font-family: var(--font-serif); font-size: 16px; color: var(--ink); margin: 0; }

.pdp-a-steps { padding-left: 20px; }
.pdp-a-steps li { font-family: var(--font-sans); font-size: 16px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 8px; }
.pdp-a-steps li b { color: var(--ink); }

.pdp-a-rev { padding: 16px 0; border-bottom: 1px solid var(--border-1); }
.pdp-a-rev-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; font-family: var(--font-sans); font-size: 14px; }
.pdp-a-rev-head b { font-family: var(--font-serif); font-size: 17px; }
.pdp-a-rev-head span { color: var(--sunshine-deep); letter-spacing: 0.08em; }
.pdp-a-rev p { font-family: var(--font-serif); font-style: italic; font-size: 17px; color: var(--ink-soft); margin: 0; }

/* Related */
.pdp-a-related { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--border-1); }
.pdp-a-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 24px; }
.pdp-a-rel { cursor: pointer; transition: transform 180ms var(--ease-soft); display: flex; flex-direction: column; gap: 12px; color: inherit; text-decoration: none; }
.pdp-a-rel:hover { transform: translateY(-3px) rotate(-0.5deg); color: inherit; }
.pdp-a-rel.is-sold:hover { transform: none; }
.pdp-a-rel.is-sold .pdp-a-rel-photo,
.pdp-a-rel.is-sold .pdp-a-rel-meta { opacity: 0.55; }
.pdp-a-rel.is-sold .pdp-a-rel-sold { opacity: 1 !important; }
.pdp-a-rel-photo { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-2); background: var(--paper-warm); }
.pdp-a-rel-photo img { width: 100%; height: 100%; object-fit: cover; }
.pdp-a-rel-price { position: absolute; top: 12px; right: 12px; background: var(--paper); color: var(--ink); font-family: var(--font-serif); font-weight: 700; font-size: 16px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(60,40,20,0.12); font-variant-numeric: oldstyle-nums; }
.pdp-a-rel-sold { position: absolute; top: 12px; left: 12px; background: var(--ink-muted); color: var(--paper); font-family: var(--font-sans); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pdp-a-rel-meta { display: flex; flex-direction: column; gap: 2px; padding: 0 4px; align-items: flex-start; }
.pdp-a-rel-meta h3 { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--ink); line-height: 1; margin: 0; }
.pdp-a-rel-view { font-family: var(--font-sans); font-weight: 600; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-muted); text-transform: lowercase; white-space: nowrap; transition: color 180ms var(--ease-soft), transform 180ms var(--ease-soft); }
.pdp-a-rel-view > span { display: inline-block; transition: transform 180ms var(--ease-soft); }
.pdp-a-rel:hover .pdp-a-rel-view { color: var(--ink); }
.pdp-a-rel:hover .pdp-a-rel-view > span { transform: translateX(3px); }

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

/* Below 1024 — collapse 4-up grids */
@media (max-width: 1024px) {
  .b-grid, .cat-grid, .pdp-a-related-grid { grid-template-columns: repeat(3, 1fr); }
  .b-slider-track > .b-card { flex-basis: calc((100% - 40px) / 3); }
  .b-ig-strip { grid-template-columns: repeat(4, 1fr); }
  .b-hero h1 { font-size: 88px; }
  .b-hero { padding: 56px 32px 16px; }
  .b-portals, .b-pieces, .b-news, .b-drop-bar, .b-maker, .b-ig { padding-left: 32px; padding-right: 32px; }
  .cat-toolbar-inner, .cat-grid-wrap, .cat-hero-content { padding-left: 32px; padding-right: 32px; }
  .cat-hero-content { left: 32px; right: 32px; }
  .pdp-a-wrap { padding: 24px 32px 48px; }
  .pdp-a-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pdp-a-gallery { position: static; top: auto; }   /* drop sticky on mobile */
  .pdp-a-title { font-size: 80px; }
}

/* Below 860 — PDP single column, banner 2-col */
@media (max-width: 860px) {
  .b-portals-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 240px 240px 240px;
  }
  .b-portal.is-feature { grid-row: span 1; grid-column: span 2; }
  .b-portal.is-feature h3 { font-size: 48px; }
  .b-pieces-head { gap: 14px; }
  .b-pieces-head h2 { font-size: 48px; }
  .b-drop-bar { flex-wrap: wrap; gap: 16px; }
  .b-maker { grid-template-columns: 1fr; gap: 32px; padding: 64px 32px; }
  .b-maker-photo { max-width: 320px; margin: 0 auto; }
  .b-maker-copy h2 { font-size: 64px; }
  .b-news h2, .b-pieces-head h2 { font-size: 48px; }
  .cat-hero-content h1 { font-size: 64px; }
  .cat-hero { height: 320px; }
  .cat-toolbar-inner { gap: 14px; row-gap: 12px; }
  /* .cat-toolbar { top: var(--site-header-h) } — already inherits from base rule via the responsive token */
  .pdp-a-title { font-size: 72px; }
}

/* Below 720 — 2-up grids and stacked tabs */
@media (max-width: 720px) {
  .b-grid, .cat-grid, .pdp-a-related-grid, .cat-cross-grid { grid-template-columns: repeat(2, 1fr); }
  /* Slider collapses to a 2-col grid (matches the category archive listing). */
  .b-slider-track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    overflow: visible;
  }
  .b-slider-track > .b-card { flex: initial; }
  /* In the 2-col grid the meta row's space-between layout squeezes long
     names into a narrow strip beside the price. Stack instead so the name
     gets the full column width and the price sits centered beneath it. */
  .b-slider-track .b-card-meta { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
  .b-slider-arrow { display: none; }
  .b-ig-strip { grid-template-columns: repeat(3, 1fr); }
  .b-hero h1 { font-size: 64px; }
  .b-pieces-head { flex-direction: column; align-items: flex-start; }
  /* "Or browse another category." is much longer than the homepage "Pieces"
     heading; scale it down on narrow screens so it stays on a single line. */
  .cat-cross .b-pieces-head h2 { font-size: clamp(22px, 9vw, 40px); white-space: nowrap; }
  /* Tabs scroll horizontally on narrow screens — hide the scrollbar
     itself; the row already has the underline border to ground it. */
  .pdp-a-tab-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .pdp-a-tab-row::-webkit-scrollbar { display: none; }
  .pdp-a-tab { white-space: nowrap; }
  .pdp-a-specs { grid-template-columns: 1fr; }
  .b-news h2 { font-size: 48px; }
  .b-news-form { flex-direction: column; }
}

/* Below 480 — 1-up grids */
@media (max-width: 480px) {
  .b-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .b-ig-strip { grid-template-columns: repeat(2, 1fr); }
  .b-hero { padding: 16px 20px 16px; }
  .b-hero h1 { font-size: 52px; }
  .b-hero p { font-size: 18px; }
  .b-portals, .b-pieces, .b-news, .b-drop-bar, .b-maker, .b-ig { padding-left: 20px; padding-right: 20px; }
  .b-portals-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 200px); }
  .b-portal.is-feature { grid-column: span 1; }
  .b-portal.is-feature h3 { font-size: 40px; }
  .cat-toolbar-inner, .cat-grid-wrap { padding-left: 20px; padding-right: 20px; }
  .cat-hero-content { left: 20px; right: 20px; bottom: 24px; }
  .cat-hero-content h1 { font-size: 48px; }
  .pdp-a-wrap { padding: 20px 20px 40px; }
  .pdp-a-title { font-size: 56px; }
  .pdp-a-price { font-size: 28px; }
  /* Stack qty + CTA so the "Add to basket - £xx.xx" label has the full row
     to itself instead of getting truncated to ellipsis next to the qty
     stepper. Qty above, CTA below at full width. */
  .pdp-a-buy-row { flex-direction: column; align-items: stretch; }
  .pdp-a-qty { align-self: flex-start; }
  .pdp-a-cta { width: 100%; }
  .b-news-form { flex-direction: column; }
  /* Card overlays scale down on phones — the photo is only ~148px wide on
     a 360px viewport and the desktop-sized pills/heart eat half of it. */
  .cat-card-badge,
  .cat-card-sold { top: 8px; left: 8px; font-size: 9px; padding: 3px 7px; letter-spacing: 0.08em; }
  .cat-card-price,
  .pdp-a-rel-price { top: 8px; right: 8px; font-size: 12px; padding: 3px 8px; }
  .cat-card-fav { bottom: 6px; right: 6px; width: 32px; height: 32px; font-size: 16px; }
  /* Storefront/WC's `.button` rule applies a 15px / 12px-22px style with
     `!important`, which wraps "Add to basket" onto two lines on a 148px-wide
     card. Override with matching specificity. */
  .cat-card .cat-card-cta.button {
    font-size: 12px !important;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    border-width: 1.5px !important;
  }
}

/* Section gutters scale with viewport. Placed AFTER all per-section
   `padding` shorthand declarations and the responsive @media blocks,
   so this single rule is the source of truth for horizontal padding
   across home / shop / category. PDP is unaffected (its content lives
   inside .pdp-a-wrap, which has its own constraint). */
.b-hero,
.b-portals,
.b-pieces,
.b-news,
.b-drop-bar,
.b-maker,
.b-ig,
.cat-toolbar-inner,
.cat-grid-wrap {
  padding-left: clamp(20px, 4vw, 96px);
  padding-right: clamp(20px, 4vw, 96px);
}

/* Below 380 — drop-bar tightens so the 32px h4 doesn't force "Next drop ·
   {longname}" onto two ragged lines and the count boxes don't get pinched
   against the viewport edges on small phones (e.g. 360px). */
@media (max-width: 380px) {
  .b-drop-bar { padding-top: 20px; padding-bottom: 20px; padding-left: 16px; padding-right: 16px; gap: 16px; }
  .b-drop-meta { gap: 12px; }
  .b-drop-emoji { width: 48px; height: 48px; border-radius: 12px; font-size: 26px; }
  .b-drop-text h4 { font-size: 26px; text-wrap: balance; }
  .b-drop-text p { font-size: 14px; }
  .b-countdown { gap: 10px; justify-content: center; flex: 1 1 100%; }
  .b-count-box { flex: 0 1 84px; min-width: 0; padding: 14px 6px; border-radius: 14px; }
  .b-count-num { font-size: 32px; }
  .b-count-label { font-size: 11px; letter-spacing: 0.1em; }
  /* Category hero on small phones: the breadcrumb gets clipped by the
     hero's overflow:hidden when it can't fit on one line, and the meta
     row's pieces / price / drop trio splits onto three lines with the
     `·` dividers stranded mid-row. Wrap the breadcrumb, drop the now-
     meaningless dividers, and shrink the bold numerals so meta has a
     chance of fitting on 1–2 lines. */
  .cat-hero-content .hp-breadcrumb { flex-wrap: wrap; row-gap: 4px; }
  .cat-hero-meta { gap: 6px 12px; }
  .cat-hero-meta .cat-divider { display: none; }
  .cat-hero-meta b { font-size: 18px; }
  /* Cross-sell tiles: at this width the default 2-up 4:3 grid leaves
     each tile ~140px wide and only ~105px tall, which clips the eyebrow
     under the wrapped 32px h3 (e.g. "Trinket Dishes" hides its piece
     count). Keep 2-up but make tiles square so the extra height fits
     the count, name and link, and shrink the h3 + padding so a 2-word
     name doesn't wrap to 3 lines in the narrower column. */
  .cat-cross-tile { aspect-ratio: 1 / 1; }
  .cat-cross-tile h3 { font-size: 22px; }
  .cat-cross-tile .b-portal-content { padding: 14px; }
  .cat-cross-tile .b-portal-link { font-size: 12px; margin-top: 4px; }
}
