/* Port of the <style> block in lib/SL.EShop.Core/Pages/Shared/_ProductDetail.cshtml (rtriga PDP), plus mobile-safe variant chips. */
.product-detail-page { max-width: 1200px; margin: 0 auto; padding: 1rem 1.5rem 4rem; }
.product-detail-page .pdp-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 992px) { .product-detail-page .pdp-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.product-detail-page .pdp-breadcrumb { font-size: .85rem; opacity: .75; margin-bottom: .75rem; display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.product-detail-page .pdp-breadcrumb a { text-decoration: none; opacity: .9; }
.product-detail-page .pdp-breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.product-detail-page .pdp-breadcrumb .pdp-breadcrumb__sep { opacity: .4; }
.product-detail-page .pdp-gallery__main { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #1a1a1a; border-radius: 12px; overflow: hidden; }
.product-detail-page .pdp-gallery__main img#pdp-main-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; transition: transform .25s ease; }
.product-detail-page .pdp-gallery__main:hover img#pdp-main-image { transform: scale(1.01); }
.product-detail-page .pdp-gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.5rem; height: 2.5rem; display: flex; align-items: center; justify-content: center; background: rgba(10,10,10,.7); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; cursor: pointer; font-size: 1rem; padding: 0; line-height: 1; transition: background .2s ease, transform .2s ease; }
.product-detail-page .pdp-gallery__nav:hover { background: rgba(10,10,10,.92); transform: translateY(-50%) scale(1.05); }
.product-detail-page .pdp-gallery__nav--prev { left: .75rem; }
.product-detail-page .pdp-gallery__nav--next { right: .75rem; }
.product-detail-page .pdp-gallery__nav[disabled] { opacity: .4; cursor: not-allowed; }
.product-detail-page .pdp-gallery__expand { position: absolute; top: .75rem; right: .75rem; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; background: rgba(10,10,10,.7); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; cursor: pointer; padding: 0; font-size: .9rem; transition: background .2s ease; }
.product-detail-page .pdp-gallery__expand:hover { background: rgba(10,10,10,.92); }
.product-detail-page .pdp-gallery__counter { position: absolute; bottom: .75rem; left: .75rem; padding: .25rem .55rem; background: rgba(10,10,10,.7); color: #fff; border-radius: 4px; font-size: .75rem; font-variant-numeric: tabular-nums; letter-spacing: .05em; pointer-events: none; }
.product-detail-page .pdp-gallery__bp-links { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.product-detail-page .pdp-gallery__thumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.product-detail-page .pdp-thumb { width: 80px; height: 60px; border: 2px solid transparent; border-radius: 6px; padding: 0; overflow: hidden; cursor: pointer; background: #1a1a1a; }
.product-detail-page .pdp-thumb.active { border-color: currentColor; }
.product-detail-page .pdp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-page .pdp-brand { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin: 0 0 .25rem; }
.product-detail-page .pdp-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 .75rem; line-height: 1.15; font-weight: 800; }
.product-detail-page .pdp-sku { font-size: .85rem; opacity: .7; margin-bottom: .5rem; }
.product-detail-page .pdp-sku code { background: rgba(127,127,127,.15); padding: .1rem .4rem; border-radius: 3px; }
.product-detail-page .pdp-leadtime { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; background: #f5b400; color: #1a1a1a; font-size: .85rem; font-weight: 600; margin-bottom: 1rem; }
.product-detail-page .pdp-price-row { display: flex; align-items: baseline; gap: .75rem; margin: 1rem 0; }
.product-detail-page .pdp-price { font-size: 1.75rem; font-weight: 800; }
.product-detail-page .pdp-compare { opacity: .5; text-decoration: line-through; font-size: 1.1rem; }
.product-detail-page .pdp-variants { margin: 1.25rem 0; }
.product-detail-page .pdp-variants .variant-picker--material { gap: .5rem; flex-wrap: wrap; display: flex; }
.product-detail-page .pdp-variants .variant-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .85rem; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: rgba(255,255,255,.04); color: inherit; cursor: pointer; font: inherit; transition: background .15s, border-color .15s, transform .1s; }
.product-detail-page .pdp-variants .variant-chip:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.45); }
.product-detail-page .pdp-variants .variant-chip.active { background: rgba(255,0,51,.16); border-color: #ff0033; box-shadow: 0 0 0 1px #ff0033 inset; }
.product-detail-page .pdp-variants .variant-chip__swatch { flex-shrink: 0; }
.product-detail-page .pdp-variants .variant-chip__delta { color: inherit; opacity: .9; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.product-detail-page .pdp-variants .variant-chip.active .variant-chip__delta { opacity: 1; }
.product-detail-page .pdp-qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.product-detail-page .pdp-qty-stepper { display: inline-flex; border: 1px solid currentColor; border-radius: 6px; overflow: hidden; }
.product-detail-page .pdp-qty-stepper button { background: transparent; border: 0; color: inherit; padding: .35rem .75rem; cursor: pointer; font: inherit; }
.product-detail-page .pdp-qty-stepper input { width: 50px; border: 0; background: transparent; color: inherit; text-align: center; font: inherit; }
.product-detail-page .pdp-cart-btn { width: 100%; padding: .85rem 1rem; border-radius: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 1rem; background: #ff0033; color: #fff; }
.product-detail-page .pdp-cart-btn:hover { background: #d80029; }
.product-detail-page .pdp-cart-btn:disabled { opacity: .5; cursor: not-allowed; }
/* Held disabled for ~0.9s after a successful add — keep it clearly readable rather than dimmed to
   half, because this state is the CONFIRMATION the buyer reads. */
.product-detail-page .pdp-cart-btn:disabled.is-added { opacity: 1; background: #1f9d55; cursor: default; }
.product-detail-page .pdp-cart-btn__spin { display: inline-block; animation: pdp-cart-spin .8s linear infinite; }
@keyframes pdp-cart-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .product-detail-page .pdp-cart-btn__spin { animation: none; } }
.product-detail-page .pdp-description { margin-top: 3rem; line-height: 1.6; }
.product-detail-page .pdp-description p:last-child { margin-bottom: 0; }
/* Synced product HTML (e.g. octcomposites.com → MsoNormal markup) ships with hard-coded
   inline color/background/font styles meant for a light-themed page. Force every nested
   element to inherit the storefront's text color so the body reads on dark backgrounds.
   Also normalize the OCT quirk of wrapping each <li> in its own <ul> and putting <ul>s
   inside <h5>s — strip the heading weight so spec lists feel like spec lists. */
.product-detail-page .pdp-description,
.product-detail-page .pdp-description * { color: inherit !important; background: transparent !important; }
.product-detail-page .pdp-description b,
.product-detail-page .pdp-description strong { font-weight: 700; }
.product-detail-page .pdp-description p { margin: 0 0 .75rem; }
.product-detail-page .pdp-description ul,
.product-detail-page .pdp-description ol { padding-left: 1.25rem; margin: 0 0 .75rem; }
.product-detail-page .pdp-description ul + ul { margin-top: -.65rem; }
.product-detail-page .pdp-description li { margin: .15rem 0; line-height: 1.55; }
.product-detail-page .pdp-description h1,
.product-detail-page .pdp-description h2,
.product-detail-page .pdp-description h3,
.product-detail-page .pdp-description h4,
.product-detail-page .pdp-description h5,
.product-detail-page .pdp-description h6 { font-weight: 600; margin: 1rem 0 .35rem; line-height: 1.3; }
.product-detail-page .pdp-description h5 { font-size: 1rem; font-weight: 600; }
/* When OCT wraps spec ULs inside an <h5>, drop the heading look so the bullets stay readable. */
.product-detail-page .pdp-description h5:has(ul) { font-size: inherit; font-weight: inherit; margin: 0; }
.product-detail-page .pdp-description a { color: #ff0033 !important; text-decoration: underline; }
.product-detail-page .pdp-description img { max-width: 100%; height: auto; border-radius: 8px; margin: .5rem 0; }
.product-detail-page .pdp-description table { width: 100%; max-width: 720px; border-collapse: collapse; margin: .75rem 0; }
.product-detail-page .pdp-description td,
.product-detail-page .pdp-description th { padding: .45rem .65rem; border: 1px solid rgba(127,127,127,.25); text-align: left; }
.product-detail-page .pdp-specs { margin-top: 3rem; }
.product-detail-page .pdp-specs h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 1rem; }
.product-detail-page .pdp-specs table { width: 100%; max-width: 600px; border-collapse: collapse; }
.product-detail-page .pdp-specs th, .product-detail-page .pdp-specs td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid rgba(127,127,127,.2); }
.product-detail-page .pdp-specs th { font-weight: 500; opacity: .7; width: 40%; }
/* Chips hold admin-authored text: they must wrap (rtriga 2026-07-27 mobile lesson) */
.product-detail-page .pdp-variants .variant-picker--material { flex-wrap: wrap; }
.product-detail-page .pdp-variants .variant-chip { max-width: 100%; text-align: center; white-space: normal; }
.product-detail-page .pdp-variants .variant-chip__name { min-width: 0; overflow-wrap: anywhere; }
.product-detail-page .pdp-gallery__bp-links { position: absolute; left: -9999px; }
.product-detail-page .pdp-price-vat-badge { font-size: .8rem; opacity: .7; color: #fff; }
.product-detail-page .pdp-note { font-size: .85rem; opacity: .75; }
/* The hidden attribute must win over the display set by rtriga's card/alert classes (shop.js toggles it). */
.rtr-checkout-card[hidden], .rtr-alert[hidden], .alert[hidden], .rtr-result-order[hidden], .rtr-checkout-summary-vat-note[hidden], .rtr-checkout-customs-notice[hidden], p[hidden] { display: none !important; }
/* Checkout at 412px: a grid item's min-content (a select with long option text, default-sized inputs) must not widen the page. */
.rtr-checkout-grid > * { min-width: 0; }
.rtr-checkout-form label, .rtr-checkout-form .rtr-grid-2col > * { min-width: 0; }
.rtr-checkout-form input:not([type="radio"]):not([type="checkbox"]), .rtr-checkout-form select, .rtr-checkout-form textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
