/* ==========================================================================
   Evo Aminoz v2: product page (2026-10-29). Rules: DESIGN.md. Tokens: evo-v2.css.
   Scoped to body.single-product so it wins over the legacy PDP rules in evo.css
   without touching them. Markup hooks used by evo.js are left alone.
   ========================================================================== */

/* ---------- Layout ---------- */
body.single-product .pd-wrap{padding:8px var(--pad) 0}
body.single-product .pd-grid{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:56px;align-items:start}
body.single-product .pd-gallery{min-width:0}
@media (min-width:992px){body.single-product .pd-gallery{position:sticky;top:96px}}
body.single-product .pd-summary{min-width:0}

/* ---------- Gallery card ---------- */
body.single-product .pd-media{position:relative;top:auto;display:block;aspect-ratio:1/1;max-width:none;margin:0;padding:0;overflow:hidden;
  border:1px solid var(--line);border-radius:var(--r-xl);
  background:radial-gradient(60% 55% at 50% 88%,rgba(0,104,255,.12),transparent 70%),var(--surface)}
body.single-product .pd-media::after{content:"";position:absolute;left:50%;bottom:15%;width:38%;height:16px;transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(ellipse at center,rgba(0,0,0,.7),rgba(0,0,0,0) 70%);pointer-events:none}
body.single-product .pd-media img{position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;z-index:1;
  width:auto;height:62%;max-width:70%;padding:0;object-fit:contain}

