/* Product pages and the /gold-cards/ index, in the plain pages' type and colours (page.css). The studio controls and
   basket (shared/studio.css) are themed through the --gw-* variables. */
:root { --gw-panel: #fffdf9; --gw-text: #16130f; --gw-muted: #6d6458; --gw-accent: #16130f; --gw-accent-ink: #fff; --gw-line: rgba(30, 24, 16, .2); --gw-radius: 2px; --gw-font: 'DM Sans', system-ui, sans-serif; }
.pg--wide { max-width: 1140px; padding-top: 22px; }

.pd-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.pd-crumbs a { color: var(--muted); }
.pd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.pd-gallery { position: sticky; top: 16px; }
.pd-main { background: #fff; border: 1px solid var(--line); }
.pd-main img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; background: #fff; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.pd-thumbs button { padding: 0; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pd-thumbs button[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pd-thumbs button:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.pd-thumbs img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.pd-preview { margin: 4px 0 18px; }
.pd-preview__label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pd-preview__card { display: grid; place-items: center; min-height: 180px; padding: 26px 20px; background: #fff; border: 1px solid var(--line); box-shadow: inset 10px 0 18px -14px rgba(0, 0, 0, .25); }
.pd-preview__text { margin: 0; text-align: center; color: #1c1915; line-height: 1.2; overflow-wrap: anywhere; }
.pd-preview__text--script { font: 400 34px/1.15 'Great Vibes', cursive; }
.pd-preview__text--classic { font: italic 600 28px/1.15 'Cormorant Garamond', Georgia, serif; }
.pd-preview__text--modern { font: 500 21px/1.35 'DM Sans', system-ui, sans-serif; }
.pd-preview__text.is-gold { color: #a8792b; }
.pd-preview__text.is-empty { color: #b9b1a5; }

.pd-buy h1 { font: 500 clamp(32px, 4.4vw, 46px)/1.08 'Bodoni Moda', Georgia, serif; margin: 6px 0 10px; }
.pd-buy h1 span { display: block; margin-top: 8px; font: 500 20px/1.3 'DM Sans', sans-serif; color: var(--gold); letter-spacing: 0; }
.pd-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pd-line { margin: 0 0 18px; color: var(--ink-2); }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin: 0; font: 500 40px/1 'Bodoni Moda', Georgia, serif; }
.pd-price small { font: 600 13px 'DM Sans', sans-serif; color: var(--ok); }
.pd-ship { margin: 10px 0 22px; font-size: 15px; color: var(--ink-2); }
.pd-field { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.pd-field legend, .pd-label { display: block; padding: 0; margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pd-label small { float: right; letter-spacing: 0; font-weight: 500; text-transform: none; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pd-chips > a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 1px solid var(--gw-line); color: var(--ink); text-decoration: none; font-size: 15px; }
.pd-chips > a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pd-chips .gw-opt span { font-size: 15px; background: #fff; }
.pd-chips .gw-opt input:checked + span { background: var(--gw-accent); }
.pd-note { margin: -6px 0 18px; font-size: 15px; color: var(--ink-2); }
.pd-engrave textarea { display: block; width: 100%; min-height: 110px; margin: 0 0 18px; padding: 12px 14px; font: 17px/1.5 'DM Sans', system-ui, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--gw-line); border-radius: 2px; resize: vertical; }
.pd-engrave textarea:focus { outline: none; border-color: var(--gold-l); box-shadow: 0 0 0 3px rgba(201, 162, 78, .25); }
.pd-seal { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.pd-seal input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.pd-small { font-size: 14px; color: var(--muted); margin: 4px 0 14px; }
.pd .gw-error { color: #9a2f1f; background: #fbe6e1; border-radius: 2px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.pd-add, .pd-view { min-height: 54px; padding: 0 30px; font: 700 14px 'DM Sans', sans-serif; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.pd-add { flex: 1 1 220px; border: 0; color: #1d1408; background: linear-gradient(100deg, #b8862e, #f2d488 35%, #c9973a 60%, #f6dc95 85%, #b8862e); }
.pd-add:hover { filter: brightness(1.04); }
.pd-view { border: 1px solid var(--ink); background: transparent; color: var(--ink); }
.pd-add:focus-visible, .pd-view:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.pd-trust { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.pd-trust li { padding: 4px 0 4px 26px; position: relative; }
.pd-trust li::before { content: ''; position: absolute; left: 4px; top: 12px; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }

.pd-more { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--line); }
.pd-more h2, .pd-others h2 { font: 500 28px/1.2 'Bodoni Moda', Georgia, serif; margin: 34px 0 12px; }
.pd-facts { margin: 18px 0 0; }
.pd-facts div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pd-facts dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.pd-facts dd { margin: 0; color: var(--ink-2); }
.pd-others { margin-top: 40px; }
.pd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 18px 0 28px; }
.pd-grid--index { margin-top: 30px; }
.pd-tile { display: block; color: var(--ink); text-decoration: none; }
.pd-tile img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); transition: transform .3s; }
.pd-tile:hover img { transform: translateY(-3px); }
.pd-tile b { display: block; margin-top: 12px; font: 500 20px/1.3 'Bodoni Moda', Georgia, serif; }
.pd-tile span { display: block; color: var(--muted); font-size: 15px; }
.pd-tile .pd-from { margin-top: 2px; color: var(--ink); font-weight: 600; }
.pg--wide .lede { max-width: 62ch; }

@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; gap: 26px; }
  .pd-gallery { position: static; }
  .pd-more { grid-template-columns: 1fr; gap: 0; }
  .pd-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 520px) {
  .pd-facts div { grid-template-columns: 1fr; gap: 2px; }
  .pd-price { font-size: 34px; }
  .pd-tile b { font-size: 17px; }
  .pd-more table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pd-tile img { transition: none; } }
