/* ============================================================
   Logobrella Redesign — Shared Stylesheet
   Multi-page static prototype, intended for backend templating.
   Design system: tokens → primitives → components → pages.
   ============================================================ */

/* -------- Tokens -------- */
:root {
  /* Brand */
  --brand: #cf1d26;
  --brand-dark: #a8141c;
  --brand-tint: #fdecee;

  /* Neutrals */
  --ink: #0f1722;
  --body: #2c3744;
  --muted: #6b7785;
  --line: #e3e7ec;
  --line-strong: #cbd2da;
  --soft: #f7f8fa;
  --softer: #fbfcfd;
  --paper: #ffffff;

  /* Accents */
  --teal: #0e7c84;
  --teal-tint: #e7f3f4;
  --success: #2f7a4a;
  --warning: #b86a00;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;

  /* Shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 34, 0.06), 0 1px 1px rgba(15, 23, 34, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 34, 0.08), 0 2px 4px rgba(15, 23, 34, 0.05);
  --shadow-lg: 0 18px 40px rgba(15, 23, 34, 0.10), 0 4px 12px rgba(15, 23, 34, 0.06);

  /* Layout */
  --container: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --section-y: clamp(56px, 8vw, 96px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Reserve room for the 76px sticky header when jumping to anchors.
     Without this, #bases (and other in-page targets) scroll their top edge
     directly under the header instead of just below it. */
  scroll-padding-top: 100px;
}

/* Per-section override so the divider/transition between Umbrellas and
   Bases sits visibly below the sticky header instead of bumping flush. */
section[id] { scroll-margin-top: 100px; }

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

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* -------- Typography helpers -------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
}

.eyebrow.muted { color: var(--muted); }

.h-display { font-size: clamp(2.25rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.025em; }
.h-1 { font-size: clamp(1.875rem, 3.6vw, 2.5rem); }
.h-2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.h-3 { font-size: 1.25rem; }
.lead { font-size: 1.0625rem; color: var(--body); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 0.85em; letter-spacing: 0.02em; }

/* -------- Layout primitives -------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 6vw, 64px); }
.section--soft { background: var(--soft); }

.grid { display: grid; gap: 24px; }

.skip-link {
  position: absolute; left: 8px; top: 8px;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  border-radius: var(--r-md); font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: var(--paper);
}
.btn--primary:hover { background: var(--brand-dark); }

.btn--ink {
  background: var(--ink);
  color: var(--paper);
}
.btn--ink:hover { background: #1d2738; }

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--link {
  background: transparent;
  height: auto; padding: 0;
  color: var(--brand);
  font-weight: 600;
}
.btn--link:hover { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 4px; }

.btn--sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 1rem; }

/* Keep button content centered even when MDB injects .waves-effect /
   .waves-light at runtime (which can otherwise reset display via the
   Bootstrap .btn inline-block rule). inline-flex — not flex — preserves
   the auto width of standalone buttons so existing layouts are unaffected. */
.btn.waves-effect,
.btn.waves-light,
.btn--ink.btn--sm,
.btn--primary.btn--lg {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* -------- Tags / Chips / Badges -------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.chip--teal { background: var(--teal-tint); border-color: rgba(14, 124, 132, 0.2); color: var(--teal); }
.chip--brand { background: var(--brand-tint); border-color: rgba(207, 29, 38, 0.18); color: var(--brand-dark); }
.chip--ink { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge--brand { background: var(--brand); }
.badge--teal { background: var(--teal); }

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 76px;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.brand-logo { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo img { width: 132px; height: auto; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
}
.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 76px;
  padding: 0 2px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.primary-nav a:hover { color: var(--brand); }
.primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brand);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn--ghost { height: 40px; padding: 0 14px; font-size: 0.875rem; }
.header-actions .btn--primary { height: 40px; padding: 0 16px; font-size: 0.875rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-md);
  cursor: pointer;
}
.nav-toggle svg { margin: 0 auto; }

@media (max-width: 960px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .primary-nav { display: none; }
  .header-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 76px 0 0 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  z-index: 40;
  padding: 20px var(--gutter);
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobile-nav .btn { width: 100%; margin-top: 16px; }

/* -------- Hero -------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--softer) 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}
.hero__copy h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero__copy h1 .accent { color: var(--brand); }
.hero__copy p {
  font-size: 1.0625rem;
  color: var(--body);
  max-width: 52ch;
  margin-bottom: 28px;
}
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.hero__meta strong { color: var(--ink); font-weight: 700; }
.hero__art {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--soft);
  box-shadow: var(--shadow-lg);
}
.hero__art img { width: 100%; height: 100%; object-fit: cover; }
.hero__art .float-badge {
  position: absolute;
  bottom: 18px; left: 18px;
  background: var(--paper);
  padding: 12px 14px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 0.8125rem; font-weight: 600;
  color: var(--ink);
}
.hero__art .float-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { order: -1; aspect-ratio: 16 / 10; }
}

/* -------- Section heading -------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 36px;
}
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin-top: 8px; max-width: 60ch; }
.section-head a.btn--link { white-space: nowrap; }
@media (max-width: 640px) {
  .section-head { grid-template-columns: 1fr; }
}

/* -------- Value props grid -------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.value-card {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.value-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.value-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.value-card h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.value-card p { color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 820px) { .value-grid { grid-template-columns: 1fr; } }

/* -------- Series strip (home) -------- */
.series-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.series-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink);
}
.series-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.4s ease, opacity 0.3s ease;
}
.series-card:hover img { transform: scale(1.04); opacity: 0.7; }
.series-card__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 24px;
  color: var(--paper);
  background: linear-gradient(180deg, transparent, rgba(15,23,34,0.85));
}
.series-card__body h3 { color: var(--paper); font-size: 1.25rem; }
.series-card__body p { font-size: 0.875rem; color: rgba(255,255,255,0.82); margin-top: 6px; }
.series-card__body .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-pill);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 12px;
}
@media (max-width: 820px) { .series-strip { grid-template-columns: 1fr; } }

