/* Shop: catalogue, product gallery, enquiry and editor.
   Keep prices, availability and shipping in /api/shop; this file controls presentation only. */
#shop{color:var(--paper,#ead09c)}
#shop .section-head{margin-bottom:1.4rem}
#shop .section-head h2,#shop .section-head p{color:var(--paper,#ead09c)}
.shop-tools{display:flex;justify-content:flex-end;margin-bottom:1rem}
.shop-tools .button{min-height:44px;font-size:.875rem;padding:.45rem .8rem}
.shop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.5rem}
.shop-card{min-width:0;display:flex;flex-direction:column;background:#142323;border:1px solid var(--line,rgba(234,208,156,.22))}
#shop button.shop-art{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1;overflow:hidden;padding:0;border:0;border-radius:0;background:#0c1110;color:inherit;font:inherit;text-align:left;cursor:pointer}
.shop-art img{display:block;width:100%;height:100%;object-fit:contain;transition:transform .25s ease}
.shop-art-placeholder{padding:1rem;font-family:var(--display);font-size:2rem;text-align:center;text-transform:uppercase}
.shop-format{position:absolute;left:.7rem;bottom:.7rem;padding:.25rem .6rem;background:var(--paper,#ead09c);color:#101514;font-size:.75rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.shop-copy{display:flex;flex:1;flex-direction:column;padding:1.1rem}
#shop .shop-card h3{margin:0 0 .65rem;color:var(--paper,#ead09c);font-size:clamp(1.5rem,2.2vw,2rem);line-height:1.12;overflow-wrap:anywhere}
#shop .shop-title-button{display:block;border:0;padding:0;margin:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-transform:inherit;text-align:left;cursor:pointer}
#shop .shop-title-button:hover{text-decoration:underline;text-underline-offset:.15em;text-decoration-thickness:1px}
#shop .shop-description{display:block;overflow:visible;overflow-wrap:anywhere;margin:0 0 1.15rem;white-space:pre-line;font-size:.875rem;line-height:1.55;color:var(--muted,#cdbf9e)}
.shop-card-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.75rem;margin-top:auto;padding-top:1rem;border-top:1px solid var(--line,rgba(234,208,156,.22))}
.shop-price{margin:0;font-weight:800;font-size:1.2rem;line-height:1.3;font-variant-numeric:tabular-nums}
.shop-price.is-pending{font-size:.9rem;font-weight:400;color:var(--muted,#cdbf9e)}
.shop-shipping-hint{display:block;margin-top:.25rem;color:var(--muted,#cdbf9e);font-size:.75rem;line-height:1.4}
#shop .shop-card .button{width:auto;min-height:44px;padding:.55rem .8rem;font-size:.875rem;line-height:1.35;border:1px solid var(--line-strong,rgba(234,208,156,.45));background:transparent;color:var(--paper,#ead09c)}
#shop .shop-card .button:hover{background:var(--paper,#ead09c);border-color:var(--paper,#ead09c);color:#101514}

/* Dialogs use the same close target and touch-friendly fields throughout. */
html:has(.shop-dialog[open]){overflow:hidden}
.shop-dialog{box-sizing:border-box;width:min(700px,calc(100% - 1.5rem));max-height:calc(100dvh - 2rem);overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch;background:#101b1b;color:var(--paper,#ead09c);border:1px solid var(--line-strong,rgba(234,208,156,.45));padding:clamp(1rem,3vw,1.75rem);box-shadow:0 24px 90px #0008}
.shop-dialog::backdrop{background:#000c}
.shop-dialog h2{font-size:2rem;line-height:1.12;margin:.4rem 0 1rem;overflow-wrap:anywhere}
.shop-dialog>button:first-child{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:center;min-height:44px;margin:0 0 .6rem auto;padding:.35rem .7rem;font-size:.85rem;border-width:1px;background:#101b1b;color:var(--paper,#ead09c);box-shadow:0 0 0 5px #101b1b}
.shop-dialog>button.shop-close:first-child{width:44px;min-width:44px;height:44px;padding:0;border:0;font-size:2rem;line-height:1}
.shop-dialog>button:first-child:hover{background:var(--paper,#ead09c);color:#101514}
.shop-dialog>button:first-child:focus:not(:focus-visible){outline:none;box-shadow:none}
.shop-dialog p{color:var(--muted,#cdbf9e);line-height:1.6}
.shop-dialog button{margin:.4rem .4rem .4rem 0}
.shop-dialog :focus-visible,#shop button:focus-visible{outline:2px solid var(--paper,#ead09c);outline-offset:3px}
#shop button.shop-art:focus-visible{outline-offset:-4px;outline-width:4px}
.shop-dialog label{display:block;margin:1rem 0;font-size:.95rem}
.shop-dialog input,.shop-dialog textarea,.shop-dialog select{box-sizing:border-box;display:block;width:100%;margin-top:.35rem;padding:.7rem;background:#192b2b;color:var(--paper,#ead09c);border:1px solid var(--line-strong,rgba(234,208,156,.45));font:inherit;font-size:16px;border-radius:0}
.shop-dialog textarea{min-height:90px;resize:vertical}
.shop-dialog input[type=checkbox]{display:inline;width:auto;margin-right:.5rem}
.shop-dialog fieldset{min-width:0;margin:1.5rem 0;padding:1rem;border:1px solid var(--line-strong,rgba(234,208,156,.45))}
.shop-dialog legend{padding:0 .5rem;font-weight:700}

/* Large album image, a compact purchase area, then the optional deeper content. */
.shop-dialog.shop-product-dialog{width:min(1020px,calc(100% - 1.5rem))}
.shop-product-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:clamp(1.25rem,3vw,2.5rem);align-items:start}
.shop-product-gallery{min-width:0}
.shop-dialog .shop-gallery-stage{position:relative;display:block;width:100%;margin:0;padding:0;border:1px solid var(--line,rgba(234,208,156,.22));background:#091111;color:var(--paper,#ead09c);cursor:zoom-in}
.shop-product-cover{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.shop-zoom-hint{position:absolute;right:.6rem;bottom:.6rem;padding:.3rem .55rem;background:#101514e6;font-size:.75rem;line-height:1.4}
.shop-gallery-choices{display:flex;gap:.6rem;margin-top:.65rem}
.shop-dialog .shop-gallery-choice{display:flex;align-items:center;gap:.5rem;margin:0;padding:.3rem .5rem .3rem .3rem;border:1px solid var(--line-strong,rgba(234,208,156,.45));background:transparent;color:var(--paper,#ead09c);font:inherit;font-size:.8rem;cursor:pointer}
.shop-gallery-choice[aria-pressed=true]{border-color:var(--paper,#ead09c);box-shadow:inset 0 0 0 1px var(--paper,#ead09c)}
.shop-gallery-choice img{width:44px;height:44px;object-fit:contain}
.shop-product-copy{min-width:0}
.shop-product-layout:has(>.shop-product-copy:only-child){grid-template-columns:1fr}
.shop-dialog .shop-product-kicker{margin:0 0 .4rem;color:var(--paper,#ead09c);font-size:.75rem;font-weight:700;letter-spacing:.14em}
.shop-dialog .shop-product-copy h2{font-size:clamp(1.8rem,3.4vw,2.6rem);margin:0 0 1.1rem}
.shop-purchase{padding:1rem 0;margin:1.1rem 0 0;border-block:1px solid var(--line,rgba(234,208,156,.22))}
.shop-dialog .shop-product-price{font-size:1.6rem;line-height:1.2;font-weight:800;color:var(--paper,#ead09c);margin:0 0 .4rem;font-variant-numeric:tabular-nums}
.shop-dialog .shop-product-shipping{margin:0;font-size:.85rem}
.shop-dialog .shop-availability{margin:.6rem 0 0;font-size:.8rem}
.shop-dialog .shop-primary{width:100%;margin:.9rem 0 .4rem;min-height:48px;background:var(--red,#b54630);border-color:var(--red,#b54630);color:var(--paper,#ead09c);white-space:normal}
.shop-request-note{display:block;color:var(--muted,#cdbf9e);font-size:.8rem;line-height:1.5}
.shop-product-description{white-space:pre-line;overflow-wrap:anywhere;margin:0 0 1rem;font-size:.95rem}
.shop-product-extras{display:flex;align-items:center;flex-wrap:wrap;gap:.4rem 1.15rem;margin:.7rem 0}
.shop-documentary-link{display:inline-flex;align-items:center;gap:.45rem;min-height:44px;padding:.25rem 0;border:0;background:none;color:var(--paper,#ead09c);font:inherit;font-size:.875rem;text-align:left;text-decoration:underline;text-underline-offset:.22em;cursor:pointer}
.shop-dialog .shop-documentary-link{margin:0}
.shop-documentary-logo{display:block;width:36px;height:36px;object-fit:contain;filter:grayscale(1) brightness(.8) sepia(1) saturate(4.5) hue-rotate(8deg)}
.shop-play-icon{display:inline-block;width:0;height:0;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid currentColor;flex:none}
.shop-tracks{margin:1rem 0 0;border-block:1px solid var(--line,rgba(234,208,156,.22));font-size:.875rem}
.shop-tracks summary{padding:.85rem 0;cursor:pointer;color:var(--paper,#ead09c);font-weight:700;min-height:44px;box-sizing:border-box}
.shop-track-list{margin:.2rem 0 1rem;padding:0;list-style:none;color:var(--muted,#cdbf9e)}
.shop-track-list>li{display:grid;grid-template-columns:3ch minmax(0,1fr);column-gap:.55em;padding:.25rem 0;line-height:1.5}
.shop-track-number{color:var(--paper,#ead09c);font-variant-numeric:tabular-nums}
.shop-track-title{overflow-wrap:anywhere}
.shop-tracks h3{margin:.5rem 0 .5rem;font:700 .875rem var(--body,sans-serif);color:var(--paper,#ead09c)}
.shop-track-sides{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.shop-sr-only{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Full-screen artwork viewer. Horizontal swipes and arrow keys switch photos. */
.shop-dialog.shop-photo-dialog{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;padding:max(.6rem,env(safe-area-inset-top)) max(.75rem,env(safe-area-inset-right)) max(.6rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left));border:0;overflow:hidden;scrollbar-gutter:auto;background:#080d0d}
.shop-photo-dialog[open]{display:grid;grid-template-rows:44px minmax(0,1fr) 48px;gap:.4rem}
.shop-photo-dialog>button.shop-close:first-child{position:static;margin:0 0 0 auto;box-shadow:none;background:transparent}
.shop-photo-stage{min-height:0;display:grid;place-items:center;touch-action:pan-y pinch-zoom}
.shop-photo-stage img{width:100%;height:100%;min-height:0;object-fit:contain;user-select:none}
.shop-photo-controls{display:flex;align-items:center;justify-content:center;gap:1rem;min-width:0}
.shop-photo-controls span{font-size:.85rem;line-height:1.3;text-align:center;color:var(--paper,#ead09c)}
.shop-dialog .shop-photo-controls button{display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;background:transparent;color:var(--paper,#ead09c);font-size:2rem;line-height:1}
.shop-photo-controls button[hidden],.shop-gallery-choices[hidden],.shop-tools[hidden]{display:none}

/* The existing enquiry stays an explicit, non-binding email request. */
.shop-inquiry{width:min(560px,calc(100% - 1.5rem))}
.shop-inquiry-summary{display:flex;align-items:center;gap:1rem;padding:1rem 0;margin:1rem 0;border-block:1px solid var(--line,rgba(234,208,156,.22))}
.shop-inquiry-summary img{width:80px;height:80px;object-fit:contain;background:#182525;flex-shrink:0}
.shop-inquiry-summary p{margin:.25rem 0 0;font-size:.85rem}
.shop-dialog .shop-total{color:var(--paper,#ead09c);font-weight:800;font-size:1.15rem;padding:1rem 0;border-block:1px solid var(--line,rgba(234,208,156,.22))}
.shop-inquiry>button:last-child{width:100%;margin-right:0;background:var(--red,#b54630);border-color:var(--red,#b54630);color:var(--paper,#ead09c);white-space:normal;line-height:1.4}
.shop-order-controls{display:flex;gap:.5rem;flex-wrap:wrap;margin:.7rem 0}
.shop-order-controls button{min-height:44px}
.shop-order-controls button:disabled{opacity:.45;cursor:default}
.shop-editor-image{display:block;width:120px;height:120px;object-fit:contain;margin:.5rem 0}
.shop-editor-image[hidden]{display:none}
.shop-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;max-height:300px;overflow:auto}
.shop-media-grid button{min-width:0;margin:0;padding:.4rem;display:flex;flex-direction:column;align-items:center;font-size:.75rem;overflow-wrap:anywhere}
.shop-media-grid img{width:100%;height:85px;object-fit:contain}
.shop-media-grid span{max-width:100%}
.album-stream-icons a[data-service=shop]::before{width:1.25rem;height:1.25rem;border-radius:50%;background:radial-gradient(circle,#101514 0 9%,var(--paper,#ead09c) 10% 22%,#101514 23% 30%,var(--paper,#ead09c) 31% 34%,#101514 35% 55%,var(--paper,#ead09c) 56% 60%,#101514 61%);border:1px solid var(--paper,#ead09c);box-sizing:border-box}

/* Documentary layout remains compact and shares the site's playback controller. */
.shop-dialog.shop-video-dialog{position:fixed;inset:0;width:min(960px,calc(100vw - 24px),calc((100dvh - 24px)*16/9));max-height:calc(100dvh - 24px);padding:0;border:0;background:#000;overflow:visible;scrollbar-gutter:auto}
.shop-video-dialog .news-video{display:block;width:100%;aspect-ratio:16/9;height:auto;border:0}
.shop-video-dialog>button.shop-video-close:first-child{position:absolute;inset:6px 6px auto auto;z-index:3;display:grid;place-items:center;width:44px;min-width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;box-shadow:none;background:#101514c9;color:var(--paper,#ead09c);font:inherit;font-size:2rem;line-height:1;cursor:pointer}

@media(max-width:1000px){.shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}}
@media(max-width:700px){
 #shop .section-head{gap:.7rem;margin-bottom:1rem}
 .shop-copy{padding:.85rem}
 #shop .shop-card h3{font-size:1.5rem}
 #shop .shop-description{font-size:.875rem;margin-bottom:1rem}
 .shop-card-footer{gap:.6rem}
 #shop .shop-card .button{width:100%}
 .shop-dialog{padding:1rem;padding-bottom:max(1rem,env(safe-area-inset-bottom))}
 .shop-product-layout{grid-template-columns:minmax(0,1fr);gap:1.25rem}
 .shop-product-cover{height:min(36dvh,320px);aspect-ratio:auto}
 .shop-dialog .shop-product-copy h2{font-size:1.8rem}
 .shop-product-description{font-size:.95rem}
 .shop-dialog input[type=file]{font-size:.85rem}
}
@media(max-width:420px){
 .shop-grid{grid-template-columns:minmax(0,1fr);gap:1.25rem}
 .shop-copy{padding:1rem}
 #shop .shop-card h3{font-size:1.75rem}
 .shop-card-footer{flex-wrap:nowrap}
 #shop .shop-card .button{width:auto;flex-shrink:0}
 .shop-track-sides{grid-template-columns:1fr;gap:0}
 .shop-gallery-choice span{font-size:.75rem}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.shop-card:hover .shop-art img{transform:scale(1.025)}}
@media(prefers-reduced-motion:reduce){.shop-art img{transition:none}}


