/* =====================================================================
   product-detail.css — Fair Ford Pharmaceuticals
   Premium B2B product-detail experience · productdetail.html only
   ---------------------------------------------------------------------
   Loaded after style.css (shared header/footer/cart) and
   product-marketplace.css (whose `.ffm-*` cards + rails are reused for
   the Related / You-may-also-like / Recently-viewed strips). Everything
   here is namespaced `.pdx-*`. Same palette + tokens as the marketplace
   so the two pages read as one system.

   Motion note: this project's preview engine freezes CSS-transitioned
   properties at their start value on class toggle, so anything whose
   VISIBILITY is functional (sticky bars, lightbox, gallery slide) is
   toggled without depending on a transition to reach its end state.
   Hover / decorative transitions are used freely.
   ===================================================================== */

/* ==========================================================
   0 · TOKENS  (scoped to the page root)
   ========================================================== */
.pdx {
    --p:      #0F4C81;
    --p-600:  #1E6FA8;
    --p-700:  #0C3E6B;
    --p-050:  #EEF4FA;
    --p-100:  #DCE8F4;

    --bgc:    #F7F9FC;
    --card:   #FFFFFF;
    --ink:    #172033;
    --muted:  #667085;
    --line:   #E4E9F2;
    --line-2: #EEF1F6;
    --ok:     #16A34A;
    --ok-bg:  #ECFDF3;
    --warn:   #B45309;
    --warn-bg:#FFFAEB;
    --err:    #DC2626;
    --off:    #667085;
    --off-bg: #F2F4F7;

    --r-sm: 8px;
    --r:    12px;
    --r-lg: 16px;
    --r-xl: 22px;

    --sh-1: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
    --sh-2: 0 4px 8px -2px rgba(16, 24, 40, .07), 0 2px 4px -2px rgba(16, 24, 40, .05);
    --sh-3: 0 12px 20px -6px rgba(15, 76, 129, .12), 0 4px 8px -4px rgba(16, 24, 40, .06);
    --sh-4: 0 24px 48px -12px rgba(16, 24, 40, .18);

    --ring: 0 0 0 3px rgba(30, 111, 168, .28);
    --ez:   cubic-bezier(.4, 0, .2, 1);
    --sticky: 70px;

    color: var(--ink);
    font-family: var(--ff-font-body, 'Satoshi', system-ui, sans-serif);
}