/* -------- Trust / Associations -------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 6vw, 80px);
  padding: 36px 0 12px;
}
.trust-row img {
  height: 68px; width: auto;
}

/* -------- Collection layout -------- */
.collection {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.filter-rail {
  position: sticky;
  top: 96px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.filter-rail h3 { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.filter-rail__group { padding-block: 14px; border-top: 1px solid var(--line); }
.filter-rail__group:first-of-type { border-top: 0; padding-top: 0; }
.filter-rail label {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
  font-size: 0.9375rem;
  color: var(--body);
  cursor: pointer;
}
.filter-rail label:hover { color: var(--ink); }
.filter-rail input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--brand);
}
.filter-rail__count { margin-left: auto; color: var(--muted); font-size: 0.8125rem; }
.filter-rail__clear {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.collection-main { min-width: 0; }

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.collection-toolbar__count { font-size: 0.9375rem; color: var(--muted); }
.collection-toolbar__count strong { color: var(--ink); font-weight: 700; }
.collection-toolbar select {
  height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7785' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") no-repeat right 10px center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  appearance: none;
}

.tab-row {
  display: inline-flex;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 4px;
}
.tab-row a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}
.tab-row a[aria-current="page"] {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

@media (max-width: 900px) {
  .collection { grid-template-columns: 1fr; }
  .filter-rail { position: static; }
}

/* -------- Product card -------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card a { display: block; height: 100%; }

.product-card__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--soft);
  overflow: hidden;
}
.product-card__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: opacity 0.2s ease;
}
/* Alt sits permanently behind base at full opacity. On hover the base
   fades out, revealing the alt cleanly underneath — no cross-fade ghost. */
.product-card__media img.alt {
  opacity: 1;
  z-index: 1;
}
.product-card__media img.base {
  z-index: 2;
}
/* Only fade out the base photo on hover if there's an alt image to
   reveal underneath. Bases (CR13, CFMT*) have no alt, so they keep
   their photo on hover. Scoping via :has() — base img sibling check. */
.product-card__media:has(img.alt):hover img.base,
.product-card:hover .product-card__media:has(img.alt) img.base { opacity: 0; }

.product-card__badges {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  display: flex; gap: 6px; flex-wrap: wrap;
}

.product-card__hover-hint {
  position: absolute;
  bottom: 12px; right: 12px;
  z-index: 3;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  background: rgba(15, 23, 34, 0.85);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.product-card:hover .product-card__hover-hint { opacity: 1; transform: translateY(0); }

.product-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-card__series {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-card__title {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.product-card__sku { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.product-card__meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.product-card__footer {
  display: flex; align-items: end; justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.product-card__price { display: flex; flex-direction: column; }
.product-card__price-label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.product-card__price-value { font-size: 1.125rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.product-card__price-suffix { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }

/* -------- PDP -------- */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 960px) { .pdp { grid-template-columns: 1fr; } }

.pdp-gallery {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 96px;
  align-self: start;
}
@media (max-width: 960px) {
  .pdp-gallery { position: static; top: auto; }
}
.pdp-gallery__main {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: var(--soft);
  overflow: hidden;
  border: 1px solid var(--line);
}
.pdp-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.pdp-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.pdp-gallery__thumbs button {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--soft);
  border: 1.5px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}
.pdp-gallery__thumbs button.is-active { border-color: var(--ink); }
.pdp-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--line-strong); }

.pdp-head { margin-bottom: 18px; }
.pdp-head h1 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  letter-spacing: -0.015em;
  margin-top: 4px;
}
.pdp-head__sku {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 10px;
}
.pdp-summary { margin-top: 14px; color: var(--body); max-width: 56ch; }

.spec-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spec-card__row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 12px 18px;
  font-size: 0.9375rem;
  border-top: 1px solid var(--line);
}
.spec-card__row:first-child { border-top: 0; }
.spec-card__label { color: var(--muted); font-weight: 600; }
.spec-card__value { color: var(--ink); font-weight: 500; }
@media (max-width: 540px) {
  .spec-card__row { grid-template-columns: 1fr; gap: 2px; }
}

.swatch-section { margin-top: 28px; }
.swatch-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.swatch-section__brand {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
}
.swatch {
  display: flex; flex-direction: column; gap: 6px;
  text-align: center;
  cursor: pointer;
}
.swatch__chip {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background-size: cover; background-position: center;
  transition: transform 0.12s ease, border-color 0.12s ease;
  cursor: zoom-in;
}
.swatch:hover .swatch__chip, .swatch.is-active .swatch__chip {
  border-color: var(--ink);
  transform: scale(1.04);
}
.swatch__name { font-size: 0.6875rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.swatch__pms { font-size: 0.625rem; color: var(--muted); font-family: var(--font-mono); }

/* -------- Price tables -------- */
.price-block {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.price-block + .price-block { margin-top: 16px; }

.price-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.price-block__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}
.price-table th, .price-table td {
  padding: 12px 18px;
  font-size: 0.9375rem;
  text-align: left;
  border-top: 1px solid var(--line);
}
.price-table thead th {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--softer);
  border-top: 0;
}
.price-table tbody td { color: var(--ink); font-weight: 600; }
.price-table tbody td.quote { color: var(--brand); }
.price-table tbody tr:hover { background: var(--softer); }

.price-note {
  display: flex; gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--soft);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  color: var(--muted);
}
.price-note strong { color: var(--ink); }

/* -------- Pricing tiers (collection card hover) -------- */
.tier-bar {
  display: flex;
  background: var(--soft);
  border-radius: var(--r-pill);
  padding: 2px;
  font-size: 0.75rem;
  font-weight: 600;
}
.tier-bar span {
  flex: 1;
  padding: 4px 8px;
  text-align: center;
  border-radius: var(--r-pill);
  color: var(--muted);
}
.tier-bar span.is-start { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

/* -------- CTA strip -------- */
.cta-strip {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.cta-strip h2 { color: var(--paper); font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.cta-strip p { color: rgba(255,255,255,0.75); margin-top: 8px; max-width: 60ch; }
.cta-strip .btn--primary { background: var(--paper); color: var(--ink); }
.cta-strip .btn--primary:hover { background: rgba(255,255,255,0.88); }
@media (max-width: 720px) { .cta-strip { grid-template-columns: 1fr; } }

/* -------- Discover / fabric chart -------- */
.fabric-section { padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.fabric-section:first-of-type { border-top: 0; }
.fabric-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 28px;
}
.fabric-head__copy h2 { font-size: 1.875rem; letter-spacing: -0.015em; }
.fabric-head__copy p { color: var(--muted); margin-top: 10px; max-width: 56ch; }
.fabric-head__meta { display: grid; gap: 10px; }
.fabric-head__meta .spec-card__row { padding: 10px 14px; grid-template-columns: 140px 1fr; }
.fabric-head__meta .spec-card { margin-top: 0; }
@media (max-width: 760px) { .fabric-head { grid-template-columns: 1fr; } }

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 14px;
}
.color-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.color-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.color-card__swatch {
  aspect-ratio: 4 / 3;
  background-size: cover; background-position: center;
  cursor: zoom-in;
}
.color-card__body { padding: 10px 12px; }
.color-card__name { font-size: 0.875rem; font-weight: 650; color: var(--ink); }
.color-card__meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); }

/* -------- About -------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (max-width: 800px) { .about-grid { grid-template-columns: 1fr; } }
.about-grid img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 32px;
}
.stat { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.stat__value { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.stat__label { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; font-weight: 600; }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* -------- Contact / form -------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { display: grid; gap: 18px; }
.contact-info__card { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.contact-info__card h3 { font-size: 0.9375rem; }
.contact-info__card p { color: var(--muted); font-size: 0.9375rem; margin-top: 6px; }
.contact-info__card a { color: var(--ink); font-weight: 600; }

.form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--brand); }
.field input, .field textarea, .field select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 0.9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { height: auto; padding: 12px; min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 23, 34, 0.08);
}
.field__hint { font-size: 0.75rem; color: var(--muted); }

.file-drop {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  background: var(--softer);
  color: var(--muted);
  font-size: 0.875rem;
}
.file-drop strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* -------- Templates page -------- */
.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.template-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.template-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.template-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--brand-tint);
  color: var(--brand);
  display: grid; place-items: center;
}
.template-card__title { font-size: 1rem; font-weight: 650; color: var(--ink); }
.template-card__meta { font-size: 0.8125rem; color: var(--muted); }
.template-card__actions { display: flex; gap: 8px; margin-top: auto; }

