/* Focused Nutrition Design: surface "single-product" (product page).
 * Port of the approved mock (mock/css/pages/product.css) for the WordPress template templates/single-product.php.
 * Loaded only on this surface (handle fnd-surface-single-product, after fn.css). Every rule is under a .pdp-* class
 * or body.fnd-surface-single-product. Tokens from fn.css. */


/* ---------- page frame ---------- */
.pdp { padding: var(--s-4) 0 var(--s-7); }
@media (min-width: 1024px) { .pdp { padding: var(--s-5) 0 var(--s-8); } }

/* skeleton: tall enough that the footer is never in the first paint (no layout shift when the product renders) */
.pdp--skel { min-height: calc(100vh - var(--fn-header-total, 0px)); }
.pdp-thumbs--skel .pdp-thumb { display: block; }

.pdp-top { min-height: 24px; margin-bottom: var(--s-4); }
@media (min-width: 1024px) { .pdp-top { margin-bottom: var(--s-5); } }
.pdp-top .fn-crumbs li:last-child { min-width: 0; max-width: 100%; }
.pdp-top .fn-crumbs [aria-current="page"] { display: block; max-width: 46ch; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* phones: a single back link to the product's category ("‹ Creatine") instead of a trail that wraps */
@media (max-width: 767.98px) {
  .pdp-top { min-height: 44px; margin-bottom: var(--s-2); display: flex; align-items: center; }
  .pdp-top .fn-crumbs li { display: none; }
  .pdp-top .fn-crumbs li:nth-last-child(2) { display: inline-flex; }
  .pdp-top .fn-crumbs li:nth-last-child(2)::before { content: none; }
  .pdp-top .fn-crumbs li:nth-last-child(2) a {
    display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-right: 8px;
    font-size: 14px; font-weight: 600; color: var(--fn-ink);
  }
  .pdp-top .fn-crumbs li:nth-last-child(2) a::before {
    content: ""; width: 8px; height: 8px; margin: 0 4px 0 2px;
    border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
  }
}

.pdp-notice {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: var(--s-4); padding: 14px 16px;
  border-radius: var(--r-md); background: var(--fn-orange-tint); border: 1px solid #fde0bf;
  font-size: 14px; line-height: 1.5;
}
.pdp-notice svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.pdp-notice p { margin: 0; }

.pdp-grid { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) {
  .pdp-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: start; }
}
@media (min-width: 1280px) { .pdp-grid { gap: 64px; } }

/* ---------- gallery ---------- */
.pdp-gallery { min-width: 0; }
@media (min-width: 1024px) {
  .pdp-gallery { position: sticky; top: calc(var(--fn-sticky-top) + 24px); }
}
.pdp-media { display: grid; gap: var(--s-3); min-width: 0; }
/* the thumbnails come first in the DOM (keyboard order = desktop layout); below 1200px the strip sits under the stage */
.pdp-media .pdp-thumbs { order: 1; }
@media (min-width: 1200px) {
  .pdp-media { grid-template-columns: 76px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
  .pdp-media--single { grid-template-columns: minmax(0, 1fr); }
  .pdp-media .pdp-thumbs { order: 0; flex-direction: column; overflow: visible; padding: 0; margin: 0; }
}

.pdp-stage, .pdp-viewer .fn3d-poster {
  --pdp-well:
    radial-gradient(36% 8% at 50% 78%, rgba(247, 123, 1, .06), transparent 70%),
    radial-gradient(95% 75% at 50% 36%, #ffffff 0%, var(--fn-warm) 58%, #ebe7e1 100%);
}
.pdp-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--pdp-well);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
  -webkit-user-select: none; user-select: none;
}
.pdp-stage--skel { background: var(--fn-warm); }
.pdp-stage--skel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  background-size: 220% 100%; animation: fn-shimmer 1.4s linear infinite;
}

