/* Product detail layout. Deliberately scoped to this page. */
body.product-detail { background:#f6f7f9; color:#222a35; }
.product-detail .site-header,.product-detail .site-footer { background:#fff; }
.product-detail .selection-shortcut { margin-top:0; margin-bottom:0; }
.pdp { --pdp-line:#e3e7ec; --pdp-muted:#687384; --pdp-green:#16834c; font:14px/1.55 var(--textFont),sans-serif; width:100%; padding:22px 28px 60px; }
.pdp *, .pdp *::before, .pdp *::after { box-sizing:border-box; }
.pdp-shell { max-width:1400px; width:100%; margin:0 auto; }
.pdp h1,.pdp h2,.pdp h3,.pdp p,.pdp dl { margin:0; }
.pdp h1,.pdp h2,.pdp h3 { font-family:var(--textFont),sans-serif; color:#202936; text-transform:none; }
.pdp h1 { font-size:clamp(22px,2vw,30px); line-height:1.35; font-weight:750; max-width:1200px; overflow-wrap:anywhere; }
.pdp h2 { font-size:19px; font-weight:750; line-height:1.35; }
.pdp h3 { font-size:15px; font-weight:700; }
.pdp a { color:#254f80; }
.pdp a:hover { color:#101e30; }
.pdp button,.pdp input { font:inherit; }
.pdp button { cursor:pointer; }
.pdp :focus-visible { outline:3px solid #386cb0; outline-offset:3px; }
.pdp [hidden] { display:none !important; }
.pdp-breadcrumbs { display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-size:13px; margin-bottom:16px; color:#929aa5; }
.pdp-heading { margin-bottom:24px; }
.pdp-meta { display:flex; flex-wrap:wrap; gap:8px 22px; margin-top:12px; font-size:13px; color:var(--pdp-muted); }
.pdp-meta strong { font-weight:600; color:#384354; }
.pdp-supplier { border-left:1px solid #d2d8df; padding-left:18px; }
.pdp-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; align-items:start; gap:22px; }
.pdp-panel { background:#fff; border:1px solid var(--pdp-line); border-radius:16px; min-width:0; }
.pdp-overview { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); padding:24px; gap:28px; align-items:start; }
.pdp-gallery { min-width:0; }
.pdp-photo { display:flex; justify-content:center; align-items:center; width:100%; aspect-ratio:1; max-height:430px; position:relative; border-radius:10px; background:white; }
.pdp-photo img { width:100%; height:100%; max-height:430px; object-fit:contain; }
.pdp-zoom { position:absolute; bottom:8px; right:8px; display:grid; place-items:center; width:34px; height:34px; background:#f3f5f7; border:1px solid var(--pdp-line); border-radius:50%; font-size:23px; color:#526071; }
.pdp-thumbs { display:flex; gap:8px; overflow-x:auto; padding:12px 2px 4px; }
.pdp-thumbs a { width:62px; height:62px; border:1px solid var(--pdp-line); border-radius:8px; flex:0 0 62px; padding:5px; background:white; }
.pdp-thumbs a[aria-current="true"] { border:2px solid #e9b600; }
.pdp-thumbs img { width:100%; height:100%; object-fit:contain; }
.pdp-photo-hint { text-align:center; font-size:11px; color:#7d8795; padding-top:10px; }
.pdp-brief { padding:6px 0; }
.pdp-brief h2 { margin-bottom:15px; }
.pdp-facts { display:flex; flex-direction:column; }
.pdp-facts > div { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:14px; padding:11px 0; border-bottom:1px solid #edf0f3; }
.pdp-facts dt { font-weight:400; color:var(--pdp-muted); overflow-wrap:anywhere; }
.pdp-facts dd { text-align:right; font-weight:600; margin:0; color:#252f3c; overflow-wrap:anywhere; }
.pdp-text-link { display:inline-block; font-size:13px; font-weight:600; margin-top:15px; }
.pdp-compare { margin-top:24px; }
.pdp-compare .selection-toggle { width:auto; background:#f8fafc; border-color:var(--pdp-line); padding:10px 18px; font-size:13px; }
.pdp-buy { grid-column:2; grid-row:1 / span 2; position:sticky; top:18px; padding:24px; box-shadow:0 5px 18px #20345006; }
.pdp-status { color:var(--pdp-muted); display:flex; align-items:center; gap:8px; font-weight:650; }
.pdp-status--available { color:var(--pdp-green); }
.pdp-status span { font-size:11px; }
.pdp-price-block { display:flex; flex-direction:column; align-items:flex-start; gap:3px; margin:18px 0; }
.pdp-price { font-size:30px; line-height:1.25; letter-spacing:-.6px; font-weight:800; white-space:nowrap; color:#1c2837; }
.pdp-price--request { font-size:25px; white-space:normal; }
.pdp-old-price { font-size:15px; color:#89929d; }
.pdp-saving { font-size:12px; font-weight:600; background:#eaf6ee; color:#246a42; border-radius:6px; padding:4px 9px; margin-top:7px; }
.pdp-muted { color:var(--pdp-muted); font-size:13px; }
.pdp-cart { padding-top:4px; }
.pdp-quantity-label { font-size:12px; color:var(--pdp-muted); display:block; margin-bottom:7px; }
.pdp-order-row { display:grid; grid-template-columns:110px minmax(0,1fr); gap:10px; }
.pdp-quantity { display:flex; align-items:stretch; border:1px solid #dce2e9; border-radius:9px; overflow:hidden; height:48px; background:#fff; }
.pdp-quantity button { border:0; background:#f7f8fa; color:#4a5665; width:30px; flex-shrink:0; padding:0; }
.pdp-quantity input { text-align:center; width:48px; min-width:0; border:0; appearance:textfield; -moz-appearance:textfield; }
.pdp-quantity input::-webkit-inner-spin-button,.pdp-quantity input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
.pdp-button { border:1px solid #f2c500; background:#ffd329; border-radius:9px; min-height:48px; display:flex; align-items:center; justify-content:center; gap:8px; padding:10px 15px; color:#20242c !important; font-size:14px; font-weight:750; line-height:1.3; text-align:center; }
.pdp-button:hover { background:#f6c813; }
.pdp-button:disabled { opacity:.5; cursor:not-allowed; }
.pdp-buy-stock { margin-top:22px; padding-top:18px; border-top:1px solid var(--pdp-line); }
.pdp-buy-stock strong { font-size:13px; }
.pdp-buy-stock p { margin-top:6px; font-size:13px; color:var(--pdp-muted); }
.pdp-buy-stock .pdp-text-link { margin-top:8px; }
.pdp-help { border-top:1px solid var(--pdp-line); margin-top:18px; padding-top:18px; display:flex; flex-direction:column; gap:5px; }
.pdp-help span,.pdp-help small { font-size:12px; color:var(--pdp-muted); }
.pdp-help a { font-weight:700; font-size:17px; color:#253649; }
.pdp-help small { margin-top:3px; line-height:1.5; }
.pdp-error { color:#b42318; margin-top:10px !important; }
.pdp-details { min-width:0; display:flex; flex-direction:column; gap:20px; }
.pdp-section-nav { display:flex; flex-wrap:wrap; gap:5px; padding:4px; background:#edf0f4; border-radius:11px; }
.pdp-section-nav a { padding:10px 14px; font-size:13px; font-weight:650; color:#526071; border-radius:8px; }
.pdp-section-nav a:hover,.pdp-section-nav a[aria-current="true"] { background:#fff; color:#263549; box-shadow:0 1px 4px #25364912; }
.pdp-section { padding:26px; scroll-margin-top:20px; }
.pdp-section > h2 { margin-bottom:24px; }
.pdp-section-heading { display:flex; flex-wrap:wrap; align-items:center; gap:8px 16px; justify-content:space-between; margin-bottom:20px; }
.pdp-offer { border:1px solid var(--pdp-line); border-radius:11px; margin-top:12px; padding:0 16px 4px; overflow:hidden; }
.pdp-offer--selected { border-color:#afcfba; }
.pdp-offer-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; padding:14px 0 12px; border-bottom:1px solid var(--pdp-line); font-size:14px; }
.pdp-offer-heading > div { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.pdp-tag { display:inline-flex; background:#eaf5ee; color:#267147; font-size:11px; padding:3px 8px; border-radius:5px; font-weight:650; }
.pdp-stock-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(100px,.8fr) minmax(140px,1fr); gap:12px; padding:11px 0; align-items:baseline; font-size:13px; border-bottom:1px solid #edf0f3; }
.pdp-stock-row:last-child { border-bottom:0; }
.pdp-stock-labels { color:#7a8593; font-size:11px; }
.pdp-warehouse { font-weight:600; overflow-wrap:anywhere; }
.pdp-stock-positive { color:var(--pdp-green); font-weight:650; }
.pdp-arrival { color:#536170; font-size:12px; }
.pdp-stock-note { font-size:12px; color:var(--pdp-muted); margin-top:15px !important; line-height:1.65; }
.pdp-spec-groups { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px 36px; align-items:start; }
.pdp-spec-group h3 { background:#f5f7f9; padding:9px 12px; border-radius:7px; margin-bottom:4px; }
.pdp-spec-group .pdp-facts { font-size:13px; }
.pdp-description { font-size:14px; line-height:1.8; overflow-wrap:anywhere; }
.pdp-description + .pdp-description { border-top:1px solid var(--pdp-line); margin-top:18px; padding-top:18px; }
.pdp-documents { display:grid; gap:10px; }
.pdp-document { display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--pdp-line); border-radius:9px; }
.pdp-document > span:nth-child(2) { flex:1; min-width:0; }
.pdp-document strong { display:block; font-size:13px; font-weight:600; overflow-wrap:anywhere; }
.pdp-document small { display:block; color:var(--pdp-muted); font-size:11px; margin-top:3px; }
.pdp-filetype { font-size:10px; font-weight:750; color:#6f7883; background:#f1f4f7; padding:10px 8px; border-radius:6px; min-width:46px; text-align:center; }
.pdp-mobile-purchase { display:none; }
.pdp-lightbox { border:0; border-radius:16px; background:#fff; padding:36px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); width:950px; margin:auto; overflow:auto; }
.pdp-lightbox::backdrop { background:#152030cc; }
.pdp-lightbox img { display:block; width:100%; height:calc(100dvh - 190px); min-height:160px; object-fit:contain; }
.pdp-lightbox-close { position:absolute; top:8px; right:12px; width:40px; height:40px; border:0; background:#f0f3f6; border-radius:50%; font-size:26px !important; }
.pdp-lightbox-controls { display:flex; align-items:center; justify-content:center; gap:25px; margin-top:12px; }
.pdp-lightbox-controls button { border:1px solid var(--pdp-line); border-radius:8px; background:#fff; width:45px; height:38px; }
@media (max-width:1200px) {
 .pdp-layout { grid-template-columns:minmax(0,1fr) 310px; gap:16px; }
 .pdp-overview { gap:18px; padding:18px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .pdp-buy { padding:20px; }
 .pdp-price { font-size:27px; }
 .pdp-brief .pdp-facts { font-size:12px; }
 .pdp-brief h2 { font-size:16px; }
 .pdp-section { padding:22px; }
 .pdp-spec-groups { grid-template-columns:1fr; gap:24px; }
}
@media (max-width:980px) {
 .pdp-layout { grid-template-columns:minmax(0,1fr) 300px; }
 .pdp-overview { grid-template-columns:1fr; }
 .pdp-photo { max-height:300px; }
 .pdp-photo img { max-height:300px; }
 .pdp-buy { grid-row:1; }
 .pdp-details { grid-column:1 / -1; }
 .pdp-brief .pdp-facts { font-size:13px; }
 .pdp-spec-groups { grid-template-columns:1fr 1fr; }
}
@media (max-width:700px) {
 .pdp { padding:16px 14px 100px; }
 .pdp-heading { margin-bottom:17px; }
 .pdp h1 { font-size:22px; line-height:1.4; }
 .pdp h2 { font-size:18px; }
 .pdp-meta { font-size:12px; gap:6px 16px; }
 .pdp-supplier { border:0; padding:0; }
 .pdp-layout { display:flex; flex-direction:column; gap:16px; }
 .pdp-overview,.pdp-buy,.pdp-details { width:100%; }
 .pdp-overview { padding:18px; gap:20px; }
 .pdp-photo,.pdp-photo img { max-height:320px; }
 .pdp-buy { position:static; padding:22px; }
 .pdp-price { font-size:30px; }
 .pdp-order-row { grid-template-columns:120px minmax(0,1fr); }
 .pdp-quantity input { width:58px; }
 .pdp-section { padding:19px 16px; }
 .pdp-section-nav { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:thin; }
 .pdp-section-nav a { white-space:nowrap; padding:10px 12px; }
 .pdp-spec-groups { grid-template-columns:1fr; gap:24px; }
 .pdp-offer { padding:0 12px 4px; }
 .pdp-stock-labels { display:none; }
 .pdp-stock-row { grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; padding:12px 0; }
 .pdp-arrival { grid-column:1 / -1; }
 .pdp-arrival:has(> .pdp-muted:only-child) { display:none; }
 .pdp-arrival:not(:has(> .pdp-muted))::before { content:'Ожидается: '; }
 .pdp-offer-heading { font-size:13px; gap:7px; }
 .pdp-tag { font-size:10px; }
 .pdp-mobile-purchase { position:fixed; bottom:0; left:0; right:0; z-index:45; background:#fff; border-top:1px solid var(--pdp-line); box-shadow:0 -4px 20px #24354a0b; padding:10px 16px max(10px,env(safe-area-inset-bottom)); display:flex; align-items:center; justify-content:space-between; gap:12px; }
 .pdp-mobile-purchase > div { display:flex; flex-direction:column; gap:1px; min-width:0; }
 .pdp-mobile-purchase small { font-size:11px; color:var(--pdp-muted); }
 .pdp-mobile-purchase strong { font-size:17px; white-space:nowrap; }
 .pdp-mobile-purchase .pdp-button { min-width:124px; }
 .product-detail .selection-tray { bottom:85px; }
 .product-detail .site-footer { padding-bottom:100px; }
 .pdp-lightbox { padding:40px 12px 16px; }
}
@media (prefers-reduced-motion:no-preference) { html:has(.pdp) { scroll-behavior:smooth; } }
@media print {
 .product-detail .site-header,.product-detail .site-footer,.pdp-cart,.pdp-compare,.pdp-mobile-purchase,.pdp-section-nav { display:none !important; }
 .pdp { padding:0; } .pdp-buy { position:static; } .pdp-panel { break-inside:avoid; }
}