/* -------- Footer -------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: clamp(48px, 6vw, 80px) 0 28px;
  margin-top: 80px;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.site-footer h4 {
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-top: 12px; max-width: 36ch; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,0.78); font-size: 0.9375rem; }
.site-footer a:hover { color: var(--paper); }
.site-footer__brand img { width: 152px; }
.site-footer__legal {
  max-width: var(--container);
  margin: 48px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}
.footer-associations {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.footer-associations img {
  height: 22px;
  width: auto;
  opacity: 0.5;
  filter: brightness(0) invert(1);
  transition: opacity 0.15s ease;
}
.footer-associations img:hover { opacity: 0.9; }

@media (max-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__legal { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* -------- Misc utilities -------- */
.divider { height: 1px; background: var(--line); margin-block: clamp(40px, 5vw, 64px); }
.text-center { text-align: center; }
.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;
}

.canada-flag {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 0.8125rem;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.canada-flag .flag {
  width: 22px; height: 14px;
  background: linear-gradient(to right, #ff0000 30%, #fff 30%, #fff 70%, #ff0000 70%);
  position: relative;
  border-radius: 2px;
}
.canada-flag .flag::after {
  content: "🍁"; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 9px;
}

/* -------- Detail page actions row -------- */
.pdp-actions {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pdp-actions .btn { width: 100%; }
@media (max-width: 460px) { .pdp-actions { grid-template-columns: 1fr; } }

/* -------- Animations -------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.45s ease both; }

/* -------- Swatch Lightbox -------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 34, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 5vw, 64px);
  animation: lightboxIn 0.18s ease;
}
.lightbox.is-open { display: flex; }
.lightbox__panel {
  position: relative;
  max-width: 720px;
  width: 100%;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: lightboxPanelIn 0.22s ease both;
}
.lightbox__image {
  width: 100%;
  aspect-ratio: 1;
  background: var(--soft);
  background-size: cover;
  background-position: center;
}
.lightbox__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}
.lightbox__title { font-size: 1.0625rem; font-weight: 700; color: var(--ink); }
.lightbox__meta { display: flex; gap: 10px; margin-top: 4px; font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.lightbox__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.lightbox__close:hover { background: var(--paper); }
.lightbox__hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}
@keyframes lightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes lightboxPanelIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* -------- PDP design studio gate visual -------- */
.ds-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 820px) { .ds-gate { grid-template-columns: 1fr; } }

.ds-preview {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--softer), var(--soft));
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
}
.ds-preview svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 34, 0.12));
}
.ds-preview__caption {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.ds-preview__caption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.ds-preview__hint {
  position: absolute;
  bottom: 16px; right: 16px;
  padding: 6px 12px;
  background: rgba(15,23,34,0.85);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============================================================
   PDP Configurator (unified PDP-as-configurator layout)
   ============================================================ */

.pdp-config {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
@media (max-width: 960px) { .pdp-config { grid-template-columns: 1fr; } }

/* Left column — sticky live preview. Sits directly under the 76px site
   header (with a small breathing gap) and locks the moment the user
   scrolls, since the section's top padding is intentionally tight. */
.pdp-preview {
  /* Sticky offset matches the section's padding-top + header height
     EXACTLY so the preview's resting position equals its locked position.
     Zero scroll lag — the moment the user scrolls, sticky activates
     because there's no positional delta to traverse.
     76px (site header) + 24px (section padding-top) = 100px. */
  position: sticky;
  top: 100px;
  display: grid;
  gap: 14px;
  align-self: start;
}
@media (max-width: 960px) { .pdp-preview { position: static; top: auto; } }

.pdp-preview__canvas {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--softer), var(--soft));
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
}
.pdp-preview__canvas svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 34, 0.12));
}
.pdp-preview__caption {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.pdp-preview__caption .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.pdp-preview__meta {
  position: absolute;
  bottom: 16px; right: 16px;
  padding: 6px 12px;
  background: rgba(15,23,34,0.85);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.pdp-preview__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.pdp-preview__thumb {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--soft);
  border: 1.5px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}
.pdp-preview__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

/* Right column — configurator */
.config { display: grid; gap: 22px; }

.config__group {
  display: grid;
  gap: 8px;
}

.config__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.config__label strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.config__label .config__value {
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 600;
}

.config__tabs {
  display: inline-flex;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px;
  gap: 4px;
}
.config__tabs button {
  padding: 8px 16px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.config__tabs button.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.config__colors {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
}
.config__swatch {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--line);
  cursor: pointer;
  transition: transform 0.1s, border-color 0.1s;
}
.config__swatch:hover { transform: scale(1.06); }
.config__swatch.is-selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 23, 34, 0.08);
}

