/* Round 12: scoped product/variant, gallery and cart presentation. */
.product-options-page .product-detail-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(1.5rem,3vw,3rem);align-items:start}
.product-gallery{min-width:0;position:sticky;top:1rem}
.gallery-stage{border:1px solid var(--line);background:white;border-radius:.4rem;overflow:hidden}
.gallery-zoom{display:flex;flex-direction:column;align-items:center;width:100%;background:white;padding:1rem;border:0;color:var(--blue);cursor:zoom-in}
.gallery-zoom img{width:100%;height:26rem;object-fit:contain}
.gallery-zoom span{font-size:.9rem;min-height:2.75rem;display:flex;align-items:center}
.gallery-navigation{display:flex;justify-content:center;align-items:center;gap:1rem;margin-block:.65rem;font-size:.95rem;color:var(--blue)}
.gallery-navigation span{text-align:center;min-width:7rem}
.gallery-navigation .icon-button{width:2.75rem;height:2.75rem;min-width:2.75rem}
.gallery-thumbnails{display:flex;justify-content:center;flex-wrap:wrap;gap:.75rem}
.gallery-thumbnails button{background:#fff;border:1px solid var(--line);border-radius:.25rem;padding:.35rem;min-width:4.8rem;min-height:4.8rem}
.gallery-thumbnails button[aria-pressed=true]{border:2px solid var(--blue);box-shadow:0 0 0 2px var(--yellow)}
.gallery-thumbnails img{width:4rem;height:4rem;object-fit:contain}
.gallery-note{font-size:.875rem;color:var(--muted);text-align:center;margin:1rem auto;max-width:34rem}
.gallery-empty{min-height:24rem;display:grid;place-items:center;padding:2rem;color:var(--muted);background:#f6f7f9;text-align:center}
.product-options-page .detail-copy{padding-top:0}
.product-options-page .detail-copy h1{font-size:clamp(1.65rem,2.2vw,2.25rem);line-height:1.45}
.key-specs{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;list-style:none;margin-top:.5rem;color:var(--muted);font-size:1rem}
.key-specs strong{font-weight:600;color:var(--ink)}
.product-options-page .detail-price{margin:1.1rem 0;padding:1rem 0}
.product-options-page .detail-price .price-main{font-size:2.1rem}
.price-from{font-size:.875rem;color:var(--muted)}
.variant-field{border:0;padding:0;margin:.8rem 0;min-width:0}
.variant-field legend{font-size:1.0625rem;font-weight:600;margin-bottom:.65rem;color:var(--blue)}
.variant-field legend span{font-weight:400;color:var(--muted)}
.option-values{display:flex;flex-wrap:wrap;gap:.75rem}
.option-value{position:relative;min-width:7rem;max-width:100%;cursor:pointer;display:flex;flex-direction:column}
.option-value input{position:absolute;opacity:0;width:1px;height:1px}
.option-face{display:flex;align-items:center;justify-content:center;gap:.55rem;min-height:3.1rem;padding:.55rem .8rem;border:1px solid #8793a5;border-radius:.3rem;background:white;font-size:1rem}
.option-check{opacity:0;font-weight:700;color:var(--blue)}
.option-value input:checked+.option-face{border:2px solid var(--blue);padding:calc(.55rem - 1px) calc(.8rem - 1px);background:#f3f6fc;box-shadow:inset 0 -3px var(--yellow)}
.option-value input:checked+.option-face .option-check{opacity:1}
.option-value input:focus-visible+.option-face{outline:3px solid var(--blue);outline-offset:3px}
.color-swatch{width:1.4rem;height:1.4rem;background:var(--swatch);border:1px solid #667080;border-radius:50%;flex-shrink:0}
.option-value small{font-size:.78rem;line-height:1.5;margin-top:.35rem;max-width:12rem;color:#8a341e}
.option-value.impossible .option-face{border-style:dashed}
.variant-status{padding:.7rem .9rem;border-inline-start:3px solid var(--blue);background:#f2f5f9;margin:1.1rem 0;font-size:1rem;line-height:1.6}
.variant-status.in-stock{color:#205b39;border-color:#2f754c;background:#eef7f1}
.variant-status.not-ready{color:#734018;border-color:#b26b26;background:#fcf5e9}
.product-options-page .detail-buy{flex-wrap:wrap}
.product-options-page .detail-buy>.button{min-width:10rem;min-height:3.25rem}
.product-options-page button:disabled,.cart-items button:disabled{cursor:not-allowed;opacity:.5}
.product-description{border-top:1px solid var(--line);padding-block:1.7rem;max-width:65rem}
.product-description h2{font-size:1.65rem;margin-bottom:.8rem}
.product-description p{line-height:1.9;font-size:1.0625rem;color:var(--muted)}
.fixture-notice{background:#fff6d8;border:1px solid #d7bf53;padding:1rem 1.25rem;margin-bottom:1.5rem;line-height:1.8}
.repair-notice{background:#f2f5f9;color:var(--blue);padding:.75rem 1rem;margin-bottom:1rem;line-height:1.7}
.image-panel{width:min(65rem,94vw);max-height:94dvh;padding:1rem}
.image-panel .dialog-heading{gap:1rem}
.image-panel .dialog-heading h2{font-size:1.125rem}
.zoomed-product{display:block;width:100%;height:70dvh;object-fit:contain;background:white}
.zoom-caption{text-align:center;color:var(--muted);padding:.5rem}
.card-stock{font-size:.9rem;color:#8a341e;margin:.5rem 0}
.product-card a.add-button{display:flex;align-items:center;justify-content:center;text-align:center}
.product-card .add-button:disabled{opacity:.6;cursor:not-allowed;background:#edf0f4;color:#4b5565}
.cart-options,.summary-options{display:block;color:var(--muted);font-size:.9rem;margin:.25rem 0 .65rem;line-height:1.65}
.line-alert{display:block;color:#8a341e;background:#fff3e9;border-inline-start:3px solid #b26b26;padding:.65rem .8rem;font-size:.9rem;line-height:1.65;margin:.65rem 0}
.cart-no-image{display:grid;place-items:center;width:100%;height:100%;background:#f2f4f7;color:var(--muted);font-size:.9rem}
.cart-line .cart-thumbnail img{width:100%;height:100%;object-fit:contain}
.order-summary button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:700px){
 .product-options-page .product-detail-grid{display:flex;flex-direction:column;gap:1.25rem;padding-top:0}
 .product-gallery,.product-options-page .detail-copy{width:100%;position:static}
 .gallery-zoom{padding:.75rem}
 .gallery-zoom img{height:16rem}
 .gallery-empty{min-height:18rem}
 .gallery-navigation{gap:.65rem}
 .gallery-thumbnails button{min-width:4rem;min-height:4rem}
 .gallery-thumbnails img{width:3.2rem;height:3.2rem}
 .product-options-page .detail-buy{gap:.75rem}
 .product-options-page .detail-buy>.button{min-width:9rem}
 .product-options-page .detail-price .price-main{font-size:1.9rem}
 .option-face{font-size:1rem}
 .product-description p{font-size:1rem}
 .image-panel{padding:.75rem}
 .zoomed-product{height:65dvh}
 .cart-items .cart-line{gap:1rem}
}

/* Product purchase unit; the cart retains its existing presentation. */
.product-options-page .detail-copy h1{margin:.25rem 0;font-size:clamp(1.65rem,2.2vw,2rem);line-height:1.35}
.product-options-page .key-specs{margin:.5rem 0 .8rem;gap:.25rem 1rem;font-size:1rem;line-height:1.6}
.product-options-page .option-face{font-size:1rem;min-height:2.75rem;padding:.4rem .65rem}
.product-options-page .variant-field legend{font-size:1rem;margin-bottom:.4rem}
.product-options-page .option-value input:checked+.option-face{padding:calc(.4rem - 1px) calc(.65rem - 1px)}
.product-options-page .option-value small{font-size:.875rem;line-height:1.5}
.variant-meta{display:flex;align-items:center;gap:.35rem 1rem;flex-wrap:wrap;margin:.7rem 0}
.product-options-page .model-line{font-size:.875rem;margin:0;color:#556178}
.product-options-page .variant-status{background:none;border:0;padding:0;margin:0;font-size:.9375rem}
.product-options-page .product-weekly{margin:.75rem 0;border:0;padding:0}
.product-options-page .plan-pending{background:#f4f6fa;border-inline-start:3px solid var(--yellow);padding:.8rem 1rem;font-size:1rem}
.product-options-page .plan-pending p{margin:0}
.product-options-page .plan-pending .detail-price{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:0;margin:.5rem 0 0;border:0;font-size:1rem}
.product-options-page .product-plan{padding:.9rem 1rem;background:#f4f6fa;border:1px solid #e0e5ef;border-radius:.4rem}
.product-plan-top{display:flex;align-items:baseline;gap:.5rem;flex-wrap:wrap;font-size:1rem;color:var(--blue)}
.product-plan-top>.money-pair{font-size:1.875rem;line-height:1.3}
.product-plan-top .weekly-demo-label{margin-inline-start:auto;font-size:.875rem}
.product-plan-facts{display:grid;grid-template-columns:1fr;gap:.3rem;margin-top:.55rem}
.product-plan-facts>div{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;font-size:1rem;line-height:1.6}
.product-plan-facts dt{color:#4b5870}.product-plan-facts dd{margin:0;text-align:end}
.product-plan-facts .money-usd{font-size:1rem;font-weight:500}
.product-plan-breakdown{border-top:1px solid #d9e0eb;margin-top:.6rem;font-size:.9375rem;line-height:1.6}
.product-plan-breakdown summary{min-height:2.75rem;cursor:pointer;display:flex;align-items:center;gap:.5rem;color:var(--blue)}
.product-plan-breakdown summary::after{content:'+';margin-inline-start:auto}.product-plan-breakdown[open] summary::after{content:'−'}
.product-plan-breakdown p{margin:.5rem 0}
.product-plan-note{margin:0;color:#556178;font-size:.875rem;line-height:1.5}
.product-purchase{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:.55rem 1rem;scroll-margin-block:2rem;margin-top:.9rem}
.product-options-page .weekly-product-quantity{display:flex;gap:.3rem;flex-direction:column;align-items:start;margin:0;padding:0;border:0}
.product-options-page .weekly-product-quantity .field-label{font-size:.9375rem;line-height:1.4}
.product-options-page .detail-buy{margin:0;display:block}
.product-options-page .detail-buy>.button{width:100%;min-height:3rem;min-width:0;font-size:1rem;gap:.5rem;white-space:normal;padding:.55rem .7rem}
.product-purchase .quantity-control{min-height:3rem}.product-purchase .quantity-control input{width:2.8rem;min-width:0;font-size:1rem}
.product-purchase .field-error,.purchase-feedback,.purchase-cart-link{grid-column:1/-1}
.product-purchase .field-error:empty,.purchase-feedback:empty{display:none}
.purchase-feedback{font-size:1rem;color:#205b39;margin:0}
.purchase-cart-link{justify-self:start;min-height:2.75rem;font-size:.9375rem}
.product-options-page .purchase-facts{display:flex;gap:.5rem 1rem;align-items:center;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:.6rem;margin-top:.5rem;font-size:.9375rem}
.product-options-page .purchase-facts p{font-size:.9375rem;margin:0}
.product-information{display:grid;grid-template-columns:1fr 1fr;gap:3rem;margin-top:2.5rem;border-top:1px solid var(--line)}
.product-information .product-description,.product-information .spec-section{border:0;margin:0;padding:1.5rem 0}
.product-information h2{font-size:1.4rem}.product-information .product-details{margin-top:.75rem}
.purchase-dock{display:none}
@media(max-width:700px){
 .product-options-page .detail-copy{display:contents}.product-options-page .detail-copy>*{width:100%}.product-options-page .product-detail-grid{gap:.7rem}.product-identity{order:-1}
 .product-options-page .detail-copy h1{font-size:1.7rem;line-height:1.4}
 .product-options-page .gallery-stage{border:0}.product-options-page .gallery-zoom{padding:.5rem}
 .product-options-page .gallery-note{margin:.5rem 0;font-size:.875rem}
 .product-options-page .gallery-navigation{margin:.25rem 0;font-size:.875rem}
 .product-options-page .gallery-thumbnails{gap:.5rem}
 .product-information{grid-template-columns:1fr;gap:0;margin-top:1.5rem}
 .product-plan-top>.money-pair{font-size:1.7rem}
 .product-purchase{column-gap:.6rem}.product-purchase .quantity-control button{min-width:2.75rem;width:2.75rem}
 .product-options-page .detail-buy>.button{font-size:.9375rem}
 body.has-purchase-dock{padding-bottom:calc(6rem + env(safe-area-inset-bottom,0px))}
 html:has(body.has-purchase-dock){scroll-padding-bottom:7rem}
 .purchase-dock:not([hidden]){display:flex;position:fixed;z-index:50;inset:auto 0 0;gap:.75rem;align-items:center;justify-content:space-between;background:#fff;border-top:1px solid #d4dceb;box-shadow:0 -3px 16px #25427c12;padding:.65rem 1rem calc(.65rem + env(safe-area-inset-bottom,0px))}
 .purchase-dock>div{min-width:0;display:flex;flex-direction:column;font-size:.875rem;line-height:1.4;color:#4b5870}
 .purchase-dock .money-usd{font-size:1.3rem}.purchase-dock>.button{min-height:2.75rem;font-size:.9375rem;white-space:normal;max-width:65%;padding:.6rem .75rem;text-align:center}
 .purchase-dock>.button:disabled{opacity:.55}
 html.dialog-open .purchase-dock{display:none}
 .has-purchase-dock .toast{bottom:calc(6rem + env(safe-area-inset-bottom,0px))}
}
