/* =====================================================================
   GildedPlanet Design System  (gp-ds.css)  v0.1  — 2026-10
   ---------------------------------------------------------------------
   Loads AFTER the legacy stylesheets (bootstrap.css 2.3.1, responsive.css,
   main.css). Everything is scoped under .gp-ds so legacy pages and the
   legacy header / navigation are never restyled by accident.

   Brand foundations come from the existing master rules in main.css:
     --gp-gold  #CFA81D   single brand accent (fills, borders, focus)
     --gp-gold-ink #725c10 the only gold allowed for TEXT (AA 6.4:1)
     Libre Franklin       web match for Franklin Gothic Book
   Documented in docs/03-design-system.md
   ===================================================================== */

/* Fonts: main.css @imports Libre Franklin in the middle of the file, which
   browsers ignore (@import must come first). Loaded properly here. */
@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* brand */
  --gp-gold: #CFA81D;
  --gp-gold-light: #e2ba2e;
  --gp-gold-dark: #9b7e16;
  --gp-gold-ink: #725c10;
  --gp-gold-wash: #fbf6e6;      /* selected / hover fill */
  /* neutrals (consolidated from the ~12 legacy inline creams/greys) */
  --gp-ink: #1f1d1a;            /* headings, prices */
  --gp-text: #3a3732;           /* body text  (11.9:1 on white) */
  --gp-muted: #6b665c;          /* secondary text (5.7:1 on white) */
  --gp-line: #e2dacb;           /* hairlines, card borders */
  --gp-line-strong: #cdbb8c;    /* inputs, emphasized borders */
  --gp-panel: #fbf8f2;          /* panels, callouts */
  --gp-white: #ffffff;
  /* status */
  --gp-ok: #2f6b3a;
  --gp-warn: #8a4b0f;
  --gp-sold: #8c2b2b;
  /* type scale (1.2 minor third, 16px base) */
  --gp-fs-xs: .78rem; --gp-fs-sm: .875rem; --gp-fs-md: 1rem; --gp-fs-lg: 1.2rem;
  --gp-fs-xl: 1.44rem; --gp-fs-2xl: 1.875rem; --gp-fs-3xl: 2.35rem;
  /* spacing (4px grid) */
  --gp-s1: 4px; --gp-s2: 8px; --gp-s3: 12px; --gp-s4: 16px; --gp-s5: 24px; --gp-s6: 32px; --gp-s7: 48px; --gp-s8: 64px;
  --gp-radius: 4px; --gp-radius-lg: 8px;
  --gp-shadow: 0 1px 2px rgba(31,29,26,.06), 0 4px 14px rgba(31,29,26,.06);
  --gp-focus: 0 0 0 3px rgba(207,168,29,.55);
  --gp-font: 'Libre Franklin', 'Franklin Gothic Book', 'Open Sans', Arial, Helvetica, sans-serif;
  --gp-max: 1170px;
}

