/* merch-gallery: product pages, gallery, zoom, grid hover swap */
.merch-gallery-page{padding:28px 0 90px}
.merch-gallery-crumbs{font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--mute);margin:0 0 18px}
.merch-gallery-crumbs a{color:var(--green);text-decoration:none}
.merch-gallery-pdp{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:48px;align-items:start}
.merch-gallery-media{display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;position:sticky;top:84px}
.merch-gallery-rail{display:flex;flex-direction:column;gap:10px;max-height:calc(100vh - 140px);overflow:auto;scrollbar-width:thin}
.merch-gallery-rail button{padding:0;border:1px solid var(--line);background:#fff;cursor:pointer;aspect-ratio:1/1;width:100%;min-width:0}
.merch-gallery-rail button[aria-current="true"]{border:2px solid var(--green)}
.merch-gallery-rail img{width:100%;height:100%;object-fit:cover;display:block}
.merch-gallery-stage{position:relative;background:#f4f2ec;aspect-ratio:1/1;overflow:hidden}
.merch-gallery-track{display:flex;height:100%;transition:transform .35s ease;touch-action:pan-y}
.merch-gallery-track figure{flex:0 0 100%;margin:0;height:100%}
.merch-gallery-track img{width:100%;height:100%;object-fit:cover;display:block;cursor:zoom-in}
.merch-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:var(--ink);font-size:1.4rem;line-height:1;cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.15);padding:0;min-width:0}
.merch-gallery-arrow.prev{left:12px}.merch-gallery-arrow.next{right:12px}
.merch-gallery-dots{display:none;justify-content:center;gap:8px;padding:12px 0}
.merch-gallery-dots button{width:8px;height:8px;border-radius:50%;padding:0;min-width:0;border:0;background:#c9c4b6}
.merch-gallery-dots button[aria-current="true"]{background:var(--green);width:20px;border-radius:4px}
.merch-gallery-count{position:absolute;bottom:12px;right:12px;background:rgba(0,0,0,.55);color:#fff;font-size:.72rem;padding:4px 10px;border-radius:20px;letter-spacing:.08em}
.merch-gallery-info h1{font-size:clamp(1.6rem,3vw,2.3rem);line-height:1.1;margin:6px 0 10px;color:var(--green);text-transform:uppercase;letter-spacing:.02em}
.merch-gallery-price{font-size:1.35rem;font-weight:700;margin:0 0 6px}
.merch-gallery-ship{font-size:.82rem;color:var(--mute);margin:0 0 22px}
.merch-gallery-label{font-size:.7rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;margin:18px 0 8px;display:flex;justify-content:space-between}
.merch-gallery-label a,.merch-gallery-label button{font-size:.7rem;color:var(--green);background:none;border:0;padding:0;min-width:0;text-decoration:underline;cursor:pointer;letter-spacing:.1em}
.merch-gallery-sizes,.merch-gallery-colors{display:flex;flex-wrap:wrap;gap:8px}
.merch-gallery-sizes button{min-width:56px;padding:12px 14px;border:1px solid var(--line);background:#fff;color:var(--ink);font-weight:700;font-size:.85rem;cursor:pointer}
.merch-gallery-sizes button[aria-pressed="true"]{background:var(--green);color:#fff;border-color:var(--green)}
.merch-gallery-swatch{display:inline-flex;align-items:center;gap:10px;font-size:.88rem}
.merch-gallery-swatch i{width:30px;height:30px;border-radius:50%;border:2px solid var(--green);box-shadow:inset 0 0 0 3px #fff;display:inline-block}
.merch-gallery-buy{width:100%;margin:22px 0 8px;padding:17px;font-size:.85rem}
.merch-gallery-note{min-height:1.2em;font-size:.85rem;color:#a33}
.merch-gallery-verse{border-left:3px solid var(--gold);padding:6px 0 6px 16px;margin:22px 0;font-family:Georgia,serif;font-style:italic;color:var(--ink)}
.merch-gallery-verse cite{display:block;font-style:normal;font-family:inherit;font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-top:6px}
.merch-gallery-bullets{padding-left:18px;margin:10px 0 18px}.merch-gallery-bullets li{margin:6px 0}
.merch-gallery-info details{border-top:1px solid var(--line);padding:14px 0}
.merch-gallery-info details:last-of-type{border-bottom:1px solid var(--line)}
.merch-gallery-info summary{cursor:pointer;font-weight:700;font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;list-style:none;display:flex;justify-content:space-between}
.merch-gallery-info summary::after{content:"+";color:var(--gold)}.merch-gallery-info details[open] summary::after{content:"–"}
.merch-gallery-info details p,.merch-gallery-info details li{font-size:.9rem;color:var(--mute)}
.merch-gallery-chart{width:100%;border-collapse:collapse;font-size:.85rem;margin-top:8px}
.merch-gallery-chart th,.merch-gallery-chart td{border-bottom:1px solid var(--line);padding:7px 6px;text-align:center}
.merch-gallery-related{margin-top:80px}
.merch-gallery-related h2{font-size:1.1rem;letter-spacing:.2em;text-transform:uppercase;color:var(--green);margin:0 0 20px}
.merch-gallery-related .merch-gallery-grid{grid-template-columns:repeat(4,1fr)}
.merch-gallery-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:28px}
.merch-gallery-card{text-decoration:none;color:var(--ink);display:block}
.merch-gallery-card .mg-img{position:relative;aspect-ratio:1/1;background:#f4f2ec;overflow:hidden;display:block}
.merch-gallery-card .mg-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .35s ease,transform .6s ease}
.merch-gallery-card .mg-img img.mg-alt{opacity:0}
.merch-gallery-card:hover .mg-img img.mg-alt,.merch-gallery-card:focus-visible .mg-img img.mg-alt{opacity:1}
.merch-gallery-card:hover .mg-img img{transform:scale(1.03)}
.merch-gallery-card .mg-name{display:block;font-weight:700;margin-top:10px;font-size:.92rem}
.merch-gallery-card .mg-price{display:block;color:var(--mute);font-size:.88rem;margin-top:2px}
/* zoom lightbox */
.merch-gallery-zoom{position:fixed;inset:0;background:rgba(12,16,13,.96);z-index:1000;display:none;flex-direction:column}
.merch-gallery-zoom.open{display:flex}
.merch-gallery-zoom-top{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;color:#fff;gap:12px}
.merch-gallery-zoom-top .t{font-weight:700;font-size:.9rem;letter-spacing:.06em}
.merch-gallery-zoom-top .t small{display:block;font-weight:400;color:#d9cfb5;font-size:.78rem;letter-spacing:0;margin-top:2px}
.merch-gallery-zoom-close{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.4);width:44px;height:44px;border-radius:50%;font-size:1.3rem;padding:0;min-width:0;cursor:pointer;flex:none}
.merch-gallery-zoom-stage{flex:1;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:pan-y}
.merch-gallery-zoom-stage img{max-width:100%;max-height:100%;object-fit:contain;cursor:zoom-in;transition:transform .2s ease;transform-origin:center}
.merch-gallery-zoom-stage img.zoomed{cursor:zoom-out;transform:scale(2.2)}
.merch-gallery-zoom-thumbs{display:flex;gap:8px;justify-content:center;padding:10px;overflow-x:auto}
.merch-gallery-zoom-thumbs button{width:58px;height:58px;padding:0;min-width:0;border:2px solid transparent;background:#fff;flex:none;cursor:pointer}
.merch-gallery-zoom-thumbs button[aria-current="true"]{border-color:var(--gold)}
.merch-gallery-zoom-thumbs img{width:100%;height:100%;object-fit:cover;display:block}
.merch-gallery-zoom-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 16px 16px;color:#fff}
.merch-gallery-zoom-bar .merch-gallery-buy{width:auto;margin:0;padding:13px 26px}
/* sticky mobile buy */
.merch-gallery-sticky{display:none}
@media (max-width:900px){
 .merch-gallery-pdp{grid-template-columns:1fr;gap:20px}
 .merch-gallery-media{grid-template-columns:1fr;position:static}
 .merch-gallery-rail{display:none}
 .merch-gallery-dots{display:flex}
 .merch-gallery-arrow{display:none}
 .merch-gallery-grid,.merch-gallery-related .merch-gallery-grid{grid-template-columns:repeat(2,1fr);gap:16px}
 .merch-gallery-sticky{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:900;background:#fff;border-top:1px solid var(--line);padding:10px 14px calc(10px + env(safe-area-inset-bottom));gap:12px;align-items:center;box-shadow:0 -4px 16px rgba(0,0,0,.08);transform:translateY(110%);transition:transform .25s}
 .merch-gallery-sticky.show{transform:none}
 .merch-gallery-sticky .p{font-weight:700;white-space:nowrap}
 .merch-gallery-sticky .merch-gallery-buy{margin:0;flex:1;padding:14px}
 .merch-gallery-zoom-thumbs button{width:48px;height:48px}
 .merch-gallery-zoom-arrow{display:none}
}
.merch-gallery-zoom-arrow{position:absolute;top:50%;transform:translateY(-50%);width:52px;height:52px;border-radius:50%;border:0;background:rgba(255,255,255,.14);color:#fff;font-size:1.6rem;padding:0;min-width:0;cursor:pointer}
.merch-gallery-zoom-arrow.prev{left:16px}.merch-gallery-zoom-arrow.next{right:16px}
.merch-gallery-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
