/* Product page + personaliser styles (SPEC §3.3–3.5, §4.4, §5 #5). Owner: pdp builder.
   Builds on base.css tokens and components (theme/BUILD-CONTRACT.md §5). Loaded after base + shop on product pages only.
   Body classes from inc/pdp.php: pdp-personal | pdp-plain, pdp-tpl-{letter|name|board|balloon|favour|set}, pdp-live, pdp-qty.
   WooCommerce's own CSS (floats, clearfix pseudos, pills) is undone here with matching or higher specificity. */

/* ---------- shell: media 7fr / summary 5fr ---------- */
.single-product .shop-main { padding-top: clamp(16px, 2.5vw, 28px); }
.pdp-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; margin-top: 20px; }
.woocommerce div.product .pdp-top div.images,
.woocommerce div.product .pdp-top div.summary { float: none; width: auto; margin: 0; }
.woocommerce div.product .pdp-top div.images,
.pdp-media--stage { position: sticky; top: var(--sticky-top); }
.woocommerce div.product .pdp-top div.summary { width: 100%; max-width: 560px; min-width: 0; }
@media (max-width: 1023px) {
  .pdp-top { display: block; margin-top: 12px; }
  .woocommerce div.product .pdp-top div.images { position: static; }
  .woocommerce div.product .pdp-top div.summary { max-width: none; margin-top: 24px; }
}

/* ---------- summary head ---------- */
.pdp-eyebrow { margin-bottom: 12px; }
.pdp-busy { display: inline-block; margin-inline-start: 10px; padding: 4px 8px; background: var(--ink); color: var(--paper); border-radius: var(--r-1); letter-spacing: .08em; vertical-align: 1px; }
html[lang="ar"] .pdp-busy { font: 500 12px/1.4 var(--f-ui); }
.pdp-points .pdp-points__busy { color: var(--ink); font-weight: 600; }
.woocommerce div.product .product_title { margin: 0; font: 400 44px/1.08 var(--f-display); letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
body.pdp-plain div.product .product_title { font-size: 40px; }
.woocommerce div.product p.price.pdp-price { margin: 12px 0 0; font: 400 28px/1.2 var(--f-text); color: var(--ink); font-variant-numeric: tabular-nums; }
.pdp-lede { margin-top: 12px; color: var(--ink-2); max-width: 46ch; }
.woocommerce div.product p.stock { margin: 16px 0 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 599px) {
  .woocommerce div.product .product_title, body.pdp-plain div.product .product_title { font: 400 30px/1.15 var(--f-text); letter-spacing: 0; }
  .woocommerce div.product p.price.pdp-price { font-size: 24px; }
}
html[lang="ar"] .woocommerce div.product .product_title { font: 600 clamp(34px, 1.8rem + 1vw, 46px)/1.3 var(--f-display); letter-spacing: 0; }
html[lang="ar"] .woocommerce div.product p.price.pdp-price { font: 600 30px/1.3 var(--f-text); }

/* ---------- form.cart: steps, review, buttons ---------- */
.woocommerce div.product form.cart { margin: 28px 0 0; }
.woocommerce div.product form.cart::before, .woocommerce div.product form.cart::after { content: none; }
.woocommerce div.product form.cart .button { float: none; }
.woocommerce div.product form.cart div.quantity { float: none; margin: 0; }
.woocommerce div.product form.cart .single_add_to_cart_button, html body.n71 .n71-buy-now { width: 100%; }
/* Buy now is the ghost (§3.4): base's "button.button.alt" ink fill (!important, higher specificity) otherwise wins */
html body.n71 div.product form.cart button.n71-buy-now.button.alt { background: transparent !important; color: var(--ink) !important; border: 1px solid var(--ink) !important; }
html body.n71 div.product form.cart button.n71-buy-now.button.alt:hover:not(:disabled):not([aria-disabled="true"]) { background: rgb(42 33 27 / .06) !important; }

body.pdp-personal div.product form.cart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 24px; }
body.pdp-personal div.product form.cart > * { grid-column: 1 / -1; }
body.pdp-personal div.product form.cart > .single_add_to_cart_button { grid-column: 1; }
body.pdp-personal div.product form.cart > .n71-buy-now { grid-column: 2; }
body.pdp-personal:not(.pdp-qty) div.product form.cart .quantity { display: none !important; } /* qty is 1; favours keep it */
body.pdp-personal div.product form.cart .quantity { justify-self: start; }