.config__logo-drop {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 24px;
  text-align: center;
  background: var(--softer);
  color: var(--muted);
  font-size: 0.875rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.config__logo-drop:hover, .config__logo-drop.is-dragover {
  border-color: var(--ink);
  background: var(--soft);
}
.config__logo-drop strong { color: var(--ink); display: block; margin-bottom: 4px; }
.config__logo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--softer);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.config__logo-preview img {
  width: 48px; height: 48px;
  object-fit: contain;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.config__logo-preview .filename { flex: 1; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.config__logo-preview button {
  height: 32px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.config__logo-preview button:hover { border-color: var(--ink); }

.config__qty {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 160px;
}
.config__qty button {
  width: 40px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.config__qty button:first-child { border-radius: var(--r-md) 0 0 var(--r-md); border-right: 0; }
.config__qty button:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; border-left: 0; }
.config__qty input {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
}

.config__price {
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  gap: 10px;
}
.config__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.config__price-row span:first-child {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}
.config__price-row strong {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.config__price-row--total strong {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}
.config__price-tier {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.config__actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.config__actions .btn { width: 100%; }
@media (max-width: 540px) {
  .config__actions { grid-template-columns: 1fr; }
}

.config__note {
  display: flex;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--muted);
  padding: 10px 12px;
  background: var(--softer);
  border-radius: var(--r-sm);
}
.config__note svg { flex-shrink: 0; margin-top: 2px; }

/* Highlight current price tier in the tier table */
.price-table tbody tr.is-current-tier,
.price-table tbody td.is-current-tier {
  background: var(--brand-tint);
  color: var(--brand-dark);
}
.price-table thead th.is-current-tier {
  background: var(--brand-tint);
  color: var(--brand-dark);
}

/* ============================================================
   Configurator additions — sliders, panel pills, logo cards,
   qty centering fix, caption/meta positioning fix.
   ============================================================ */

/* Hide native number-spinner arrows on the qty input.
   Without this, Chrome/Firefox/Edge add spinner buttons inside the
   input box on the right side, which visually pushes the digits
   left-of-center even with text-align:center. */
.config__qty input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
}
.config__qty input[type=number]::-webkit-inner-spin-button,
.config__qty input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Logo card — repeated per logo slot (up to 3 panel logos) */
.config__logo-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  background: var(--softer);
  display: grid;
  gap: 14px;
}
.config__logo-card + .config__logo-card { margin-top: 12px; }

.config__logo-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.config__logo-card__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.config__logo-card__remove {
  background: transparent;
  border: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  padding: 4px 8px;
}
.config__logo-card__remove:hover { color: var(--brand-dark); text-decoration: underline; }

.config__add-logo {
  margin-top: 12px;
  width: 100%;
  background: var(--paper);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 14px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.config__add-logo:hover { border-color: var(--ink); background: var(--softer); }
.config__add-logo:disabled { opacity: 0.4; cursor: not-allowed; }

/* Slider rows */
.config__slider-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 460px) { .config__slider-row { grid-template-columns: 1fr; } }
.config__slider-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.config__slider-label strong { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.config__slider {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
}

/* Panel selection pills */
.config__panel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.config__panel-pill {
  height: 30px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s;
}
.config__panel-pill:hover { border-color: var(--ink); color: var(--ink); }
.config__panel-pill.is-on {
  background: var(--brand-tint);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.config__panel-pill--all {
  border-style: dashed;
  color: var(--ink);
}

/* Production notes textarea + ESD */
.config__extras {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 14px;
}
@media (max-width: 560px) { .config__extras { grid-template-columns: 1fr; } }
.config__extras label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.config__extras input,
.config__extras textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--paper);
  font-size: 0.9375rem;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.config__extras input { height: 44px; }
.config__extras textarea { min-height: 80px; resize: vertical; }
.config__extras input:focus,
.config__extras textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(15, 23, 34, 0.08);
}

/* Valance logo block — hidden when no valance */
.config__valance-block {
  display: none;
  border-top: 1px dashed var(--line);
  padding-top: 18px;
}
.config__valance-block.is-on { display: grid; gap: 12px; }
.config__valance-block__head {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 8px;
}
.config__valance-block__head::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}

/* ============================================================
   Submit panel — unified "Submit your order" card with action
   hierarchy. Replaces the loose contact-card + 3-button grid.
   ============================================================ */
.config__submit {
  margin-top: 6px;
  padding: 22px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.config__submit__head {
  display: grid;
  gap: 4px;
}
.config__submit__head h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.config__submit__head p {
  font-size: 0.8125rem;
  color: var(--muted);
}
.config__submit .btn--primary {
  width: 100%;
  height: 52px;
  font-size: 1rem;
  margin-top: 4px;
}
.config__submit__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: -4px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.config__submit__secondary button {
  background: transparent;
  border: 0;
  padding: 6px 4px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-underline-offset: 4px;
}
.config__submit__secondary button:hover { color: var(--brand); text-decoration: underline; }
.config__submit__secondary .sep { color: var(--line-strong); }

/* Matrix pricing table — one table with three fabric rows */
.price-table--matrix th:first-child,
.price-table--matrix td:first-child {
  text-align: left;
  white-space: nowrap;
  font-weight: 600;
}
.price-table--matrix th:first-child { color: var(--muted); }
.price-table--matrix td:first-child { color: var(--ink); }
.price-table--matrix td:first-child .muted { font-size: 0.75rem; }

/* Advanced controls — hidden by default, toggled via [data-show-advanced] */
.config__advanced { display: none; }
.config__advanced.is-on { display: grid; gap: 14px; }

.config__row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.config__toggle-link {
  background: transparent;
  border: 0;
  padding: 8px 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-underline-offset: 4px;
}
.config__toggle-link:hover { color: var(--brand); text-decoration: underline; }
.config__toggle-link .arrow { display: inline-block; transition: transform 0.15s; }
.config__toggle-link.is-on .arrow { transform: rotate(180deg); }

/* Collapsible expander inside Submit panel */
.config__expander {
  display: grid;
  gap: 14px;
}
.config__expander__body {
  display: none;
  padding-top: 6px;
}
.config__expander.is-on .config__expander__body { display: grid; gap: 12px; }
.config__expander__trigger {
  background: transparent;
  border: 0;
  padding: 6px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.config__expander__trigger:hover { color: var(--brand); }
.config__expander__trigger .arrow { transition: transform 0.15s; }
.config__expander.is-on .config__expander__trigger .arrow { transform: rotate(180deg); }

/* Larger preview — tighter canvas padding so the umbrella renders bigger */
.pdp-preview__canvas {
  padding: clamp(12px, 2vw, 24px) !important;
}

/* Bump preview column ratio so the canvas itself is taller */
.pdp-config {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) !important;
}
@media (max-width: 960px) {
  .pdp-config { grid-template-columns: 1fr !important; }
}

/* Matrix table layout — fixes column overflow */
.price-table--matrix {
  table-layout: fixed;
  width: 100%;
}
.price-table--matrix th,
.price-table--matrix td {
  padding: 12px 10px;
  font-size: 0.875rem;
}
.price-table--matrix th:first-child,
.price-table--matrix td:first-child {
  width: 38%;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
}
.price-table--matrix th:not(:first-child),
.price-table--matrix td:not(:first-child) {
  text-align: center;
  width: 12.4%;
}

/* Tighter visual rhythm on Add-another-logo + Show-fine-tuning row */
.config__row-actions .config__add-logo {
  border-style: solid;
  border-color: var(--line);
  background: var(--paper);
  text-align: center;
}
.config__row-actions .config__toggle-link {
  color: var(--muted);
  padding: 0 6px;
}
.config__row-actions .config__toggle-link:hover { color: var(--ink); }

/* Per-card "Show fine-tuning" toggle — sits inside each logo card,
   below the panel pills, above the (hidden) sliders. */
.config__card-advanced-toggle {
  align-self: start;
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.config__card-advanced-toggle:hover { color: var(--ink); }
.config__card-advanced-toggle.is-on { color: var(--brand); }
.config__card-advanced-toggle .arrow {
  display: inline-block;
  transition: transform 0.15s;
}
.config__card-advanced-toggle.is-on .arrow { transform: rotate(180deg); }

/* Tighter canvas padding so the umbrella fills more of the preview */
.pdp-preview__canvas {
  padding: 6px !important;
}

/* (Previous flatten override removed — we now treat .price-block as a bordered card per Excel spec, which makes it its own CTA surface.) */

/* ============================================================
   Submit panel — polish the area below the Submit button.
   - Mute the expander trigger (was brand red, competed with Submit).
   - Add a thin divider between the expander row and the Email/Save row
     so secondary actions read as a distinct level.
   - Tighten vertical rhythm.
   ============================================================ */
.config__submit .config__expander__trigger {
  color: var(--muted);
  font-weight: 600;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 8px 0 4px;
  width: 100%;
  justify-content: flex-start;
}
.config__submit .config__expander__trigger:hover { color: var(--ink); }
.config__submit .config__expander.is-on .config__expander__trigger {
  border-bottom: 0;
  margin-bottom: 0;
}
.config__submit__secondary {
  padding-top: 4px;
}

/* Live Preview thumb — sits at the front of the thumb row, distinct
   from the photo thumbs. The icon + "Live" label makes the affordance
   explicit so users can return to design mode after clicking a photo. */
.pdp-preview__thumbs {
  grid-template-columns: repeat(5, 1fr) !important;
}
.pdp-preview__thumb--live {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
}
.pdp-preview__thumb--live[aria-pressed="true"] {
  color: var(--brand);
}
.pdp-preview__thumb--live svg {
  width: 22px;
  height: 22px;
}

/* Matrix pricing table — give the 600+ column extra room for the
   Quote CTA button. 26% fabric label + 12.5% × 4 price cols + 24%
   for the Quote button column. */
.price-table--matrix th:first-child,
.price-table--matrix td:first-child {
  width: 26% !important;
}
.price-table--matrix th:nth-child(2),
.price-table--matrix td:nth-child(2),
.price-table--matrix th:nth-child(3),
.price-table--matrix td:nth-child(3),
.price-table--matrix th:nth-child(4),
.price-table--matrix td:nth-child(4),
.price-table--matrix th:nth-child(5),
.price-table--matrix td:nth-child(5) {
  width: 12.5% !important;
}
.price-table--matrix th:last-child,
.price-table--matrix td:last-child {
  width: 24% !important;
}

/* (Edge-flush padding override removed — card has inner padding now.) */

/* ============================================================
   Logo placement radio — primary UI for choosing where each logo
   prints. Side-by-side cards; the active card has a brand-tinted
   border + bold title. Replaces the per-panel pill grid as the
   default affordance (pills now live behind Advanced).
   ============================================================ */
.config__placement {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}
.config__placement__opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.12s, background 0.12s;
}
.config__placement__opt:hover {
  border-color: var(--ink);
}
.config__placement__opt.is-on {
  border-color: var(--brand);
  background: var(--brand-tint, #fff6f3);
}
.config__placement__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.config__placement__opt.is-on .config__placement__title {
  color: var(--brand);
}
.config__placement__sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

/* ============================================================
   Volume pricing — restored as a bordered card. Per Excel spec the
   pricing matrix is its own CTA surface (each row's 600+ cell is
   "Request A Quote"), so it earns a distinct visual identity rather
   than trying to align flush with the configurator below.
   ============================================================ */
.price-block {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
}
.price-table--matrix th,
.price-table--matrix td {
  padding: 14px 16px;
}
.price-table--matrix thead th {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.price-table--matrix tbody tr + tr td {
  border-top: 1px solid var(--line);
}

/* 600+ cell — promote the "Request quote" link into a button so the
   conversion path is unmissable. Right-aligned, brand-tinted, with the
   row CTA pattern customers expect (per Excel: "Request A Quote: take
   user to Contact Us. Selected product pre-written in the message field"). */
.price-table--matrix td.quote {
  padding-right: 12px;
}
.price-quote-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--brand);
  color: var(--paper);
  border-radius: var(--r-md);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.12s, transform 0.06s;
}
.price-quote-cta:hover {
  background: var(--brand-dark, #b6371a);
}
.price-quote-cta:active { transform: translateY(1px); }

/* ============================================================
   Above-the-fold quote rail — sits inside .pdp-head. Surfaces the
   primary action ("Request a quote") before the user has to scroll
   through the configurator. The configurator below remains the
   detailed-spec-build path.
   ============================================================ */
.pdp-quote-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.pdp-quote-rail__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pdp-quote-rail__co

/* ============================================================
   Volume pricing — tier-card grid (replaces 3×5 matrix).
   Three fabric cards stacked; each has its own 5-tier ladder.
   When the buyer's qty falls in a tier, that row lights up
   across all three cards so cross-fabric compare stays a glance.
   ============================================================ */
.price-tiers {
  display: grid;
  gap: 12px;
}
.price-tier-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.price-tier-card.is-active-fabric {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.price-tier-card__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: var(--softer);
  border-bottom: 1px solid var(--line);
}
.price-tier-card__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transform: translateY(-1px);
}
.price-tier-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.price-tier-card__from {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.price-tier-card__ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.price-tier-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.12s;
}
.price-tier-row:last-child { border-right: 0; }
.price-tier-row .qty {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-tier-row .price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.price-tier-row.is-current-tier {
  background: #fff4ef;
}
.price-tier-row.is-current-tier .qty {
  color: var(--brand);
}
.price-tier-row.is-current-tier .price {
  color: var(--brand);
}
.price-tier-row--quote .price {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.price-tier-row--quote.is-current-tier .price {
  color: var(--brand);
}

/* Footer row below the cards: setup-charge note left, 600+ contact link right */
.price-tiers__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.price-tiers__quote-link {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.price-tiers__quote-link:hover { text-decoration: underline; }

/* Narrow viewports — ladder rows stack into 2-column instead of cramped 5 */
@media (max-width: 540px) {
  .price-tier-card__ladder {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-tier-row {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .price-tier-row:nth-child(2n) { border-right: 0; }
}

/* ============================================================
   Fabric picker — 3 tabs with inline tier ladder.
   Selecting a fabric reveals that fabric's price tiers inline,
   so the buyer never scrolls to compare price + spec.
   ============================================================ */
.config__tabs--3 {
  display: flex;
  flex-wrap: wrap;
}
.config__tabs--3 button {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
@media (max-width: 460px) {
  .config__tabs--3 {
    flex-wrap: wrap;
  }
  .config__tabs--3 button {
    flex: 1 1 calc(50% - 4px);
  }
}

.fabric-tiers {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}
.fabric-tiers__ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.fabric-tier-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--line);
  transition: background 0.12s;
}
.fabric-tier-row:last-child { border-right: 0; }
.fabric-tier-row .qty {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.fabric-tier-row .price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fabric-tier-row.is-current-tier {
  background: #fff4ef;
}
.fabric-tier-row.is-current-tier .qty,
.fabric-tier-row.is-current-tier .price {
  color: var(--brand);
}
.fabric-tier-row--quote .price {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}
.fabric-tier-row--quote.is-current-tier .price { color: var(--brand); }

.fabric-tiers__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--softer);
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
}
.fabric-tiers__footer .muted strong { color: var(--ink); }
.fabric-tiers__quote-link {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.fabric-tiers__quote-link:hover { text-decoration: underline; }

/* Narrow viewports: ladder reflows 5 → 2 cols */
@media (max-width: 540px) {
  .fabric-tiers__ladder { grid-template-columns: repeat(2, 1fr); }
  .fabric-tier-row { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .fabric-tier-row:nth-child(2n) { border-right: 0; }
}

/* ============================================================
   Discover page — refined.
   Real tabs (button), category-grouped comparison matrix, prose +
   metadata-grid quality cards, definition-list frame cards.
   ============================================================ */

[data-tab-panel].is-hidden { display: none; }

/* Tab buttons match the existing .tab-row anchor pills */
.tab-row button[data-tab-trigger] {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.12s, color 0.12s, box-shadow 0.12s;
}
.tab-row button[data-tab-trigger]:hover { color: var(--ink); }
.tab-row button[data-tab-trigger].is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.discover-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.discover-section__eyebrow::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--brand);
}
.discover-section__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 68ch;
  margin-top: 8px;
}


/* ============================================================
   Fabrics merged grid — 3-column CSS Grid card.
   Each spec row aligns horizontally across the 3 fabric columns
   (Apple-Compare pattern). Category group bars span full width.
   ============================================================ */
.fabrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  overflow: hidden;
}

/* Header row: tier eyebrow + large fabric name */
.fabrics-grid__col--head {
  padding: 22px 22px 18px;
  background: var(--softer);
  border-bottom: 1px solid var(--line);
}
.fabrics-grid__col--head + .fabrics-grid__col--head {
  border-left: 1px solid var(--line);
}
.fabrics-grid__tier {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.fabrics-grid__name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
}

/* Prose row */
.fabrics-grid__col--prose {
  padding: 18px 22px 22px;
  background: var(--softer);
  border-bottom: 1px solid var(--line);
}
.fabrics-grid__col--prose + .fabrics-grid__col--prose {
  border-left: 1px solid var(--line);
}
.fabrics-grid__col--prose p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Group bar — subtle light section divider.
   Per UX research (Apple Compare, NN/g), dividers should be subtle enough
   to support content without stealing focus. Light grey background + muted
   uppercase label + thin top border lets the actual spec content lead the
   visual hierarchy. */
.fabrics-grid__group {
  grid-column: 1 / -1;
  padding: 12px 22px 10px;
  background: var(--softer);
  color: var(--muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Spec cells — one per fabric per row. dt/dd inside. */
.fabrics-grid__cell {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 4px;
  align-content: start;
}
.fabrics-grid__cell + .fabrics-grid__cell {
  border-left: 1px solid var(--line);
}
.fabrics-grid__cell dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.fabrics-grid__cell dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}
/* Re-apply left-border on first cell of each row when previous was a group bar */
.fabrics-grid__group + .fabrics-grid__cell + .fabrics-grid__cell {
  border-left: 1px solid var(--line);
}

/* Footer row: Best for */
.fabrics-grid__col--foot {
  padding: 18px 22px 22px;
  background: var(--softer);
  border-top: 1px solid var(--line);
}
.fabrics-grid__col--foot + .fabrics-grid__col--foot {
  border-left: 1px solid var(--line);
}
.fabrics-grid__foot-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 4px;
}
.fabrics-grid__col--foot p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
}

/* Narrow viewports — stack each fabric vertically (single column) */
@media (max-width: 900px) {
  .fabrics-grid {
    grid-template-columns: 1fr;
  }
  .fabrics-grid__col--head + .fabrics-grid__col--head,
  .fabrics-grid__col--prose + .fabrics-grid__col--prose,
  .fabrics-grid__col--foot + .fabrics-grid__col--foot,
  .fabrics-grid__cell + .fabrics-grid__cell {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  /* Group bars get a stronger break on stack */
  .fabrics-grid__group { margin-top: 0; }
}

/* Frame Differences — definition-list spec cards (BMW trim pattern) */
.frame-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 900px) {
  .frame-cards { grid-template-columns: 1fr; }
}
.frame-card-v2 {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.frame-card-v2__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.frame-card-v2__head-text {
  min-width: 0;
  flex: 1;
}
.frame-card-v2__tier {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  padding: 3px 8px;
  border: 1px solid var(--brand);
  border-radius: var(--r-sm);
  margin-bottom: 8px;
}
.frame-card-v2__name {
  margin: 0 0 2px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.frame-card-v2__sku {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.frame-card-v2__pole-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
}
.frame-card-v2__pole-tag[data-pole="steel"]    { background: #eef0f3; color: #4a5160; }
.frame-card-v2__pole-tag[data-pole="aluminum"] { background: #e6eef5; color: #2a5072; }
.frame-card-v2__pole-tag[data-pole="wood"]     { background: #f4ece1; color: #7a5226; }

.frame-card-v2__specs {
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  row-gap: 10px;
  column-gap: 18px;
}
.frame-card-v2__specs dt {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.frame-card-v2__specs dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 600;
}
.frame-card-v2__blurb {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.frame-decision-v2 {
  margin-top: 32px;
  padding: 22px 26px;
  background: var(--paper);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.frame-decision-v2 h3 {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.frame-decision-v2 p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
}
.frame-decision-v2 strong { color: var(--brand); font-weight: 700; }

/* ============================================================
   Discover — Color Library (replaces the old tab+panel layout).
   Single section, 3 stacked groups, jump-nav pills above for fast
   scrolling on the long Sunbrella grid.
   ============================================================ */
.color-library__jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 32px;
}
.color-library__jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}
.color-library__jump a:hover {
  border-color: var(--ink);
  background: var(--softer);
}
.color-library__jump a span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 6px;
  background: var(--softer);
  border-radius: var(--r-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.color-library__group {
  margin-top: clamp(36px, 4vw, 56px);
  scroll-margin-top: 100px;
}
.color-library__group:first-of-type { margin-top: 0; }

.color-library__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.color-library__head h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.color-library__meta {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}
@media (max-width: 560px) {
  .color-library__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .color-library__meta { text-align: left; }
}

.color-library__note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: clamp(36px, 4vw, 56px);
  padding: 16px 20px;
  background: var(--softer);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}
.color-library__note svg { flex-shrink: 0; color: var(--muted); margin-top: 2px; }
.color-library__note strong { color: var(--ink); font-weight: 700; }

/* Base cards (CR13, CFMT160, CFMT172) — no lift / no alt-image swap /
   no "hover to compare" hint. They are static photos of a fixture, not
   designed-to-be-printed product cards. Identified by [data-weight]. */
.product-card[data-weight] {
  cursor: pointer;
}
.product-card[data-weight]:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--line-strong);
}
.product-card[data-weight] .product-card__hover-hint { display: none; }

/* Belt + suspenders: ensure base cards never fade their base img on hover. */
.product-card[data-weight]:hover .product-card__media img.base { opacity: 1; }

/* Per-fabric column tinting in the Fabrics grid.
   Each column gets a subtle background tint + accent for the tier label.
   Sunbrella's accent matches its brand red-orange ("Logo Red" family).
   Polyester gets a cool slate-blue (workhorse / everyday).
   Olefin gets a warm amber-gold (value / outdoor sun).
   Backgrounds are very pale so the text remains the primary read. */
.fabrics-grid__col[data-fabric="poly"]      { background: #eef3f9; }
.fabrics-grid__col[data-fabric="olefin"]    { background: #f7f1de; }
.fabrics-grid__col[data-fabric="sunbrella"] { background: #fce5d8; }

.fabrics-grid__cell[data-fabric="poly"]      { background: #f5f8fc; }
.fabrics-grid__cell[data-fabric="olefin"]    { background: #fcf8e7; }
.fabrics-grid__cell[data-fabric="sunbrella"] { background: #fdf0e5; }

/* Accent color on each fabric's tier eyebrow ("EVERYDAY PROMO" etc).
   Saturated enough to be unmistakable but not garish. */
.fabrics-grid__col[data-fabric="poly"]      .fabrics-grid__tier { color: #2c5172; }
.fabrics-grid__col[data-fabric="olefin"]    .fabrics-grid__tier { color: #8a6920; }
.fabrics-grid__col[data-fabric="sunbrella"] .fabrics-grid__tier { color: #d84823; }

/* Footer "Best for" label color matches its fabric accent. */
.fabrics-grid__col--foot[data-fabric="poly"]      .fabrics-grid__foot-label { color: #2c5172; }
.fabrics-grid__col--foot[data-fabric="olefin"]    .fabrics-grid__foot-label { color: #8a6920; }
.fabrics-grid__col--foot[data-fabric="sunbrella"] .fabrics-grid__foot-label { color: #d84823; }

/* Subtle top accent line on each fabric column header to anchor it. */
.fabrics-grid__col--head[data-fabric="poly"]      { box-shadow: inset 0 3px 0 0 #2c5172; }
.fabrics-grid__col--head[data-fabric="olefin"]    { box-shadow: inset 0 3px 0 0 #8a6920; }
.fabrics-grid__col--head[data-fabric="sunbrella"] { box-shadow: inset 0 3px 0 0 #d84823; }

/* --- Active fabric tab accent --- */
.config__tabs button[data-fabric="polyester"].is-active {
  color: #2c5172;
  box-shadow: var(--shadow-sm), inset 0 -2px 0 0 #2c5172;
}
.config__tabs button[data-fabric="dye-sub"].is-active {
  color: var(--teal);
  box-shadow: var(--shadow-sm), inset 0 -2px 0 0 var(--teal);
}
.config__tabs button[data-fabric="olefin"].is-active {
  color: #8a6920;
  box-shadow: var(--shadow-sm), inset 0 -2px 0 0 #8a6920;
}
.config__tabs button[data-fabric="sunbrella"].is-active {
  color: #d84823;
  box-shadow: var(--shadow-sm), inset 0 -2px 0 0 #d84823;
}

/* --- Tier ladder background tint per fabric --- */
.fabric-tiers[data-active-fabric="polyester"] {
  background: #eef3f9;
  border-color: #c6d4e2;
}
.fabric-tiers[data-active-fabric="dye-sub"] {
  background: #e7f4f1;
  border-color: #b9d8d0;
}
.fabric-tiers[data-active-fabric="olefin"] {
  background: #f7f1de;
  border-color: #d9c994;
}
.fabric-tiers[data-active-fabric="sunbrella"] {
  background: #fce5d8;
  border-color: #e8b89e;
}

/* --- Tier ladder cells: slightly lighter tint so values pop --- */
.fabric-tiers[data-active-fabric="polyester"] .fabric-tier-row { background: #f5f8fc; }
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tier-row { background: #f2faf7; }
.fabric-tiers[data-active-fabric="olefin"] .fabric-tier-row { background: #fcf8e7; }
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tier-row { background: #fdf0e5; }

/* --- Highlighted "current tier" row uses the fabric's accent --- */
.fabric-tiers[data-active-fabric="polyester"] .fabric-tier-row.is-current-tier { background: #d8e4f0; }
.fabric-tiers[data-active-fabric="polyester"] .fabric-tier-row.is-current-tier .qty,
.fabric-tiers[data-active-fabric="polyester"] .fabric-tier-row.is-current-tier .price { color: #2c5172; }

.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tier-row.is-current-tier { background: #ccebe1; }
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tier-row.is-current-tier .qty,
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tier-row.is-current-tier .price { color: var(--teal); }

.fabric-tiers[data-active-fabric="olefin"] .fabric-tier-row.is-current-tier { background: #ece1b8; }
.fabric-tiers[data-active-fabric="olefin"] .fabric-tier-row.is-current-tier .qty,
.fabric-tiers[data-active-fabric="olefin"] .fabric-tier-row.is-current-tier .price { color: #8a6920; }

.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tier-row.is-current-tier { background: #f8d6bf; }
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tier-row.is-current-tier .qty,
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tier-row.is-current-tier .price { color: #d84823; }

/* --- Cell borders match the tinted background so they read as bands --- */
.fabric-tiers[data-active-fabric="polyester"] .fabric-tier-row { border-right-color: #c6d4e2; }
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tier-row { border-right-color: #b9d8d0; }
.fabric-tiers[data-active-fabric="olefin"] .fabric-tier-row { border-right-color: #d9c994; }
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tier-row { border-right-color: #e8b89e; }

/* --- Footer band of the ladder picks up the same tint --- */
.fabric-tiers[data-active-fabric="polyester"] .fabric-tiers__footer { background: #e3eaf3; border-top-color: #c6d4e2; }
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tiers__footer { background: #dcefe9; border-top-color: #b9d8d0; }
.fabric-tiers[data-active-fabric="olefin"] .fabric-tiers__footer { background: #efe8cd; border-top-color: #d9c994; }
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tiers__footer { background: #f7dac7; border-top-color: #e8b89e; }

/* --- Quote link in the footer adopts the active fabric color --- */
.fabric-tiers[data-active-fabric="polyester"] .fabric-tiers__quote-link { color: #2c5172; }
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tiers__quote-link { color: var(--teal); }
.fabric-tiers[data-active-fabric="olefin"] .fabric-tiers__quote-link { color: #8a6920; }
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tiers__quote-link { color: #d84823; }

/* ============================================================
   PDP fabric color identity — UNIFIED CARD treatment.
   Tabs row + inline tier ladder live inside a single bordered
   card. Active tab gets a filled background tint (no inset border
   bar — matches the Discover Fabrics column treatment). The tier
   ladder below picks up the same tint so it visually continues
   from the active tab. Switching fabric tabs re-colors the whole
   card to the new fabric's identity.
   Palette parallels Discover:
     polyester → slate blue  (#2c5172)
     dye-sub   → teal        (var(--teal))
     olefin    → amber/gold  (#8a6920)
     sunbrella → red-orange  (#d84823, Sunbrella Logo Red family)
   ============================================================ */

/* === Unified fabric card === */
/* Override the default .config__tabs--3 pill so the tabs sit flat
   at the top of a unified card with the tier ladder. */
.config__group:has([data-fabric-tiers]) .config__tabs--3 {
  display: flex;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.config__group:has([data-fabric-tiers]) .config__tabs--3 button {
  flex: 1;
  padding: 13px 12px;
  border-radius: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  transition: background 0.15s, color 0.15s;
}
.config__group:has([data-fabric-tiers]) .config__tabs--3 button:last-child {
  border-right: 0;
}
.config__group:has([data-fabric-tiers]) .config__tabs--3 button:hover {
  background: var(--softer);
  color: var(--ink);
}

/* Tier ladder default = closed card (used on base PDPs and any
   standalone ladder rendering). When the ladder follows a fabric
   tabs row (umbrella PDP), the rule below removes the top edge so
   the two form one continuous card. */
.fabric-tiers {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}
.config__tabs--3 + .fabric-tiers {
  border-top: 0;
  border-radius: 0 0 var(--r-md) var(--r-md);
}

/* === Active tab + tier ladder per fabric (filled tint, no border bar) === */
.config__tabs--3 button[data-fabric="polyester"].is-active {
  background: #eef3f9;
  color: #2c5172;
  font-weight: 700;
  box-shadow: none;
}
.config__tabs--3 button[data-fabric="dye-sub"].is-active {
  background: #e7f4f1;
  color: var(--teal);
  font-weight: 700;
  box-shadow: none;
}
.config__tabs--3 button[data-fabric="olefin"].is-active {
  background: #f7f1de;
  color: #8a6920;
  font-weight: 700;
  box-shadow: none;
}
.config__tabs--3 button[data-fabric="sunbrella"].is-active {
  background: #fce5d8;
  color: #d84823;
  font-weight: 700;
  box-shadow: none;
}

/* === Tier ladder background matches the active tab === */
.fabric-tiers[data-active-fabric="polyester"] {
  background: #eef3f9;
  border-color: #c6d4e2;
}
.fabric-tiers[data-active-fabric="dye-sub"] {
  background: #e7f4f1;
  border-color: #b9d8d0;
}
.fabric-tiers[data-active-fabric="olefin"] {
  background: #f7f1de;
  border-color: #d9c994;
}
.fabric-tiers[data-active-fabric="sunbrella"] {
  background: #fce5d8;
  border-color: #e8b89e;
}

/* Tier cells get a one-shade-lighter wash so the price values pop. */
.fabric-tiers[data-active-fabric="polyester"] .fabric-tier-row { background: #f5f8fc; border-right-color: #c6d4e2; }
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tier-row { background: #f2faf7; border-right-color: #b9d8d0; }
.fabric-tiers[data-active-fabric="olefin"] .fabric-tier-row { background: #fcf8e7; border-right-color: #d9c994; }
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tier-row { background: #fdf0e5; border-right-color: #e8b89e; }

/* Current-tier highlight uses the fabric's accent. */
.fabric-tiers[data-active-fabric="polyester"] .fabric-tier-row.is-current-tier { background: #d8e4f0; }
.fabric-tiers[data-active-fabric="polyester"] .fabric-tier-row.is-current-tier .qty,
.fabric-tiers[data-active-fabric="polyester"] .fabric-tier-row.is-current-tier .price { color: #2c5172; }

.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tier-row.is-current-tier { background: #ccebe1; }
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tier-row.is-current-tier .qty,
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tier-row.is-current-tier .price { color: var(--teal); }

.fabric-tiers[data-active-fabric="olefin"] .fabric-tier-row.is-current-tier { background: #ece1b8; }
.fabric-tiers[data-active-fabric="olefin"] .fabric-tier-row.is-current-tier .qty,
.fabric-tiers[data-active-fabric="olefin"] .fabric-tier-row.is-current-tier .price { color: #8a6920; }

.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tier-row.is-current-tier { background: #f8d6bf; }
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tier-row.is-current-tier .qty,
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tier-row.is-current-tier .price { color: #d84823; }

/* Footer band of the ladder picks up a darker shade of the fabric tint. */
.fabric-tiers[data-active-fabric="polyester"] .fabric-tiers__footer { background: #e3eaf3; border-top-color: #c6d4e2; }
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tiers__footer { background: #dcefe9; border-top-color: #b9d8d0; }
.fabric-tiers[data-active-fabric="olefin"] .fabric-tiers__footer { background: #efe8cd; border-top-color: #d9c994; }
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tiers__footer { background: #f7dac7; border-top-color: #e8b89e; }

.fabric-tiers[data-active-fabric="polyester"] .fabric-tiers__quote-link { color: #2c5172; }
.fabric-tiers[data-active-fabric="dye-sub"] .fabric-tiers__quote-link { color: var(--teal); }
.fabric-tiers[data-active-fabric="olefin"] .fabric-tiers__quote-link { color: #8a6920; }
.fabric-tiers[data-active-fabric="sunbrella"] .fabric-tiers__quote-link { color: #d84823; }

/* Tabs row + fabric tier ladder render as one continuous card.
   The default .config__group has grid gap: 8px — that creates a
   visible seam between the tabs container and the ladder below.
   Override: zero out the gap when the group contains a ladder,
   and shift the label's spacing into its own margin-bottom. */
.config__group:has([data-fabric-tiers]) {
  gap: 0;
}
.config__group:has([data-fabric-tiers]) > .config__label {
  margin-bottom: 8px;
}
/* And the ladder explicitly has no top margin (already implicit, but
   set explicit to override any user-agent or earlier-rule margin). */
.config__group:has([data-fabric-tiers]) > .fabric-tiers {
  margin-top: 0;
}

/* =====================================================================
   Per-page button + heading overrides
   Previously duplicated as inline <style> blocks across templates/
   discover/about/contact pages. Consolidated here so the
   layouts/_storefront.blade.php partial is the only opt-in artefact
   in each page.
   ===================================================================== */
.templates-page .btn,
.discover-page .btn,
.about-page .btn,
.contact-page .btn {
  text-transform: none;
  letter-spacing: normal;
  justify-content: center;
  text-align: center;
}

.templates-page .template-card__actions .btn {
  box-shadow: none;
}

/* Match the demo: discover h2 renders at the browser default 24px,
   not the larger global Bootstrap/MDB size. */
.discover-page h2 {
  font-size: 24px;
}