/* ---------- base (scoped) ---------- */
.gp-ds { font-family: var(--gp-font); color: var(--gp-text); font-size: var(--gp-fs-md); line-height: 1.55; }
.gp-ds *, .gp-ds *::before, .gp-ds *::after { box-sizing: border-box; }
.gp-ds h1, .gp-ds h2, .gp-ds h3, .gp-ds h4 { font-family: var(--gp-font); color: var(--gp-ink); line-height: 1.2; margin: 0 0 var(--gp-s3); font-weight: 600; letter-spacing: -.01em; }
.gp-ds h1 { font-size: var(--gp-fs-3xl); font-weight: 500; }
.gp-ds h2 { font-size: var(--gp-fs-2xl); font-weight: 500; }
.gp-ds h3 { font-size: var(--gp-fs-lg); }
.gp-ds h4 { font-size: var(--gp-fs-md); }
.gp-ds p { margin: 0 0 var(--gp-s3); font-size: var(--gp-fs-md); line-height: 1.6; }
.gp-ds a { color: var(--gp-gold-ink); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.gp-ds a:hover { color: var(--gp-ink); }
.gp-ds :focus-visible { outline: none; box-shadow: var(--gp-focus); border-radius: 2px; }
.gp-ds img { max-width: 100%; height: auto; }
.gp-ds .gp-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gp-ds .gp-eyebrow { font-size: var(--gp-fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gp-gold-ink); font-weight: 600; margin: 0 0 var(--gp-s2); }
.gp-ds .gp-lede { font-size: var(--gp-fs-lg); color: var(--gp-text); max-width: 62ch; }
.gp-ds .gp-muted { color: var(--gp-muted); }
.gp-ds .gp-small { font-size: var(--gp-fs-sm); }

/* ---------- layout ---------- */
.gp-ds .gp-wrap { max-width: var(--gp-max); margin: 0 auto; padding: 0 var(--gp-s4); }
.gp-ds .gp-section { padding: var(--gp-s7) 0; }
.gp-ds .gp-section + .gp-section { border-top: 1px solid var(--gp-line); }
.gp-ds .gp-grid { display: grid; gap: var(--gp-s5); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gp-ds .gp-stack > * + * { margin-top: var(--gp-s4); }

/* ---------- page header & breadcrumbs ---------- */
.gp-ds .gp-pagehead { padding: var(--gp-s5) 0 var(--gp-s4); }
.gp-ds .gp-crumbs { font-size: var(--gp-fs-sm); color: var(--gp-muted); margin: var(--gp-s4) 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: var(--gp-s1) var(--gp-s2); }
.gp-ds .gp-crumbs li + li::before { content: "/"; margin-right: var(--gp-s2); color: var(--gp-line-strong); }
.gp-ds .gp-crumbs a { color: var(--gp-muted); text-decoration: none; }
.gp-ds .gp-crumbs a:hover { color: var(--gp-gold-ink); text-decoration: underline; }
.gp-ds .gp-crumbs [aria-current] { color: var(--gp-ink); }

/* ---------- buttons (extends legacy .gp-gold-btn) ---------- */
.gp-ds .gp-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--gp-s2); min-height: 44px; padding: 10px 20px; border-radius: var(--gp-radius); font: 600 var(--gp-fs-md)/1 var(--gp-font); text-decoration: none; cursor: pointer; border: 1px solid var(--gp-gold-dark); transition: background .15s, box-shadow .15s, transform .15s; -webkit-appearance: none; appearance: none; }
.gp-ds .gp-btn--primary { background: var(--gp-gold); color: #000; text-shadow: none; }
.gp-ds .gp-btn--primary:hover { background: var(--gp-gold-light); color: #000; box-shadow: 0 4px 12px rgba(155,126,22,.35); }
.gp-ds .gp-btn--secondary { background: #fff; color: var(--gp-gold-ink); }
.gp-ds .gp-btn--secondary:hover { background: var(--gp-gold-wash); color: var(--gp-ink); }
.gp-ds .gp-btn--ghost { background: transparent; border-color: transparent; color: var(--gp-gold-ink); padding-left: 0; padding-right: 0; min-height: 0; text-decoration: underline; }
.gp-ds .gp-btn--block { width: 100%; }
.gp-ds .gp-btn[disabled], .gp-ds .gp-btn[aria-disabled="true"] { background: #eee9de; border-color: #d9d2c2; color: #7a7466; cursor: not-allowed; box-shadow: none; }

/* ---------- chips / pills ---------- */
.gp-ds .gp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: var(--gp-fs-xs); font-weight: 600; letter-spacing: .02em; background: var(--gp-panel); border: 1px solid var(--gp-line); color: var(--gp-text); white-space: nowrap; }
.gp-ds .gp-chip--gold { background: var(--gp-gold-wash); border-color: var(--gp-gold); color: var(--gp-gold-ink); }
.gp-ds .gp-chip--sold { background: #f6eaea; border-color: #e3c4c4; color: var(--gp-sold); }

/* ---------- option groups (radio cards) — used by every configurator ---------- */
.gp-ds .gp-field { border: 0; margin: 0 0 var(--gp-s5); padding: 0; min-width: 0; }
.gp-ds .gp-field > legend { width: auto; border: 0; margin: 0 0 var(--gp-s2); padding: 0; font: 600 var(--gp-fs-sm)/1.3 var(--gp-font); color: var(--gp-ink); text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: baseline; gap: var(--gp-s2); }
.gp-ds .gp-field > legend .gp-step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gp-ink); color: #fff; font-size: 11px; letter-spacing: 0; }
.gp-ds .gp-field > legend .gp-picked { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--gp-muted); }
.gp-ds .gp-options { display: flex; flex-wrap: wrap; gap: var(--gp-s2); }
.gp-ds .gp-opt { position: relative; margin: 0; display: flex; }
.gp-ds .gp-opt > span.gp-opt__box { flex: 1; }
.gp-ds .gp-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.gp-ds .gp-opt span.gp-opt__box { display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius); background: #fff; cursor: pointer; font-size: var(--gp-fs-sm); line-height: 1.25; color: var(--gp-ink); transition: border-color .12s, background .12s, box-shadow .12s; }
.gp-ds .gp-opt span.gp-opt__box small { color: var(--gp-muted); font-size: var(--gp-fs-xs); margin-top: 2px; }
.gp-ds .gp-opt:hover span.gp-opt__box { border-color: var(--gp-gold-dark); }
.gp-ds .gp-opt input:checked + span.gp-opt__box { border-color: var(--gp-gold-dark); background: var(--gp-gold-wash); box-shadow: inset 0 0 0 1px var(--gp-gold-dark); }
.gp-ds .gp-opt input:focus-visible + span.gp-opt__box { box-shadow: var(--gp-focus); }
.gp-ds .gp-opt.is-unavailable span.gp-opt__box { color: #8f897c; background: repeating-linear-gradient(135deg, #fff 0 6px, #f7f4ee 6px 12px); border-style: dashed; }

/* swatch variant (karat / colour) */
.gp-ds .gp-options--swatch { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--gp-s2); }
.gp-ds .gp-opt--swatch span.gp-opt__box { padding: 0; overflow: hidden; min-height: 0; }
.gp-ds .gp-opt--swatch .gp-swatch { display: block; aspect-ratio: 16 / 10; background-size: cover; background-position: center; border-bottom: 1px solid var(--gp-line); }
.gp-ds .gp-opt--swatch .gp-opt__label { padding: 6px 8px 7px; font-weight: 600; font-size: var(--gp-fs-xs); }
.gp-ds .gp-opt--swatch .gp-opt__label small { display: block; font-weight: 400; }

/* ---------- info disclosure (education at the point of need) ---------- */
.gp-ds .gp-info { margin: var(--gp-s2) 0 0; font-size: var(--gp-fs-sm); }
.gp-ds .gp-info > summary { cursor: pointer; color: var(--gp-gold-ink); list-style: none; display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 2px; }
.gp-ds .gp-info > summary::-webkit-details-marker { display: none; }
.gp-ds .gp-info > summary::before { content: "i"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; font: italic 600 11px/1 Georgia, serif; text-decoration: none; }
.gp-ds .gp-info[open] > summary { margin-bottom: var(--gp-s2); }
.gp-ds .gp-info__body { background: var(--gp-panel); border-left: 3px solid var(--gp-gold); padding: var(--gp-s3) var(--gp-s4); color: var(--gp-text); }
.gp-ds .gp-info__body p:last-child { margin-bottom: 0; }

/* ---------- product card (catalog-wide) ---------- */
.gp-ds .gp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gp-line); border-radius: var(--gp-radius-lg); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.gp-ds .gp-card:hover { box-shadow: var(--gp-shadow); border-color: var(--gp-line-strong); }
.gp-ds .gp-card__media { aspect-ratio: 1 / 1; background: var(--gp-panel); display: grid; place-items: center; overflow: hidden; position: relative; }
.gp-ds .gp-card__media img { width: 100%; height: 100%; object-fit: cover; }
.gp-ds .gp-card__media--contain img { object-fit: contain; padding: var(--gp-s3); }
.gp-ds .gp-card__badge { position: absolute; top: var(--gp-s2); left: var(--gp-s2); }
.gp-ds .gp-card__body { padding: var(--gp-s3) var(--gp-s4) var(--gp-s4); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gp-ds .gp-card__sku { font-size: var(--gp-fs-xs); letter-spacing: .06em; color: var(--gp-muted); text-transform: uppercase; }
.gp-ds .gp-card__title { font-size: var(--gp-fs-md); font-weight: 600; color: var(--gp-ink); margin: 0; line-height: 1.3; }
.gp-ds .gp-card__title a { color: inherit; text-decoration: none; }
.gp-ds .gp-card__title a:hover { text-decoration: underline; }
.gp-ds .gp-card__desc { font-size: var(--gp-fs-sm); color: var(--gp-muted); margin: 0; }
.gp-ds .gp-card__specs { display: flex; flex-wrap: wrap; gap: 4px; margin: 2px 0; }
.gp-ds .gp-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--gp-s2); padding-top: var(--gp-s2); }
.gp-ds .gp-price { font-weight: 700; color: var(--gp-ink); font-size: var(--gp-fs-lg); font-variant-numeric: tabular-nums; }
.gp-ds .gp-price small { font-weight: 400; color: var(--gp-muted); font-size: var(--gp-fs-xs); }
.gp-ds .gp-price.is-loading { color: transparent; background: linear-gradient(90deg, #f2ede2, #faf7f0, #f2ede2); background-size: 200% 100%; animation: gp-shimmer 1.2s infinite; border-radius: 3px; min-width: 70px; display: inline-block; }
@keyframes gp-shimmer { to { background-position: -200% 0; } }

/* ---------- configurator layout ---------- */
.gp-ds .gp-config { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--gp-s6); align-items: start; }
.gp-ds .gp-summary { position: sticky; top: 16px; background: #fff; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius-lg); box-shadow: var(--gp-shadow); overflow: hidden; }
.gp-ds .gp-summary__media { display: grid; grid-template-columns: 1fr 1fr; background: var(--gp-panel); border-bottom: 1px solid var(--gp-line); }
.gp-ds .gp-summary__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gp-ds .gp-summary__media img + img { object-fit: contain; background: #fff; padding: var(--gp-s3); border-left: 1px solid var(--gp-line); }
.gp-ds .gp-summary__body { padding: var(--gp-s4); }
.gp-ds .gp-summary__title { font-size: var(--gp-fs-lg); font-weight: 600; color: var(--gp-ink); margin: 0 0 4px; }
.gp-ds .gp-summary__sku { font-size: var(--gp-fs-xs); color: var(--gp-muted); letter-spacing: .05em; }
.gp-ds .gp-specs { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--gp-s3); margin: var(--gp-s3) 0; font-size: var(--gp-fs-sm); }
.gp-ds .gp-specs dt { color: var(--gp-muted); font-weight: 400; }
.gp-ds .gp-specs dd { margin: 0; color: var(--gp-ink); }
.gp-ds .gp-buyrow { display: flex; gap: var(--gp-s2); align-items: stretch; margin-top: var(--gp-s3); }
.gp-ds .gp-qty { display: inline-flex; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius); overflow: hidden; }
.gp-ds .gp-qty button { width: 36px; border: 0; background: var(--gp-panel); font-size: 18px; color: var(--gp-ink); cursor: pointer; }
.gp-ds .gp-qty input { width: 44px; border: 0; border-left: 1px solid var(--gp-line); border-right: 1px solid var(--gp-line); text-align: center; font: 600 var(--gp-fs-md) var(--gp-font); margin: 0; padding: 0; height: auto; box-shadow: none; border-radius: 0; -moz-appearance: textfield; }
.gp-ds .gp-qty input::-webkit-outer-spin-button, .gp-ds .gp-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.gp-ds .gp-status { font-size: var(--gp-fs-sm); margin: var(--gp-s2) 0 0; min-height: 1.4em; }
.gp-ds .gp-status.is-ok { color: var(--gp-ok); }
.gp-ds .gp-status.is-sold { color: var(--gp-sold); }

/* ---------- data table (all-products list, comparison) ---------- */
.gp-ds .gp-table-wrap { overflow-x: auto; border: 1px solid var(--gp-line); border-radius: var(--gp-radius-lg); background: #fff; }
.gp-ds table.gp-table { width: 100%; border-collapse: collapse; font-size: var(--gp-fs-sm); margin: 0; }
.gp-ds .gp-table th, .gp-ds .gp-table td { padding: 10px 12px; border-bottom: 1px solid var(--gp-line); text-align: left; vertical-align: middle; }
.gp-ds .gp-table thead th { background: var(--gp-panel); font-weight: 600; color: var(--gp-ink); font-size: var(--gp-fs-xs); text-transform: uppercase; letter-spacing: .06em; position: sticky; top: 0; }
.gp-ds .gp-table tbody tr:hover { background: #fdfbf6; }
.gp-ds .gp-table tbody tr.is-current { background: var(--gp-gold-wash); }
.gp-ds .gp-table td.gp-num, .gp-ds .gp-table th.gp-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gp-ds .gp-table .gp-btn { min-height: 36px; padding: 6px 12px; font-size: var(--gp-fs-sm); }

/* ---------- filter bar ---------- */
.gp-ds .gp-filterbar { display: flex; flex-wrap: wrap; gap: var(--gp-s2) var(--gp-s4); align-items: center; margin: 0 0 var(--gp-s3); font-size: var(--gp-fs-sm); }
.gp-ds .gp-filterbar label { margin: 0; display: inline-flex; gap: 6px; align-items: center; font-size: var(--gp-fs-sm); color: var(--gp-text); }
.gp-ds .gp-filterbar select { margin: 0; height: 36px; padding: 4px 8px; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius); font: var(--gp-fs-sm) var(--gp-font); width: auto; background: #fff; color: var(--gp-ink); }

/* ---------- compare tray ---------- */
.gp-ds .gp-compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: var(--gp-ink); color: #fff; padding: 10px var(--gp-s4); display: none; box-shadow: 0 -4px 18px rgba(0,0,0,.18); }
.gp-ds .gp-compare-tray.is-visible { display: block; }
.gp-ds .gp-compare-tray__inner { max-width: var(--gp-max); margin: 0 auto; display: flex; flex-wrap: wrap; gap: var(--gp-s3); align-items: center; justify-content: space-between; }
.gp-ds .gp-compare-tray .gp-btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.gp-ds dialog.gp-dialog { border: 0; border-radius: var(--gp-radius-lg); padding: 0; width: min(980px, 96vw); max-height: 90vh; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.gp-ds dialog.gp-dialog::backdrop { background: rgba(31,29,26,.55); }
.gp-ds .gp-dialog__head { display: flex; justify-content: space-between; align-items: center; padding: var(--gp-s3) var(--gp-s4); border-bottom: 1px solid var(--gp-line); background: var(--gp-panel); }
.gp-ds .gp-dialog__body { padding: var(--gp-s4); overflow: auto; max-height: calc(90vh - 60px); }

/* ---------- callouts & pathway cards (education <-> commerce) ---------- */
.gp-ds .gp-callout { background: var(--gp-panel); border: 1px solid var(--gp-line); border-left: 4px solid var(--gp-gold); padding: var(--gp-s4) var(--gp-s5); border-radius: var(--gp-radius); }
.gp-ds .gp-path { display: block; padding: var(--gp-s4); border: 1px solid var(--gp-line); border-radius: var(--gp-radius-lg); background: #fff; text-decoration: none; color: var(--gp-text); height: 100%; }
.gp-ds .gp-path:hover { border-color: var(--gp-gold-dark); box-shadow: var(--gp-shadow); color: var(--gp-text); }
.gp-ds .gp-path h3 { margin-bottom: 6px; font-size: var(--gp-fs-md); }
.gp-ds .gp-path p { font-size: var(--gp-fs-sm); color: var(--gp-muted); margin: 0; }
.gp-ds .gp-path .gp-path__go { display: inline-block; margin-top: var(--gp-s2); color: var(--gp-gold-ink); font-weight: 600; font-size: var(--gp-fs-sm); }

/* ---------- mode switch (direct vs guided) ---------- */
.gp-ds .gp-modes { display: flex; flex-wrap: wrap; gap: var(--gp-s2); margin: var(--gp-s4) 0 0; }

/* ---------- mobile sticky buy bar ---------- */
.gp-ds .gp-mbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 979px) {
  .gp-ds .gp-config { grid-template-columns: 1fr; }
  .gp-ds .gp-summary { position: static; }
  .gp-ds h1 { font-size: var(--gp-fs-2xl); }
}
@media (max-width: 767px) {
  .gp-ds .gp-section { padding: var(--gp-s6) 0; }
  .gp-ds .gp-options--swatch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gp-ds .gp-table .gp-hide-sm { display: none; }
  .gp-ds .gp-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; background: #fff; border-top: 1px solid var(--gp-line-strong); padding: 8px var(--gp-s4) calc(8px + env(safe-area-inset-bottom)); gap: var(--gp-s3); align-items: center; justify-content: space-between; box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
  .gp-ds .gp-mbar__txt { font-size: var(--gp-fs-xs); line-height: 1.3; min-width: 0; }
  .gp-ds .gp-mbar__txt strong { display: block; font-size: var(--gp-fs-md); }
  .gp-ds.has-mbar { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .gp-ds * { transition: none !important; animation: none !important; } }

/* ---------- Shopify Buy Button (rendered with iframe:false so it inherits the brand) ---------- */
.gp-ds .gp-buy .shopify-buy__product { margin: 0; max-width: none !important; display: flex; gap: var(--gp-s2); align-items: stretch; }
.gp-ds .gp-buy .shopify-buy-frame { width: 100%; }
.gp-ds .gp-buy .shopify-buy__btn-and-quantity { display: flex; gap: var(--gp-s2); align-items: stretch; width: 100%; }
.gp-ds .gp-buy .shopify-buy__quantity-container { display: flex; flex: 0 0 auto; width: auto; }
.gp-ds .gp-buy input.shopify-buy__quantity { width: 64px; min-height: 44px; margin: 0; padding: 0 8px; text-align: center; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius); font: 600 var(--gp-fs-md) var(--gp-font); box-shadow: none; height: auto; }
.gp-ds .gp-buy .shopify-buy__btn-wrapper { flex: 1 1 auto; display: flex; margin: 0; }
.gp-ds .gp-buy .shopify-buy__btn { width: 100%; min-height: 44px; padding: 10px 20px; border-radius: var(--gp-radius); border: 1px solid var(--gp-gold-dark); background: var(--gp-gold); color: #000; font: 600 var(--gp-fs-md)/1 var(--gp-font); cursor: pointer; flex: 1; }
.gp-ds .gp-buy .shopify-buy__btn:hover { background: var(--gp-gold-light); box-shadow: 0 4px 12px rgba(155,126,22,.35); }
.gp-ds .gp-buy .shopify-buy__btn:focus-visible { outline: none; box-shadow: var(--gp-focus); }
.gp-ds .gp-buy .shopify-buy__btn--disabled, .gp-ds .gp-buy .shopify-buy__btn[disabled] { background: #eee9de; border-color: #d9d2c2; color: #7a7466; cursor: not-allowed; }
.gp-ds .gp-buy .shopify-buy__product__actual-price, .gp-ds .gp-buy .shopify-buy__product__title, .gp-ds .gp-buy .shopify-buy__product-img-wrapper { display: none; }

/* ---------- fixes / responsive table ---------- */
.gp-ds { text-align: left; }
.gp-ds .gp-opt--swatch span.gp-opt__box { justify-content: flex-start; }
@media (max-width: 767px) {
  /* legacy responsive.css pads <body> 20px; let full-bleed bands reach the edges */
  .gp-ds { margin-left: -20px; margin-right: -20px; }
  .gp-ds .gp-table-wrap { border: 0; background: transparent; overflow: visible; }
  .gp-ds table.gp-table, .gp-ds .gp-table tbody { display: block; }
  .gp-ds .gp-table thead { display: none; }
  .gp-ds .gp-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 14px; border: 1px solid var(--gp-line); border-radius: var(--gp-radius-lg); margin-bottom: 8px; background: #fff; }
  .gp-ds .gp-table td { display: block; padding: 0; border: 0; }
  .gp-ds .gp-table td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .gp-ds .gp-table td:nth-child(2) { grid-column: 1; grid-row: 2; color: var(--gp-muted); }
  .gp-ds .gp-table td:nth-child(4) { grid-column: 2; grid-row: 1; font-weight: 700; color: var(--gp-ink); }
  .gp-ds .gp-table td:nth-child(5) { grid-column: 1; grid-row: 3; margin-top: 4px; }
  .gp-ds .gp-table td:nth-child(7) { grid-column: 2; grid-row: 2 / span 2; align-self: end; }
  .gp-ds .gp-table td.gp-hide-sm { display: none; }
}
.gp-ds header, .gp-ds .gp-pagehead, .gp-ds .gp-pagehead p, .gp-ds .gp-pagehead h1 { text-align: left; }

/* ---------- guided chips, toast, table actions ---------- */
.gp-ds .gp-guide { margin-top: var(--gp-s4); }
.gp-ds .gp-guide__q { font-size: var(--gp-fs-sm); color: var(--gp-muted); margin: 0 0 var(--gp-s2); }
.gp-ds .gp-guide__opts { display: flex; flex-wrap: wrap; gap: var(--gp-s2); align-items: center; }
.gp-ds .gp-guide__opts .gp-btn--secondary { min-height: 40px; padding: 8px 14px; font-size: var(--gp-fs-sm); }
.gp-ds .gp-actions { white-space: nowrap; }
.gp-ds .gp-actions .gp-btn--ghost { margin-right: var(--gp-s3); }
.gp-ds .gp-toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%) translateY(20px); background: var(--gp-ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: var(--gp-fs-sm); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1050; }
.gp-ds .gp-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
#gp-config { padding-top: var(--gp-s5); }

/* ---------- long-form copy (karat pages, tutorials) ---------- */
.gp-ds .gp-prose { max-width: 72ch; }
.gp-ds .gp-prose ul, .gp-ds .gp-prose ol { margin: 0 0 var(--gp-s4); padding-left: 1.25em; }
.gp-ds .gp-prose li { margin: 0 0 6px; line-height: 1.55; }
.gp-ds .gp-prose h3 { margin-top: var(--gp-s5); }

/* =====================================================================
   Legacy content layer (.gp-legacy) — pages converted by tools/convert_legacy.py
   Keeps each page's own layout grid (Bootstrap 2) but applies the design
   system's type, colour, links, tables and buy slots.
   ===================================================================== */
.gp-ds.gp-legacy { padding-bottom: 0; }
.gp-legacy .gp-crumbs { margin: var(--gp-s4) 0 var(--gp-s2); }
/* main.css gives .push-up negative margins + 25px side padding to sit over the old grey stripe.
   The stripe is gone, so drop both: side padding made 3 x .span4 too wide and wrap to two lines. */
.gp-legacy .push-up { margin: 0; padding: var(--gp-s3) 0 0; border-radius: 0; }
/* Colour is set once on the container and inherited, so panels that set their own light text
   colour (e.g. the dark calculator banner) keep it in every child. */
.gp-ds.gp-legacy { color: var(--gp-text); }
.gp-legacy p, .gp-legacy li, .gp-legacy td, .gp-legacy th, .gp-legacy dd, .gp-legacy dt { font-family: var(--gp-font); color: inherit; }
.gp-legacy p, .gp-legacy li { font-size: 15.5px; line-height: 1.65; }
.gp-legacy :where(h1, h2, h3, h4, h5, h6) { font-family: var(--gp-font); letter-spacing: -.01em; line-height: 1.25; }
/* low specificity on purpose: page stylesheets (e.g. the calculator hero) and inline colours win */
.gp-legacy :where(h1, h2, h3, h4, h5, h6) { color: var(--gp-ink); }
.gp-legacy [style*="background"] :where(h1, h2, h3, h4, h5, h6, p, li) { color: inherit; }
.gp-legacy h1 { font-size: var(--gp-fs-3xl); font-weight: 500; margin: var(--gp-s2) 0 var(--gp-s3); }
.gp-legacy h2 { font-size: var(--gp-fs-2xl); font-weight: 500; margin: var(--gp-s6) 0 var(--gp-s3); }
.gp-legacy h3 { font-size: var(--gp-fs-xl); font-weight: 500; }
.gp-legacy h4 { font-size: var(--gp-fs-lg); font-weight: 600; }
.gp-legacy h5, .gp-legacy h6 { font-size: var(--gp-fs-md); font-weight: 600; }
.gp-legacy .light { font-weight: 400; color: var(--gp-muted); }
.gp-legacy [style*="background"] .light { color: inherit; opacity: .8; }
.gp-legacy .product-title h1, .gp-legacy .product-title h2, .gp-legacy h2.name, .gp-legacy h1.name { margin-top: 0; }
/* main.css links are #00becc (2.3:1 on white, fails AA) */
.gp-legacy a { color: var(--gp-gold-ink); text-decoration: underline; text-underline-offset: 2px; }
.gp-legacy a:hover { color: var(--gp-ink); }
.gp-legacy a:has(> img), .gp-legacy a[style*="background"] { text-decoration: none; }
.gp-legacy img { max-width: 100%; height: auto; }
.gp-legacy hr { border: 0; border-top: 1px solid var(--gp-line); margin: var(--gp-s5) 0; }
.gp-legacy .btn { font-family: var(--gp-font); background: #fff; color: var(--gp-gold-ink); border: 1px solid var(--gp-gold-dark); box-shadow: none; text-shadow: none; border-radius: var(--gp-radius); padding: 8px 14px; }
.gp-legacy .btn:hover { background: var(--gp-gold-wash); color: var(--gp-ink); }
.gp-legacy .btn-primary, .gp-legacy .btn-warning { background: var(--gp-gold); color: #000; }
.gp-legacy table { font-size: var(--gp-fs-sm); }
.gp-legacy .table th, .gp-legacy .table td { border-color: var(--gp-line); }
.gp-legacy .table thead th { background: var(--gp-panel); color: var(--gp-ink); font-size: var(--gp-fs-xs); text-transform: uppercase; letter-spacing: .06em; }
.gp-legacy .product-description p { margin-bottom: var(--gp-s3); }
.gp-legacy .picture p { font-size: var(--gp-fs-sm); line-height: 1.35; margin: 6px 0 0; }

/* product tables (legacy SKU rows with a live buy slot) */
.gp-legacy table[data-gp-products] { width: 100% !important; border-collapse: collapse; margin: var(--gp-s3) 0 var(--gp-s4); border: 1px solid var(--gp-line); border-radius: var(--gp-radius-lg); background: #fff; }
.gp-legacy table[data-gp-products] td, .gp-legacy table[data-gp-products] th { padding: 10px 12px; border-top: 1px solid var(--gp-line); vertical-align: middle; font-size: var(--gp-fs-sm); line-height: 1.45; }
.gp-legacy table[data-gp-products] tr:first-child td { border-top: 0; }
.gp-legacy table[data-gp-products] tr:hover td { background: #fdfbf6; }
/* SKU: one style for every product row (converter wraps it in .gp-sku) */
.gp-legacy table[data-gp-products] .gp-sku { display: block; margin-bottom: 2px; font-size: var(--gp-fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--gp-ink); font-weight: 700; }
.gp-legacy table[data-gp-products] td p { margin: 0; font-size: inherit; line-height: inherit; }
.gp-legacy table[data-gp-products] td:first-child b:empty, .gp-legacy table[data-gp-products] td:first-child b > span:empty { display: none; }
.gp-legacy table[data-gp-products] td:last-child { text-align: right; white-space: nowrap; }
.gp-legacy table[data-gp-products] br + br { display: none; }

/* buy slot */
.gp-slot { display: inline-flex; align-items: center; justify-content: flex-end; gap: var(--gp-s3); min-height: 40px; vertical-align: middle; }
.gp-slot__price { font-weight: 700; color: var(--gp-ink); font-variant-numeric: tabular-nums; font-size: var(--gp-fs-md); }
.gp-slot__price s { color: var(--gp-muted); font-weight: 400; font-size: var(--gp-fs-xs); }
.gp-slot__price.is-loading { color: transparent; background: linear-gradient(90deg, #f2ede2, #faf7f0, #f2ede2); background-size: 200% 100%; animation: gp-shimmer 1.2s infinite; border-radius: 3px; }
.gp-ds .gp-slot .gp-btn { min-height: 38px; padding: 6px 16px; font-size: var(--gp-fs-sm); }
.gp-slot__note { font-size: var(--gp-fs-xs); color: var(--gp-muted); }
/* products with options (e.g. gift card amounts): official Buy Button rendered without its iframe styles */
.gp-slot.is-multi { display: block; min-width: 220px; text-align: left; }
.gp-ds .shopify-buy__product .visuallyhidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gp-ds .shopify-buy__select-icon { display: none !important; }   /* SDK arrow icon renders huge without SDK styles; the native select arrow is used */
.gp-slot.is-multi .shopify-buy__product { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--gp-s2); max-width: 360px; margin: 0; }
.gp-slot.is-multi .shopify-buy__product__price, .gp-slot.is-multi .shopify-buy__product__variant-selectors { flex: 1 1 100%; }
.gp-slot.is-multi .shopify-buy__product__actual-price { display: block; margin: 0; font-weight: 700; font-size: var(--gp-fs-lg); color: var(--gp-ink); }
.gp-slot.is-multi .shopify-buy__product-img-wrapper, .gp-slot.is-multi .shopify-buy__product__title { display: none; }
.gp-slot.is-multi label.shopify-buy__option-select__label.visuallyhidden { position: static !important; display: block; width: auto; height: auto; margin: 0 0 4px; clip: auto; overflow: visible; font-size: var(--gp-fs-xs); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gp-muted); }
.gp-slot.is-multi select.shopify-buy__option-select__select { box-sizing: border-box; width: 100%; height: 44px; margin: 0; padding: 0 10px; font: inherit; background: #fff; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius); }
.gp-slot.is-multi .shopify-buy__quantity-container { display: flex; flex: 0 0 auto; }
.gp-slot.is-multi input.shopify-buy__quantity { box-sizing: border-box; width: 64px; height: 44px; margin: 0; padding: 0 6px; line-height: normal; text-align: center; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius); }
.gp-slot.is-multi .shopify-buy__btn-wrapper { flex: 1 1 auto; margin: 0; }
.gp-slot.is-multi .shopify-buy__btn { width: 100%; min-height: 44px; border-radius: var(--gp-radius); border: 1px solid var(--gp-gold-dark); background: var(--gp-gold); color: #000; font: 600 var(--gp-fs-sm)/1 var(--gp-font); cursor: pointer; }
.gp-slot.is-multi .shopify-buy__btn:hover { background: var(--gp-gold-light); }
.gp-slot.is-multi .shopify-buy__btn:focus-visible, .gp-slot.is-multi select:focus-visible, .gp-slot.is-multi input:focus-visible { outline: none; box-shadow: var(--gp-focus); }

/* shared pre-footer */
.gp-prefooter { background: var(--gp-panel); border-top: 1px solid var(--gp-line); padding: var(--gp-s7) 0 var(--gp-s6); margin-top: var(--gp-s7); }
.gp-prefooter__grid { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: var(--gp-s6); }
.gp-ds .gp-prefooter__h { font-size: var(--gp-fs-md); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 var(--gp-s3); }
.gp-prefooter ul { list-style: none; margin: 0; padding: 0; }
.gp-prefooter li { margin: 0 0 8px; font-size: var(--gp-fs-sm); }
.gp-prefooter p { font-size: var(--gp-fs-sm); color: var(--gp-muted); }
.gp-prefooter__form { display: flex; gap: var(--gp-s2); margin: 0; }
.gp-prefooter__form input { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--gp-line-strong); border-radius: var(--gp-radius); font: var(--gp-fs-md) var(--gp-font); box-shadow: none; }
.gp-toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px); background: var(--gp-ink); color: #fff; padding: 10px 18px; border-radius: 999px; font: var(--gp-fs-sm) var(--gp-font); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 1050; }
.gp-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 767px) {
  .gp-ds.gp-legacy { margin-left: 0; margin-right: 0; }
  .gp-prefooter { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .gp-prefooter__grid { grid-template-columns: 1fr; gap: var(--gp-s5); }
  .gp-legacy h1 { font-size: var(--gp-fs-2xl); }
  /* product rows become cards: description on top, price + Add underneath */
  .gp-legacy table[data-gp-products], .gp-legacy table[data-gp-products] tbody { display: block; border: 0; background: transparent; }
  .gp-legacy table[data-gp-products] thead { display: none; }
  .gp-legacy table[data-gp-products] tr { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--gp-line); border-radius: var(--gp-radius-lg); background: #fff; }
  .gp-legacy table[data-gp-products] td { display: block; border: 0; padding: 0; flex: 1 1 auto; }
  .gp-legacy table[data-gp-products] td:first-child { flex-basis: 100%; }
  .gp-legacy table[data-gp-products] td:last-child { flex-basis: 100%; text-align: left; }
  .gp-legacy table[data-gp-products] td:last-child .gp-slot { justify-content: space-between; width: 100%; }
  /* rows with several sizes (e.g. Mixol 20 ml / 200 ml / 500 ml) put each buy slot on its own line */
  .gp-legacy table[data-gp-products] td:has(.gp-slot) { flex-basis: 100%; text-align: left; }
  .gp-legacy table[data-gp-products] .gp-slot { display: flex; justify-content: space-between; width: 100%; margin-top: 6px; }
  .gp-legacy table[data-gp-products] td img { width: 64px; height: 64px; object-fit: cover; }
}

/* Align design-system content with the legacy Bootstrap 2 .container (1170 / 940 / 724 px) */
@media (min-width: 1200px) { .gp-ds .gp-wrap { max-width: calc(1170px + 2 * var(--gp-s4)); } }
@media (min-width: 980px) and (max-width: 1199px) { .gp-ds .gp-wrap { max-width: calc(940px + 2 * var(--gp-s4)); } }
@media (min-width: 768px) and (max-width: 979px) { .gp-ds .gp-wrap { max-width: calc(724px + 2 * var(--gp-s4)); } }

/* main.css greys that fail contrast inside content: .product-description (#999, 2.8:1), .metadata, .table-items th */
.gp-legacy .product-description, .gp-legacy .metadata, .gp-legacy .table-items th, .gp-legacy .featured-items .product p { color: var(--gp-text); }
/* Pre-footer bleed: legacy pages sit inside the 20px body padding; design-system pages already bleed */
@media (max-width: 767px) {
  .gp-ds:not(.gp-legacy) .gp-prefooter { margin-left: 0; margin-right: 0; }
}

.gp-legacy .opening-time .week-day.closed dt, .gp-legacy .opening-time .week-day.closed dd { color: var(--gp-muted); }
@media (max-width: 767px) {
  /* wide reference tables (colour charts, specs) scroll sideways inside the page instead of widening it */
  .gp-legacy table:not([data-gp-products]) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ---------- video (click-to-play YouTube, gp/js/gp-video.js) ---------- */
.gp-ds .video-container { width: 100%; margin: 0 0 var(--gp-s3); }
.gp-ds a.gp-video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--gp-radius); background: #111; margin: 0 0 var(--gp-s3); }
.gp-ds a.gp-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; border: 0; transition: opacity .2s; }
.gp-ds a.gp-video:hover img, .gp-ds a.gp-video:focus-visible img { opacity: .85; }
.gp-ds a.gp-video:focus-visible { outline: 3px solid var(--gp-gold); outline-offset: 2px; }
.gp-ds .gp-video__play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: rgba(20,18,15,.82); }
.gp-ds .gp-video__play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.gp-ds a.gp-video:hover .gp-video__play { background: var(--gp-gold); }
.gp-ds a.gp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