/* ---------- Title block ---------- */
body.single-product .pdp-eyebrow.v2-eyebrow{display:block;margin:0 0 14px;font-family:var(--font);font-size:12px;font-weight:700;letter-spacing:.2em;color:var(--blue-text,#3d8bff)}
body.single-product .pd-title{display:flex;flex-direction:column;margin:0 0 22px;font-size:clamp(38px,4.4vw,58px);line-height:1;letter-spacing:-.035em;color:#fff;overflow-wrap:anywhere}
body.single-product .pd-name{display:block}
body.single-product .pd-dose-line{display:block;margin-top:2px;color:var(--blue)}
/* Legal wording stays in the h1 for compliance scanners, visible in .pd-legal below. */
body.single-product .pd-title-ruo{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}

/* ---------- Price ---------- */
body.single-product .pd-config-row{display:block;margin:0 0 16px}
body.single-product .pd-config-row .pd-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;margin:0;font-size:36px;font-weight:800;line-height:1.05;letter-spacing:-.03em;color:#fff;font-variant-numeric:tabular-nums}
body.single-product .pd-config-row .pd-price.is-sale{color:#fff}
body.single-product .pd-price ins{order:1;text-decoration:none;color:#fff;font-weight:800}
body.single-product .pd-price del{order:2;font-size:.5em;font-weight:500;color:var(--faint);text-decoration-thickness:1px}
body.single-product .pd-price .amount{color:inherit}

/* ---------- Badges ---------- */
body.single-product .pd-badges{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}
body.single-product .pd-badges .v2-badge[hidden]{display:none}

/* ---------- Pack price line: room above the description ---------- */
body.single-product .v2-pdp-pack{margin:14px 0 24px;background:var(--surface);border-color:var(--line)}
body.single-product .v2-pdp-pack:hover{border-color:var(--line-strong)}
/* PDP bundle row (owner, round 4): neutral chip + two lines + chevron, same language as the shop banner. */
body.single-product .v2-pdp-pack{display:flex;align-items:center;justify-content:flex-start;gap:14px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r-md,16px);color:var(--text);text-decoration:none}
.v2-pdp-pack-ic{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--surface-2);border:1px solid var(--line-strong);color:#fff}
.v2-pdp-pack-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.v2-pdp-pack-txt strong{font-size:16px;font-weight:800;letter-spacing:-.01em;color:var(--text)}
body.single-product .v2-pdp-pack .v2-pdp-pack-txt span{font-size:14px;color:var(--muted);white-space:normal;font-weight:400}
.v2-pdp-pack-txt b{color:var(--text);font-weight:700}
body.single-product .v2-pdp-pack .v2-pdp-pack-go{flex:none;display:inline-flex;color:var(--muted);transition:color 150ms cubic-bezier(.4,0,.2,1)}
body.single-product .v2-pdp-pack:hover .v2-pdp-pack-go{color:#fff}

/* ---------- Description + legal line ---------- */
body.single-product .pd-desc{max-width:52ch;margin:0 0 26px;font-size:16px;line-height:1.6;color:var(--ink-2)}
body.single-product .pd-desc p{margin:0 0 10px;color:var(--ink-2)}
body.single-product .pd-desc p:last-child{margin:0}
body.single-product .pd-desc .pd-legal{font-size:12.5px;line-height:1.5;color:var(--muted)}

/* ---------- Strength / format pills ---------- */
body.single-product .pd-dose{margin:0 0 22px;min-width:0}
body.single-product .pd-row-label{display:block;margin:0 0 10px;font-size:14px;font-weight:600;letter-spacing:-.006em;color:#fff}
body.single-product .pd-dose .variant-pills{display:flex;flex-wrap:wrap;gap:8px;margin:0}
body.single-product .pd-dose .vpill{display:inline-flex;align-items:center;height:44px;padding:0 20px;border-radius:999px;border:1px solid var(--line-strong);
  background:transparent;color:#fff;font:600 14.5px/1 var(--font);letter-spacing:-.006em;text-transform:none;cursor:pointer;
  transition:background-color var(--t),color var(--t),border-color var(--t)}
body.single-product .pd-dose .vpill:hover{border-color:var(--blue-line)}
body.single-product .pd-dose .vpill.active{background:#fff;color:#05070b;border-color:#fff}
body.single-product .pd-dose .vpill:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ---------- Offer and kit strips: quiet rows ---------- */
body.single-product .pdp-offer{display:flex;align-items:center;gap:12px;margin:0 0 20px;padding:12px 14px;border-radius:var(--r-sm);
  background:var(--surface);border:1px solid var(--line)}
body.single-product .pdp-offer[hidden]{display:none}
body.single-product .pdp-offer-tag{flex:0 0 auto;display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;border:1px solid var(--line-strong);
  background:var(--surface-2);color:#fff;font:700 12px/1 var(--font);letter-spacing:0;text-transform:none}
body.single-product .pdp-offer-tx{display:flex;flex-direction:column;gap:1px;font-size:13px;line-height:1.4}
body.single-product .pdp-offer-tx b{color:#fff;font-family:var(--font);font-weight:700;font-size:14px}
body.single-product .pdp-offer-tx span{color:var(--ink-2)}

/* ---------- Buy form: pack size > quantity > actions (visual order, DOM order is set by evo.js) ---------- */
body.single-product .pd-addwrap{margin:0}
body.single-product .pd-addwrap form.cart{display:flex;flex-direction:column;margin:0}
body.single-product .pd-addwrap .woocommerce-variation-add-to-cart{gap:0}
body.single-product .onyx-bundles{order:1;margin:0 0 18px}
body.single-product .onyx-bundles[hidden]{display:none}
body.single-product .pd-qty-row{order:2;display:flex;align-items:center;gap:14px;margin:0}
body.single-product .pd-actions{order:3;display:flex;flex-direction:column;gap:10px;margin:20px 0 0}

/* Pack size cards */
body.single-product .onyx-bundles-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px;
  font-family:var(--font);font-size:14px;font-weight:600;letter-spacing:-.006em;text-transform:none;color:#fff}
body.single-product .onyx-bundles-note{font-size:13px;font-weight:500;color:var(--muted)}
body.single-product .onyx-bundles-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0;padding-top:14px}
body.single-product .onyx-bundle{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;min-width:0;
  padding:30px 10px 16px;text-align:center;border-radius:var(--r);border:1px solid var(--line);background:var(--studio);box-shadow:none;overflow:visible;
  color:#fff;font-family:var(--font);cursor:pointer;transition:border-color var(--t)}
body.single-product .onyx-bundle:hover{border-color:var(--line-strong)}
body.single-product .onyx-bundle.active,
body.single-product .onyx-bundle.active:hover{border-color:var(--blue);box-shadow:none}
/* Label tab centred on the card's top edge: DESIGN.md badge (hairline, ~10% fill, pill, no glow, no shadow) */
body.single-product .onyx-bundle-flag{position:absolute;top:0;left:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;height:22px;padding:0 11px;
  border-radius:999px;border:1px solid var(--line-strong);background:var(--surface-2);color:var(--ink-2);font-family:var(--font);font-size:10.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;line-height:1;white-space:nowrap;box-shadow:none}
body.single-product .onyx-bundle-flag.flag-pop,
body.single-product .onyx-bundle-flag.flag-best{border-color:var(--blue-line);color:var(--blue-text);
  background-color:var(--studio);background-image:linear-gradient(var(--blue-soft),var(--blue-soft))}
/* Vial group: 1, 2 or 3 real renders, each shifted 45% of its width, lightened onto the studio card so the render frames vanish, edges feathered like the shop card */
body.single-product .onyx-bundle-tile{display:flex;align-items:center;justify-content:center;align-self:stretch;height:112px;margin:0 0 10px;overflow:visible;pointer-events:none}
body.single-product .onyx-bundle-tile img{display:block;flex:0 0 auto;width:auto;height:150px;aspect-ratio:2/3;max-width:none;object-fit:fill;mix-blend-mode:lighten;
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 20%,#000 80%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 14%,#000 58%,transparent 100%);
  -webkit-mask-composite:source-in;
  mask-image:linear-gradient(to right,transparent 0,#000 20%,#000 80%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 14%,#000 58%,transparent 100%);mask-composite:intersect}
body.single-product .onyx-bundle-tile img + img{margin-left:-55px}
body.single-product .onyx-bundle-qty{margin:0 0 4px;padding:0;font-size:22px;font-weight:800;line-height:1.1;letter-spacing:-.02em;color:#fff;white-space:nowrap}
body.single-product .onyx-bundle-sub{margin:0 0 10px;font-family:var(--font);font-size:14px;font-weight:600;letter-spacing:0;line-height:1.2}
body.single-product .onyx-bundle-sub.is-save{color:var(--blue-text)}
body.single-product .onyx-bundle-sub.is-single{display:block;color:var(--muted)}
body.single-product .onyx-bundle-was{display:block;min-height:16px;font-size:12.5px;line-height:16px;color:var(--faint);text-decoration:line-through;font-variant-numeric:tabular-nums}
body.single-product .onyx-bundle-price{font-size:16px;font-weight:700;line-height:1.2;letter-spacing:-.01em;color:#fff;font-variant-numeric:tabular-nums}
body.single-product .onyx-bundle-per{font-size:12px;line-height:1.3;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}

/* Quantity stepper */
body.single-product .pd-qty-row .pd-row-label{margin:0}
body.single-product .pd-summary .pd-addwrap .quantity{display:flex;align-items:center;height:44px;width:max-content;padding:0 4px;border-radius:999px;
  background:transparent;border:1px solid var(--line-strong);overflow:hidden}
body.single-product .pd-summary .pd-addwrap .quantity:focus-within{border-color:var(--blue-line);box-shadow:none}
body.single-product .pd-qty-btn{width:38px;height:100%;font-size:20px;font-weight:400;color:var(--ink-2);background:transparent;border:0;cursor:pointer;transition:color var(--t)}
body.single-product .pd-qty-btn:hover{background:transparent;color:#fff}
body.single-product .pd-summary .pd-addwrap .quantity input.qty{width:40px;height:100%;background:transparent;border:0;text-align:center;font:600 15px/1 var(--font);color:#fff;font-variant-numeric:tabular-nums}

/* Primary: Add to cart (house btn-blue, full width) */
body.single-product .pd-actions .single_add_to_cart_button,
body.single-product .pd-actions .single_add_to_cart_button.button.alt,
body.single-product .woocommerce div.product form.cart .pd-actions .single_add_to_cart_button.button.alt{
  order:-1;display:flex;align-items:center;justify-content:center;width:100%;min-width:0!important;height:54px;min-height:54px;padding:0 30px!important;flex:0 0 auto;
  border:0!important;border-radius:999px!important;background:var(--blue)!important;color:#fff!important;box-shadow:none!important;filter:none;transform:none;
  font:700 16px/1 var(--font)!important;letter-spacing:-.01em!important;text-transform:none!important;
  transition:background-color var(--t)}
body.single-product .pd-actions .single_add_to_cart_button:hover{background:var(--blue-deep)!important;transform:none;filter:none;box-shadow:none!important}
body.single-product .pd-actions .single_add_to_cart_button:active{transform:none;filter:none}
body.single-product .pd-actions .single_add_to_cart_button.disabled,
body.single-product .pd-actions .single_add_to_cart_button:disabled{opacity:.45;cursor:not-allowed}
body.single-product .pd-actions .single_add_to_cart_button.loading{opacity:.7}
body.single-product .single_add_to_cart_button .pdp-cart-ic{display:none}
body.single-product .single_add_to_cart_button.added::after{display:none!important}
body.single-product .pd-addwrap a.added_to_cart{display:none}
body.single-product .pdp-btn-label{font-variant-numeric:tabular-nums}

/* Secondary: Check lab report (house btn-ghost) */
body.single-product .pdp-coa-pill{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex:0 0 auto;width:100%;min-width:0;height:48px;min-height:48px;padding:0 26px;
  border:1px solid var(--line-strong);border-radius:999px;background:transparent!important;color:#fff;box-shadow:none;transform:none;
  font:700 15px/1 var(--font);letter-spacing:-.01em;text-transform:none;white-space:nowrap;
  transition:background-color var(--t),color var(--t),border-color var(--t)}
body.single-product .pdp-coa-pill svg{color:var(--blue);transition:color var(--t)}
body.single-product .pdp-coa-pill:hover{background:#fff!important;color:#05070b;border-color:#fff;transform:none;box-shadow:none}
body.single-product .pdp-coa-pill:hover svg{color:#05070b}
body.single-product .pdp-coa-pill:active{transform:none}

/* ---------- Ship cutoff: quiet info row ---------- */
body.single-product .pdp-ship{display:flex;align-items:center;gap:12px;margin:22px 0 0;padding:16px 0 0;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
body.single-product .pdp-ship-dot{display:none}
body.single-product .pdp-ship-clock{flex:0 0 auto;color:var(--muted)}
body.single-product .pdp-ship-tx{display:flex;flex-direction:column;gap:1px;font-size:13px;line-height:1.4}
body.single-product .pdp-ship-tx b{font-family:var(--font);font-weight:600;font-size:14px;color:#fff}
body.single-product .pdp-ship-tx span{color:var(--muted)}

/* ---------- Trust row + payments ---------- */
body.single-product .pdp-trust3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:14px 0 0;padding:16px 8px;
  border:1px solid var(--line);border-radius:var(--r);background:var(--surface)}
body.single-product .pdp-trust3-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0 6px;text-align:center;font-size:12.5px;line-height:1.35;color:var(--muted)}
body.single-product .pdp-trust3-item svg{color:var(--blue)}
body.single-product .pdp-tip-pop{background:var(--surface-2);border:1px solid var(--line-strong);border-radius:var(--r-sm);box-shadow:none;color:var(--ink-2)}
body.single-product .pdp-tip-q{border-color:var(--line-strong);color:var(--muted)}
body.single-product .pdp-pay{margin-top:16px}
body.single-product .pdp-pay-label{font-size:13px;color:var(--muted)}
body.single-product .pay-chip{border-radius:6px;border-color:transparent}

/* ---------- Details: facts + certificates ---------- */
body.single-product .pd-below{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:20px;align-items:start;margin-top:72px}
body.single-product .pd-specs,
body.single-product .coa-sec{margin:0;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);min-width:0}
body.single-product .pd-card-h{display:flex;align-items:center;gap:10px;margin:0 0 18px;font-family:var(--font);font-size:20px;font-weight:800;letter-spacing:-.02em;color:#fff}
body.single-product .coa-head svg{color:var(--blue);flex:0 0 auto}
body.single-product .pd-spec-list{margin:0}
body.single-product .pd-spec-row{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-top:1px solid var(--line)}
body.single-product .pd-spec-row:first-child{border-top:0;padding-top:0}
body.single-product .pd-spec-row:last-child{padding-bottom:0}
body.single-product .pd-spec-row dt{margin:0;font-size:14px;color:var(--muted)}
body.single-product .pd-spec-row dd{margin:0;font-size:14.5px;font-weight:600;color:#fff;text-align:right;font-variant-numeric:tabular-nums}
body.single-product .coa-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}
body.single-product .coa-thumb{border-radius:var(--r-sm);border:1px solid var(--line);box-shadow:none;transition:border-color var(--t),transform var(--t)}
body.single-product .coa-thumb:hover{border-color:var(--blue-line);transform:translateY(-2px);box-shadow:none}
body.single-product .coa-item{display:flex;flex-direction:column;gap:8px;min-width:0}
body.single-product .coa-item-meta{display:flex;flex-direction:column;align-items:flex-start;gap:6px}
body.single-product .coa-item-note{font-size:12.5px;line-height:1.3;color:var(--muted);font-variant-numeric:tabular-nums}
body.single-product .coa-empty{border-radius:var(--r-sm);background:var(--surface-2);color:var(--muted)}
body.single-product .pd-faqs{margin-top:18px}
body.single-product .pd-faqs .btn{font-size:15px;padding:0 24px;min-height:44px}

/* Related products */
body.single-product .similar{margin-top:80px}
body.single-product .similar .v2-sechead{margin-bottom:28px}

/* ---------- Mobile sticky bar ---------- */
body.single-product .pd-sticky{background:var(--bg);border-top:1px solid var(--line-strong);gap:16px;-webkit-backdrop-filter:none;backdrop-filter:none}
body.single-product .pd-sticky__name{max-width:46vw;font-family:var(--font);font-size:13px;font-weight:600;letter-spacing:-.006em;text-transform:none;color:var(--muted)}
body.single-product .pd-sticky__price{font-family:var(--font);font-size:18px;font-weight:800;letter-spacing:-.02em;color:#fff;font-variant-numeric:tabular-nums}
body.single-product .pd-sticky__btn{min-height:46px;padding:0 26px;border-radius:999px;background:var(--blue);color:#fff;font:700 15px/1 var(--font);letter-spacing:-.01em;text-transform:none;
  transition:background-color var(--t)}
body.single-product .pd-sticky__btn:hover{background:var(--blue-deep);transform:none}

/* ---------- Responsive ---------- */
@media (max-width:991.98px){
  body.single-product .pd-grid{grid-template-columns:minmax(0,1fr);gap:28px}
  body.single-product .pd-below{grid-template-columns:minmax(0,1fr);margin-top:56px}
}
@media (max-width:560px){
  body.single-product .pd-wrap{padding-top:4px}
  body.single-product .pd-media{border-radius:var(--r-lg)}
  body.single-product .pd-title{font-size:40px}
  body.single-product .pd-config-row .pd-price{font-size:32px}
  body.single-product .onyx-bundles-grid{gap:8px}
  body.single-product .onyx-bundle{padding:28px 4px 12px}
  body.single-product .onyx-bundle-flag{height:20px;padding:0 8px;font-size:9px;letter-spacing:.06em}
  body.single-product .onyx-bundle-tile{height:76px;margin-bottom:8px}
  body.single-product .onyx-bundle-tile img{height:100px}
  body.single-product .onyx-bundle-tile img + img{margin-left:-37px}
  body.single-product .onyx-bundle-qty{font-size:16px}
  body.single-product .onyx-bundle-sub{font-size:12px;margin-bottom:8px}
  body.single-product .onyx-bundle-was{font-size:11.5px}
  body.single-product .onyx-bundle-price{font-size:14.5px}
  body.single-product .onyx-bundle-per{font-size:11px}
  body.single-product .pd-specs,
  body.single-product .coa-sec{padding:22px 18px}
  body.single-product .pdp-trust3{grid-template-columns:1fr;gap:12px}
  body.single-product .pdp-trust3-item{flex-direction:row;text-align:left;gap:12px;padding:0 10px}
  body.single-product .pdp-tip-pop{left:0;transform:none}
}
/* Case photo thumbnails (closed / open). */
.pd-thumbs{display:flex;gap:10px;margin-top:12px}
.pd-thumb{width:76px;height:76px;padding:0;border:1px solid var(--line);border-radius:12px;background:var(--studio);overflow:hidden;cursor:pointer;transition:border-color 150ms cubic-bezier(.4,0,.2,1)}
.pd-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pd-thumb:hover{border-color:var(--line-strong)}
.pd-thumb.is-active{border-color:var(--blue)}
.pd-thumb:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
@media (prefers-reduced-motion:reduce){.pd-thumb{transition:none}}
body.single-product .coa-item[hidden]{display:none}