body:has(.pdx) { background: #F7F9FC; }

.pdx * { box-sizing: border-box; }
.pdx h1, .pdx h2, .pdx h3 {
    font-family: var(--ff-font-heading, 'Clash Display', system-ui, sans-serif);
    color: var(--ink);
    letter-spacing: -.015em;
    line-height: 1.18;
}
.pdx p { color: var(--muted); }
.pdx-sr {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pdx :focus-visible {
    outline: 2px solid var(--p-600);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ==========================================================
   1 · BUTTONS
   ========================================================== */
.pdx-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--r);
    font: 600 .88rem/1.2 var(--ff-font-body, sans-serif);
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: background .18s var(--ez), border-color .18s var(--ez),
                color .18s var(--ez), box-shadow .18s var(--ez), transform .12s var(--ez);
}
.pdx-btn:active { transform: translateY(1px); }
.pdx-btn svg { flex: none; }
.pdx-btn-primary { background: var(--p); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.06), inset 0 1px 0 rgba(255,255,255,.09); }
.pdx-btn-primary:hover { background: var(--p-600); box-shadow: var(--sh-3); }
.pdx-btn-dark { background: #0F2B47; color: #fff; }
.pdx-btn-dark:hover { background: #0B2038; box-shadow: var(--sh-2); }
.pdx-btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.pdx-btn-ghost:hover { border-color: #C7D5E6; color: var(--p); background: #FCFDFF; }
.pdx-btn-lg { padding: 14px 24px; font-size: .95rem; }
.pdx-btn:disabled { background: #F2F4F7; color: #98A2B3; border-color: var(--line); cursor: not-allowed; box-shadow: none; transform: none; }
.pdx-btn-block { width: 100%; }

/* ==========================================================
   2 · PAGE SHELL
   ========================================================== */
.pdx { padding-bottom: 40px; }
.pdx-wrap { max-width: 1240px; margin-inline: auto; padding-inline: 24px; }

/* breadcrumb */
.pdx-bread {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    font-size: .82rem; color: var(--muted);
    padding: 20px 0 4px;
}
.pdx-bread a { color: var(--muted); text-decoration: none; }
.pdx-bread a:hover { color: var(--p); text-decoration: underline; text-underline-offset: 3px; }
.pdx-bread-sep { color: #C7CFDB; }
.pdx-bread-cur { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }

/* section shell */
.pdx-section { padding: 26px 0; border-top: 1px solid var(--line); }
.pdx-section:first-of-type { border-top: 0; }
.pdx-sec-head { margin-bottom: 18px; }
.pdx-eyebrow {
    display: inline-block; font-size: .7rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: var(--p-600); margin-bottom: 8px;
}
.pdx-sec-head h2 { font-size: 1.3rem; font-weight: 600; margin: 0; }
.pdx-sec-sub { margin: 6px 0 0; font-size: .9rem; }

/* ==========================================================
   3 · HERO
   ========================================================== */
.pdx-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 40px;
    padding: 18px 0 34px;
    align-items: start;
}

/* -- gallery column -- */
.pdx-gal { position: sticky; top: calc(var(--sticky) + 16px); }
.pdx-gal-stage {
    position: relative;
    background: linear-gradient(170deg, #FFFFFF 0%, #EEF3F9 100%);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
}
.pdx-gal-main {
    position: relative;
    aspect-ratio: 1 / 1;
    display: block;
    padding: 0;
    cursor: zoom-in;
    width: 100%; border: 0; background: none;
    overflow: hidden;   /* never let an image spill past the square */
}
.pdx-gal-main img {
    /* Absolutely fill the fixed 1:1 stage (inset 34px). Taking the image OUT of
       flow is what makes the box truly uniform: a portrait/tall image can no
       longer stretch the grid/flow and blow the container out of its 1:1 ratio
       (the bug that made some products render huge). object-fit:contain then
       scales ANY image — portrait, landscape, square, PNG — to fit the same
       area, centered, without cropping or distortion. */
    position: absolute;
    top: 34px; left: 34px;
    width: calc(100% - 68px);
    height: calc(100% - 68px);
    object-fit: contain;
    transition: transform .35s var(--ez);
}
.pdx-gal-main:hover img { transform: scale(1.04); }
.pdx-gal-ph {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    color: #9AA6B8; text-align: center; padding: 24px;
}
.pdx-gal-ph svg { width: 40%; max-width: 120px; height: auto; opacity: .5; }
.pdx-gal-ph span { font-size: .82rem; font-weight: 600; }

.pdx-gal-badges { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 7px; z-index: 2; }
.pdx-gal-zoom {
    position: absolute; right: 14px; bottom: 14px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); border: 1px solid var(--line);
    color: var(--muted); font-size: .74rem; font-weight: 600;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    pointer-events: none;
}

/* thumbnails — 3 slots */
.pdx-thumbs {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-top: 12px;
}
.pdx-thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1.5px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    padding: 8px; cursor: pointer; overflow: hidden;
    display: grid; place-items: center;
    transition: border-color .16s var(--ez), box-shadow .16s var(--ez);
}
/* Absolute-fill (like the main image) so a portrait thumb can't stretch its
   1:1 slot; object-fit:contain keeps the whole image visible. */
.pdx-thumb img { position: absolute; top: 8px; left: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; }
.pdx-thumb:hover { border-color: #C7D5E6; }
.pdx-thumb.is-on { border-color: var(--p); box-shadow: 0 0 0 3px rgba(30, 111, 168, .16); }
.pdx-thumb-empty {
    cursor: default;
    background: repeating-linear-gradient(135deg, #F7F9FC, #F7F9FC 8px, #F2F5FA 8px, #F2F5FA 16px);
    border-style: dashed; border-color: #DCE3EC;
    color: #AEB8C6;
}
.pdx-thumb-empty:hover { border-color: #DCE3EC; }
.pdx-thumb-empty svg { width: 40%; height: 40%; opacity: .6; }
.pdx-thumb-n {
    position: absolute; left: 5px; top: 5px;
    width: 17px; height: 17px; border-radius: 5px;
    background: rgba(15, 43, 71, .06); color: #98A2B3;
    display: grid; place-items: center;
    font-size: .62rem; font-weight: 700;
}

/* gallery quick actions */
.pdx-gal-acts { display: flex; gap: 8px; margin-top: 12px; }
.pdx-gal-act {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 10px; border: 1px solid var(--line); border-radius: var(--r);
    background: var(--card); color: var(--ink); cursor: pointer;
    font: 600 .8rem/1 var(--ff-font-body, sans-serif);
    transition: border-color .16s var(--ez), color .16s var(--ez), background .16s var(--ez);
}
.pdx-gal-act:hover { border-color: #C7D5E6; color: var(--p); }
.pdx-gal-act.is-on { color: #E11D48; border-color: #FECDD3; background: #FFF1F3; }
.pdx-gal-act.is-on svg { fill: #E11D48; }
.pdx-gal-act svg { flex: none; }

/* share popover */
.pdx-share-wrap { position: relative; flex: 1; display: flex; }
.pdx-share-menu {
    position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20;
    width: 210px; padding: 6px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); box-shadow: var(--sh-4);
}
.pdx-share-menu[hidden] { display: none; }
.pdx-share-item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 9px 11px; border: 0; border-radius: var(--r-sm);
    background: none; cursor: pointer; text-align: left; text-decoration: none;
    font: 600 .82rem/1 var(--ff-font-body, sans-serif); color: var(--ink);
}
.pdx-share-item:hover { background: var(--p-050); }
.pdx-share-item svg { flex: none; color: var(--muted); }

/* -- info column -- */
.pdx-info { min-width: 0; }
.pdx-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.pdx-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 6px;
    font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.pdx-badge svg { flex: none; }
.pdx-badge--in   { background: var(--ok-bg); color: var(--ok); border: 1px solid #A6F4C5; }
.pdx-badge--low  { background: var(--warn-bg); color: var(--warn); border: 1px solid #FEDF89; }
.pdx-badge--out  { background: var(--off-bg); color: var(--off); border: 1px solid #E4E7EC; }
.pdx-badge--cat  { background: var(--p-050); color: var(--p); border: 1px solid var(--p-100); }
.pdx-badge--form { background: #FFF6ED; color: #C4570B; border: 1px solid #FDDCAB; }
.pdx-badge--verified { background: #F4F0FF; color: #6D28D9; border: 1px solid #E0D5FB; }

.pdx-title { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); font-weight: 600; margin: 0; }

.pdx-brandrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pdx-brand { font-size: .85rem; font-weight: 600; color: var(--muted); }
.pdx-brand b { color: var(--ink); }

/* composition headline */
.pdx-comp-line {
    margin: 14px 0 0;
    padding: 12px 14px;
    background: var(--p-050);
    border: 1px solid var(--p-100);
    border-radius: var(--r);
    font-size: .92rem; line-height: 1.5; color: var(--ink);
}
.pdx-comp-line b { color: var(--p); font-weight: 700; }
.pdx-comp-line--none { background: #F7F9FC; border-color: var(--line); color: var(--muted); font-style: italic; }

/* key facts row (category / pack / form) */
.pdx-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pdx-fact {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 6px 12px; border-radius: 8px;
    background: #F7F9FC; border: 1px solid var(--line-2);
    font-size: .8rem;
}
.pdx-fact dt { color: var(--muted); font-weight: 500; }
.pdx-fact dd { margin: 0; color: var(--ink); font-weight: 700; }

/* sku + rating row */
.pdx-metarow {
    display: flex; align-items: center; flex-wrap: wrap; gap: 16px;
    margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--line-2);
    font-size: .84rem;
}
.pdx-sku { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.pdx-sku b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pdx-copy {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px; border-radius: 7px;
    border: 1px solid var(--line); background: var(--card);
    color: var(--muted); cursor: pointer;
    transition: color .15s var(--ez), border-color .15s var(--ez);
}
.pdx-copy:hover { color: var(--p); border-color: var(--p-100); }
.pdx-copy.is-done { color: var(--ok); border-color: #A6F4C5; }

.pdx-rate { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.pdx-rate-stars { color: #D0D5DD; letter-spacing: 1px; font-size: .9rem; }
.pdx-rate-none { color: var(--muted); font-weight: 500; }

/* ==========================================================
   4 · PURCHASE PANEL
   ========================================================== */
.pdx-buy {
    margin-top: 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-1);
    overflow: hidden;
}
.pdx-buy-price { padding: 18px 20px; border-bottom: 1px solid var(--line-2); }

/* guest (login-gated) pricing */
.pdx-price-locked { display: flex; align-items: center; gap: 14px; }
.pdx-price-mrp-wrap { flex: 1; min-width: 0; }
.pdx-price-mrp-label { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.pdx-price-mrp-val { font-family: var(--ff-font-heading, sans-serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.pdx-price-lock-note { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .78rem; color: var(--p); font-weight: 600; }
.pdx-price-lock-note svg { flex: none; }

/* authed pricing */
.pdx-price-live { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.pdx-price-main-wrap { min-width: 0; }
.pdx-price-role { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--p-600); }
.pdx-price-main { font-family: var(--ff-font-heading, sans-serif); font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.pdx-price-strike { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.pdx-price-save { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); font-size: .75rem; font-weight: 700; }
.pdx-price-tax { margin-top: 8px; font-size: .76rem; color: var(--muted); }
.pdx-price-tax b { color: var(--ink); font-weight: 600; }

/* MOQ + stock line */
.pdx-buy-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.pdx-buy-meta > div { display: flex; flex-direction: column; gap: 3px; }
.pdx-meta-k { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pdx-meta-v { font-size: .92rem; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.pdx-stock-dot { width: 8px; height: 8px; border-radius: 50%; }
.pdx-stock-dot--in { background: var(--ok); }
.pdx-stock-dot--low { background: var(--warn); }
.pdx-stock-dot--out { background: #98A2B3; }
.pdx-v-in { color: var(--ok); }
.pdx-v-low { color: var(--warn); }
.pdx-v-out { color: var(--off); }

/* qty + CTA */
.pdx-buy-actions { padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.pdx-qtyrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pdx-qty-label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.pdx-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.pdx-qty button {
    width: 40px; height: 44px; border: 0; background: none; color: var(--muted);
    font-size: 1.2rem; line-height: 1; cursor: pointer;
    transition: background .15s var(--ez), color .15s var(--ez);
}
.pdx-qty button:hover:not(:disabled) { background: var(--p-050); color: var(--p); }
.pdx-qty button:disabled { opacity: .4; cursor: not-allowed; }
.pdx-qty input {
    width: 56px; height: 44px; text-align: center;
    border: 0; border-inline: 1px solid var(--line-2);
    font: 700 .95rem/1 var(--ff-font-body, sans-serif); color: var(--ink);
    background: none; -moz-appearance: textfield;
}
.pdx-qty input::-webkit-outer-spin-button, .pdx-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdx-qty input:focus { outline: none; background: var(--p-050); }
.pdx-qty-multiple { font-size: .76rem; color: var(--muted); }

.pdx-cta-primary-row { display: flex; gap: 10px; }
.pdx-cta-primary-row .pdx-btn { flex: 1; height: 50px; }
.pdx-cta-secondary-row { display: flex; gap: 10px; }
.pdx-cta-secondary-row .pdx-btn { flex: 1; }

/* trust mini-strip inside panel */
.pdx-buy-trust {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px;
    padding: 14px 20px; background: #FBFCFE; border-top: 1px solid var(--line-2);
}
.pdx-buy-trust span { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--ink); }
.pdx-buy-trust svg { flex: none; color: var(--ok); }

/* dispatch note */
.pdx-dispatch {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 14px; padding: 12px 14px;
    border: 1px dashed var(--line); border-radius: var(--r);
    background: #FBFCFE; font-size: .82rem; color: var(--muted); line-height: 1.5;
}
.pdx-dispatch svg { flex: none; color: var(--p); margin-top: 1px; }
.pdx-dispatch b { color: var(--ink); font-weight: 600; }

/* ==========================================================
   5 · TRUST STRIP (below hero)
   ========================================================== */
.pdx-trustbar {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    margin: 6px 0 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    overflow: hidden;
}
.pdx-trust-cell {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 18px;
    min-width: 0;
}
.pdx-trust-cell + .pdx-trust-cell { border-left: 1px solid var(--line-2); }
.pdx-trust-cell svg { flex: none; color: var(--p-600); }
.pdx-trust-cell b { display: block; font-size: .82rem; font-weight: 700; color: var(--ink); }
.pdx-trust-cell span { font-size: .72rem; color: var(--muted); }

/* ==========================================================
   6 · INFO SECTIONS  (stacked; <details> = accordion on mobile)
   ========================================================== */
.pdx-acc { border-top: 1px solid var(--line); }
.pdx-acc:first-of-type { border-top: 0; }
.pdx-acc > summary {
    display: flex; align-items: center; gap: 12px;
    padding: 22px 0 18px;
    cursor: pointer; list-style: none;
    font-family: var(--ff-font-heading, sans-serif);
    font-size: 1.22rem; font-weight: 600; color: var(--ink);
}
.pdx-acc > summary::-webkit-details-marker { display: none; }
.pdx-acc-chevron { margin-left: auto; color: var(--muted); transition: transform .2s var(--ez); display: none; }
.pdx-acc[open] .pdx-acc-chevron { transform: rotate(180deg); }
.pdx-acc-body { padding-bottom: 26px; }

/* specifications table */
.pdx-spec-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 1px; background: var(--line-2);
    border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
}
.pdx-spec-cell { background: var(--card); padding: 14px 16px; min-width: 0; }
.pdx-spec-cell dt { font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.pdx-spec-cell dd { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ink); word-break: break-word; }

/* composition breakdown */
.pdx-comp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pdx-comp-card {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card);
}
.pdx-comp-idx {
    width: 34px; height: 34px; flex: none;
    display: grid; place-items: center; border-radius: 10px;
    background: var(--p-050); color: var(--p);
    font-weight: 700; font-size: .85rem;
}
.pdx-comp-body { min-width: 0; }
.pdx-comp-name { font-size: .92rem; font-weight: 600; color: var(--ink); }
.pdx-comp-strength { font-size: .8rem; color: var(--p-600); font-weight: 700; margin-top: 2px; }
.pdx-comp-foot { margin-top: 14px; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.pdx-comp-foot svg { flex: none; color: var(--muted); }

/* description */
.pdx-desc-block + .pdx-desc-block { margin-top: 22px; }
.pdx-desc-h { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 0 0 10px; font-family: var(--ff-font-heading, sans-serif); }
.pdx-desc-p { font-size: .92rem; line-height: 1.72; color: #3B4757; margin: 0 0 10px; }
.pdx-desc-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.pdx-desc-list li { position: relative; padding-left: 26px; font-size: .9rem; line-height: 1.6; color: #3B4757; }
.pdx-desc-list li::before {
    content: ''; position: absolute; left: 4px; top: 7px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--p-050); border: 2px solid var(--p-600);
}

/* uses / storage cards */
.pdx-mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.pdx-mini-card { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.pdx-mini-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--p-050); color: var(--p); margin-bottom: 12px; }
.pdx-mini-k { font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pdx-mini-v { font-size: .92rem; font-weight: 600; color: var(--ink); margin-top: 3px; }
.pdx-note {
    display: flex; align-items: flex-start; gap: 10px;
    margin-top: 16px; padding: 13px 16px;
    background: var(--warn-bg); border: 1px solid #FEDF89; border-radius: var(--r);
    font-size: .82rem; line-height: 1.55; color: #93500B;
}
.pdx-note svg { flex: none; color: var(--warn); margin-top: 1px; }

/* manufacturer / quality */
.pdx-mfr { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.pdx-mfr-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.pdx-mfr-card .pdx-mini-ico { background: linear-gradient(135deg, #1565C0, #0F4C81); color: #fff; }
.pdx-mfr-h { font-size: .95rem; font-weight: 600; color: var(--ink); margin: 0 0 5px; }
.pdx-mfr-p { font-size: .84rem; line-height: 1.55; margin: 0; }

/* documents / COA request */
.pdx-doc {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    padding: 18px 20px;
    border: 1px dashed var(--line); border-radius: var(--r-lg);
    background: #FBFCFE;
}
.pdx-doc-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--p-050); color: var(--p); }
.pdx-doc-body { flex: 1; min-width: 180px; }
.pdx-doc-body b { display: block; font-size: .92rem; color: var(--ink); }
.pdx-doc-body span { font-size: .82rem; color: var(--muted); }

/* reviews empty state */
.pdx-reviews-empty {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 40px 24px;
    border: 1px solid var(--line); border-radius: var(--r-xl);
    background: var(--card);
}
.pdx-reviews-empty .pdx-re-ico {
    width: 60px; height: 60px; display: grid; place-items: center;
    border-radius: 18px; background: var(--p-050); color: var(--p-600); margin-bottom: 16px;
}
.pdx-reviews-empty h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 6px; }
.pdx-reviews-empty p { font-size: .88rem; max-width: 44ch; margin: 0; }

/* ==========================================================
   7 · RELATED / RAILS  (reuse .ffm-card + .ffm-rail via .ffm wrapper)
   ========================================================== */
.pdx-rail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.pdx-rail-head h2 { font-size: 1.3rem; font-weight: 600; margin: 0; }
.pdx-rail-nav { display: flex; gap: 8px; }
.pdx-rail-btn {
    width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
    background: var(--card); border: 1px solid var(--line); color: var(--ink); cursor: pointer;
    transition: background .16s var(--ez), color .16s var(--ez), border-color .16s var(--ez);
}
.pdx-rail-btn:hover { background: var(--p); border-color: var(--p); color: #fff; }
.pdx-rail-btn:disabled { opacity: .4; cursor: default; background: var(--card); color: var(--ink); border-color: var(--line); }

/* ==========================================================
   8 · STICKY BARS
   ------------------------------------------------------------------
   Show/hide is toggled by a class that flips `visibility` + an inline
   transform written by JS — never a transition to a functional
   position (see the motion note at the top).
   ========================================================== */

/* desktop top bar */
.pdx-topbar {
    position: fixed; top: var(--sticky); left: 0; right: 0; z-index: 90;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(12px) saturate(150%); -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
    transform: translateY(-100%);
    visibility: hidden;
}
.pdx-topbar.is-on { visibility: visible; }
.pdx-topbar-inner {
    max-width: 1240px; margin-inline: auto; padding: 10px 24px;
    display: flex; align-items: center; gap: 18px;
}
.pdx-topbar-thumb { width: 44px; height: 44px; flex: none; border: 1px solid var(--line-2); border-radius: 10px; background: #F7F9FC; padding: 4px; display: grid; place-items: center; }
.pdx-topbar-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdx-topbar-info { min-width: 0; flex: 1; }
.pdx-topbar-name { font-size: .92rem; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdx-topbar-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 10px; }
.pdx-topbar-meta .pdx-v-in { color: var(--ok); }
.pdx-topbar-actions { display: flex; align-items: center; gap: 10px; flex: none; }

/* mobile bottom bar */
.pdx-mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    display: none;
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -10px rgba(16, 24, 40, .18);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    visibility: hidden;
    gap: 12px; align-items: center;
}
.pdx-mbar.is-on { visibility: visible; }
.pdx-mbar-price { flex: 1; min-width: 0; }
.pdx-mbar-price b { display: block; font-family: var(--ff-font-heading, sans-serif); font-size: 1.2rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.pdx-mbar-price span { font-size: .72rem; color: var(--muted); }
.pdx-mbar-wish {
    width: 48px; height: 48px; flex: none; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--muted); cursor: pointer;
}
.pdx-mbar-wish.is-on { color: #E11D48; border-color: #FECDD3; background: #FFF1F3; }
.pdx-mbar-wish.is-on svg { fill: #E11D48; }
.pdx-mbar-cart { flex: 2; height: 48px; }

/* ==========================================================
   9 · LIGHTBOX
   ========================================================== */
.pdx-lb {
    position: fixed; inset: 0; z-index: 300;
    display: none; align-items: center; justify-content: center;
    background: rgba(9, 20, 34, .92);
}
.pdx-lb.is-open { display: flex; }
.pdx-lb-stage {
    position: relative; width: min(92vw, 900px); height: min(80vh, 900px);
    display: grid; place-items: center;
}
.pdx-lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; background: #fff; }
.pdx-lb-close {
    position: absolute; top: 18px; right: 18px; z-index: 4;
    width: 44px; height: 44px; display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
    transition: background .16s var(--ez);
}
.pdx-lb-close:hover { background: rgba(255, 255, 255, .24); }
.pdx-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 48px; height: 48px; display: grid; place-items: center;
    border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
    transition: background .16s var(--ez);
}
.pdx-lb-nav:hover { background: rgba(255, 255, 255, .24); }
.pdx-lb-prev { left: 2vw; }
.pdx-lb-next { right: 2vw; }
.pdx-lb-count {
    position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
    color: rgba(255, 255, 255, .85); font-size: .82rem; font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.pdx-lb-thumbs { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.pdx-lb-thumb {
    width: 52px; height: 52px; border-radius: 9px; overflow: hidden; cursor: pointer;
    background: #fff; padding: 4px; border: 2px solid transparent; opacity: .55;
    transition: opacity .16s var(--ez), border-color .16s var(--ez);
}
.pdx-lb-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdx-lb-thumb.is-on { opacity: 1; border-color: #fff; }
.pdx-lb-zoom {
    position: absolute; bottom: 20px; right: 3vw; z-index: 4;
    display: inline-flex; gap: 4px;
}
.pdx-lb-zoom button {
    width: 40px; height: 40px; display: grid; place-items: center;
    border: 0; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
}
.pdx-lb-zoom button:hover { background: rgba(255,255,255,.24); }
.pdx-lb-img.is-zoomed { cursor: grab; }

/* ==========================================================
   10 · SKELETON + ERROR STATES
   ========================================================== */
.pdx-sk { background: linear-gradient(100deg, #EEF1F6 30%, #F7F9FC 50%, #EEF1F6 70%); background-size: 300% 100%; animation: pdxShimmer 1.35s linear infinite; border-radius: 8px; display: block; }
@keyframes pdxShimmer { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.pdx-skeleton { padding-top: 8px; }
.pdx-sk-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 40px; }
.pdx-sk-gal { aspect-ratio: 1/1; border-radius: 22px; }
.pdx-sk-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 12px; }
.pdx-sk-thumb { aspect-ratio: 1/1; border-radius: 12px; }

.pdx-state {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 72px 24px; max-width: 520px; margin: 20px auto;
}
.pdx-state-ico {
    width: 76px; height: 76px; display: grid; place-items: center;
    border-radius: 22px; margin-bottom: 20px;
}
.pdx-state-ico--err { background: rgba(220,38,38,.08); border: 1.5px dashed rgba(220,38,38,.3); color: var(--err); }
.pdx-state-ico--info { background: var(--p-050); border: 1.5px dashed var(--p-100); color: var(--p); }
.pdx-state-ico--warn { background: var(--warn-bg); border: 1.5px dashed #FEDF89; color: var(--warn); }
.pdx-state h2 { font-size: 1.35rem; font-weight: 600; margin: 0 0 8px; }
.pdx-state p { font-size: .92rem; line-height: 1.6; margin: 0 0 22px; }
.pdx-state-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ==========================================================
   11 · RESPONSIVE
   ========================================================== */
@media (max-width: 1024px) {
    .pdx-hero { grid-template-columns: minmax(0, 1fr); gap: 26px; }
    .pdx-gal { position: static; }
    .pdx-trustbar { grid-template-columns: repeat(3, 1fr); }
    .pdx-trust-cell:nth-child(4) { border-left: 0; }
    .pdx-trust-cell:nth-child(n+4) { border-top: 1px solid var(--line-2); }
    .pdx-topbar { display: none; }   /* desktop-only bar */
}

@media (max-width: 720px) {
    .pdx-wrap { padding-inline: 16px; }
    .pdx-hero { padding-top: 8px; }

    /* accordions: collapse on mobile, chevron visible */
    .pdx-acc-chevron { display: block; }
    .pdx-acc > summary { padding: 18px 0; font-size: 1.08rem; }
    .pdx-acc:not([open]) .pdx-acc-body { display: none; }

    .pdx-spec-grid { grid-template-columns: 1fr; }
    .pdx-comp-grid { grid-template-columns: 1fr; }
    .pdx-trustbar { grid-template-columns: repeat(2, 1fr); }
    .pdx-trust-cell:nth-child(odd) { border-left: 0; }
    .pdx-trust-cell:nth-child(even) { border-left: 1px solid var(--line-2); }
    .pdx-trust-cell:nth-child(n+3) { border-top: 1px solid var(--line-2); }
    .pdx-trust-cell:nth-child(5) { grid-column: 1 / -1; }

    .pdx-buy-trust { grid-template-columns: 1fr; }

    /* mobile bottom purchase bar on */
    .pdx-mbar { display: flex; }
    /* leave room so the fixed bar never covers the last section / footer */
    body.pdx-mbar-space { padding-bottom: 76px; }

    .pdx-lb-thumbs { display: none; }
    .pdx-lb-nav { width: 42px; height: 42px; }

    .pdx-sk-hero { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .pdx-trustbar { grid-template-columns: 1fr; }
    .pdx-trust-cell { border-left: 0 !important; border-top: 1px solid var(--line-2); }
    .pdx-trust-cell:first-child { border-top: 0; }
    .pdx-cta-secondary-row { flex-direction: column; }
}

/* ==========================================================
   12 · MOTION PREFERENCES
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    .pdx *, .pdx-lb *, .pdx-topbar, .pdx-mbar {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
}
