﻿/* Ported as-is from design/product-page.html. One thing is deliberately
   NOT carried over, because this page uses the theme's real get_header()
   instead of a second, different header: the entire "HEADER" CSS block
   (.site-header, .brand-mark, .header-nav, .header-icons, .cart-count) 
   that markup is never output (see page-templates/product.php).
   The `body{...}` rule below IS kept  this stylesheet only ever loads on
   the Product template / real single-product pages (see inc/enqueue.php),
   so it safely overrides style.css's global light `body` background just
   on those dark-themed pages, same as assets/css/page-collection.css does
   for the collection page.
   Everything else  values, selectors  is unchanged. */
:root{
  --bg:#0a0908; --bg-2:#100d09; --bg-3:#080706;
  --card-1:#16130e; --card-2:#0d0b08;
  --gold:#C9A236; --gold-light:#C9A236; --cream:#C9A236; --eyebrow:#C9A236; --label-gold:#C9A236; --tab-text:#cfc4ae;
  --ink-1:#f3efe7; --ink-0:#fbf8f2; --ink-2:#b7ada0; --ink-3:#a79d90; --ink-4:#8a8074; --ink-5:#6f665a;
  --on-gold:#000000;
  --hair:rgba(201,162,54,0.16); --hair-2:rgba(201,162,54,0.28); --hair-3:rgba(201,162,54,0.4);
  --border-cream:rgba(232,220,192,0.45);
  --good:#8fae8a;
  --bad:#c9776b;
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
a{ color:inherit; }
img,svg{ display:block; }
body{ background:var(--bg); }

.wrap{ max-width:1600px; margin:0 auto; padding-left:72px; padding-right:72px; }
section{ position:relative; }
.hr-fade{ position:absolute; top:0; left:0; right:0; height:1px; background:linear-gradient(90deg, transparent, rgba(201,162,54,0.5), transparent); }

.eyebrow{ display:flex; align-items:center; gap:14px; font-size:12px; font-weight:500; letter-spacing:4.5px; text-transform:uppercase; color:var(--eyebrow); margin-bottom:16px; }
.eyebrow::before{ content:''; width:30px; height:1px; background:var(--gold); flex-shrink:0; }

.btn-line{
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:10px; width:fit-content;
  padding:12px 26px; border:1px solid var(--border-cream);
  font-size:11.5px; font-weight:500; letter-spacing:1.8px; text-transform:uppercase;
  color:var(--ink-1); text-decoration:none; background:none; cursor:pointer;
  overflow:hidden; z-index:0; transition:color .35s ease, border-color .35s ease;
}
.btn-line::before{ content:''; position:absolute; inset:0; background:#000000; transform:scaleX(0); transform-origin:left; transition:transform .35s ease; z-index:-1; }
.btn-line:hover{ color:#ffffff; border-color:#000000; }
.btn-line:hover::before{ transform:scaleX(1); }
.btn-line svg{ width:14px; height:14px; stroke:currentColor; fill:none; stroke-width:1.5; }

.btn-solid{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 26px; border:1px solid var(--cream); background:var(--cream);
  font-size:11.5px; font-weight:500; letter-spacing:1.8px; text-transform:uppercase;
  color:var(--on-gold); cursor:pointer; transition:background .3s ease, border-color .3s ease, opacity .2s ease;
}
.btn-solid:hover{ background:var(--gold-light); border-color:var(--gold-light); }
.btn-ghost-icon{
  width:44px; height:44px; flex-shrink:0; border:1px solid var(--border-cream); background:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; transition:border-color .25s ease, background .25s ease;
}
.btn-ghost-icon svg{ width:18px; height:18px; stroke:var(--ink-1); fill:none; stroke-width:1.4; transition:stroke .2s ease; }
.btn-ghost-icon.is-active svg{ fill:var(--gold); stroke:var(--gold); }
.btn-ghost-icon:hover{ border-color:var(--gold); }

/* ============================================================ BREADCRUMB ============================================================ */
.crumb-band{ padding:10px 72px 0; }
.crumb{ max-width:1600px; margin:0 auto; display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:11.5px; letter-spacing:0.5px; color:var(--ink-4); }
.crumb a{ text-decoration:none; color:var(--ink-4); transition:color .2s ease; }
.crumb a:hover{ color:var(--gold-light); }
.crumb span.sep{ color:var(--ink-5); }
.crumb span.here{ color:var(--gold-light); }

/* ============================================================ PRODUCT HERO ============================================================ */
.product-hero{ padding:14px 72px 90px; }
.hero-grid{ max-width:1600px; margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:15px; align-items:flex-start; }

/* gallery */
.gallery{ display:flex; gap:16px; position:sticky; top:104px; }
/* contain:size keeps the thumbnail column from adding height, so it
   stretches to the main photo's height and scrolls when a product has
   more thumbnails than fit (all variation photos are included). */
.thumb-col{ display:flex; flex-direction:column; gap:12px; width:78px; flex-shrink:0; contain:size; overflow-y:auto; scrollbar-width:thin; }
.thumb{
  flex-shrink:0; height:78px; border:1px solid var(--hair); background:linear-gradient(150deg, #241f18 0%, #382c1c 55%, #4a3a22 100%);
  display:flex; align-items:center; justify-content:center; cursor:pointer; transition:border-color .2s ease;
}
.thumb svg{ width:26px; height:26px; stroke:rgba(233,221,196,0.7); fill:none; stroke-width:1.2; }
.thumb.is-active{ border-color:var(--gold); }
.main-media{
  position:relative; flex:1; aspect-ratio:4/3; overflow:hidden;
  background:linear-gradient(150deg, #241f18 0%, #382c1c 45%, #4a3a22 100%);
  display:flex; align-items:center; justify-content:center;
}
.main-media svg{ width:150px; height:150px; stroke:rgba(233,221,196,0.85); fill:none; stroke-width:0.9; transition:transform .6s ease; }
.main-media:hover svg{ transform:scale(1.06); }
/* Real-photo hover zoom (assets/js/page-product.js adds/removes
   .is-zoomed on mousemove/mouseleave, and keeps the mouse's position
   within the frame written to the <img>'s own transform-origin on every
   move)  scale itself transitions smoothly on the way in/out, but
   transform-origin is deliberately NOT in that transition list, so
   panning to follow the cursor while already zoomed snaps instantly
   instead of lagging behind it. Desktop/mouse only (that script gates
   this on `hover:hover and pointer:fine`); touch instead gets .media-zoom
   below, opening the full lightbox on tap. */
/* contain (not cover): the 4:3 frame would otherwise crop the top/bottom
   of tall photos (e.g. a ring standing upright). White fills the spare
   space, matching the photos' own white backgrounds. */
.main-media img{ width:100%; height:100%; object-fit:contain; background:#ffffff; transition:transform .35s ease; cursor:zoom-in; }
.main-media.is-zoomed img{ transform:scale(2.4); }
.thumb img{ width:100%; height:100%; object-fit:cover; }
.media-badge{ position:absolute; top:18px; left:18px; padding:6px 14px; background:rgba(10,9,8,0.75); border:1px solid rgba(201,162,54,0.5); font-size:10.5px; font-weight:500; letter-spacing:1.4px; text-transform:uppercase; color:var(--gold-light); }
/* Single enlarge trigger, replacing the old 360deg/"Try it on" tool row
   (both were non-functional demo stubs  the 360 button reset a transform
   that was never actually set, and "Try it on" just alert()'d). Opens
   .pdp-lightbox (built lazily by assets/js/page-product.js). Hidden by
   default (see the `hidden` attribute in template-parts/product-single.php)
   until JS confirms there's a real photo to enlarge  the placeholder/
   no-WooCommerce fallback only has small decorative line-icons, which
   isn't worth a lightbox for. Always visible (not just on hover) so it
   reads as a discoverable "view full-screen" affordance rather than
   something a shopper has to stumble into by hovering first  matters
   most on touch, which has no hover at all to ever reveal it with. */
.media-zoom{
  position:absolute; top:18px; right:18px; z-index:2;
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  background:rgba(10,9,8,0.62); border:1px solid rgba(232,220,192,0.5);
  cursor:pointer; opacity:1; transition:background .2s ease, border-color .2s ease, transform .2s ease;
}
.media-zoom svg{ width:16px; height:16px; stroke:var(--gold-light); fill:none; stroke-width:1.6; }
.media-zoom:hover{ border-color:var(--gold); transform:scale(1.06); }

/* This whole page's own :root block (top of file) is deliberately always
   dark  ported that way from design/product-page.html, and .main-media's
   photo frame keeps that dark "shadow box" background in both themes on
   purpose (same reasoning as every other photo placeholder in this theme).
   These two floating chips are the exception: unlike the frame, a solid
   near-black chip reads as a mismatched leftover once the rest of the site
   is toggled to its light theme, so they follow it while the frame itself
   doesn't. */
html[data-theme="light"] .media-badge{
  background:rgba(255,255,255,0.85);
  border-color:rgba(201,162,54,0.4);
  color:#C9A236;
}
html[data-theme="light"] .media-zoom{
  background:rgba(255,255,255,0.85);
  border-color:rgba(201,162,54,0.4);
}
html[data-theme="light"] .media-zoom svg{ stroke:#C9A236; }
html[data-theme="light"] .media-zoom:hover{ border-color:#C9A236; }
.gallery-dots{ display:none; }

/* ---------------- lightbox ----------------
   A single shared overlay appended to <body> the first time it's opened
   (see ensureLightbox() in page-product.js), not per-image markup  moved
   out of .main-media the same way product-card.js's touch modal drawer is,
   so it isn't constrained by that element's own aspect-ratio/overflow. */
.pdp-lightbox{
  position:fixed; inset:0; z-index:300;
  display:flex; align-items:center; justify-content:center; padding:40px;
  background:rgba(6,5,4,0.92);
  opacity:0; visibility:hidden;
  transition:opacity .3s ease, visibility .3s;
}
.pdp-lightbox.is-open{ opacity:1; visibility:visible; }
body.fm-lightbox-open{ overflow:hidden; }
.pdp-lightbox-stage{ max-width:min(1100px, 100%); max-height:100%; }
.pdp-lightbox-stage img{
  display:block; width:auto; height:auto; max-width:100%; max-height:calc(100vh - 80px);
  box-shadow:0 30px 80px rgba(0,0,0,0.5);
}
.pdp-lightbox-close{
  position:absolute; top:20px; right:24px;
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  background:none; border:1px solid rgba(232,220,192,0.4); color:var(--ink-1);
  font-size:22px; line-height:1; cursor:pointer; transition:border-color .2s ease;
}
.pdp-lightbox-close:hover{ border-color:var(--gold); }
@media (max-width:640px){
  .pdp-lightbox{ padding:20px; }
  .pdp-lightbox-close{ top:12px; right:12px; width:36px; height:36px; }
}

/* info column */
.p-title{ font-family:'Playfair Display', Georgia, serif; font-weight:700; font-size:clamp(28px, 2.6vw, 36px); line-height:1.22; color:var(--ink-0); margin:0 0 5px; }
.p-meta-row{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:5px; }
.p-rating{ display:flex; align-items:center; gap:9px; }
.p-rating .stars{ display:flex; gap:2px; }
.p-rating svg{ width:14px; height:14px; stroke:var(--gold); fill:var(--gold); }
.p-rating svg.empty{ fill:none; stroke-width:1.3; }
.p-rating a{ font-size:12px; color:var(--ink-4); text-decoration:underline; text-underline-offset:3px; }
.p-sku{ font-size:12px; color:var(--ink-5); }
.p-stock{ display:flex; align-items:center; gap:7px; font-size:12px; color:var(--good); }
.p-stock .dot{ width:6px; height:6px; border-radius: var(--fm-radius-circle); background:var(--good); }

.p-price-row{ display:flex; align-items:baseline; flex-wrap:wrap; gap:14px; margin-bottom:5px; }
.p-price-now{ font-family:'Jost',sans-serif; font-size:30px; font-weight:600; color:var(--cream); }
.p-price-was{ font-size:16px; color:var(--ink-5); text-decoration:line-through; }
.p-price-save{ font-size:12px; color:var(--gold-light); border:1px solid rgba(201,162,54,0.4); padding:3px 9px; }
/* Selected-variation summary ("Metal: Rose Gold" / "Moissanite: 1.5
   carat")  assets/js/page-product.js's updateVariantSummary() fills this
   in and keeps it current on every swatch change. margin-left:auto pushes
   it to the row's far right without needing justify-content:space-between
   on the row itself (which would also spread price-now/was/save apart);
   align-self overrides the row's own align-items:baseline, which would
   otherwise line this two-line block up oddly against the price digits.
   flex-wrap on .p-price-row above lets this drop to its own line rather
   than overflow if the row gets too narrow to fit both (small screens). */
.p-variant-summary{
  margin-left:auto; align-self:center;
  display:flex; flex-direction:column; gap:2px;
  font-size:12px; line-height:1.4; color:var(--ink-4); text-align:right;
}
.p-variant-summary b{ color:var(--ink-1); font-weight:600; }
.p-installment{ font-size:12.5px; color:var(--ink-4); margin-bottom:5px; }
.p-installment b{ color:var(--ink-2); font-weight:500; }

@media (max-width:980px){
  /* Smaller type and a tight, consistent 5px of vertical rhythm between
     every element in the info column  the desktop sizes/gaps (a 16px
     `gap` on .p-meta-row, a 30px price) read as oversized once this
     column is the full width of a phone/tablet screen instead of sharing
     it with the gallery. `gap` is a shorthand for row-gap then
     column-gap  .p-meta-row's rating/SKU/stock trio wraps onto its own
     line at this width, and that 16px was being used as the gap BETWEEN
     those wrapped lines too, which is what actually produced the
     oversized vertical gap being fixed here, not the row's own
     margin-bottom (already 5px). */
  .p-title{ font-size:20px; margin-bottom:5px; }
  .p-meta-row{ gap:5px 12px; margin-bottom:5px; }
  .p-rating a, .p-sku, .p-stock{ font-size:11px; }
  .p-price-row{ gap:10px; margin-bottom:5px; }
  .p-price-now{ font-size:22px; }
  .p-price-was{ font-size:13px; }
  .p-price-save{ font-size:11px; padding:2px 7px; }
  .p-variant-summary{ font-size:11px; }
  .p-installment{ font-size:11px; margin-bottom:5px; }
}

.p-desc{ font-size:14px; line-height:1.8; color:var(--ink-2); margin:26px 0 0; max-width:480px; }

/* variant groups  kept compact so the CTA row lands above the fold */
.variant-block{ margin-bottom:18px; }
.variant-block-head{ display:flex; align-items:baseline; justify-content:space-between; margin-bottom:10px; }
.variant-block-title{ font-size:11px; font-weight:500; letter-spacing:1.6px; text-transform:uppercase; color:var(--gold-light); }
.variant-block-value{ font-family:'Playfair Display', serif; font-style:italic; font-size:13px; color:var(--ink-1); }
.variant-link{ font-size:11px; color:var(--label-gold); text-decoration:underline; text-underline-offset:3px; background:none; border:none; cursor:pointer; padding:0; letter-spacing:0.3px; }
.variant-link:hover{ color:var(--gold-light); }

.swatch-grid{ display:flex; flex-wrap:wrap; gap:10px; }
/* A circular color dot (echoing the color-swatch language used across the
   rest of the site) inside an otherwise square-cornered pill, kept
   deliberately understated  the metal itself is the color, the pill
   around it is just a hit target/label, not a second color block. */
.swatch{
  display:inline-flex; align-items:center; gap:9px; padding:8px 16px 8px 10px;
  border:1px solid rgba(201,162,54,0.65); background:rgba(255,255,255,0.02);
  font-size:12px; color:var(--tab-text); cursor:pointer;
  transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.swatch .dot{
  width:16px; height:16px; border-radius:var(--fm-radius-circle); flex-shrink:0;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,0.25), 0 0 0 2px var(--bg);
}
.swatch:hover:not(.is-active){ border-color:var(--gold); background:rgba(201,162,54,0.12); }
.swatch, .size-pill{ position:relative; transition:border-color .2s ease, background .2s ease, color .2s ease, box-shadow .25s ease, transform .2s ease; }
/* Selected: deep charcoal with a champagne-gold inner hairline, gold text,
   a lifted shadow and a small gold corner tab. */
.swatch.is-active, .size-pill.is-active{
  background:linear-gradient(145deg,#2a241a 0%,#0d0b08 100%); border-color:#0d0b08; color:#ecd27f; font-weight:500; letter-spacing:.3px;
  box-shadow:inset 0 0 0 1px rgba(226,190,88,0.75), 0 8px 18px -6px rgba(13,11,8,0.55);
  transform:translateY(-1px);
}
.swatch.is-active::after, .size-pill.is-active::after{
  content:''; position:absolute; top:0; right:0; width:14px; height:14px;
  background:linear-gradient(225deg,#f0d98a,#c9a236); clip-path:polygon(0 0,100% 0,100% 100%);
}
.swatch.is-active .dot{ box-shadow:inset 0 0 0 1px rgba(0,0,0,0.25), 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); }

.size-grid{ display:flex; flex-wrap:wrap; gap:6px; }
.size-pill{
  min-width:38px; padding:7px 4px; text-align:center; border:1px solid rgba(201,162,54,0.65);
  font-size:11.5px; color:var(--tab-text); cursor:pointer; transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.size-pill:hover:not(.is-active):not(.is-oos){ border-color:var(--gold); background:rgba(201,162,54,0.12); }
.size-pill.is-oos{ color:var(--ink-5); text-decoration:line-through; cursor:not-allowed; opacity:0.5; }

.qty-cart-row{ display:flex; align-items:stretch; gap:14px; margin-bottom:5px; }
.qty-stepper{ display:flex; align-items:center; border:1px solid rgba(232,220,192,0.35); flex-shrink:0; }
.qty-stepper button{ width:46px; height:100%; background:none; border:none; color:var(--ink-1); font-size:16px; cursor:pointer; transition:color .2s ease; }
.qty-stepper button:hover{ color:var(--gold-light); }
.qty-stepper span{ width:36px; text-align:center; font-size:14px; color:var(--ink-1); }
.qty-cart-row .btn-solid{ flex:1; }

.buy-now-row{ display:flex; gap:14px; margin-bottom:5px; }
.buy-now-row .btn-line{ flex:1; }

.wishlist-consult-row{ display:flex; align-items:stretch; gap:14px; margin-bottom:5px; }
.wishlist-consult-row .btn-ghost-icon{ width:auto; height:auto; flex:0 0 20%; }
.wishlist-consult-row .btn-line{ flex:1 1 80%; }

.p-assurance{ display:grid; grid-template-columns:repeat(2,1fr); gap:12px 20px; padding:22px 0; border-top:1px solid var(--hair); border-bottom:1px solid var(--hair); margin-bottom:26px; }
.assurance-item{ display:flex; align-items:center; gap:11px; font-size:12.5px; color:var(--ink-3); }
.assurance-item svg{ width:18px; height:18px; stroke:var(--gold); fill:none; stroke-width:1.3; flex-shrink:0; }

.delivery-check{ margin-bottom:26px; }
.delivery-check label{ font-size:11.5px; font-weight:500; letter-spacing:1.4px; text-transform:uppercase; color:var(--ink-1); display:block; margin-bottom:12px; }
.delivery-input-row{ display:flex; border:1px solid rgba(232,220,192,0.3); }
.delivery-input-row input{ flex:1; min-width:0; background:none; border:none; padding:13px 16px; font-size:13px; color:var(--ink-1); }
.delivery-input-row input::placeholder{ color:var(--ink-5); }
.delivery-input-row input:focus{ outline:none; }
.delivery-input-row button{
  position:relative; flex-shrink:0; padding:0 22px; border:none; border-left:1px solid rgba(232,220,192,0.3); background:none;
  font-size:10.5px; font-weight:500; letter-spacing:1.4px; text-transform:uppercase; color:var(--ink-1); cursor:pointer;
  overflow:hidden; z-index:0; transition:color .3s ease;
}
.delivery-input-row button::before{ content:''; position:absolute; inset:0; background:var(--cream); transform:scaleX(0); transform-origin:left; transition:transform .3s ease; z-index:-1; }
.delivery-input-row button:hover{ color:var(--on-gold); }
.delivery-input-row button:hover::before{ transform:scaleX(1); }
.delivery-result{ margin-top:12px; font-size:12.5px; color:var(--good); display:none; align-items:center; gap:8px; }
.delivery-result.show{ display:flex; }
.delivery-result svg{ width:14px; height:14px; stroke:var(--good); fill:none; stroke-width:1.6; }
/* Real "not deliverable"/invalid-postcode result (see assets/js/page-product.js
   + the fm_check_delivery AJAX handler in inc/woocommerce-product.php)
   same layout, warm red instead of green so it doesn't read as a success. */
.delivery-result.is-error{ color:var(--bad); }
.delivery-result.is-error svg{ stroke:var(--bad); }

.p-share{ display:flex; align-items:center; gap:16px; }
.p-share span{ font-size:11.5px; letter-spacing:1px; text-transform:uppercase; color:var(--ink-5); }
.p-share .icons{ display:flex; gap:10px; }
.p-share a{ position:relative; width:32px; height:32px; border-radius: var(--fm-radius-circle); border:1px solid rgba(201,162,54,0.35); display:flex; align-items:center; justify-content:center; text-decoration:none; transition:border-color .2s ease, background .2s ease; }
.p-share a svg{ width:13px; height:13px; stroke:var(--gold-light); fill:none; stroke-width:1.4; }
.p-share a:hover{ background:#000000; border-color:#000000; }
.p-share a:hover svg{ stroke:#ffffff; }
/* "Link copied" confirmation bubble for the copy-link icon (see
   assets/js/page-product.js)  toggled via .is-copied since a change to
   the invisible aria-label alone gives sighted users no feedback at all. */
.p-share a.is-copied::after{
  content:'Link copied'; position:absolute; bottom:calc(100% + 8px); left:50%; transform:translateX(-50%);
  background:var(--card-1); border:1px solid var(--hair-3); color:var(--ink-1);
  font-size:10.5px; letter-spacing:0.4px; text-transform:none; white-space:nowrap;
  padding:5px 10px; pointer-events:none;
}

@media (max-width:980px){
  /* The 40px gap made sense as column-gap between gallery/info side by
     side on desktop; stacked to one column here, that same value became
     vertical space between the image and the title below it, much wider
     than the tight 5px rhythm the rest of the info column now uses. */
  .hero-grid{ grid-template-columns:1fr; gap:10px; }
  .p-assurance{ grid-template-columns:1fr 1fr; }

  /* Gallery stays side-by-side (thumbnail column on the left of the main
     photo, same shape as desktop)  .main-media's flatter aspect-ratio
     below keeps its height in check now that .hero-grid above has
     collapsed the gallery to the full page width, without needing to
     restructure the layout itself. position:sticky no longer makes sense
     once there's no side-by-side info column beside it to scroll past. */
  .gallery{ position:static; top:auto; }
  /* .main-media's near-square aspect-ratio (1/1.02) was sized for half of
     .hero-grid's desktop width  at this width the gallery is much wider
     (the full page width minus just the thumbnail column), so that same
     ratio made it excessively tall. Flatter ratio here instead, not a
     change to the photo itself (object-fit:contain on .main-media img
     always shows the whole photo). */
  .main-media{ aspect-ratio:4/3; }

  /* Quantity + Add to cart share one row on mobile/tablet too, a 20/80
     split instead of stacking onto separate lines. The stepper's own
     minus/number/plus shrink to fit comfortably in ~20% of the row
     (94px of actual content  a literal 20% of anything narrower than
     ~470px would otherwise clip them); min-width is a floor slightly
     above that, not a suggestion, so it's still an honest 80/20-ish split
     rather than an overflowing one. */
  .qty-cart-row{ flex-wrap:wrap; }
  .qty-stepper{ flex: 0 1 20%; min-width: 96px; justify-content:space-between; }
  .qty-stepper button{ width:34px; }
  .qty-stepper span{ width:26px; }
  .qty-cart-row .btn-solid{ flex:1 1 auto; }
}
@media (max-width:620px){
  /* Phone: unlike the tablet breakpoint above (thumbnails stay a left-hand
     column there, same shape as desktop), a phone-width column is too
     narrow for a fixed thumbnail rail to share with the main photo
     without squeezing it  full-width photo on top instead (order:1, even
     though .thumb-col comes first in the markup  see template-parts/
     product-single.php), thumbnails as a horizontal scrollable strip
     underneath. */
  .gallery{ flex-direction:column; gap:10px; }
  /* Taller than the 980px breakpoint's 4/3 (that ratio was sized for a
     photo squeezed beside the thumbnail column)  full-width and stacked
     here, so it can afford to be closer to square instead of looking
     flattened. */
  .main-media{ order:1; aspect-ratio:1/1; }
  .thumb-col{ order:2; flex-direction:row; width:auto; gap:8px; overflow-x:auto; overflow-y:hidden; padding-bottom:2px; contain:none; }
  .thumb{ flex:0 0 52px; width:52px; height:52px; }
}

/* ============================================================ DETAILS ACCORDION ============================================================ */
.details-section{ padding:0 72px 90px; }
.details-wrap{ max-width:1600px; margin:0 auto; }
.acc-item{ border-bottom:1px solid var(--hair); }
.acc-item:first-child{ border-top:1px solid var(--hair); }
.acc-head{ display:flex; align-items:center; justify-content:space-between; padding:24px 4px; cursor:pointer; user-select:none; }
.acc-title{ font-family:'Playfair Display', serif; font-weight:600; font-size:17px; color:var(--ink-1); }
.acc-icon{ width:20px; height:20px; position:relative; flex-shrink:0; }
.acc-icon::before, .acc-icon::after{ content:''; position:absolute; background:var(--gold-light); transition:transform .3s ease; }
.acc-icon::before{ left:0; top:50%; width:100%; height:1px; transform:translateY(-50%); }
.acc-icon::after{ top:0; left:50%; width:1px; height:100%; transform:translateX(-50%); }
.acc-item.is-open .acc-icon::after{ transform:translateX(-50%) scaleY(0); }
.acc-body{ display:grid; grid-template-rows:0fr; opacity:0; transition:grid-template-rows .35s ease, opacity .3s ease; }
.acc-item.is-open .acc-body{ grid-template-rows:1fr; opacity:1; }
.acc-body-inner{ overflow:hidden; }
.acc-content{ padding:0 4px 26px; font-size:13.5px; line-height:1.85; color:var(--ink-3); }
.acc-content p{ margin:0 0 14px; }
.spec-table{ width:100%; border-collapse:collapse; }
.spec-table tr{ border-bottom:1px solid var(--hair); }
.spec-table tr:last-child{ border-bottom:none; }
.spec-table td{ padding:11px 6px; font-size:13px; }
.spec-table td:first-child{ color:var(--ink-4); width:44%; }
.spec-table td:last-child{ color:var(--ink-1); }
.cert-row{ display:flex; align-items:center; gap:14px; padding:14px 0; border-bottom:1px solid var(--hair); }
.cert-row:last-child{ border-bottom:none; }
.cert-row svg{ width:24px; height:24px; stroke:var(--gold); fill:none; stroke-width:1.2; flex-shrink:0; }
.cert-row div span{ display:block; }
.cert-row .t{ color:var(--ink-1); font-size:13.5px; margin-bottom:2px; }
.cert-row .d{ color:var(--ink-4); font-size:12.5px; }

/* ============================================================ SIZE GUIDE MODAL ============================================================ */
.modal-overlay{
  position:fixed; inset:0; background:rgba(6,5,4,0.72); z-index:100;
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; visibility:hidden; transition:opacity .3s ease, visibility .3s ease;
}
.modal-overlay.is-open{ opacity:1; visibility:visible; }
.modal-panel{
  background:linear-gradient(175deg, #16130e 0%, #0d0b08 100%); border:1px solid var(--hair-3);
  max-width:640px; width:100%; max-height:86vh; overflow-y:auto; padding:36px 40px 40px;
  transform:translateY(14px); transition:transform .3s ease;
}
.modal-overlay.is-open .modal-panel{ transform:translateY(0); }
.modal-head{ display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:22px; }
.modal-head h3{ font-family:'Playfair Display', serif; font-weight:700; font-size:22px; color:var(--ink-1); margin:0 0 6px; }
.modal-head p{ font-size:13px; color:var(--ink-4); margin:0; }
.modal-close{ width:32px; height:32px; border-radius: var(--fm-radius-circle); border:1px solid rgba(232,220,192,0.4); background:none; color:var(--ink-2); font-size:16px; cursor:pointer; flex-shrink:0; }
.modal-tabs{ display:flex; gap:10px; margin-bottom:22px; }
.modal-tab{ padding:9px 18px; border:1px solid rgba(232,220,192,0.3); background:none; font-size:11.5px; letter-spacing:1px; text-transform:uppercase; color:var(--tab-text); cursor:pointer; transition:all .2s ease; }
.modal-tab.is-active{ background:#000000; border-color:#000000; color:#ffffff; }
.size-table{ width:100%; border-collapse:collapse; margin-bottom:24px; }
.size-table th{ text-align:left; padding:10px 8px; font-size:10.5px; letter-spacing:1px; text-transform:uppercase; color:var(--gold-light); border-bottom:1px solid var(--hair-3); }
.size-table td{ padding:10px 8px; font-size:13px; color:var(--ink-2); border-bottom:1px solid var(--hair); }
.size-table tr.is-my-size td{ color:var(--ink-1); background:rgba(201,162,54,0.08); }
.measure-steps{ display:grid; gap:14px; }
.measure-step{ display:flex; gap:14px; }
.measure-step .num{ width:26px; height:26px; border:1px solid var(--gold); border-radius: var(--fm-radius-circle); flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:11.5px; color:var(--gold-light); font-family:'Playfair Display',serif; }
.measure-step p{ margin:0; font-size:13px; line-height:1.7; color:var(--ink-3); }
.measure-step strong{ color:var(--ink-1); font-weight:500; }

/* ============================================================ REVIEWS ============================================================ */
.review-section{ padding:0 72px 100px; }
.review-wrap{ max-width:1080px; margin:0 auto; }
.review-head{ text-align:center; margin-bottom:56px; }
.review-title{ font-family:'Playfair Display', Georgia, serif; font-weight:700; font-size:clamp(24px,2.6vw,32px); color:var(--ink-1); margin:0 0 8px; }
.review-summary{ display:grid; grid-template-columns:220px 1fr; gap:56px; align-items:center; padding:36px; border:1px solid var(--hair); background:linear-gradient(175deg, var(--card-1) 0%, var(--card-2) 100%); margin-bottom:44px; }
.review-avg{ text-align:center; border-right:1px solid var(--hair); padding-right:36px; }
.review-avg .num{ font-family:'Playfair Display', serif; font-weight:700; font-size:46px; color:var(--cream); line-height:1; }
.review-avg .stars{ display:flex; justify-content:center; gap:3px; margin:12px 0 8px; }
.review-avg .stars svg{ width:15px; height:15px; stroke:var(--gold); fill:var(--gold); }
.review-avg .stars svg.empty{ fill:none; stroke-width:1.3; }
.review-avg .count{ font-size:12px; color:var(--ink-4); }
.rating-bars{ display:grid; gap:9px; }
.rating-bar-row{ display:grid; grid-template-columns:56px 1fr 34px; align-items:center; gap:12px; font-size:12px; color:var(--ink-4); }
.rating-bar-track{ height:6px; background:rgba(232,220,192,0.12); position:relative; }
.rating-bar-fill{ position:absolute; top:0; left:0; bottom:0; background:var(--gold); }
.review-cta-row{ display:flex; justify-content:center; margin-bottom:44px; }

.review-filters{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:28px; }
.review-filter{ padding:9px 16px; border:1px solid rgba(232,220,192,0.3); background:none; font-size:11.5px; letter-spacing:0.8px; text-transform:uppercase; color:var(--tab-text); cursor:pointer; transition:all .2s ease; }
.review-filter.is-active{ background:#000000; border-color:#000000; color:#ffffff; }

.review-card{ padding:26px 0; border-bottom:1px solid var(--hair); }
.review-card:first-of-type{ border-top:1px solid var(--hair); }
.review-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:12px; flex-wrap:wrap; }
.review-who{ display:flex; align-items:center; gap:12px; }
.review-avatar{ width:38px; height:38px; border-radius: var(--fm-radius-circle); border:1px solid var(--hair-3); display:flex; align-items:center; justify-content:center; font-family:'Playfair Display',serif; font-size:13px; color:var(--gold-light); }
.review-name{ font-size:13.5px; color:var(--ink-1); font-weight:500; display:flex; align-items:center; gap:8px; }
.verified-badge{ display:inline-flex; align-items:center; gap:4px; font-size:10px; letter-spacing:0.6px; text-transform:uppercase; color:var(--good); }
.verified-badge svg{ width:10px; height:10px; stroke:var(--good); fill:none; stroke-width:2; }
.review-date{ font-size:11.5px; color:var(--ink-5); margin-top:2px; }
.review-stars{ display:flex; gap:2px; }
.review-stars svg{ width:13px; height:13px; stroke:var(--gold); fill:var(--gold); }
.review-title-txt{ font-size:14.5px; color:var(--ink-1); font-weight:500; margin:0 0 8px; }
.review-body{ font-size:13.5px; line-height:1.8; color:var(--ink-3); margin:0 0 12px; max-width:640px; }
.review-meta-tags{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:10px; }
.review-meta-tags span{ font-size:11.5px; color:var(--ink-5); }
.review-meta-tags b{ color:var(--ink-3); font-weight:500; }
.review-helpful{ display:flex; align-items:center; gap:8px; background:none; border:1px solid rgba(232,220,192,0.25); padding:7px 13px; font-size:11.5px; color:var(--ink-4); cursor:pointer; transition:all .2s ease; }
.review-helpful svg{ width:12px; height:12px; stroke:var(--ink-4); fill:none; stroke-width:1.6; }
.review-helpful:hover{ border-color:var(--gold); color:var(--ink-1); }
.review-helpful:hover svg{ stroke:var(--gold-light); }
.review-load-more{ display:flex; justify-content:center; margin-top:32px; }

/* review write form */
.write-review-panel{ display:none; margin-bottom:40px; padding:28px; border:1px solid var(--hair-3); background:linear-gradient(175deg, var(--card-1) 0%, var(--card-2) 100%); }
.write-review-panel.show{ display:block; }
.write-review-panel h4{ font-family:'Playfair Display',serif; font-size:17px; color:var(--ink-1); margin:0 0 18px; }
.form-row{ margin-bottom:16px; }
.form-row label{ display:block; font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--gold-light); margin-bottom:8px; }
.form-row input, .form-row textarea{
  width:100%; background:none; border:1px solid rgba(232,220,192,0.3); padding:12px 14px;
  font-family:'Jost',sans-serif; font-size:13px; color:var(--ink-1); resize:vertical;
}
.form-row input:focus, .form-row textarea:focus{ outline:none; border-color:var(--gold); }
.star-input{ display:flex; gap:6px; }
.star-input svg{ width:22px; height:22px; stroke:var(--gold); fill:none; stroke-width:1.3; cursor:pointer; transition:fill .15s ease; }
.star-input svg.is-filled{ fill:var(--gold); }
.review-form-note{ display:none; margin-top:14px; font-size:12.5px; color:var(--good); }
.review-form-note.show{ display:block; }
.review-form-note.is-error{ color:var(--bad); }

@media (max-width:760px){
  .review-summary{ grid-template-columns:1fr; text-align:center; }
  .review-avg{ border-right:none; padding-right:0; border-bottom:1px solid var(--hair); padding-bottom:24px; }
}

/* ============================================================ RELATED / COMPLETE THE LOOK ============================================================ */
.related-section{ padding:0 72px 110px; }
.related-wrap{ max-width:1600px; margin:0 auto; }
.related-head{ text-align:center; margin-bottom:44px; }
.related-head h2{ font-family:'Playfair Display', Georgia, serif; font-weight:700; font-size:clamp(24px,2.6vw,32px); color:var(--ink-1); margin:0; }
/* The cards themselves are the shared .jewel-card component (see
   assets/css/product-card.css, assets/js/product-card.js)  only this
   grid's own column layout lives here, same split as
   assets/css/featured-collections.css / page-collection.css / page-cart.css.
   Its Quick Summary drawer only ever slides within its own card's width,
   so there's no viewport-edge-flip or narrow-width bottom-sheet fallback
   to keep in sync here. */
/* auto-fill: adds/drops whole columns as width allows instead of
   stretching a fixed 5-up to fill the row (matches .product-grid in
   page-collection.css/featured-collections.css). */
.related-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:10px; }
.reviews-empty, .related-empty{ grid-column:1/-1; padding:20px 0; font-size:13px; color:var(--ink-4); text-align:center; }
@media (max-width:980px){ .related-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:620px){ .related-grid{ gap:10px; } }
@media (max-width:480px){
  .related-grid{ gap:10px; }
  .related-grid .jewel-body{ padding:12px 12px 14px; }
}

/* ============================================================ STICKY MOBILE BAR ============================================================ */
.sticky-bar{
  position:fixed; left:0; right:0; bottom:0; z-index:70;
  background:rgba(10,9,8,0.96); backdrop-filter:blur(8px); border-top:1px solid var(--hair-3);
  padding:14px 20px; display:none; align-items:center; justify-content:space-between; gap:16px;
  transform:translateY(100%); transition:transform .3s ease;
}
.sticky-bar.show{ transform:translateY(0); }
.sticky-bar .info{ min-width:0; }
.sticky-bar .name{ font-size:12.5px; color:var(--ink-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sticky-bar .price{ font-size:14px; color:var(--cream); font-weight:600; }
.sticky-bar button{ flex-shrink:0; padding:12px 22px; }
@media (max-width:920px){ .sticky-bar{ display:flex; } }

/* Shared error toast for both Add to cart buttons (standard + sticky)
   see assets/js/page-product.js. Sits above the sticky mobile bar
   (z-index:70) when that's visible; on desktop, where the sticky bar
   never shows, it just floats near the bottom of the screen instead. */
.cart-error-toast{
  position:fixed; left:50%; bottom:24px; transform:translateX(-50%) translateY(12px);
  z-index:80; max-width:min(420px, calc(100vw - 40px));
  background:rgba(10,9,8,0.96); border:1px solid rgba(201,80,80,0.5);
  color:var(--ink-1); font-size:12.5px; line-height:1.5;
  padding:12px 16px; box-shadow:0 14px 30px rgba(0,0,0,0.4);
  opacity:0; visibility:hidden; transition:opacity .25s ease, transform .25s ease, visibility .25s;
}
.cart-error-toast.show{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
@media (max-width:920px){ .cart-error-toast{ bottom:calc(78px + env(safe-area-inset-bottom, 0px)); } }

/* =========================================================
   LIGHT THEME  see page-collection.css's own light-theme block for the
   full reasoning (this page uses the identical local variable system).
   Also restates the one literal (non-variable) dark gradient on this
   page, .modal-panel  the ring-size-guide modal.
   ========================================================= */
html[data-theme="light"] {
  --bg: #ffffff; --bg-2: #ffffff; --bg-3: #ffffff;
  --card-1: #ffffff; --card-2: #F5EDE6;
  --eyebrow: #C9A236; --label-gold: #C9A236;
  /* Every ink tier below (and --tab-text) pinned to solid black rather
     than a lighter/darker gray per tier  this page's whole point in
     light mode is a crisp black-on-cream editorial look (see hero.css's
     own equivalent rewrite), and a fading gray hierarchy here just read
     as unfinished/half-rendered against that. --ink-5 in particular was
     missing from this override entirely, silently falling back to the
     dark theme's own warm-gray value (#6f665a)  every tier is listed
     explicitly now so nothing can fall through like that again. Disabled/
     out-of-stock options (.size-pill.is-oos) still read as visually
     muted despite reusing --ink-5, via that rule's own opacity:0.5, so
     "unavailable" stays distinguishable from "available but unselected"
     without needing its own separate gray. */
  --tab-text: #000000;
  --ink-0: #000000; --ink-1: #000000; --ink-2: #000000; --ink-3: #000000; --ink-4: #000000; --ink-5: #000000;
  --ink-disabled: #a89f92;
  --border-cream: rgba(0, 0, 0, 0.15);
}
/* .variant-block-title ("PRECIOUS METAL" / "MOISSANITE SIZE" / "RING SIZE")
   reads var(--gold-light) directly rather than one of the --ink-* tiers
   above (which the crisp black-on-cream rewrite already pinned to solid
   black), and --gold-light itself isn't touched by that rewrite  it's
   shared by several genuinely-gold accents elsewhere (price-save badge,
   .variant-link hover) that are meant to stay gold in light mode too. */
html[data-theme="light"] .variant-block-title { color: #000000; }
html[data-theme="light"] .modal-panel { background: linear-gradient(175deg, #ffffff 0%, #F5EDE6 100%); }
html[data-theme="light"] .sticky-bar { background: rgba(255, 255, 255, 0.96); }
html[data-theme="light"] .cart-error-toast { background: rgba(255, 255, 255, 0.98); }

/* Deliberately last in the file: .details-section/.review-section/
   .related-section each set their own unconditional (no media query)
   72px side padding further down than here, and CSS resolves equal-
   specificity ties by source order, not by which rule "sounds" like the
   override  so this has to come after every one of those or it silently
   loses to them at this width, which is exactly what left the accordion/
   reviews/related sections at the desktop 72px padding on mobile while
   .crumb-band/.product-hero (whose base rules sit earlier in the file)
   correctly narrowed to 20px. Same reasoning applies to the tablet tier
   below: it has to come BEFORE the phone tier (not just after the base
   rules), so that on an actual phone  which matches both max-width:980px
   and max-width:620px at once  the later, narrower 620px rule still wins
   the tie instead of silently losing to this wider one. */
@media (max-width:980px){
  .wrap, .crumb-band, .product-hero, .details-section, .review-section, .related-section{ padding-left:15px; padding-right:15px; }
}
@media (max-width:620px){
  .wrap, .crumb-band, .product-hero, .details-section, .review-section, .related-section{ padding-left:20px; padding-right:20px; }
}

/* ---- engraving add-on + order timeline (above qty / add to cart) ---- */
.p-engraving{
  display:flex; align-items:center; gap:10px; margin:0 0 22px; padding:14px 16px;
  border:1px solid rgba(201,162,54,0.35); background:rgba(255,255,255,0.6); cursor:pointer;
  font-size:14px; font-weight:500; color:var(--ink-0);
}
.p-engraving input{ width:16px; height:16px; margin:0; accent-color:var(--gold); cursor:pointer; flex-shrink:0; }
.p-timeline{
  list-style:none; margin:0 0 24px; padding:0; display:grid; grid-template-columns:repeat(3,1fr);
  position:relative;
}
/* the gold line running behind the three dots */
.p-timeline::before{
  content:''; position:absolute; top:13px; left:0; right:0; height:2px;
  background:linear-gradient(90deg,var(--gold),rgba(201,162,54,0.55)); z-index:0;
}
.p-tl-step{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; text-align:center; gap:4px; }
.p-tl-dot{
  width:28px; height:28px; border-radius:var(--fm-radius-circle); background:#ffffff; border:2px solid var(--gold);
  display:flex; align-items:center; justify-content:center; margin-bottom:6px;
}
.p-tl-dot svg{ width:15px; height:15px; stroke:var(--gold); fill:none; stroke-width:1.6; }
.p-tl-step.is-current .p-tl-dot{ background:var(--gold); }
.p-tl-step.is-current .p-tl-dot svg{ stroke:#ffffff; }
.p-tl-step b{ font-size:13px; font-weight:600; color:var(--ink-0); }
.p-tl-step small{ font-size:11px; color:var(--ink-4); letter-spacing:0.3px; }

/* ---- "Why Shop With Us" cards (under the buy row) ---- */
.p-why{ margin:26px 0 24px; }
.p-why-title{
  position:relative; display:table; margin:0 auto 22px; padding-bottom:10px;
  font-family:'Playfair Display','Georgia',serif; font-size:17px; font-weight:600; letter-spacing:0.4px; color:var(--ink-0);
}
.p-why-title::after{ content:''; position:absolute; bottom:0; left:50%; width:44px; height:2px; background:var(--gold); transform:translateX(-50%); }
.p-why-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; align-items:start; }
.p-why-card{
  display:flex; flex-direction:column; align-items:center; text-align:center; gap:6px;
  padding:14px 10px 14px; background:#ffffff; border:1px solid rgba(0,0,0,0.08); border-top:3px solid var(--gold);
  border-radius:var(--fm-radius-sm); box-shadow:0 2px 8px rgba(0,0,0,0.05);
}
.p-why-icon{ width:30px; height:30px; border-radius:var(--fm-radius-circle); background:rgba(201,162,54,0.14); display:flex; align-items:center; justify-content:center; }
.p-why-icon svg{ width:16px; height:16px; stroke:var(--gold); fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.p-why-card h4{ margin:2px 0 0; font-family:'Playfair Display','Georgia',serif; font-size:13.5px; font-weight:600; color:var(--ink-0); line-height:1.25; }
.p-why-card p{ margin:0; font-family:'Jost',sans-serif; font-size:11px; line-height:1.45; letter-spacing:0.3px; color:#6b6b6b; }
.p-why-short{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.p-why-btn{
  margin-top:6px; padding:6px 14px; border:none; background:#f4efe8; cursor:pointer; border-radius:var(--fm-radius-sm);
  font-family:'Jost',sans-serif; font-size:9.5px; font-weight:600; letter-spacing:1px; text-transform:uppercase; color:var(--ink-0);
  box-shadow:0 2px 6px rgba(0,0,0,0.08); transition:background .2s ease, box-shadow .2s ease;
}
.p-why-btn:hover{ background:#ece4d8; box-shadow:0 3px 8px rgba(0,0,0,0.12); }
@media (max-width:620px){ .p-why-grid{ grid-template-columns:repeat(2,1fr); } }
.p-why-card [hidden]{ display:none; }

/* ---- "Additional information" table (under Description) ---- */
.p-addinfo{ margin:0 0 22px; }
.p-addinfo-title{
  margin:0 0 14px; font-family:'Playfair Display','Georgia',serif; font-size:15px; font-weight:700;
  letter-spacing:1.4px; text-transform:uppercase; color:var(--ink-0);
}
.p-addinfo-table{ width:100%; border-collapse:collapse; border:1px solid #e4e0da; background:#ffffff; font-family:'Jost',sans-serif; }
.p-addinfo-table th,
.p-addinfo-table td{ padding:11px 16px; border-bottom:1px solid #e4e0da; font-size:12px; letter-spacing:0.4px; text-align:left; color:var(--ink-0); }
.p-addinfo-table tr:last-child th,
.p-addinfo-table tr:last-child td{ border-bottom:none; }
.p-addinfo-table th{ width:32%; background:#f6f5f3; font-weight:500; border-right:1px solid #e4e0da; }
@media (max-width:620px){ .p-addinfo-table th{ width:40%; } }

/* ---- Frequently bought together ---- */
.p-fbt{ margin:0 0 30px; padding-bottom:26px; border-bottom:1px solid #e4e0da; }
.p-fbt-title{ margin:0 0 18px; font-family:'Playfair Display','Georgia',serif; font-size:15px; font-weight:700; letter-spacing:1.4px; text-transform:uppercase; color:var(--ink-0); }
.p-fbt-row{ display:flex; flex-wrap:wrap; align-items:center; gap:28px 36px; }
.p-fbt-items{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
.p-fbt-plus{ font-size:22px; color:var(--gold); font-weight:300; }
.p-fbt-item{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; width:150px; padding:10px 10px 12px;
  background:#ffffff; border:1px solid #e4e0da; border-radius:var(--fm-radius-sm); text-align:center; cursor:pointer; transition:border-color .2s ease, box-shadow .2s ease;
}
.p-fbt-item:hover{ border-color:var(--gold); box-shadow:0 4px 14px rgba(0,0,0,0.08); }
.p-fbt-item input{ position:absolute; top:8px; left:8px; width:16px; height:16px; margin:0; accent-color:var(--gold); z-index:1; }
.p-fbt-item input:disabled{ cursor:default; }
.p-fbt-img{ display:block; width:100%; aspect-ratio:1/1; overflow:hidden; background:#f6f5f3; }
.p-fbt-img img{ width:100%; height:100%; object-fit:cover; }
.p-fbt-name{ font-family:'Jost',sans-serif; font-size:11.5px; line-height:1.35; color:var(--ink-0); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.p-fbt-price{ font-family:'Jost',sans-serif; font-size:12.5px; font-weight:600; color:#8a6526; }
.p-fbt-buy{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.p-fbt-label{ font-family:'Jost',sans-serif; font-size:11px; letter-spacing:0.6px; color:#6b6b6b; }
.p-fbt-total{ font-family:'Jost',sans-serif; font-size:22px; font-weight:600; color:var(--ink-0); }
@media (max-width:620px){ .p-fbt-item{ width:calc(50% - 20px); } .p-fbt-plus{ display:none; } }
.p-fbt-item.has-variants{ width:190px; }
.p-fbt-item{ cursor:default; }
.p-fbt-item .p-fbt-img, .p-fbt-item .p-fbt-name{ cursor:pointer; }
.p-fbt-variants{ display:flex; flex-direction:column; gap:5px; width:100%; margin-top:2px; }
.p-fbt-select{
  width:100%; padding:5px 6px; border:1px solid #d9d3ca; border-radius:var(--fm-radius-sm); background:#fbfaf8;
  font-family:'Jost',sans-serif; font-size:11px; color:var(--ink-0); cursor:pointer;
}
.p-fbt-select:focus{ outline:none; border-color:var(--gold); }
.p-fbt-item.is-unavailable .p-fbt-price{ color:#b5473a; }
@media (max-width:620px){ .p-fbt-item.has-variants{ width:calc(50% - 20px); } }


/* =========================================================
   REVIEWS  two columns: summary + bars + "Write a review" on the left,
   "N review(s) for <product>" with review cards on the right. Deliberately
   light and airy: Poppins at small sizes with generous letter-spacing,
   thin rules, lots of white space.
   ========================================================= */
.review-wrap{ max-width:1600px; }
.rv-grid{
  display:grid; grid-template-columns:310px 1fr; gap:56px; align-items:start; padding-top:44px;
  font-family:'Poppins','Jost',sans-serif; color:#222;
}
.rv-heading{
  margin:0 0 26px; font-family:'Playfair Display','Georgia',serif; font-size:17px; font-weight:600;
  letter-spacing:1.2px; text-transform:uppercase; color:#1a1a1a; line-height:1.4;
}
.rv-avg{ display:flex; align-items:center; gap:0; margin-bottom:26px; font-size:10.5px; font-weight:300; letter-spacing:0.5px; white-space:nowrap; }
.rv-avg-stars{ display:inline-flex; gap:1px; margin-right:6px; }
.rv-avg-stars svg{ width:13px; height:13px; stroke:var(--gold); fill:var(--gold); stroke-width:1; }
.rv-avg-stars svg.empty{ fill:none; }
.rv-avg-outof{ margin-left:22px; }
.rv-bars{ display:grid; gap:11px; margin-bottom:32px; }
.rv-bar-row{ display:grid; grid-template-columns:44px 1fr 12px; align-items:center; gap:10px; font-size:10.5px; font-weight:300; letter-spacing:0.5px; color:#333; }
.rv-bar-track{ height:6px; background:#efefef; }
.rv-bar-fill{ height:100%; background:var(--gold); }
.rv-bar-count{ text-align:right; }
.rv-write-btn{
  padding:16px 18px; border:1px solid #1a1a1a; background:#ffffff; cursor:pointer;
  font-family:'Poppins','Jost',sans-serif; font-size:11px; font-weight:400; letter-spacing:0.7px; color:#1a1a1a;
  transition:background .2s ease, color .2s ease;
}
.rv-write-btn:hover{ background:#1a1a1a; color:#ffffff; }

.rv-card{ display:flex; align-items:flex-start; gap:16px; padding:20px 24px 22px; border:1px solid #e9e6e1; background:#ffffff; margin-bottom:14px; }
.rv-avatar{ width:44px; height:44px; border-radius:var(--fm-radius-circle); object-fit:cover; flex-shrink:0; }
.rv-avatar-initials{ display:flex; align-items:center; justify-content:center; background:#f0e6c8; color:#8a6526; font-family:'Playfair Display',serif; font-size:14px; }
.rv-card-body{ flex:1; min-width:0; }
.rv-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.rv-who{ font-size:10.5px; font-weight:300; color:#222; line-height:1.5; }
.rv-name{ font-size:11px; font-weight:500; letter-spacing:0.2px; }
.rv-verified{ font-style:italic; font-size:11px; font-weight:400; margin-left:3px; }
.rv-date{ font-size:9.5px; margin-left:6px; letter-spacing:0.3px; }
.rv-stars{ display:flex; gap:3px; flex-shrink:0; margin-top:2px; }
.rv-stars svg{ width:13px; height:13px; stroke:var(--gold); fill:var(--gold); stroke-width:1; }
.rv-stars svg.empty{ fill:none; }
.rv-title{ margin:10px 0 0; font-size:11px; font-weight:500; letter-spacing:0.3px; color:#222; }
.rv-text{ margin:10px 0 0; font-size:11px; font-weight:300; line-height:1.7; letter-spacing:0.6px; color:#4a4a4a; }
.rv-empty{ margin:0 0 14px; padding:0; text-align:left; font-size:11.5px; font-weight:300; letter-spacing:0.5px; }
.rv-note{ margin:22px 0 0; font-size:11px; font-weight:300; letter-spacing:0.6px; color:#333; }
.rv-note a{ color:#8a6526; }
.rv-main .write-review-panel{ margin-top:26px; margin-bottom:0; }
.rv-main .review-load-more{ justify-content:flex-start; }
@media (max-width:980px){ .rv-grid{ grid-template-columns:1fr; gap:34px; } .rv-avg{ flex-wrap:wrap; row-gap:6px; } }

/* Reviews sit on a plain white band (the rest of the product page is cream). */
.review-section{ background:#ffffff; }

/* ---- Complete the Look: spacing + strict per-device counts ----
   desktop: 5 in one row, tablet: 3 in one row, mobile: 2 per row x 2 rows (4).
   The payload sends 10 items, the extras are just hidden. */
.related-section{ padding-top:64px; }
.related-head{ margin-bottom:40px; }
.related-head .eyebrow{ margin-bottom:14px; }
.related-head h2{ line-height:1.25; }
.related-grid{ grid-template-columns:repeat(5, minmax(0, 1fr)); gap:10px; }
.related-grid > :nth-child(n+6){ display:none; }
@media (max-width:1024px){
  .related-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:10px; }
  .related-grid > :nth-child(n+4){ display:none; }
}
@media (max-width:620px){
  .related-section{ padding-top:48px; }
  .related-grid{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
  .related-grid > :nth-child(-n+4){ display:revert; }
  .related-grid > :nth-child(n+5){ display:none; }
}

/* =========================================================
   QUESTIONS AND ANSWERS  grey accordion rows, white answer panel
   ========================================================= */
.qa-section{ background:#ffffff; padding:16px 72px 70px; }
.qa-wrap{ max-width:1600px; margin:0 auto; font-family:'Poppins','Jost',sans-serif; }
.qa-heading{ margin:0 0 22px; font-family:'Playfair Display','Georgia',serif; font-size:17px; font-weight:600; letter-spacing:1.2px; text-transform:uppercase; color:#1a1a1a; }
.qa-list{ display:grid; gap:8px; margin-bottom:34px; }
.qa-item{ border:1px solid #ebebeb; background:#f4f4f4; }
.qa-item summary{
  display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 16px; cursor:pointer; list-style:none;
  font-size:10.5px; font-weight:500; letter-spacing:0.7px; color:#222;
}
.qa-item summary::-webkit-details-marker{ display:none; }
.qa-item summary svg{ width:14px; height:14px; flex-shrink:0; stroke:#222; fill:none; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; transition:transform .2s ease; }
.qa-item[open] summary svg{ transform:rotate(180deg); }
.qa-answer{ background:#ffffff; border-top:1px solid #ebebeb; padding:26px 20px 30px; font-size:10.5px; font-weight:400; line-height:1.8; letter-spacing:0.6px; color:#7a4a2a; }
.qa-answer p{ margin:0 0 8px; }
.qa-answer p:last-child{ margin-bottom:0; }
.qa-still{ margin:0 0 14px; font-size:10.5px; font-weight:300; letter-spacing:0.6px; color:#333; }
.qa-ask{
  display:inline-block; padding:16px 16px; border:1px solid #1a1a1a; background:#ffffff; text-decoration:none;
  font-size:10.5px; font-weight:400; letter-spacing:0.7px; color:#1a1a1a; transition:background .2s ease, color .2s ease;
}
.qa-ask:hover{ background:#1a1a1a; color:#ffffff; }
@media (max-width:980px){ .qa-section{ padding-left:15px; padding-right:15px; } }
@media (max-width:620px){ .qa-section{ padding-left:20px; padding-right:20px; } }

/* =========================================================
   DETAILS ACCORDION  restyled to the reference Q&A look: grey rows with a
   chevron, small letter-spaced Poppins, and a white answer panel when open.
   ========================================================= */
.details-wrap{ display:block; font-family:'Poppins','Jost',sans-serif; }
.acc-item{ margin:0 0 8px; border:1px solid #ebebeb; background:#f4f4f4; }
.acc-item:first-child{ border-top:1px solid #ebebeb; }
.acc-head{ padding:16px 16px; }
.acc-title{ font-family:'Poppins','Jost',sans-serif; font-weight:500; font-size:10.5px; letter-spacing:0.7px; color:#222; }
.acc-icon{ width:14px; height:14px; }
.acc-icon::before{
  left:50%; top:50%; width:7px; height:7px; background:none; border-right:1.6px solid #222; border-bottom:1.6px solid #222;
  transform:translate(-50%,-70%) rotate(45deg); transition:transform .25s ease;
}
.acc-icon::after{ display:none; }
.acc-item.is-open .acc-icon::before{ transform:translate(-50%,-25%) rotate(225deg); }
.acc-item.is-open .acc-body-inner{ background:#ffffff; border-top:1px solid #ebebeb; }
.acc-content{ padding:26px 20px 30px; font-size:10.5px; font-weight:400; line-height:1.8; letter-spacing:0.6px; color:#5f4630; }
.acc-content p{ margin:0 0 10px; }
.acc-content p:last-child{ margin-bottom:0; }
.acc-content .cert-row .t, .acc-content .cert-row span{ letter-spacing:0.6px; }

/* ---- short description above the installment line: 2 lines, faded, "See more" ---- */
.p-desc-wrap{ position:relative; margin:14px 0 14px; max-width:none; }
.p-desc{ margin:0; max-width:none; font-size:13px; line-height:1.7; color:var(--ink-2); }
.p-desc-wrap:not(.is-open) .p-desc{
  max-height:calc(1.7em * 2); overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom, #000 45%, transparent 100%); mask-image:linear-gradient(to bottom, #000 45%, transparent 100%);
}
.p-desc-more{
  position:absolute; right:0; bottom:0; padding:2px 0 0 26px; border:none; cursor:pointer;
  background:linear-gradient(to right, rgba(255,255,255,0), var(--bg) 40%);
  font-family:'Jost',sans-serif; font-size:11.5px; font-weight:500; letter-spacing:0.5px; color:#8a6526; text-decoration:underline; text-underline-offset:3px;
}
.p-desc-wrap.is-open .p-desc-more{ position:static; display:block; margin:6px 0 0 auto; padding:0; background:none; }


/* ---- previous / next product (very bottom of the page) ---- */
.p-prevnext{
  max-width:1600px; margin:0 auto; padding:26px 72px 60px; display:flex; align-items:center; justify-content:space-between; gap:20px;
  font-family:'Poppins','Jost',sans-serif;
}
.p-prevnext-link{ display:inline-flex; align-items:center; gap:4px; text-decoration:none; color:#111; font-size:11px; font-weight:400; letter-spacing:0.8px; }
.p-prevnext-link .label{ border-bottom:1px solid #111; padding-bottom:1px; }
.p-prevnext-link .arrow{ font-size:13px; line-height:1; }
.p-prevnext-link:hover .label{ color:#8a6526; border-bottom-color:#8a6526; }
@media (max-width:980px){ .p-prevnext{ padding-left:15px; padding-right:15px; } }
@media (max-width:620px){ .p-prevnext{ padding-left:20px; padding-right:20px; padding-bottom:90px; } }

/* ---- sleek gold hairline around the main product image ---- */
.main-media{ border:1px solid #c9a236; }

/* Tighter gap between the details block (Description / Additional info) and Reviews. */
.details-section{ padding-bottom:20px; }
.details-wrap > :last-child{ margin-bottom:0; }
.p-addinfo{ margin-bottom:0; }
.rv-grid{ padding-top:36px; }

/* =========================================================
   STORY BLOCKS  alternating image + text rows under "Pairs Beautifully With"
   (admin-editable, see inc/product-story-blocks.php)
   ========================================================= */
.story-blocks{ background:#ffffff; padding:30px 72px 20px; }
.story-blocks-wrap{ max-width:1600px; margin:0 auto; }
.story-row{
  display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:56px; padding:44px 0;
  font-family:'Poppins','Jost',sans-serif;
}
/* DOM order is image then text; odd rows put the text on the left. */
.story-row .story-media{ order:2; }
.story-row .story-copy{ order:1; }
.story-row.is-reversed .story-media{ order:1; }
.story-row.is-reversed .story-copy{ order:2; }
.story-media{ overflow:hidden; }
.story-media img{ display:block; width:100%; height:auto; aspect-ratio:7/5; object-fit:cover; }
.story-copy{ max-width:620px; }
.story-heading{
  margin:0 0 30px; font-family:'Poppins','Jost',Arial,sans-serif; font-size:15px; font-weight:400; letter-spacing:1px;
  text-transform:uppercase; line-height:1.5; color:#111;
}
.story-text p{ margin:0 0 14px; font-size:11px; font-weight:400; line-height:1.95; letter-spacing:0.8px; color:#222; }
.story-btn{
  display:inline-block; margin-top:8px; padding:12px 24px; border:1px solid #b08a2e; background:#ffffff; text-decoration:none;
  font-size:11px; font-weight:400; letter-spacing:0.6px; color:#222; transition:background .2s ease, color .2s ease;
}
.story-btn:hover{ background:#c9a236; color:#111; }
@media (max-width:980px){
  .story-blocks{ padding-left:15px; padding-right:15px; }
  .story-row{ gap:32px; padding:30px 0; }
}
@media (max-width:620px){
  .story-blocks{ padding-left:20px; padding-right:20px; }
  .story-row{ grid-template-columns:1fr; gap:22px; }
  /* Stacked: photo first, then the copy, on every row. */
  .story-row .story-media, .story-row.is-reversed .story-media{ order:1; }
  .story-row .story-copy, .story-row.is-reversed .story-copy{ order:2; }
  .story-heading{ font-size:14px; margin-bottom:18px; }
}

/* ---- engraving: tick box + wording field in one bordered block ---- */
.p-engraving-wrap{ margin:0 0 22px; border:1px solid rgba(201,162,54,0.35); background:rgba(255,255,255,0.6); }
.p-engraving-wrap .p-engraving{ margin:0; border:none; background:none; }
.p-engraving-field{ position:relative; padding:0 16px 14px; }
.p-engraving-field[hidden]{ display:none; }
.p-engraving-field input{
  width:100%; padding:11px 54px 11px 12px; border:1px solid #d9d3ca; background:#ffffff; border-radius: var(--fm-radius-md);
  font-family:'Jost',sans-serif; font-size:13px; letter-spacing:0.4px; color:var(--ink-0);
}
.p-engraving-field input:focus{ outline:none; border-color:var(--gold); }
.p-engraving-field input.is-error{ border-color:#b5473a; }
.p-engraving-count{ position:absolute; right:28px; top:11px; font-family:'Jost',sans-serif; font-size:10.5px; color:#8a8074; pointer-events:none; }

/* ---- engraving: lettering style chips + live preview ---- */
.p-engraving-fonts{ display:flex; gap:8px; margin-top:12px; }
.p-eng-font{
  padding:7px 14px; border:1px solid #d9d3ca; background:#ffffff; cursor:pointer; font-size:12px; color:var(--ink-0); line-height:1;
  transition:border-color .2s ease, background .2s ease, color .2s ease;
}
.p-eng-font.is-script{ font-family:'Great Vibes',cursive; font-size:17px; padding:4px 14px; }
.p-eng-font.is-serif{ font-family:'Playfair Display',Georgia,serif; font-style:italic; }
.p-eng-font.is-block{ font-family:'Jost',Arial,sans-serif; letter-spacing:1.5px; text-transform:uppercase; font-size:10.5px; }
.p-eng-font:hover{ border-color:var(--gold); }
.p-eng-font[aria-checked="true"]{ background:linear-gradient(145deg,#2a241a 0%,#0d0b08 100%); border-color:#0d0b08; color:#ecd27f; }
.p-engraving-preview{ margin-top:14px; padding:12px 10px 8px; background:#f6f5f3; border:1px solid #ebe7e1; text-align:center; }
.p-engraving-preview svg{ display:block; width:100%; max-width:420px; height:auto; margin:0 auto; }
.p-engraving-preview-note{ display:block; margin-top:6px; font-family:'Jost',sans-serif; font-size:10.5px; letter-spacing:0.3px; color:#8a8074; }

/* ---- Description block: one-line teaser + "See more" pill; expands to the full text ---- */
.p-longdesc{ margin:0 0 30px; font-family:'Poppins','Jost',sans-serif; }
.p-longdesc-title{ margin:0 0 20px; font-family:'Playfair Display','Georgia',serif; font-size:17px; font-weight:600; letter-spacing:1.2px; text-transform:uppercase; color:#1a1a1a; }
.p-longdesc-row{ display:flex; align-items:center; gap:10px; }
.p-longdesc-teaser{
  flex:1; min-width:0; margin:0; font-size:10.5px; font-weight:400; line-height:1.9; letter-spacing:0.8px; color:#222;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.p-longdesc-more{
  flex-shrink:0; padding:5px 12px; border:none; border-radius:var(--fm-radius-pill); cursor:pointer; background:#c9a236;
  font-family:'Poppins','Jost',sans-serif; font-size:8px; font-weight:700; letter-spacing:0.8px; text-transform:uppercase; color:#111;
  transition:background .2s ease;
}
.p-longdesc-more:hover{ background:#b8912b; }
.p-longdesc-full{ font-size:11px; font-weight:400; line-height:1.9; letter-spacing:0.6px; color:#222; }
.p-longdesc-full[hidden]{ display:none; }
.p-longdesc-full h1, .p-longdesc-full h2, .p-longdesc-full h3, .p-longdesc-full h4{ margin:18px 0 6px; font-family:'Poppins','Jost',sans-serif; font-size:13px; font-weight:600; letter-spacing:0.5px; color:#111; }
.p-longdesc-full h1:first-child, .p-longdesc-full h2:first-child, .p-longdesc-full h3:first-child{ margin-top:4px; }
.p-longdesc-full p{ margin:0 0 10px; }
.p-longdesc-full ul, .p-longdesc-full ol{ margin:0 0 12px; padding-left:20px; }
.p-longdesc-full li{ margin-bottom:4px; }
/* Open: the teaser line is replaced by the full text; the pill sits under it. */
.p-longdesc.is-open .p-longdesc-teaser{ display:none; }
.p-longdesc.is-open .p-longdesc-row{ margin-top:0; order:2; }
.p-longdesc.is-open{ display:flex; flex-direction:column; }
.p-longdesc.is-open .p-longdesc-title{ order:0; }
.p-longdesc.is-open .p-longdesc-full{ order:1; }
.p-longdesc.is-open .p-longdesc-row{ margin-top:12px; }

/* ---- per-option icons on the variation pills (carat gem, ring-size ring) ---- */
.opt-icon{ flex-shrink:0; stroke:currentColor; fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
#carat-swatches .swatch{ padding-left:12px; gap:7px; align-items:center; }
#carat-swatches .swatch .opt-icon{ color:var(--gold); }
#carat-swatches .swatch.is-active .opt-icon{ color:#ecd27f; }
.size-pill{ display:inline-flex; align-items:center; justify-content:center; gap:5px; padding:7px 10px; }
.size-pill .opt-icon{ color:var(--gold); }
.size-pill.is-active .opt-icon{ color:#ecd27f; }
.size-pill.is-oos .opt-icon{ opacity:0.5; }

/* =========================================================
   RELAXED DESKTOP RHYTHM  per the client's feedback (the old site "feels
   relaxed, as if the icons, text, color and placements are thoughtfully
   designed"). The info column previously used a tight 5px rhythm so the
   CTA landed above the fold; that's deliberately traded for breathing room
   here. Desktop only (mobile follows later): everything sits inside
   min-width:981px, so the phone/tablet rules above are untouched.
   To tune the whole feel, adjust the spacing values in this block.
   ========================================================= */
@media (min-width:981px){
  .product-hero{ padding-top:30px; }
  .hero-grid{ gap:64px; }

  .p-title{ font-size:clamp(30px, 2.8vw, 40px); line-height:1.2; margin:0 0 18px; }
  .p-meta-row{ gap:8px 24px; margin-bottom:28px; }
  .p-rating a, .p-sku, .p-stock{ font-size:12.5px; }

  .p-price-row{ gap:16px; margin-bottom:26px; }
  .p-price-now{ font-size:34px; }
  .p-price-was{ font-size:17px; }
  .p-variant-summary{ font-size:12.5px; gap:4px; }

  .p-desc-wrap{ margin:0 0 22px; }
  .p-desc{ font-size:14px; line-height:1.8; }
  .p-installment{ font-size:13px; line-height:1.7; margin-bottom:40px; }

  .variant-block{ margin-bottom:40px; }
  .variant-block-head{ margin-bottom:18px; }
  .swatch-grid{ gap:12px; }
  .swatch{ padding:12px 22px 12px 14px; gap:10px; }
  .size-grid{ gap:10px; }
  .size-pill{ min-width:52px; padding:11px 12px; }

  .p-engraving-wrap{ margin:6px 0 36px; }
  .p-timeline{ margin-bottom:44px; }

  .qty-cart-row{ margin-bottom:14px; }
  .buy-now-row{ margin-bottom:14px; }
  .wishlist-consult-row{ margin-bottom:14px; }
  .p-why{ margin:36px 0 30px; }
}

/* A touch of rounding on the variation pills (metal / carat / ring size). */
.swatch, .size-pill{ border-radius:var(--fm-radius-sm); }
.swatch.is-active::after, .size-pill.is-active::after{ border-top-right-radius:var(--fm-radius-sm); }

/* Product title a bit smaller (was up to 40px on desktop / 36px base). */
.p-title{ font-size:clamp(24px, 2.2vw, 31px); }
@media (min-width:981px){
  .p-title{ font-size:clamp(26px, 2.3vw, 33px); margin-bottom:16px; }
}

/* Product title in capitals (uppercase runs visually larger, so it is a step smaller). */
.p-title{ text-transform:uppercase; font-size:clamp(22px, 2vw, 28px); }
@media (min-width:981px){
  .p-title{ font-size:clamp(24px, 2.1vw, 30px); }
}

/* =========================================================
   PRODUCT TOP BLOCK  order and look matched to the client's reference:
   title, "SKU | Category" + hairline, pay-later badges, price row
   (was / now | Metal / Moissanite), then the short description.
   ========================================================= */
.p-info{ font-family:'Poppins','Jost',sans-serif; }
.p-meta-top{ display:flex; align-items:center; gap:8px 34px; margin:0 0 0; padding:0 0 20px; border-bottom:1px solid #e6e2dc; font-size:14px; letter-spacing:0.06em; color:#222; }
.p-meta-top .p-sku, .p-meta-top .p-cat{ font-size:14px; color:#222; }
.p-cat a{ color:#c9a236; text-decoration:none; }
.p-cat a:hover{ text-decoration:underline; text-underline-offset:3px; }

.p-bnpl{ margin:22px 0 24px; }
.p-bnpl-badges{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.p-bnpl-badge{ display:inline-flex; align-items:center; gap:3px; font-family:'Poppins',sans-serif; line-height:1; }
.p-bnpl-badge.is-clearpay{ background:#b2fce4; color:#111; padding:5px 10px; border-radius:var(--fm-radius-pill); font-size:11px; font-weight:600; letter-spacing:0; }
.p-bnpl-badge.is-klarna{ background:#ffb3c7; color:#17120f; padding:5px 13px; border-radius:var(--fm-radius-md); font-size:13px; font-weight:700; letter-spacing:-0.2px; }
.p-bnpl-line{ margin:0; font-size:14px; line-height:1.5; color:#111; letter-spacing:0.02em; }
.p-bnpl-plans{ padding:0; border:none; background:none; cursor:pointer; font:inherit; font-weight:700; color:#111; text-decoration:underline; text-decoration-style:dotted; text-underline-offset:4px; }
.p-bnpl-plans:hover{ color:#8a6526; }
.p-bnpl-legal{ margin:3px 0 0; font-size:11px; line-height:1.5; color:#555; letter-spacing:0.02em; }
.p-bnpl-detail{ margin:10px 0 0; padding:10px 14px; background:#f6f5f3; border:1px solid #ebe7e1; font-size:12.5px; line-height:1.6; color:#333; }
.p-bnpl-detail[hidden]{ display:none; }

/* price row: struck-through old price, bold new price | divider | Metal / Moissanite */
.p-price-row{ display:flex; align-items:center; flex-wrap:wrap; gap:0 14px; margin:0 0 22px; }
.p-price-was{ order:1; font-family:'Poppins',sans-serif; font-size:17px; font-weight:400; color:#8c8c8c; text-decoration:line-through; }
.p-price-now{ order:2; font-family:'Poppins',sans-serif; font-size:28px; font-weight:700; letter-spacing:0; color:#111; }
.p-price-save{ display:none !important; }
.p-variant-summary{
  order:3; margin:0 0 0 8px; padding:2px 0 2px 22px; border-left:1px solid #d6d2cb; align-self:center;
  display:flex; flex-direction:column; gap:5px; font-size:13px; line-height:1.3; letter-spacing:0.05em; color:#111; text-align:left;
}
.p-variant-summary .lbl{ color:#777; font-weight:600; }
.p-variant-summary b{ color:#111; font-weight:700; }

/* description right under the price row */
.p-desc-wrap{ margin:0 0 22px; }
.p-desc{ font-size:16px; line-height:1.85; letter-spacing:0.04em; color:#333; max-width:none; }

/* rating + stock + gift-box note, now below the description */
.p-meta-sub{ display:flex; align-items:center; gap:8px 26px; margin:0 0 6px; }
.p-installment{ margin:0 0 30px; font-size:12.5px; color:#6b6b6b; letter-spacing:0.04em; }
@media (min-width:981px){
  .p-meta-top{ margin:0; }
  .p-price-row{ margin-bottom:24px; gap:0 14px; }
  .p-price-now{ font-size:28px; }
  .p-price-was{ font-size:17px; }
  .p-variant-summary{ font-size:13px; gap:5px; }
  .p-desc-wrap{ margin:0 0 24px; }
  .p-desc{ font-size:16px; line-height:1.85; }
  .p-installment{ font-size:12.5px; margin-bottom:34px; }
}
@media (max-width:980px){
  .p-price-now{ font-size:24px; }
  .p-desc{ font-size:14px; }
}

/* Uploaded pay-later logos (Pay Later admin screen) sit in the badge row like the text badges. */
.p-bnpl-logo{ display:block; height:24px; width:auto; max-width:120px; object-fit:contain; }

/* =========================================================
   TIGHTER VERTICAL RHYTHM (desktop)  a notch less air than the first
   "relaxed" pass; same block order, just smaller gaps.
   ========================================================= */
@media (min-width:981px){
  .p-title{ margin-bottom:12px; }
  .p-meta-top{ padding-bottom:15px; }
  .p-bnpl{ margin:15px 0 16px; }
  .p-bnpl-badges{ margin-bottom:6px; }
  .p-price-row{ margin-bottom:16px; }
  .p-desc-wrap{ margin:0 0 16px; }
  .p-meta-sub{ margin-bottom:4px; }
  .p-installment{ margin-bottom:24px; }

  .variant-block{ margin-bottom:28px; }
  .variant-block-head{ margin-bottom:12px; }
  .swatch-grid{ gap:10px; }
  .swatch{ padding:10px 20px 10px 12px; }
  .size-grid{ gap:8px; }
  .size-pill{ padding:9px 12px; }

  .p-engraving-wrap{ margin:4px 0 26px; }
  .p-timeline{ margin-bottom:30px; }
  .qty-cart-row, .buy-now-row, .wishlist-consult-row{ margin-bottom:12px; }
  .p-why{ margin:28px 0 24px; }
}

/* =========================================================
   TYPE SCALE (desktop)  brought down to the client's reference, where the
   title, price and copy are all noticeably smaller and lighter than the
   first pass. Values only; no layout change.
   ========================================================= */
@media (min-width:981px){
  .p-title{ font-size:clamp(20px, 1.75vw, 25px); line-height:1.35em !important; letter-spacing:0.07rem !important; }

  .p-meta-top{ gap:6px 30px; font-size:13px; }
  .p-meta-top .p-sku, .p-meta-top .p-cat{ font-size:13px; }

  .p-bnpl-badge.is-clearpay{ font-size:9.5px; padding:4px 9px; }
  .p-bnpl-badge.is-klarna{ font-size:11.5px; padding:4px 11px; border-radius:var(--fm-radius-md); }
  .p-bnpl-logo{ height:20px; }
  .p-bnpl-line{ font-size:13px; }
  .p-bnpl-legal{ font-size:10px; }
  .p-bnpl-detail{ font-size:12px; }

  .p-price-was{ font-size:14px; }
  .p-price-now{ font-size:22px; }
  .p-variant-summary{ font-size:12px; padding-left:18px; gap:4px; }

  .p-desc{ font-size:14px; line-height:1.75; letter-spacing:0.035em; }
  .p-desc-more{ font-size:11px; }

  .p-rating a, .p-sku, .p-stock{ font-size:12px; }
  .p-installment{ font-size:11.5px; }
}

/* ---- Add to wishlist / Add to compare (under Buy it now) ---- */
.p-actions-row{ display:flex; align-items:center; flex-wrap:wrap; gap:12px 30px; margin:16px 0 18px; }
.p-action{
  display:inline-flex; align-items:center; gap:10px; padding:0; border:none; background:none; cursor:pointer;
  font-family:'Poppins','Jost',sans-serif; font-size:13px; letter-spacing:0.06em; color:#111;
}
.p-action-icon{
  width:36px; height:36px; flex-shrink:0; border:1px solid #e3e0da; border-radius:var(--fm-radius-circle); background:#ffffff;
  display:grid; place-items:center; transition:border-color .2s ease, background .2s ease;
}
.p-action-icon svg{ width:16px; height:16px; stroke:#111; fill:none; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; transition:fill .2s ease, stroke .2s ease; }
.p-action-label{ border-bottom:1px solid #111; padding-bottom:1px; line-height:1.4; }
.p-action:hover .p-action-icon{ border-color:#c9a236; }
.p-action:hover .p-action-label{ color:#8a6526; border-bottom-color:#8a6526; }
.p-action .p-action-on{ display:none; }
.p-action.is-active .p-action-off{ display:none; }
.p-action.is-active .p-action-on{ display:inline; }
.p-action.is-active .p-action-icon{ border-color:#c9a236; background:#fbf6e6; }
.p-action.is-active .p-action-icon svg{ stroke:#c9a236; }
#wishlist-btn.is-active .p-action-icon svg{ fill:#c9a236; }
.wishlist-consult-row .btn-line{ flex:1 1 100%; }

/* ---------------- unavailable (out of stock / unpriced / no matching variation) ----------------
   Set by updateAvailability() in assets/js/page-product.js: the purchase
   buttons are disabled and the reason replaces the label. */
#add-to-cart.is-unavailable,
#sticky-add.is-unavailable {
  background: #d8d3ca;
  border-color: #d8d3ca;
  color: #6f665a;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
}
#add-to-cart.is-unavailable:hover,
#sticky-add.is-unavailable:hover { background: #d8d3ca; border-color: #d8d3ca; color: #6f665a; }
#buy-now.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
