/* MUSIC extension, not a new theme. DESIGN_VARIANCE 6 / MOTION_INTENSITY 3 /
   VISUAL_DENSITY 3: product photography, the existing type and generous space.
   Reuse MUSIC's layer scale: content 0, header 2, native dialogs on top.
   Photos stay nearly square-cornered; interactive controls use MUSIC's pills. */
.merch-page{min-height:100svh}
.merch-page:has(dialog[open]){overflow:hidden}
.merch-main{width:min(1400px,100%);margin:auto;padding:96px 5vw 0}
.back-to-merch{display:inline-block;padding:12px 0;color:var(--muted);font-size:12px}
.back-to-merch:hover{color:var(--ink)}
.merch-catalog{min-height:100svh;display:flex;flex-direction:column}
.merch-catalog-heading{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding:40px 0 28px;border-bottom:1px solid #ffffff16}
.merch-catalog-heading h1{font-size:22px;font-weight:500;letter-spacing:.05em}
.merch-catalog-heading>span{font-size:11px;color:var(--muted)}
.record-shelf{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,240px));align-content:start;gap:48px 36px;padding:44px 0 80px;flex:1}
.record-item{display:block;align-self:start}
.record-item>img{display:block;width:100%;height:auto;box-shadow:0 10px 28px #0003}
.record-label{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:19px}
.record-label h2{font-size:14px;font-weight:500;letter-spacing:.06em}
.record-label>span{font-size:14px;color:var(--muted)}
.record-item>p{font-size:11px;color:var(--muted);margin-top:7px}
.record-item:focus-visible{outline:2px solid #c8deee;outline-offset:8px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.record-item>img{transition:transform .28s ease}.record-item:hover>img{transform:translateY(-5px)}}
@media(max-width:767px){.merch-catalog-heading{padding:8px 0 24px}.record-shelf{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 20px;padding-top:32px}.record-label h2{font-size:12px}}
.product{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);align-items:center;gap:clamp(36px,5vw,88px);min-height:calc(100svh - 174px);padding:32px 0 40px}
.product-gallery{min-width:0}
.photo-open{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:3px;background:#0c1927;cursor:zoom-in}
.photo-open img{display:block;width:100%;height:100%;object-fit:contain}
.product-figure figcaption{display:flex;justify-content:space-between;gap:16px;margin-top:15px;color:var(--muted);font-size:11px;line-height:1.6}
.product-figure figcaption span:last-child{font-size:10px}
.product-thumbnails{display:grid;grid-template-columns:repeat(5,minmax(0,72px));gap:12px;margin-top:24px}
.product-thumbnails a{display:block;width:100%;aspect-ratio:1;padding:3px;border:1px solid transparent;border-radius:3px;opacity:.55}
.product-thumbnails a[aria-current=true]{border-color:#c8deee;opacity:1}
.product-thumbnails a:hover,.product-thumbnails a:focus-visible{opacity:1}
.product-thumbnails img{display:block;width:100%;height:100%;object-fit:cover;border-radius:1px}
.product-category{font-size:12px;color:var(--muted);letter-spacing:.05em;margin-bottom:20px}
.product-copy h1{font-size:clamp(36px,4.1vw,62px);line-height:1.15;font-weight:500;letter-spacing:-.05em}
.product-description{font-size:15px;line-height:1.95;color:#b9c9d9;margin-top:25px}
.product-actions{display:flex;align-items:center;flex-wrap:wrap;gap:22px;margin-top:36px}
.purchase-button{display:inline-flex;align-items:center;justify-content:space-between;gap:40px;white-space:nowrap;padding:15px 23px;border-radius:30px;background:#e4edf6;color:#142332;font-size:13px}
.purchase-button:hover{background:#cfdfed}
.listen-link{padding:13px 0;font-size:12px;color:#c5d4e3;white-space:nowrap}
.listen-link:hover{color:var(--ink)}
.purchase-note{font-size:11px;color:var(--muted);line-height:1.8;margin-top:18px}
.product-details{margin-top:40px;border-top:1px solid #ffffff26}
.product-details details{padding-top:20px}
.product-details summary{cursor:pointer;font-size:13px;line-height:1.7;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:20px}
.product-details summary::-webkit-details-marker{display:none}
.product-details summary::after{content:'+';font-size:18px;color:var(--muted)}
.product-details details[open]>summary::after{content:'−'}
.product-details details p{color:var(--muted);font-size:12px;line-height:1.95;margin-top:15px;max-width:35em}
.merch-footer{border-top:1px solid #ffffff16;padding:26px 0;display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}
.merch-footer a{padding:6px 0;color:#c5d4e3}
.photo-error,.no-script-contact{color:#c5d4e3;font-size:13px;line-height:1.8;padding-top:18px}
.merch-page .contact-dialog{background:#0d1c2c}
.photo-dialog{margin:auto;border:1px solid #ffffff26;border-radius:8px;width:min(1100px,calc(100% - 32px));max-height:94svh;padding:18px 24px;background:#08121e;color:var(--ink);overflow:auto}
.photo-dialog::backdrop{background:#02070ee8}
.photo-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;font-size:13px;margin-bottom:16px}
.photo-dialog img{display:block;max-width:100%;width:100%;height:min(70svh,800px);object-fit:contain;margin:auto}
.photo-controls{display:flex;align-items:center;justify-content:center;gap:40px;margin-top:16px}
.photo-controls button{padding:12px 16px;font-size:12px;color:#c5d4e3;min-height:44px}
@media(prefers-reduced-motion:no-preference){
  .purchase-button,.product-thumbnails a{transition:background-color .18s,opacity .18s,transform .22s}
  .purchase-button:active{transform:scale(.98)}
}
@media(max-width:1023px) and (min-width:768px){
  .merch-main{padding-left:32px;padding-right:32px}
  .product{grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr);gap:32px}
  .product-actions{gap:14px}.purchase-button{gap:24px}
}
@media(max-width:767px){
  .merch-main{padding:150px 24px 0}
  .product{grid-template-columns:minmax(0,1fr);gap:38px;padding:0 0 42px;min-height:auto}
  .product-thumbnails{gap:8px;margin-top:18px}
  .product-category{margin-bottom:15px}.product-copy h1{font-size:42px}
  .product-description{margin-top:20px}.product-actions{margin-top:28px}
  .product-details{margin-top:30px}.product-details details p{max-width:none}
  .merch-footer{padding:22px 0}
  .photo-dialog{padding:14px;width:calc(100% - 20px)}
  .photo-dialog img{height:65svh}
}