/* the 3D viewer fills the stage (fn3d.js styles .fn3d-stage with zero specificity) */
.pdp-viewer { position: absolute; inset: 0; }
.pdp-viewer[hidden] { display: none; }
.pdp-viewer:focus-visible { box-shadow: inset 0 0 0 3px var(--fn-orange); outline: 2px solid var(--fn-ink); outline-offset: -5px; border-radius: var(--r-lg); }
/* fn3d's poster shows the photo until the model is ready: blend the white photo into the well */
/* the poster gets the same well so the multiply blend still works while it fades (opacity makes it its own group) */
.pdp-viewer .fn3d-poster { background: var(--pdp-well); }
.pdp-viewer .fn3d-poster::after { display: none; }
.pdp-viewer .fn3d-poster img { mix-blend-mode: multiply; }
.pdp-viewer .fn3d-flat img { mix-blend-mode: multiply; max-width: 74%; max-height: 74%; }

.pdp-photo { position: absolute; inset: 0; touch-action: pan-y; }
.pdp-photo[hidden] { display: none; }
.pdp-photo__btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center; cursor: zoom-in;
  background: none; border: 0; padding: 0;
}
.pdp-photo__btn:focus-visible { outline: 2px solid var(--fn-ink); outline-offset: -5px; box-shadow: inset 0 0 0 6px var(--fn-orange-glow); border-radius: var(--r-lg); }
.pdp-stage.is-mode-photo { --pdp-well: radial-gradient(95% 75% at 50% 36%, #ffffff 0%, var(--fn-warm) 58%, #ebe7e1 100%); }
.pdp-photo__img {
  position: absolute; top: 6%; left: 6%;
  width: 88%; height: 88%; /* fill the stage even when the source photo is small; contain keeps the shape */
  object-fit: contain;
  transition: opacity 250ms var(--ease);
}
.pdp-photo__img.is-whitebg { mix-blend-mode: multiply; transform: scale(1.14); } /* source photos carry a wide white margin */
.pdp-photo__img.is-swapping { opacity: 0; }

/* stage chrome */
.pdp-stage__badges { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; max-width: 45%; }
@media (min-width: 768px) { .pdp-stage__badges { top: 16px; left: 16px; } }

.pdp-seg {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  display: inline-flex; padding: 4px; gap: 2px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(0, 0, 0, .05);
}
@media (min-width: 768px) { .pdp-seg { top: 16px; right: 16px; } }
.pdp-seg button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 700; color: var(--fn-ink-2);
  transition: background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.pdp-seg button svg { width: 16px; height: 16px; }
.pdp-seg button:hover { color: var(--fn-ink); background: rgba(0, 0, 0, .05); }
.pdp-seg button[aria-pressed="true"] { background: var(--fn-ink); color: #fff; }
.pdp-seg button[aria-pressed="true"] svg { color: var(--fn-orange); }
@media (max-width: 400px) { .pdp-seg button { padding: 0 11px; } .pdp-seg button svg { display: none; } }

.pdp-tools {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  display: flex; gap: 6px;
}
@media (min-width: 768px) { .pdp-tools { right: 16px; bottom: 16px; } }
.pdp-tools[hidden], .pdp-tool[hidden] { display: none; }
.pdp-tool {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--fn-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .10), inset 0 0 0 1px rgba(0, 0, 0, .04);
  transition: background-color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.pdp-tool svg { width: 19px; height: 19px; }
.pdp-tool:hover { background: var(--fn-orange); }
.pdp-tool:active { transform: scale(.94); }
.pdp-stage.is-flat [data-zoom] { display: none; }

.pdp-hint {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; min-height: 40px; padding: 0 14px 0 12px;
  border-radius: var(--r-pill); background: rgba(255, 255, 255, .9);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  font-size: 13px; font-weight: 700; color: var(--fn-ink-2);
  pointer-events: none;
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.pdp-hint[hidden] { display: none; }
.pdp-hint svg { width: 20px; height: 20px; color: var(--fn-ink); animation: pdp-sway 2.4s var(--ease) infinite; }
@media (min-width: 768px) {
  .pdp-hint { left: 50%; bottom: 16px; transform: translateX(-50%); }
  .pdp-stage.is-used .pdp-hint { transform: translate(-50%, 6px); }
}
.pdp-stage.is-used .pdp-hint { opacity: 0; }
@keyframes pdp-sway { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }

/* thumbnails */
.pdp-thumbs {
  display: flex; gap: 10px;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  padding: 3px; margin: -3px;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  position: relative; flex: none;
  width: 64px; height: 64px; padding: 6px;
  border-radius: var(--r-sm); background: var(--fn-warm);
  border: 1.5px solid transparent; isolation: isolate;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
@media (min-width: 1200px) { .pdp-thumb { width: 72px; height: 72px; } }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; transition: opacity var(--t) var(--ease); }
.pdp-thumbs[hidden] { display: none; }
.pdp-thumb.is-loading { overflow: hidden; }
.pdp-thumb.is-loading img { opacity: 0; }
.pdp-thumb.is-loading::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  background-size: 220% 100%; animation: fn-shimmer 1.4s linear infinite;
}
.pdp-thumb img.is-whitebg { mix-blend-mode: multiply; }
.pdp-thumb img.is-snap { transform: scale(1.18); }
.pdp-thumb--var { animation: pdp-thumb-in 240ms var(--ease) both; }
@keyframes pdp-thumb-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pdp-thumb--var { animation: none; } }
.pdp-thumb:hover { border-color: var(--fn-line-2); }
.pdp-thumb[aria-pressed="true"] { border-color: var(--fn-ink); box-shadow: 0 0 0 2px var(--fn-orange); }
.pdp-thumb__tag {
  position: absolute; right: 4px; bottom: 4px;
  padding: 1px 6px; border-radius: var(--r-pill);
  background: var(--fn-ink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; line-height: 16px;
}

/* ---------- buy box ---------- */
.pdp-buy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pdp-buy > * { animation: pdp-rise 500ms var(--ease) both; }
.pdp-buy > :nth-child(2) { animation-delay: 60ms; }
.pdp-buy > :nth-child(3) { animation-delay: 120ms; }
.pdp-buy > :nth-child(4) { animation-delay: 180ms; }
.pdp-buy > :nth-child(n+5) { animation-delay: 240ms; }
@keyframes pdp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.pdp-head { display: flex; flex-direction: column; gap: 10px; }
.pdp-eyebrow { align-self: flex-start; display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
.pdp-eyebrow:hover { color: var(--fn-ink); text-decoration: underline; text-decoration-color: var(--fn-orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.pdp-title {
  font-size: clamp(26px, 1vw + 20px, 36px); line-height: 1.12; letter-spacing: -.015em;
  text-wrap: balance; overflow-wrap: anywhere;
}
/* long real product names (data-long set by the template: 1 = over 40 characters, 2 = over 64) step down so they stay
   at about two lines in the desktop buy column and the price and options stay near the top, like the mock */
.pdp-title[data-long="1"] { font-size: clamp(24px, .8vw + 18px, 30px); line-height: 1.14; }
.pdp-title[data-long="2"] { font-size: clamp(21px, .4vw + 17px, 23px); line-height: 1.2; letter-spacing: -.01em; }
.pdp-pricerow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 4px; }
/* "Available on backorder" (WooCommerce's stock status onbackorder): orderable, but not on the shelf */
.pdp .fn-stock--back { color: #9a4a00; }
.pdp .fn-stock--back::before { background: var(--fn-orange); box-shadow: 0 0 0 4px var(--fn-orange-glow); }
.pdp-price { font-size: clamp(26px, .6vw + 22px, 30px); line-height: 1.1; }
.pdp-pricegrp { display: inline-flex; align-items: baseline; gap: 6px; }
.pdp-cur { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--fn-meta); text-decoration: none; cursor: help; }
.pdp-lead { margin: 0; font-family: var(--fn-font-text); font-size: 15.5px; line-height: 1.65; color: #333; }
.pdp-lead .fn-link { font-weight: 600; white-space: nowrap; }

.pdp-specs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pdp-specs li {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 14px; border-radius: var(--r-pill); background: var(--fn-warm-2);
  font-size: 13px; line-height: 1.3;
}
.pdp-specs span { color: var(--fn-meta); }

/* options */
/* the option error line sits absolutely in the 28px gap under its group: no reserved dead band, no shift when it shows */
.pdp-form { display: flex; flex-direction: column; gap: var(--s-5); }
.pdp-form:has(.pdp-opts) { gap: 28px; }
.pdp-opts { display: flex; flex-direction: column; gap: 28px; }
.pdp-opt { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.pdp-opt__legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0; margin-bottom: 10px; font-size: 14px; }
.pdp-opt__name { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.pdp-opt__val { color: var(--fn-meta); font-size: 14px; }
.pdp-opt.is-chosen .pdp-opt__val { color: var(--fn-ink); font-weight: 700; }
.pdp-opt .fn-opt span { min-height: 46px; padding: 0 18px; border-radius: 10px; font-size: 14px; }
.pdp-opt .fn-opt span:hover, .pdp-opt .fn-opt:hover span { border-color: var(--fn-ink-2); }
.pdp-opt .fn-opt input:checked + span { position: relative; box-shadow: inset 0 0 0 2px var(--fn-ink); border-color: var(--fn-ink); background: #fff; color: var(--fn-ink);
  text-shadow: .35px 0 0 currentColor, -.35px 0 0 currentColor; /* reads bold without changing the pill's width */ }
.pdp-opt .fn-opt input:focus-visible + span { outline: 2px solid var(--fn-ink); outline-offset: 2px; }
.pdp-opt .fn-opt input:checked:focus-visible + span { box-shadow: inset 0 0 0 2px var(--fn-ink), 0 0 0 6px var(--fn-orange-glow); }
.pdp-opt .fn-opt input:checked + span::after {
  content: ""; position: absolute; top: -6px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--fn-orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat;
  box-shadow: 0 0 0 2px #fff;
}
.pdp-opt.is-invalid .fn-opt span { border-color: var(--fn-danger); }
.pdp-opt.is-invalid .fn-opts { animation: pdp-shake 360ms var(--ease); }
.pdp-opt__err {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; align-items: center; gap: 6px; margin: 4px 0 0;
  color: var(--fn-danger); font-size: 14px; line-height: 20px; font-weight: 700; visibility: hidden;
}
.pdp-opt.is-flagged .pdp-opt__err { visibility: visible; } /* out of flow: nothing moves when it shows or clears */
.pdp-opt__err svg { width: 16px; height: 16px; flex: none; }
@keyframes pdp-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }

/* actions */
.pdp-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
.pdp-qty { position: relative; }
.pdp-qty__lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pdp-qty .fn-qty { height: 54px; border-radius: 10px; }
.pdp-qty .fn-qty input { width: 40px; }
.pdp-add { width: 100%; }
.pdp-add:disabled { grid-column: 1 / -1; }
.pdp-buynow { grid-column: 1 / -1; width: 100%; }
.pdp-ask { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--fn-meta); text-align: center; }
.pdp-ask svg { width: 15px; height: 15px; flex: none; color: var(--fn-ink-2); }
.pdp-ask .fn-link { display: inline-block; padding-block: 3px; color: var(--fn-ink); font-weight: 600; }
/* .pdp-status is screen-reader only (fn-sr-only); the visible message sits under each option group.
   Out of the flex flow, so it adds no empty gap under the buttons. */
.pdp-form { position: relative; }
.pdp-form > .pdp-status { position: absolute; }
.pdp-actions--link, .pdp-actions--noqty { grid-template-columns: minmax(0, 1fr); }
.pdp-note { margin: -8px 0 0; font-size: 13px; color: var(--fn-meta); }
.pdp-oos { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fn-ink-2); }

/* assurance list (real facts only) */
.pdp-assure {
  list-style: none; margin: 0; padding: 4px 18px;
  border: 1px solid var(--fn-line); border-radius: var(--r-lg); background: #fff;
}
.pdp-assure li { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; }
.pdp-assure li + li { border-top: 1px solid var(--fn-line); }
.pdp-assure__ic {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--fn-orange-tint); color: var(--fn-ink);
}
.pdp-assure__ic svg { width: 20px; height: 20px; }
.pdp-assure div { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.45; }
.pdp-assure strong { font-size: 14.5px; }
.pdp-assure span { color: var(--fn-ink-2); }
/* desktop: title runs into its text, so the buy box ends level with the gallery at 1440x900 */
@media (min-width: 1024px) {
  .pdp-buy { gap: 16px; }
  .pdp-assure div { display: block; align-self: center; }
  .pdp-assure strong { margin-right: 2px; }
  .pdp-assure li { align-items: center; }
}

/* ---------- details section ---------- */
.pdp-more { background: #fff; border-top: 1px solid var(--fn-line); }
/* phones: title, accordions, advice card. Desktop: title + advice on the left, accordions on the right */
.pdp-more__grid { display: grid; gap: var(--s-5); }
@media (min-width: 1024px) {
  .pdp-more__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "intro acc" "advice acc";
    column-gap: 80px; row-gap: var(--s-5); align-items: start;
  }
  .pdp-more__intro { grid-area: intro; }
  .pdp-more__acc { grid-area: acc; }
  .pdp-advice { grid-area: advice; position: sticky; top: calc(var(--fn-sticky-top) + 24px); }
}
.pdp-more__title { margin: 8px 0 0; max-width: 16ch; }

.pdp-advice { display: grid; border-radius: var(--r-lg); overflow: hidden; background: var(--fn-black); color: #fff; }
@media (min-width: 640px) and (max-width: 1023.98px) { .pdp-advice { grid-template-columns: 220px 1fr; } }
.pdp-advice__img { width: 100%; height: 220px; object-fit: cover; object-position: 50% 18%; }
@media (min-width: 640px) and (max-width: 1023.98px) { .pdp-advice__img { height: 100%; } }
.pdp-advice__body { display: flex; flex-direction: column; gap: 10px; padding: 24px; }
.pdp-advice__title { font-size: 22px; line-height: 1.2; }
.pdp-advice__body p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fn-on-dark); }
.pdp-advice__body .fn-eyebrow { color: var(--fn-orange); }
.pdp-advice__note { font-size: 13px !important; color: var(--fn-on-dark-2) !important; }
.pdp-advice .fn-btn { margin-top: 6px; align-self: flex-start; }
.pdp-advice .fn-btn:focus-visible { outline-color: #fff; }

.pdp-more__acc .fn-acc__sum { min-height: 64px; font-size: 18px; }
.pdp-more__acc { max-width: 760px; } /* divider lines and text end together */
.pdp-desc { max-width: none; }
.pdp-desc p { margin: 0 0 1em; }
.pdp-desc h4 { margin: 1.4em 0 .5em; font-family: var(--fn-font); font-size: 16px; color: var(--fn-ink); }
.pdp-desc__head { font-family: var(--fn-font); font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--fn-ink); }
.pdp-desc__list { list-style: none; padding: 0; margin: 0 0 1.1em; display: grid; gap: 10px; }
.pdp-desc__list li { position: relative; padding-left: 22px; line-height: 1.55; }
.pdp-desc__list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--fn-orange);
}
.pdp-desc__list strong { color: var(--fn-ink); font-weight: 700; }
.pdp-desc__more a, .pdp-deliv a { color: var(--fn-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--fn-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pdp-desc__more a:hover, .pdp-deliv a:hover { text-decoration-color: var(--fn-ink); }

.pdp-dl { margin: 0; }
.pdp-dl > div { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--fn-line); }
.pdp-dl > div:first-child { padding-top: 0; }
.pdp-dl > div:last-child { border-bottom: 0; }
.pdp-dl dt { font-family: var(--fn-font); font-weight: 700; color: var(--fn-ink); font-size: 14px; }
.pdp-dl dd { margin: 0; overflow-wrap: anywhere; }

.pdp-deliv { display: grid; gap: 20px; }
@media (min-width: 768px) { .pdp-deliv { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.pdp-deliv > div { padding: 18px; border-radius: var(--r-md); background: var(--fn-warm); }
.pdp-deliv h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-family: var(--fn-font); font-size: 15px; color: var(--fn-ink); }
.pdp-deliv h3 svg { width: 18px; height: 18px; }
.pdp-deliv p { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }

/* ---------- rails ---------- */
.pdp-railsec .fn-sechead { align-items: flex-end; }
.pdp-railsec .fn-sechead .fn-eyebrow { margin-bottom: 8px; }
.pdp-railnav { display: flex; align-items: center; gap: 8px; flex: none; }
.pdp-railnav__link { margin-right: 8px; }
.pdp-railbtn { display: none; border: 1.5px solid var(--fn-line-2); background: #fff; }
.pdp-railbtn:hover { background: var(--fn-ink); color: #fff; border-color: var(--fn-ink); }
.pdp-railbtn:disabled { opacity: .35; pointer-events: none; }
@media (min-width: 768px) { .pdp-railbtn { display: grid; } }
.pdp-railsec--static .pdp-railbtn { display: none; }
@media (max-width: 767.98px) { .pdp-rail { grid-auto-columns: minmax(150px, 42%); } } /* a peek of the next card says "swipe" */
@media (min-width: 1200px) { .pdp-rail { grid-auto-columns: calc((100% - 3 * var(--fn-gap)) / 4); } }
@media (max-width: 479.98px) {
  .pdp-railsec .fn-sechead { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pdp-railnav__link { font-size: 13px; margin-right: 0; }
}
/* 3D card snapshots: keep them inside the square frame, same scale as the photo cards; quick 200ms fade in */
.pdp-railsec .fn-card__img3d { inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 200ms var(--ease), transform var(--t-slow) var(--ease); }
.pdp-railsec .fn-card__img { transition: opacity 200ms var(--ease), transform var(--t-slow) var(--ease); }
/* card buttons: one shared style in css/fn.css (.fn-card__cta), no page override */

/* the details section already carries the consultation card: skip the orange pre-footer band on this page */
body.fnd-surface-single-product .fn-footer__cta { display: none; }

/* ---------- sticky add-to-cart bar ---------- */
.pdp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: #fff; border-top: 1px solid var(--fn-line); box-shadow: var(--sh-up);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(105%); visibility: hidden;
  transition: transform var(--t-slow) var(--ease), visibility 0s linear var(--t-slow);
}
.pdp-bar.is-on { transform: none; visibility: visible; transition: transform var(--t-slow) var(--ease), visibility 0s; }
.pdp-bar__inner { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.pdp-bar__thumb { flex: none; width: 48px; height: 48px; padding: 4px; border-radius: var(--r-sm); background: var(--fn-warm); isolation: isolate; }
.pdp-bar__thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdp-bar__thumb img.is-whitebg { mix-blend-mode: multiply; }
.pdp-bar__text { flex: 1; min-width: 0; }
.pdp-bar__name { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-bar__meta { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 0; font-size: 13px; color: var(--fn-meta); min-width: 0; }
.pdp-bar__price { font-size: 15px; flex: none; }
.pdp-bar__sel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pdp-bar__sel:empty { display: none; }
.pdp-bar__qty { flex: none; font-weight: 700; color: var(--fn-ink); }
.pdp-bar__qty[hidden] { display: none; }
.pdp-bar__btn { flex: none; min-height: 48px; padding: 0 18px; }
@media (max-width: 419.98px) {
  .pdp-bar__inner { gap: 10px; }
  .pdp-bar__btn { padding: 0 14px; font-size: 14px; }
  .pdp-bar__btn svg { display: none; }
}
@media (min-width: 1024px) {
  .pdp-bar__inner { min-height: 80px; gap: 16px; }
  .pdp-bar__thumb { width: 56px; height: 56px; }
  .pdp-bar__name { font-size: 15px; }
  .pdp-bar__btn { min-height: 52px; padding: 0 32px; }
}

/* ---------- photo lightbox ---------- */
.pdp-lb {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid; place-items: center; padding: 64px 16px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility 0s linear var(--t);
}
.pdp-lb.is-open { opacity: 1; visibility: visible; transition: opacity var(--t) var(--ease), visibility 0s; }
.pdp-lb__fig {
  margin: 0; max-width: min(920px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 24px; border-radius: 20px; background: #fff; box-shadow: var(--sh-deep);
}
.pdp-lb__fig img { width: auto; height: auto; max-width: 100%; max-height: calc(100vh - 220px); object-fit: contain; }
.pdp-lb__cap { font-size: 13px; color: var(--fn-meta); text-align: center; }
.pdp-lb__close { position: fixed; top: 12px; right: 12px; background: #fff; box-shadow: var(--sh-pop); }
.pdp-lb__close:hover { background: var(--fn-orange); }
.pdp-lb__nav { position: fixed; top: 50%; margin-top: -22px; background: #fff; box-shadow: var(--sh-pop); }
.pdp-lb__nav:hover { background: var(--fn-orange); }
.pdp-lb__nav[hidden] { display: none; }
.pdp-lb__nav--prev { left: 12px; }
.pdp-lb__nav--next { right: 12px; }
@media (max-width: 767.98px) { .pdp-lb__nav { top: auto; bottom: 16px; margin: 0; } .pdp-lb__nav--prev { left: calc(50% - 52px); } .pdp-lb__nav--next { right: calc(50% - 52px); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pdp-buy > *, .pdp-opt.is-invalid .fn-opts, .pdp-hint svg, .pdp-stage--skel::after, .pdp-thumb.is-loading::after { animation: none !important; }
  .pdp-bar, .pdp-bar.is-on, .pdp-lb, .pdp-lb.is-open, .pdp-photo__img, .pdp-hint,
  .pdp-railsec .fn-card__img3d, .pdp-railsec .fn-card__img { transition: none; }
}

/* ==========================================================================
   WordPress build additions (real WooCommerce content)
   ========================================================================== */

/* script-only controls stay out of the way until fn.js has booted (no-JS: the photo + classic form work) */
html:not(.fn-js) .pdp-js { display: none !important; }
/* with JS the 3D viewer owns the stage; the server-rendered photo is the no-JS fallback */
.fn-js .pdp-stage.is-mode-3d .pdp-photo { display: none; }
.pdp-photo__btn { text-decoration: none; }

/* price wrappers (the script swaps the inner price when a variation is chosen) */
.pdp-pricewrap, .pdp-bar__pricewrap { display: inline-flex; align-items: baseline; }
.pdp-pricewrap .fn-price__was, .pdp-bar__pricewrap .fn-price__was { font-size: .62em; margin-right: 6px; }
.pdp-bar__pricewrap { flex: none; }
.pdp-pricewrap.is-swapping, .pdp-bar__pricewrap.is-swapping { opacity: .35; transition: opacity 120ms var(--ease); }

/* options that have no in-stock match with the other choices */
.pdp-opt .fn-opt.is-unavail span { color: var(--fn-meta); text-decoration: line-through; text-decoration-thickness: 1px; background: var(--fn-warm); }
.pdp-opt .fn-opt.is-unavail input:checked + span { color: var(--fn-ink-2); }
.pdp-varmsg {
  display: flex; align-items: center; gap: 8px; margin: -8px 0 0;
  font-size: 14px; line-height: 1.45; font-weight: 700; color: var(--fn-danger);
}
.pdp-varmsg svg { width: 16px; height: 16px; flex: none; }
.pdp-add.is-loading, .pdp-buynow.is-loading, .pdp-bar__btn.is-loading { pointer-events: none; }

/* WooCommerce notices (e.g. after a no-JS add to cart) */
.pdp-notices:empty { display: none; }
.pdp-notices .woocommerce-notices-wrapper:empty { display: none; }
/* is-empty (set by the template): only WooCommerce's empty wrapper was printed, so the box takes no space above the
   breadcrumb. A notice a script adds later still shows. */
.pdp-notices.is-empty { display: none; }
.pdp-notices.is-empty:has(.woocommerce-message, .woocommerce-error, .woocommerce-info, .wc-block-components-notice-banner) { display: block; }
.pdp-notices { padding-top: var(--s-4); }
.pdp-notices .woocommerce-message, .pdp-notices .woocommerce-info, .pdp-notices .woocommerce-error,
.pdp-notices .wc-block-components-notice-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; list-style: none;
  margin: 0 0 var(--s-3); padding: 14px 16px; border-radius: var(--r-md);
  background: var(--fn-orange-tint); border: 1px solid #fde0bf; font-size: 14px; line-height: 1.5; color: var(--fn-ink);
}
.pdp-notices .woocommerce-error, .pdp-notices .wc-block-components-notice-banner.is-error { background: #fff3f2; border-color: #f5c2bd; }
.pdp-notices .woocommerce-error li { list-style: none; }
.pdp-notices .wc-block-components-notice-banner > svg { width: 20px; height: 20px; flex: none; }
.pdp-notices a.button, .pdp-notices .wc-forward {
  order: 2; margin-left: auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--fn-ink); color: #fff; font-weight: 700; font-size: 13px;
}

/* real product descriptions (WooCommerce HTML) */
.pdp-desc { overflow-wrap: anywhere; }
.pdp-desc > :first-child { margin-top: 0; }
.pdp-desc p, .pdp-desc ul, .pdp-desc ol, .pdp-desc table, .pdp-desc figure, .pdp-desc blockquote { margin: 0 0 1em; }
.pdp-desc h1, .pdp-desc h2, .pdp-desc h3, .pdp-desc h4, .pdp-desc h5, .pdp-desc h6 {
  margin: 1.4em 0 .5em; font-family: var(--fn-font); color: var(--fn-ink); line-height: 1.3; letter-spacing: -.005em;
}
.pdp-desc h1, .pdp-desc h2 { font-size: 18px; }
.pdp-desc h3 { font-size: 17px; }
.pdp-desc h4, .pdp-desc h5, .pdp-desc h6 { font-size: 16px; }
.pdp-desc > h1:first-child, .pdp-desc > h2:first-child, .pdp-desc > h3:first-child, .pdp-desc > h4:first-child { margin-top: 0; }
.pdp-desc strong, .pdp-desc b { color: var(--fn-ink); font-weight: 700; }
.pdp-desc ul:not([role="list"]) { list-style: none; padding: 0; display: grid; gap: 8px; }
.pdp-desc ul:not([role="list"]) > li { position: relative; padding-left: 22px; line-height: 1.55; }
.pdp-desc ul:not([role="list"]) > li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--fn-orange);
}
.pdp-desc ol { padding-left: 1.4em; }
.pdp-desc ol > li + li { margin-top: 6px; }
.pdp-desc a { color: var(--fn-ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--fn-orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pdp-desc img { height: auto; max-width: 100%; border-radius: var(--r-sm); }
.pdp-desc iframe, .pdp-desc video { max-width: 100%; border: 0; border-radius: var(--r-sm); }
.pdp-desc table { width: 100%; font-size: 14px; display: block; overflow-x: auto; }
.pdp-desc th, .pdp-desc td { padding: 8px 10px; border-bottom: 1px solid var(--fn-line); text-align: left; vertical-align: top; }
.pdp-desc hr { border: 0; border-top: 1px solid var(--fn-line); margin: 1.4em 0; }
.pdp-tab .wb_cptb_content > :last-child, .pdp-desc > :last-child { margin-bottom: 0; }

/* real reviews (only rendered when approved reviews exist) */
.pdp-reviews .commentlist { list-style: none; padding: 0; display: grid; gap: 16px; }
.pdp-reviews .commentlist li::before { content: none; }
.pdp-reviews .comment_container { display: flex; gap: 12px; }
.pdp-reviews .avatar { width: 40px; height: 40px; border-radius: 50%; }
.pdp-reviews .star-rating { font-size: 13px; color: var(--fn-ink); }
.pdp-reviews .woocommerce-Reviews-title { display: none; }

/* the details accordions use the full width below the desktop two-column layout */
@media (max-width: 1023.98px) { .pdp-more__acc { max-width: none; } }
