/* Preserve authored product paragraphs and make expanded copy readable. */
.pdp-copy, .size-guide-content { white-space: pre-line; }
/* Keep controls and content in distinct boxes: every panel is full width. */
product-details.pdp-details { display:block; width:100%; min-width:0; margin-top:20px; }
.pdp-details-tabs { display:flex; gap:14px; width:100%; }
.pdp-details-tabs > button { display:flex; flex:1 1 0; min-width:0; min-height:44px; align-items:center; justify-content:space-between; gap:8px; padding:8px 0; border:0; text-align:left; font:11px/1.5 var(--body); }
.pdp-details-tabs > button > span:first-child { min-width:0; overflow-wrap:normal; }
.pdp-details-sign { flex:0 0 auto; display:block; transition:transform .18s ease; }
.pdp-details-tabs > button[aria-expanded="true"] .pdp-details-sign { transform:rotate(45deg); }
.pdp-details-content { display:block; width:100%; min-width:0; }
.pdp-details-panel { display:block; width:100%; min-width:0; padding:12px 0 0; text-align:start; font:13px/1.65 var(--body); }
.pdp-details-panel[hidden] { display:none !important; }
.pdp-details .pdp-details-panel p { width:100%; max-width:none; margin:0; padding:0; overflow-wrap:break-word; }
.pdp-details .pdp-details-panel p + p { margin-top:16px; }
@media(max-width:600px) {
 product-details.pdp-details { margin-top:16px; }
 .pdp-details-tabs { gap:12px; }
 .pdp-details-tabs[data-count="4"] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 20px; }
 .pdp-details-tabs > button { font-size:12px; line-height:1.5; align-items:flex-start; }
 .pdp-details-panel { font-size:14px; line-height:1.6; padding-top:12px; }
}
@media(prefers-reduced-motion:reduce) { .pdp-details-sign { transition:none; } }

.pdp-gallery { min-width:0; }
.product-photo-rail { display:flex; width:100%; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.product-photo-rail::-webkit-scrollbar { display:none; }
.product-photo-rail > .media { flex:0 0 100%; width:100%; min-width:100%; aspect-ratio:700/800; scroll-snap-align:start; background:var(--soft); }
.product-photo-rail img { object-fit:contain; }
.product-photo-navigation { padding:12px 20px; display:flex; align-items:center; gap:16px; }
.product-photo-count { font:12px/1.4 var(--mono); white-space:nowrap; }
.product-photo-thumbs { display:flex; gap:8px; overflow:auto; }
.product-photo-thumbs button { flex:0 0 48px; width:48px; height:56px; padding:2px; border:1px solid transparent; }
.product-photo-thumbs button[aria-pressed=true] { border-color:var(--ink); }
.product-photo-thumbs img { width:100%; height:100%; object-fit:contain; display:block; }
@media(max-width:600px) {
 .product-photo-rail > .media { aspect-ratio:320/420; background:#fff; }
 .product-photo-navigation { padding:10px; gap:10px; justify-content:center; }
 .product-photo-thumbs { gap:0; }
 .product-photo-thumbs button { flex:0 0 28px; width:28px; height:32px; position:relative; padding:0; border:0; }
 .product-photo-thumbs img { display:none; }
 .product-photo-thumbs button::after { content:''; position:absolute; width:5px; height:5px; border-radius:50%; background:#c6c6c6; left:12px; top:13px; }
 .product-photo-thumbs button[aria-pressed=true]::after { background:var(--ink); }
}
/* Clear photo navigation and consistent detail-label spacing. */
.pdp-title .price{font:20px/1.35 var(--mono);white-space:nowrap;padding-top:3px}
.product-photo-stage{position:relative;min-width:0}
.product-photo-arrows{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;padding:0 12px;pointer-events:none;z-index:2}
.product-photo-arrows button{pointer-events:auto;display:grid;place-items:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.85);font:28px/1 var(--body);color:#333;touch-action:manipulation}
.product-photo-arrows button:disabled{opacity:.25;cursor:default}
.pdp-details-tabs{justify-content:flex-start;gap:24px;flex-wrap:wrap}
.pdp-details-tabs>button{flex:0 1 auto;justify-content:flex-start;gap:10px;font-size:12px;white-space:nowrap}
.pdp-details-tabs>button>.pdp-details-sign{width:10px;text-align:center}
.pdp-related>.recommendations-rail{display:flex;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;gap:12px;padding:0 var(--gutter);overscroll-behavior-x:contain}
.pdp-related>.recommendations-rail>.card{flex:0 0 calc((100% - 36px)/3.4);min-width:0;scroll-snap-align:start}
.pdp-related .section-arrows button{min-width:44px;min-height:44px}
@media(max-width:600px){.pdp-title .price{font-size:17px;line-height:1.4}.product-photo-arrows{padding:0 8px}.product-photo-thumbs button{flex:0 0 44px;width:44px;height:44px}.product-photo-thumbs button::after{left:19px;top:19px}.pdp-details-tabs,.pdp-details-tabs[data-count="4"]{display:flex;gap:4px 24px;flex-wrap:wrap}.pdp-details-tabs>button{flex:0 0 calc(50% - 12px);align-items:center;gap:10px;white-space:normal}.pdp-related>.recommendations-rail{gap:8px;padding:0 10px}.pdp-related>.recommendations-rail>.card{flex:0 0 calc((100vw - 28px)/2)}}

/* Recommendations are a bounded native rail, with no empty clone slots. */
.pdp-related>.recommendations-rail{display:block;padding:0;scroll-snap-type:none;touch-action:pan-x pan-y}
.recommendations-track{display:flex;align-items:stretch;gap:12px;width:max-content;padding:0 var(--gutter)}
.recommendations-track>.card{flex:0 0 calc((100vw - 76px)/3.4);width:calc((100vw - 76px)/3.4);min-width:0}
.pdp-related .section-arrows button:disabled{opacity:.3;cursor:default}
@media(max-width:600px){.recommendations-track{gap:8px;padding:0 10px}.recommendations-track>.card{flex:0 0 calc((100vw - 28px)/2);width:calc((100vw - 28px)/2)}}
/* Mixed availability remains visible at the size choice, without hiding the price change. */
.size-buttons button:has(small){min-width:88px;min-height:58px;padding:8px 10px;line-height:1.3}
.size-buttons button small{display:block;font-family:var(--mono);font-size:12px;font-weight:400;line-height:1.3;margin-top:4px;white-space:nowrap}
