/* A route is a full page. The catalog remains mounted to preserve its controls. */
body.product-page-active #storefront-sections > [data-section] { display:none !important; }
.product-page { padding-block:24px 64px; }
.product-page[hidden] { display:none; }
.product-page-navigation { display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:24px;color:var(--muted);font-size:13px; }
.product-page-navigation a { min-height:44px;display:inline-flex;align-items:center; }
.product-page #product-detail { background:#fff;border:1px solid var(--line);border-radius:var(--corner-radius,12px);overflow:hidden; }
.product-page .product-detail-layout { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start; }
.product-page .product-detail-copy { min-width:0;padding:32px; }
.product-page .product-detail-copy h1 { font-size:calc(30px * var(--font-scale,1));line-height:1.6;margin:0 0 12px;overflow-wrap:anywhere; }
.product-page .product-gallery { padding:20px; }
.product-page .product-gallery .product-detail-image { height:auto;min-height:0;max-height:none;aspect-ratio:auto;background:transparent; }
.product-page .product-gallery .product-detail-image>img { display:block;width:100%;height:auto;max-height:none;object-fit:contain; }
.product-image-button,.product-name { display:block;color:inherit;text-decoration:none; }
.product-image-button:focus-visible,.product-name:focus-visible,.variant-option:focus-visible { outline:3px solid var(--forest);outline-offset:3px; }
.variant-axis { border:0;padding:0;margin:16px 0;min-width:0; }
.variant-axis legend { padding:0;font-size:14px; }
.variant-options { display:flex;flex-wrap:wrap;gap:8px;margin-top:8px; }
.variant-axis .variant-option { display:inline-flex;align-items:center;gap:7px;padding:7px 11px;min-height:44px; }
.variant-option img { width:30px;height:34px;object-fit:contain;border-radius:3px;background:#fff; }
.variant-unavailable { font-size:10px;color:var(--muted); }
.variant-selection-note { font-size:12px;color:var(--muted);margin:10px 0; }
.product-promotion { background:#edf2e8;color:var(--forest);border:1px solid #dbe5d3;border-radius:7px;padding:8px 10px;font-size:13px;line-height:1.7; }
.product-promotion small { display:block;font-size:11px;color:var(--muted); }
.product-detail-image video { display:block;width:100%;height:auto;max-height:75dvh;object-fit:contain;background:#13251c;border-radius:inherit; }
.product-detail-image.product-detail-video { background:#13251c;min-height:0; }
.product-page .product-detail-video .gallery-position { top:8px;right:8px;left:auto;bottom:auto;pointer-events:none; }
.gallery-thumbnails button { position:relative; }
.gallery-video-placeholder { display:block;width:100%;height:100%;background:#e7ece4; }
.gallery-video-badge { position:absolute;inset:0;display:grid;place-items:center;font:18px/1 Arial,sans-serif;color:white;text-shadow:0 1px 5px #000;background:#13251c25;pointer-events:none; }
.gallery-video-error { color:#fff;font-size:12px;line-height:1.6;margin:0;padding:8px; }
.regular-price { color:var(--muted);font-size:.8em;white-space:nowrap; }
.promotion-saving { display:block;font-size:12px;color:var(--forest);font-weight:500; }
.detail-quantity-total { font-size:14px; }
@media(max-width:700px) {
 .product-page { padding-block:12px 36px; }
 .product-page-navigation { padding-bottom:12px;font-size:12px; }
 .product-page .product-detail-layout { display:block; }
 .product-page .product-gallery { padding:12px; }
 .product-page .product-detail-copy { padding:18px; }
 .product-page .product-detail-copy h1 { font-size:24px; }
 .product-page .detail-purchase { flex-wrap:wrap; }
 .product-page .detail-purchase > .button { flex:1;min-width:160px; }
}

/* Family pages put the compact overview directly above the actual SKU cards. */
.product-page .variant-family-layout{display:block;min-height:0;padding:12px;max-width:900px;margin-inline:auto}
.product-family-overview{display:grid;grid-template-columns:minmax(0,320px) minmax(0,1fr);align-items:start;gap:12px}
.product-page .product-family-overview .product-gallery{padding:0;min-width:0}
.product-family-heading{min-width:0}
.product-family-heading h1{font-size:25px;line-height:1.5;margin:0 0 2px;overflow-wrap:anywhere}
.product-family-heading .detail-price{margin:0;font-size:24px;color:var(--forest)}
.product-family-heading .product-variant{display:none}
.product-family-heading .product-taxonomy{font-size:11px;line-height:1.6}
.product-page .variant-family-layout .product-detail-copy{padding:4px 0 0;justify-content:flex-start}
.variant-family-layout .product-description{font-size:14px;line-height:1.7;margin:0 0 4px}
.variant-family-layout .detail-attributes{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:12px;margin:0 0 2px;padding:0}
.variant-family-layout .detail-attributes:empty{display:none}
.variant-family-layout .variant-selectors,.variant-family-layout .product-addons{margin-block:4px;padding-block:4px 0}
.variant-family-layout .detail-bottom{margin-top:0;padding-top:6px}
.variant-family-layout .gallery-thumbnails{gap:4px;margin-top:6px}
.variant-family-layout .gallery-thumbnails button{flex:0 0 44px;width:44px;height:44px}
.variant-family-layout .gallery-note{font-size:10px;margin:4px 0 0}
.variant-family-layout .gallery-position{font-size:10px;bottom:5px;left:5px;padding:3px 6px}
@media(max-width:700px){
 .product-page .variant-family-layout{padding:8px}
 .product-family-overview{grid-template-columns:minmax(0,1fr);gap:4px}
 .product-family-heading h1{font-size:20px;margin-bottom:2px}
 .product-family-heading .detail-price{font-size:21px}
}
.product-short-description,.product-item-code{display:block;margin:3px 0;font-size:14px;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;color:var(--forest)}
.product-item-code bdi{font-variant-numeric:tabular-nums}