body.pdp-plain div.product form.cart:not(.variations_form),
body.pdp-plain div.product .woocommerce-variation-add-to-cart { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
body.pdp-plain div.product form.cart .pdp-after { grid-column: 1 / -1; }
@media (max-width: 599px) {
  body.pdp-personal div.product form.cart { grid-template-columns: minmax(0, 1fr); }
  body.pdp-personal div.product form.cart > .n71-buy-now { grid-column: 1; }
  body.pdp-plain div.product form.cart:not(.variations_form),
  body.pdp-plain div.product .woocommerce-variation-add-to-cart { grid-template-columns: auto minmax(0, 1fr); }
  body.pdp-plain div.product form.cart .n71-buy-now { grid-column: 1 / -1; }
}

/* the step block (§3.4) */
.pdp-form { display: grid; }
.pdp-step { padding: 24px 0; border-top: 1px solid var(--line); }
.pdp-step__head { float: left; width: 100%; display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; } /* floated: no fieldset notch */
html[dir="rtl"] .pdp-step__head { float: right; }
.pdp-step__head + * { clear: both; }
.pdp-step__n { flex: none; width: 26px; font: 400 20px/1 var(--f-text); color: var(--gold-text); font-variant-numeric: lining-nums; }
.pdp-step__title { font: 600 15px/1.3 var(--f-ui); color: var(--ink); }
html[lang="ar"] .pdp-step__title { font-weight: 500; }
.pdp-step__body { display: grid; gap: 12px; margin-inline-start: 40px; min-width: 0; }
@media (max-width: 599px) { .pdp-step__body { margin-inline-start: 0; } }

/* 1. design chips: links to the sibling designs */
.pdp-designs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pdp-design { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-1); color: var(--ink); text-decoration: none; }
html[dir="rtl"] .pdp-design { padding: 6px 6px 6px 10px; }
.pdp-design:hover { border-color: var(--ink-2); }
.pdp-design[aria-current] { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 2px; }
.pdp-design[aria-current]:focus-visible, .pdp-tab[aria-pressed="true"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 5px; }
.pdp-design img { flex: none; width: 56px; height: 56px; object-fit: cover; background: var(--paper-2); }
.pdp-design__txt { display: grid; gap: 2px; min-width: 0; }
.pdp-design__title { font: 500 14px/1.3 var(--f-ui); }
.pdp-design__price { font-size: 13px; line-height: 1.3; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (max-width: 1023px) {
  .pdp-designs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: -8px; padding: 8px; }
  .pdp-designs::-webkit-scrollbar { display: none; }
  .pdp-design { flex: none; width: 96px; flex-direction: column; align-items: stretch; gap: 6px; min-height: 0; padding: 0 0 6px; border: 0; }
  html[dir="rtl"] .pdp-design { padding: 0 0 6px; }
  .pdp-design img { width: 96px; height: 64px; }
  .pdp-design__title { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pdp-design__price { font-size: 12px; }
}

/* 2. name (+ letter chip) */
.pdp-name-meta { display: flex; justify-content: space-between; gap: 16px; }
.pdp-initial { display: grid; gap: 10px; }
.pdp-initial__chip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 15px; color: var(--ink-2); }
.pdp-initial__val { font: 600 17px/1 var(--f-ui); color: var(--ink); }
.pdp-initial__val.is-muted { font-weight: 500; color: var(--ink-2); }
.pdp-initial__change { min-width: 44px; padding: 12px 2px; margin: -12px 0; font: inherit; color: var(--ink); }
.js .pdp-letters:not(.is-open) { display: none; }
.pdp-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; }
.pdp-letter { position: relative; }
.pdp-letter input, .pdp-font input, .pdp-seg__opt input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pdp-letter span { display: grid; place-items: center; height: 44px; border: 1px solid var(--line); border-radius: var(--r-1); font: 500 15px/1 var(--f-ui); cursor: pointer; }
.pdp-letter span:hover { border-color: var(--ink-2); }
.pdp-letter input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pdp-letter input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* 3. fonts (SPEC §8/§9): each chip shows the name or the letter in its own face; faces that cannot set the script are hidden */
.pdp-fonts { display: grid; gap: 8px; }
.pdp-fonts + .pdp-fonts { margin-top: 8px; }
.pdp-fonts__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pdp-font { position: relative; min-width: 0; }
.pdp-font[hidden] { display: none; }
.pdp-font__box { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 80px; padding: 10px 8px 8px; border: 1px solid var(--line); border-radius: var(--r-1); cursor: pointer; text-align: center; }
.pdp-font__box:hover { border-color: var(--ink-2); }
.pdp-font input:checked + .pdp-font__box { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 2px; }
.pdp-font input:focus-visible + .pdp-font__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.pdp-font input:checked:focus-visible + .pdp-font__box { outline-width: 3px; outline-offset: 4px; }
.pdp-font__sample { max-width: 100%; overflow: hidden; white-space: nowrap; font-size: 26px; line-height: 1.4; color: var(--ink); }
.pdp-font__sample[data-font-sample="letter"] { font-size: 46px; line-height: 1.15; }
.pdp-fonts:has([data-font-sample="letter"]) .pdp-fonts__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pdp-font__name { font: 500 12px/1.3 var(--f-ui); color: var(--ink-2); }
@media (max-width: 599px) { .pdp-font__sample { font-size: 22px; } .pdp-font__sample[data-font-sample="letter"] { font-size: 40px; } }

