/* PDP tabs + equal-height desktop columns (pdp-tabs 2026-10-19). Storefront product page only. */
.product-market__layout > *{min-width:0}
.pdp-tabs{display:flex;max-width:100%;gap:.25rem;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid #d5d9d9;margin:.9rem 0 .8rem;background:#fff}
.pdp-tabs[hidden]{display:none}
.pdp-tab{flex:0 0 auto;font:inherit;font-weight:700;font-size:.92rem;color:#3d4b57;background:none;border:0;border-bottom:3px solid transparent;padding:.6rem .85rem;cursor:pointer;white-space:nowrap}
.pdp-tab:hover{color:#0f1111}
.pdp-tab[aria-selected="true"]{color:#0f2648;border-bottom-color:#0a7ea8}
.pdp-tab:focus-visible,.pdp-panel:focus-visible{outline:3px solid #0a7ea8;outline-offset:2px;border-radius:4px}
.pdp-mid.is-tabbed .pdp-panel[hidden]{display:none}
.pdp-panel > .product-market__section:first-child,.pdp-panel > .ps-specs:first-child{margin-top:0}
.pdp-panel > .product-market__section > h2:first-child,.pdp-panel > .ps-specs > h2:first-child{margin-top:0}
.pdp-list-label{display:grid;gap:.25rem;font-size:.8rem;font-weight:700;color:#3d4b57;margin-bottom:.4rem}
.pdp-list-label select{font:inherit;font-size:.88rem;font-weight:400;padding:.35rem .5rem;border:1px solid #c7d2dc;border-radius:8px;background:#fff;color:#0f1111}

@media (min-width:1024px){
  .product-market__layout{
    --pdp-h:clamp(560px, calc(100vh - var(--pdp-top, 140px) - 1.5rem), 820px);
    align-items:stretch;
  }
  .product-market__gallery,.product-market__content.pdp-mid,.product-market__buybox{height:var(--pdp-h);box-sizing:border-box}
  /* Gallery fills its column: the stage grows, thumbs and note keep their size. */
  .product-market__gallery{display:flex;flex-direction:column;min-height:0}
  .product-market__gallery > .product-gallery{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:12px}
  .product-market__gallery .product-gallery__stage,.product-market__gallery .product-gallery__360,.product-market__gallery .product-gallery__video{flex:1 1 auto;min-height:0;height:auto}
  .product-market__gallery .product-gallery__stage img{max-height:100%;height:100%}
  .product-market__gallery .product-gallery__thumbs,.product-market__gallery .product-gallery__note{flex:0 0 auto}
  /* Middle column scrolls inside itself; tab bar pinned at its top. */
  .product-market__content.pdp-mid{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-top:0}
  .product-market__content.pdp-mid > :first-child{margin-top:1rem}
  .pdp-mid .pdp-tab{padding:.6rem .5rem;font-size:.86rem}
  .pdp-mid .pdp-tabs{flex-wrap:wrap;column-gap:0;overflow:visible;position:sticky;top:0;z-index:2;margin-left:-1rem;margin-right:-1rem;padding:0 1rem}
  /* Buy box: sticky, scrolls inside if it ever runs long. */
  .product-market__buybox{position:sticky;top:calc(var(--pdp-top, 140px) + .75rem);overflow:auto;overscroll-behavior:contain;align-content:start}
}
@media (prefers-reduced-motion:no-preference){.pdp-panel{animation:pdpIn .18s ease-out}@keyframes pdpIn{from{opacity:.4}to{opacity:1}}}

/* t359: buy box sizes to its content (no inner scroll bar); tighter spacing around Qty and the buttons. */
.product-market__buybox{gap:.6rem}
.product-market__buybox .detail-buy-box--market{gap:.5rem;margin-top:.25rem}
.product-market__buybox .pdp-qty{display:flex;align-items:center;gap:.6rem;margin:0}
.product-market__buybox .pdp-qty input[type=number]{min-height:36px;padding:.3rem .5rem!important}
@media (min-width:1024px){.product-market__buybox{height:auto;max-height:none;overflow:visible;position:static;align-self:start}}

/* t396: Write-a-review box: helper text and button on their own lines (the inline .button's padding overlapped the text); button in the Add to cart style. */
.prv-write__actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.75rem 0 0}
.prv-write .prv-write__actions .button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:.6rem 1.4rem;line-height:1.2;text-align:center;text-decoration:none;white-space:nowrap}
.prv-write .prv-write__actions .button:focus-visible{outline:3px solid #0a7ea8;outline-offset:2px}
.prv-write input[type=file]{color:#3d5266;font-size:.86rem;max-width:100%}
.prv-write select,.prv-write input[type=text],.prv-write textarea{color:#0f1111;background:#fff}
