/* Match the same storefront frame as the home, catalog and footer. */
.pdp-page{
  box-sizing:border-box;width:var(--store-top-width);margin-inline:auto;
  padding-top:4px;container:pdp / inline-size;
}
.pdp-page .editorial-pdp{
  display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);grid-template-areas:"gallery buy" "related buy";grid-template-rows:auto 1fr;gap:20px 0;align-items:start;
  padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
}
.pdp-page .editorial-pdp .detail-copy{
  align-self:center;min-width:0;padding:clamp(18px,4cqi,38px);
}
.pdp-page .pdp-content{width:100%;max-width:none;padding:4px 0 clamp(60px,7vw,115px)}
.pdp-page .pdp-dock{box-sizing:border-box;left:0;right:0;width:var(--store-top-width);margin-inline:auto}

.pdp-gallery{grid-area:gallery;min-width:0;align-self:start;background:transparent}
.pdp-gallery-stage{position:relative;min-width:0}
.pdp-gallery-track{
  display:flex;height:clamp(340px,53cqi,523px);overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;scrollbar-width:none;
  scroll-padding:0;touch-action:auto
}
.pdp-gallery-track::-webkit-scrollbar{display:none}
.pdp-gallery-track:focus-visible{outline-offset:-3px}
.pdp-gallery-slide{
  flex:0 0 100%;position:relative;height:100%;margin:0;overflow:hidden;
  scroll-snap-align:start;scroll-snap-stop:always;background:#eee
}
.pdp-gallery-slide img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:50% 52%;
  padding:0;user-select:none;-webkit-user-drag:none
}
.pdp-gallery-controls{
  position:absolute;left:12px;right:12px;bottom:12px;z-index:1;
  display:flex;justify-content:space-between;align-items:center;pointer-events:none
}
.pdp-gallery-nav,.pdp-gallery .gallery-launch{
  display:inline-flex;align-items:center;pointer-events:auto;
  color:#1c1c20;background:var(--glass-button),var(--glass-paper);
  border:1px solid #fff9;border-radius:999px;box-shadow:var(--glass-float)
}
.pdp-gallery-nav button,.pdp-gallery .gallery-launch{
  display:grid;place-items:center;width:44px;height:44px;min-height:44px;flex:none;padding:0;border-radius:999px
}
.pdp-gallery-nav button:is(:hover,:focus-visible),.pdp-gallery .gallery-launch:is(:hover,:focus-visible){background:#fff}
.pdp-gallery-nav button[aria-disabled=true]{color:#757579;background:transparent}
.pdp-gallery-count{min-width:37px;text-align:center;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
.pdp-gallery .gallery-thumbs{
  position:absolute;z-index:1;inset:12px auto auto 12px;display:flex;flex-direction:column;
  gap:4px;width:56px;max-height:calc(100% - 82px);margin:0;padding:3px;
  overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;
  border:1px solid #ffffff8c;border-radius:6px;background:#fafafa52;
}
.pdp-gallery .gallery-thumbs button{
  position:relative;display:block;flex:0 0 48px;width:100%;min-width:0;
  border:0;padding:0;background:transparent;box-shadow:none;touch-action:manipulation;
}
.pdp-gallery .gallery-thumbs img{
  display:block;width:100%;height:100%;border-radius:0;object-fit:cover;opacity:.58;
}
.pdp-gallery .gallery-thumbs button:is([aria-pressed=true],:focus-visible) img{opacity:1}
.pdp-gallery .gallery-thumbs button::after{
  content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
}
.pdp-gallery .gallery-thumbs button[aria-pressed=true]::after{
  box-shadow:inset 0 0 0 2px #252525,inset 0 0 0 3px #fff;
}
@media(hover:hover){.pdp-gallery .gallery-thumbs button:hover img{opacity:1}}
.pdp-gallery .gallery-thumbs button:focus-visible{outline:2px solid #fff;outline-offset:-5px}
.pdp-gallery .gallery-thumbs button:focus-visible::after{box-shadow:inset 0 0 0 3px #252525}
@media(forced-colors:active){
  .pdp-gallery .gallery-thumbs button[aria-pressed=true]::after{border:3px solid Highlight}
}
@media(prefers-reduced-transparency:reduce){
  .pdp-gallery .gallery-thumbs{background:#f5f5f6}
  .pdp-gallery .gallery-thumbs img{opacity:1}
}
@supports (backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px)){
  .pdp-gallery-nav,.pdp-gallery .gallery-launch{
    background:var(--glass-button);
    -webkit-backdrop-filter:blur(18px) saturate(110%);backdrop-filter:blur(18px) saturate(110%)
  }
}
@media(prefers-reduced-transparency:reduce){
  .pdp-gallery-nav,.pdp-gallery .gallery-launch{background:#f5f5f6;backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media(max-width:780px){
  .pdp-page .editorial-pdp{grid-template-columns:minmax(0,1fr);grid-template-areas:"gallery" "buy" "related";grid-template-rows:auto;gap:12px 0}
  .pdp-page .editorial-pdp .detail-copy{padding:16px clamp(12px,4cqi,24px) 22px}
  .pdp-gallery-track{height:clamp(270px,95cqi,520px)}
  .pdp-gallery .gallery-thumbs{display:none}
  .pdp-gallery-controls{inset:auto 10px 10px}
  .pdp-gallery-nav{background:#fafafaf0;color:#1c1c20}
}

/* Keep the rail next to the purchase panel without adding another full-width section. */
.pdp-page .detail-copy{grid-area:buy}
.pdp-related{
  grid-area:related;min-width:0;--rail-gap:8px;
  border-top:1px solid #e7e7e7;padding:8px 0 0;
}
.pdp-related .rail-head{gap:8px;align-items:center;margin:0 0 8px}
.pdp-related .rail-head h2{font:650 1.125rem/1.15 var(--body);letter-spacing:-.027em}
.pdp-related .rail-track{
  grid-auto-columns:clamp(145px,43%,205px);align-items:stretch;padding:1px 1px 10px;
  scroll-padding-inline:1px;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain;
}
.pdp-related .home-product{border-radius:6px;box-shadow:none}
.pdp-related .home-product-photo{border-radius:4px}
.pdp-related .home-product h3{font-size:.875rem}
.pdp-related .home-product-copy{padding:8px}

.pdp-characteristics{
  margin-top:clamp(20px,4cqi,38px);padding-top:clamp(16px,2.5cqi,25px);
  border-top:1px solid #e7e7e7;scroll-margin-top:84px;
}
.pdp-content :is(.pdp-characteristics,.pdp-description) h2{margin:0 0 17px;font:650 clamp(1.3rem,3.1cqi,1.75rem)/1.15 var(--body);letter-spacing:-.035em}
.pdp-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px clamp(18px,4cqi,38px)}
.pdp-spec-group h3{margin:0 0 8px;font:650 .9375rem/1.25 var(--body)}
.pdp-spec-group dl{margin:0;border:1px solid #e7e7e7;border-radius:6px;overflow:hidden}
.pdp-spec-group dl>div{
  display:grid;grid-template-columns:minmax(0,.98fr) minmax(0,1fr);align-items:start;
  gap:12px;padding:10px 12px;color:#262626;font-size:.875rem;line-height:1.4;overflow-wrap:anywhere;
}
.pdp-spec-group dl>div:nth-child(odd){background:#f4f4f4}
.pdp-spec-group dt{font-weight:620}
.pdp-spec-group dd{margin:0}
.pdp-spec-notes{margin-top:16px;color:#454545}
.pdp-spec-notes summary{min-height:44px}
.pdp-spec-notes p{margin:0 0 10px;max-width:65ch;font-size:.875rem;line-height:1.5}
@container pdp (max-width:560px){
  .pdp-spec-grid{grid-template-columns:minmax(0,1fr)}
  .pdp-spec-group dl>div{padding:9px 10px}
}

.pdp-description{margin-top:clamp(22px,3cqi,34px)}
.pdp-content .pdp-description h2{margin-bottom:9px}
.pdp-description p{max-width:65ch;color:#454545;font-size:.9375rem;line-height:1.65}