/* 4. Solid / Outline, stars and clouds */
.pdp-deco { display: grid; gap: 8px; margin-top: 8px; }
.pdp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--field); border-radius: var(--r-1); overflow: hidden; }
.pdp-seg__opt { position: relative; }
.pdp-seg__opt span { display: flex; align-items: center; justify-content: center; height: 46px; font: 500 15px/1 var(--f-ui); cursor: pointer; transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.pdp-seg__opt input:checked + span { background: var(--ink); color: var(--paper); }
.pdp-seg__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -5px; }
.pdp-seg__opt input:checked:focus-visible + span { outline-color: var(--paper); }

/* 5. colours + suggested pairs */
.pdp-step--colour .pdp-step__body { gap: 16px; }
.pdp-pairs { display: grid; gap: 8px; }
.pdp-pairs__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-pair { min-height: 44px; }
.pdp-pair__dots { display: inline-flex; gap: 3px; }
.pdp-pair__dots i { width: 14px; height: 14px; border-radius: 999px; background: var(--swatch); }
.pdp-pair__dots i[data-c="pearl"], .pdp-pair__dots i[data-c="sand"] { border: 1px solid var(--field); }
.pdp-note { color: var(--error); }

/* 6. birth details */
.pdp-details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.pdp-details--one { grid-template-columns: minmax(0, 260px); }
.pdp-details input[type="date"], .pdp-details input[type="time"] { -webkit-appearance: none; appearance: none; line-height: 46px; text-align: start; }

/* mobile: every input clears the pinned stage (SPEC §3.3) */
@media (max-width: 1023px) {
  .pdp-form input, .pdp-form select, .pdp-form :is(a, button), #design { scroll-margin-top: calc(var(--stage-h, 0px) + 12px); }
}

/* review, reason, after the buttons */
@media (min-width: 1024px) { #design { scroll-margin-top: 100vh; } } /* the form starts ~400px down: lands at the top */
.pdp-review { padding-top: 20px; border-top: 1px solid var(--ink); }
.pdp-review__line { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pdp-review__k { font-weight: 500; color: var(--ink); }
.pdp-reason { margin: 0; }
.pdp-after { display: grid; gap: 16px; margin-top: 12px; }
.pdp-after .pdp-points { margin: 0; }
.pdp-wa { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; }
.pdp-wa a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; }
.pdp-wa a span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.pdp-wa a:hover span { text-decoration-thickness: 2px; }
.pdp-wa i { font-size: 20px; }

/* ---------- candles: scent chips + bag/set rows (§4.4) ---------- */
.woocommerce div.product form.cart .variations { display: block; margin: 0 0 24px; border: 0; }
.woocommerce div.product form.cart .variations tbody,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td { display: block; padding: 0; line-height: 1.4; }
.woocommerce div.product form.cart .variations th.label { margin-bottom: 10px; text-align: start; }
.woocommerce div.product form.cart .variations label { font: 500 14px/1.4 var(--f-ui); color: var(--ink-2); }
.woocommerce div.product form.cart .variations select.pdp-chipped { position: absolute; width: 1px; height: 1px; min-height: 0; min-width: 0; padding: 0 !important; margin: 0; opacity: 0; pointer-events: none; clip-path: inset(50%); }
.woocommerce div.product form.cart .reset_variations { display: none !important; }
.pdp-scents { display: flex; flex-wrap: wrap; gap: 8px; }
.woocommerce div.product .single_variation_wrap .woocommerce-variation-price,
.woocommerce div.product .single_variation_wrap .woocommerce-variation-description { display: none; } /* the button carries the live price; the set rows describe the set */
.woocommerce div.product .single_variation_wrap .woocommerce-variation-availability p { margin: 0 0 12px; }
.pdp-sets { display: grid; gap: 8px; margin: 0 0 24px; }
.pdp-set { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-1); color: var(--ink); text-decoration: none; }
.pdp-set:hover { border-color: var(--ink-2); }
.pdp-set[aria-current] { border-color: var(--ink); background: var(--paper-2); }
.pdp-set__txt { display: grid; gap: 2px; min-width: 0; }
.pdp-set__title { font: 400 18px/1.3 var(--f-text); }
.pdp-set__desc { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pdp-set__price { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- WooCommerce gallery (every page without the live stage) ---------- */
.woocommerce div.product div.images .woocommerce-product-gallery__image img { aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
body.pdp-plain div.product div.images .woocommerce-product-gallery__image img { aspect-ratio: 1 / 1; }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.woocommerce div.product div.images .flex-control-thumbs li { flex: none; float: none; width: 72px; }
.woocommerce div.product div.images .flex-control-thumbs li img { aspect-ratio: 1; object-fit: cover; opacity: .6; transition: opacity var(--dur-1) var(--ease); }
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active { opacity: 1; outline: 1px solid var(--ink); outline-offset: 2px; }
.woocommerce div.product div.images .woocommerce-product-gallery__trigger { top: 12px; right: 12px; width: 44px; height: 44px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-1); }
html[dir="rtl"] .woocommerce div.product div.images .woocommerce-product-gallery__trigger { right: auto; left: 12px; }

/* ---------- the live stage (§3.3, §3.5) ---------- */
.pdp-stage { position: relative; height: min(calc(100svh - var(--sticky-top) - 32px - 80px), 760px); min-height: 440px; background: var(--sand); overflow: hidden; }
.pdp-stage .pdp-stage__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 60%; } /* beats .woocommerce img { height: auto } */
.pdp-stage__render, .pdp-layer { position: absolute; inset: 0; }
.pdp-layer svg { width: 100%; height: 100%; max-width: none; overflow: visible; }
.pdp-stage[data-mode="photo"] .pdp-stage__render, .pdp-stage[data-mode="photo"] .pdp-label { display: none; }
.pdp-stage[data-mode="design"] .pdp-stage__photo { display: none; }
.pdp-layer.is-in { animation: pdp-in 200ms var(--ease) both; }       /* Solid/Outline crossfade */
.pdp-layer.is-settle { animation: pdp-settle 120ms var(--ease); }    /* colour, letter, style changes */
.pv-drop { animation: pdp-drop 280ms var(--ease) both; }             /* first render: the name drops into place */
@keyframes pdp-in { from { opacity: 0; } }
@keyframes pdp-settle { from { opacity: .6; } }
@keyframes pdp-drop { from { opacity: 0; transform: translateY(-14px); } }
.pdp-label { position: absolute; inset-inline-start: 24px; bottom: 24px; max-width: calc(100% - 48px); display: grid; gap: 2px; pointer-events: none; }
.pdp-label__1 { font: 400 18px/1.3 var(--f-text); color: var(--ink); }
.pdp-label__2, .pdp-label__3 { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pdp-tabs { display: flex; gap: 8px; margin: 8px -8px 0; padding: 8px; overflow-x: auto; scrollbar-width: none; }
.pdp-tabs::-webkit-scrollbar { display: none; }
.pdp-tab { flex: none; display: inline-flex; align-items: center; gap: 12px; height: 64px; min-width: 64px; border: 1px solid var(--line); border-radius: var(--r-1); background: var(--paper-2); overflow: hidden; }
.pdp-tab img { width: 62px; height: 62px; object-fit: cover; }
.pdp-tab--design { padding-inline-end: 16px; font: 500 14px/1.2 var(--f-ui); color: var(--ink); }
.pdp-tab__mini { display: grid; place-items: center; width: 62px; height: 100%; background: var(--sand); font: 900 34px/1 var(--f-initial), var(--f-ui); color: var(--ink); }
.pdp-tab[aria-pressed="true"] { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: 2px; }
@media (max-width: 1023px) {
  body.pdp-live .pdp-top { --stage-h: clamp(160px, 40svh, 360px); }
  body.pdp-live:has(.pdp-form input:is([type="text"], [type="date"], [type="time"]):focus) .pdp-top { --stage-h: 180px; } /* snaps, no animation */
  .pdp-media--stage { display: contents; } /* the stage pins against .pdp-top, not its own wrapper */
  /* top 0 while the header is hidden (typing, scrolling down); under it when it slides back in */
  .pdp-stage { position: sticky; top: calc(var(--sticky-top) - 16px); z-index: 2; height: var(--stage-h); min-height: 0; margin-inline: calc(-1 * var(--gutter)); transition: top 240ms var(--ease); }
  .pdp-label { inset-inline-start: var(--gutter); bottom: 12px; }
  .pdp-label__1 { font-size: 15px; }
  .pdp-label__3 { display: none; }
  @media (orientation: landscape) and (max-height: 500px) {
    body.pdp-live .pdp-top, body.pdp-live:has(.pdp-form input:is([type="text"], [type="date"], [type="time"]):focus) .pdp-top { --stage-h: 160px; }
  }
  .pdp-label__2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pdp-tabs { margin-top: 4px; }
  .pdp-tab { height: 52px; min-width: 52px; }
  .pdp-tab img { width: 50px; height: 50px; }
  .pdp-tab__mini { width: 50px; font-size: 28px; }
}

/* ---------- mobile sticky buy bar ---------- */
.pdp-bar__text { display: grid; gap: 2px; }
.pdp-bar__total { font: 500 16px/1.2 var(--f-ui); font-variant-numeric: tabular-nums; }
.pdp-bar__status { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; color: var(--ink-2); }

/* ---------- below the fold (§4.4) ---------- */
.pdp-below { display: grid; gap: clamp(48px, 6vw, 72px); max-width: 1100px; margin: clamp(64px, 8vw, 96px) 0 0; margin-inline: 0 auto; }
.pdp-h, .single-product .related.products > h2 { margin-bottom: 24px; font: 400 30px/1.2 var(--f-text); letter-spacing: 0; }
html[lang="ar"] .pdp-h, html[lang="ar"] .single-product .related.products > h2 { font: 600 32px/1.3 var(--f-text); }
.pdp-about__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.pdp-about__list dt { font-size: 13px; color: var(--ink-2); }
.pdp-about__list dd { margin: 0; font: 400 18px/1.4 var(--f-text); }
.pdp-after-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.pdp-after-list li { display: grid; gap: 12px; align-content: start; font-size: 17px; line-height: 1.5; }
.pdp-after-list__n { font: 400 32px/1 var(--f-text); color: var(--gold); font-variant-numeric: lining-nums; }
@media (max-width: 767px) {
  .pdp-after-list { grid-template-columns: 1fr; gap: 16px; }
  .pdp-after-list li { grid-template-columns: 40px minmax(0, 1fr); align-items: baseline; font-size: 16px; }
  .pdp-after-list__n { font-size: 26px; }
}
.pdp-accs { border-top: 1px solid var(--line); }
.pdp-accs .prose { font-size: 16px; }
.pdp-howto { display: grid; gap: 8px; margin: 0 0 12px; padding-inline-start: 1.2em; }

/* parts/faq.php sits inside the product page's own .container: no second gutter, same 1100px column as above (§4.4) */
.single-product .faq { max-width: 1100px; margin-inline: 0 auto; }
.single-product .faq > .container { padding-inline: 0; }

/* related products ("Pairs well with"): layout only, the cards are shop.css */
.single-product .related.products { margin-top: clamp(72px, 9vw, 120px); }
.single-product .related.products > ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; margin: 0; } /* row gaps would open up inside the card subgrid; shop.css spaces rows with --card-gap */
.single-product .related.products > ul.products::before, .single-product .related.products > ul.products::after { content: none; }
body.single-product .related ul.products li.product { float: none; width: auto; margin: 0; }
@media (max-width: 1023px) { .single-product .related.products > ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; } }
