:root{--ink:#20221e;--paper:#f8f8f3;--muted:#73766e;--line:#d9dcd1;--accent:#ddf36c}
@media(max-width:599px){main{padding-left:12px;padding-right:12px}}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}:focus-visible{outline:3px solid #637626;outline-offset:4px}main{min-height:55vh;margin:0 4%}.intro{display:flex;align-items:end;justify-content:space-between;padding:45px 0 33px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:bold}.intro h1{font-size:clamp(48px,6.5vw,100px);font-weight:500;letter-spacing:-6px;line-height:.95;margin:20px 0 0}.intro p{color:var(--muted);line-height:1.7;max-width:230px;margin-bottom:3px}.grid{display:grid;gap:22px}.gallery{aspect-ratio:1/1.15;position:relative;background:#eceee5;overflow:hidden;touch-action:pan-y;user-select:none;display:grid;place-items:center}.gallery img{width:100%;height:100%;object-fit:contain;position:absolute;inset:0;padding:12px;transition:opacity .16s}.gallery img[hidden]{display:none}.gallery-tag{position:absolute;top:14px;left:14px;font-size:9px;padding:6px 9px;background:var(--paper);letter-spacing:1px}.product-title{display:flex;justify-content:space-between;gap:12px;align-items:start}.product-title h2{font-size:16px;font-weight:500;letter-spacing:-.4px;margin:0 0 7px}.specs{min-height:35px;font-size:11px;line-height:1.7;color:var(--muted);margin:0}.button{border:1px solid var(--ink);background:var(--ink);color:white;padding:13px 16px;text-transform:uppercase;font-size:10px;text-align:center}.button.secondary{color:var(--ink)}.empty{grid-column:1/-1;padding:80px 20px;text-align:center;border:1px solid var(--line)}.empty h2{font-size:32px;font-weight:400}.empty p{color:var(--muted);margin-bottom:30px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:15px 24px;z-index:10;max-width:90vw;display:none}#toast.visible{display:block}dialog{border:1px solid var(--line);padding:32px;max-width:520px;width:90%;background:var(--paper);line-height:1.6}dialog::backdrop{background:#0006}.close{float:right;border:0;background:none;font-size:26px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fields label{font-size:11px;display:flex;flex-direction:column;gap:8px}.fields input,.fields textarea{border:1px solid var(--line);background:transparent;padding:13px;width:100%}.error{color:#953929;font-size:12px}@media(max-width:1099px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.intro h1{letter-spacing:-4px}}@media(max-width:599px){.grid{grid-template-columns:1fr}.intro{padding:32px 0 25px;display:block}.intro h1{font-size:57px;letter-spacing:-3px}.intro p{font-size:12px;margin-top:20px}.gallery{aspect-ratio:1.08}.product-title h2{font-size:20px}.button{padding:16px 10px}.fields{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* ALI band-site identity: local reference on port 4173. */
:root{color-scheme:dark;--ink:#f3f1ed;--paper:#000;--muted:#b2aeb9;--line:#ffffff26;--accent:#8251e3}
body{font-family:'Roboto Condensed',Arial,sans-serif;font-size:16px;-webkit-font-smoothing:antialiased;background:#000}
::selection{background:var(--accent);color:#fff}
:focus-visible{outline:2px solid #a681ff;outline-offset:5px}
main{margin:0;padding:0 5%;background:linear-gradient(#0009,#000d),url('/assets/music-background.webp') center top / 100% auto no-repeat}
.intro{padding:44px 0 32px}.eyebrow{font-size:14px;font-weight:400;letter-spacing:1.4px;color:#a681ff}
.intro h1{font-size:clamp(44px,5.4vw,78px);font-weight:300;letter-spacing:-.01em;line-height:1.1;margin-top:18px}.intro p{font-size:17px;font-weight:300;line-height:1.6;max-width:250px;color:#c1bacb}select option{background:#151118;color:#f3f1ed}.grid{gap:24px}
.gallery{background:#151118;border:0}.gallery-tag{background:#20162b;color:#d9c7ff;font-size:10px;border:1px solid #44344f;border-radius:2px}
.product-title h2{font-size:23px;line-height:1.2;font-weight:300;letter-spacing:0}.specs{font-size:14px;line-height:1.6;min-height:45px;color:#b2aeb9}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border:1px solid #c6c5d1;border-radius:2px;padding:12px 10px;background:transparent;color:#fff;font-size:15px;letter-spacing:1px;line-height:1.3;transition:background .2s,border-color .2s}.button.secondary{background:transparent;color:#fff}.button:hover,.button.secondary:hover{background:#8251e3;border-color:#8251e3;color:#fff}.button:disabled{opacity:.5}.button:disabled:hover{background:transparent;border-color:#c6c5d1}
#toast{background:#21162f;border:1px solid #8d81b3;color:#fff;font-size:16px}dialog{background:#151118;color:var(--ink);border-color:#8d81b3;border-radius:4px}dialog::backdrop{background:#000b;backdrop-filter:blur(3px)}dialog h2{font-size:28px;font-weight:300}dialog p{font-size:17px}.close{color:var(--ink)}.fields label{font-size:15px}.fields input,.fields textarea{color:#fff;border-color:#776981;border-radius:2px;background:#100c1680}.error{color:#ffa6b0}.empty{background:#100c1680}.empty h2{font-weight:300;font-size:38px}
@media(max-width:1099px){.product-title h2{font-size:25px}.specs{min-height:24px}}
@media(max-width:599px){main{padding:0 6%;background-size:auto 1100px}.intro{padding:32px 0 24px}.intro h1{font-size:48px;letter-spacing:-.01em}.intro p{font-size:17px;max-width:none;margin-top:16px}.grid{gap:34px}.product-title h2{font-size:26px}.specs{min-height:0;font-size:15px}.button{min-height:54px;font-size:16px}}

/* Primary product action. */
.button.buy{background:#8251e3;border-color:#8251e3;color:#fff}
.button.buy:hover{background:#9468eb;border-color:#9468eb;color:#fff}

/* Reference element order, retaining the ALI band-site visual language. */
.card{min-width:0}
.card-top{display:flex;align-items:center;min-height:28px;margin-bottom:12px}
.card-top .gallery-tag{position:static;border-radius:2px}
.card .gallery{aspect-ratio:4/5}
.card .gallery img{object-fit:contain}
.card .product-title{min-height:56px}
.card .product-title h2{margin:0 0 10px}
.card .specs{min-height:45px;margin:0 0 15px}
@media(max-width:1099px){.card .product-title{min-height:0}.card .specs{min-height:24px}}
@media(max-width:599px){.card .specs{min-height:0}}

/* Direct product selection and stacked actions. */
.card .gallery-slide{position:absolute;inset:0;display:grid;place-items:center;animation:gallery-reveal .18s ease-out}
.card .gallery-slide[hidden]{display:none}
.gallery{cursor:grab}.gallery:active{cursor:grabbing}
@keyframes gallery-reveal{from{opacity:.25}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.card .gallery-slide{animation:none}}

/* Compact, accessible card choices. */
.gallery:not(.is-interactive){cursor:default}.gallery-spacing{height:32px;flex-shrink:0;margin-bottom:8px}.sizes legend{font-size:14px;color:#c2b8cd;padding:0;margin-bottom:8px}
.size-options{display:flex;flex-wrap:wrap;gap:6px}.size-option{min-width:40px;min-height:40px;padding:8px;border:1px solid #776981;border-radius:2px;background:transparent;color:#f3f1ed;font-size:14px}
.size-option.selected{background:#8251e3;border-color:#a681ff}.size-option:disabled{opacity:.4;text-decoration:line-through;cursor:not-allowed}.sizes.invalid{outline:1px solid #ffa6b0;outline-offset:4px}
.card-feedback{font-size:13px;line-height:1.4;min-height:36px;margin:0 0 10px;color:#d9c7ff}.card-feedback.unavailable{color:#b2aeb9}.card .button:disabled{opacity:.45}.card .button.buy:disabled:hover{background:#8251e3;border-color:#8251e3}
@media(max-width:599px){.gallery-spacing{height:36px}.size-option{min-width:44px;min-height:44px}}

/* Let product imagery sit directly on the ALI page backdrop. */
.card,.card .gallery,.card .gallery-slide{background:transparent;border:0;box-shadow:none}

/* Figma reference card: image and content only, compact paired controls. */
.reference-card .gallery{aspect-ratio:499/351}
.reference-card .gallery img{padding:0}
.reference-card .gallery-spacing{height:16px;margin:0}
.reference-card .product-title{min-height:0}
.reference-card .specs{min-height:0}
.reference-card .sizes legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.reference-card .button.buy{background:transparent;border-color:#c6c5d1}
.reference-card .button.add{background:#8251e3;border-color:#8251e3}
.reference-card .button.buy:hover,.reference-card .button.add:hover{background:#9468eb;border-color:#9468eb}

/* Catalogue grid: full-width mobile, two tablet, four desktop. */
.grid{grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
@media(min-width:600px) and (max-width:1099px){.grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:599px){main{padding-left:0;padding-right:0}.intro{margin-left:6%;margin-right:6%}.grid{grid-template-columns:minmax(0,1fr);gap:38px}.card{width:100%}.card>.card-top,.card>.card-feedback{margin-left:6%;margin-right:6%}}

/* Shared reference-card pagination treatment. */
.card .gallery-spacing{height:8px;min-height:8px;margin:8px 0 16px}

.card .gallery img{padding:12px}

/* Reduce image-to-name spacing by 20px (32px to 12px). */
.card .gallery-spacing{margin-top:8px;margin-bottom:0;height:4px;min-height:4px}

/* Product card typography, spacing and action hierarchy. */
.card .product-title h2{font-size:28px}
.grid{column-gap:24px;row-gap:48px}
@media(min-width:600px){
 .card>.card-top,.card>.card-feedback{margin-left:12px;margin-right:12px}
}
@media(max-width:599px){.grid{row-gap:40px}}
.card .button.add,.card .button.add:disabled:hover{background:transparent;border:1px solid #c6c5d1}
.card .button.add:hover{background:#ffffff0d;border-color:#fff;color:#fff}
.card .button.buy,.card .button.buy:disabled:hover{background:#ef79b6;border-color:#ef79b6;color:#1c1018}
.card .button.buy:hover{background:#f69bc9;border-color:#f69bc9;color:#1c1018}

/* Primary purchase action. */
.card .button.buy,.card .button.buy:disabled:hover{background:#8251e3;border-color:#8251e3;color:#fff}
.card .button.buy:hover{background:#9468eb;border-color:#9468eb;color:#fff}

/* Match variant controls and actions at every breakpoint. */
.card{--control-height:48px}
.card .button{height:var(--control-height);min-height:var(--control-height)}
@media(max-width:599px){.card{--control-height:54px}}

/* Compact purchase controls. */
.card .card-feedback:empty{min-height:0;height:0;margin-top:0;margin-bottom:0}

/* Align product media and mobile navigation with card content. */
.card .gallery{margin-left:12px;margin-right:12px;width:calc(100% - 24px)}
@media(max-width:599px){.card .gallery{margin-left:6%;margin-right:6%;width:88%}}

/* Dark purple card frame. */
.card{border:1px solid #39234f;border-radius:4px;padding-top:12px;padding-bottom:12px}

/* Dark purple product card surface and purchase action order. */
.card{background:#1b102b}

/* Three desktop columns and an unobstructed background image. */
.card{background:#16111A}
main{background-image:url('/assets/music-background.webp')}

/* Fixed page artwork and paired product controls. */
body{background:#000 url('/assets/music-background.webp') center top / cover no-repeat fixed}
main{background:none}
.card .gallery,.card .gallery img{border-radius:2px}

/* Carousel cards reserve extra space below the image. */
.card{background:#23142F}

/* Square product frames and balanced carousel spacing. */
.card .gallery{aspect-ratio:1 / 1}
.card .gallery-spacing{height:0;min-height:0;margin:12px 0 0}

/* Neutral background behind product photography. */
.card .gallery{background:#303033}

/* A consistent carousel slot keeps every card row aligned. */
.card .gallery-spacing{height:20px;min-height:20px;margin:12px 0;flex-shrink:0}
.card .product-title{height:68px;min-height:68px}
.card .specs{height:48px;min-height:48px}

/* Natural title wrapping with bottom-aligned purchase actions. */
.card .product-title{flex-shrink:0}
.card .product-title h2{margin:0}
.card .specs{height:auto;min-height:0;margin-top:16px;margin-bottom:40px;flex-shrink:0}
.card .specs:empty{height:0}

/* Product colour and price styles. */
.colour-swatch{width:20.4px;height:20.4px;min-width:20.4px;background:var(--swatch);border:1px solid #aaa;border-radius:2px;padding:0}
.colour-swatch[aria-pressed="true"]{outline:2px solid #8251e3;outline-offset:3px}

/* Refined catalogue rhythm and store branding. */
.card .specs{margin-top:8px;margin-bottom:24px}
.intro{padding-bottom:0}
.colour-swatch[data-colour="Black"]{background:#000}
.colour-swatch[data-colour="White"]{background:#fff}
.colour-swatch[data-colour="Navy blue"]{background:#1a437f}
.colour-swatch[data-colour="Navy grey"]{background:#565155}
.colour-swatch[data-colour="Olive green"]{background:#46551a}

/* Reserve two title lines; unused space falls between specs and price. */
.card .product-info{height:123.2px;min-height:123.2px;flex-shrink:0;margin:0 12px}
.card .product-info .product-title,.card .product-info .specs{margin-left:0;margin-right:0}
.card .product-info h2{font-size:28px}
.card .product-info .specs{line-height:24px;margin-top:8px;margin-bottom:0}
@media(max-width:599px){.card .product-info{margin-left:6%;margin-right:6%}}

/* Tighten carousel and purchase spacing consistently across cards. */
.card .gallery-spacing{margin-top:4px}

/* Add 4px to each side of the existing card padding. */
.card{padding:16px 4px}

/* Stable validation and final card spacing. */
.card{border-radius:6px;position:relative}
.card .card-feedback{position:absolute;width:1px;height:1px;min-height:0;padding:0;margin:0;overflow:hidden;clip-path:inset(50%)}
@media(max-width:599px){
 main{padding-left:16px;padding-right:16px}
 .grid{row-gap:24px}
 .intro{margin-left:0;margin-right:0}
}

/* Mobile cards fit their content with equal padding on every edge. */
@media(max-width:599px){
 .card{padding:16px;height:auto;min-height:0;align-self:start}
 .card .gallery{width:100%;margin-left:0;margin-right:0}
 .card>.card-top,.card .product-info{margin-left:0;margin-right:0}
 .card .product-info{height:auto;min-height:0;margin-bottom:24px}
}

@media(max-width:599px){
 .grid{row-gap:16px}
 .card .colour-swatch{width:37.4px;min-width:37.4px;height:37.4px;border-radius:50%}
}

.colour-swatch{border-radius:50%}
.cart-checkout{display:block;margin-top:24px;background:#8251e3;border-color:#8251e3;color:white;font-size:16px}

.cart-panel{overscroll-behavior:contain}
.panel-checkout section{margin-top:32px}
.panel-checkout h3{font-size:18px;font-weight:400;letter-spacing:1px;margin:0 0 18px}
.panel-checkout .fields{grid-template-columns:minmax(0,1fr)}
.panel-checkout .fields label{font-size:15px;color:#c2b8cd}
.panel-checkout input{color:#f3f1ed;border-color:#776981;border-radius:2px;font-size:18px;min-height:48px}

.card .button.add,.card .button.add:disabled:hover{background:#8251e3;border-color:#8251e3;color:#fff}
.card .button.add:hover{background:#9468eb;border-color:#9468eb}
.card .product-info h2{font-weight:500}
.card .size-option,.card .button{font-size:20px}
@media(min-width:1100px){
 .card .product-info h2{font-size:40px}
 .card .product-info{height:152px}
}
/* Unified motion timing; retain the reduced-motion preference. */
@media(prefers-reduced-motion:no-preference){*,*::before,*::after{animation-duration:500ms!important;transition-duration:500ms!important}}
/* Consistent darkened hover feedback without moving size controls. */
button:hover:not(:disabled),.button:hover:not(:disabled){box-shadow:inset 0 0 0 999px rgb(0 0 0 / 20%)}
.card .button.add:hover{background:#8251e3;border-color:#8251e3}
.card .size-option{animation:none!important;transition:none!important}

@media(min-width:1100px){
 .card .specs,.card .button{white-space:nowrap}
}

@media(min-width:600px){
 body{transition:none!important}
 .grid{justify-content:start}
}
@media(min-width:600px) and (max-width:1099px){
 .grid{justify-content:start}
}

/* Catalogue columns: mobile, tablet, desktop, and 4K. */
@media(min-width:3840px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Cards grow with their content while sharing the available row width. */
.card{height:auto;max-height:none;overflow:visible}
@media(min-width:600px){.card .product-info{height:auto;min-height:123.2px}}
@media(min-width:1100px){.card .product-info{min-height:152px}}
/* Fit the first catalogue row vertically without clipping purchase controls. */
.card .gallery{width:min(calc(100% - 24px),var(--gallery-limit,100vw));margin-left:auto;margin-right:auto;flex-shrink:0}
@media(max-width:599px){.card .gallery{width:min(100%,var(--gallery-limit,100vw))}}

/* Product photos reach the card edges; details retain their inset. */
.card{padding:0 4px 16px}
.card .gallery{width:calc(100% + 8px);margin:0 -4px;border-radius:6px 6px 0 0}
.card .gallery img{padding:0}
@media(max-width:599px){
 .card{padding:0 16px 16px}
 .card .gallery{width:calc(100% + 32px);margin:0 -16px}
}

/* Full-width product photos are 100px shorter than their width. */
.card{container-type:inline-size}
.card .gallery{aspect-ratio:auto;height:max(0px,calc(100cqw + 8px - 100px))}
@media(max-width:599px){.card .gallery{height:max(0px,calc(100cqw + 32px - 100px))}}

@media(min-width:1100px){
 .grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .card .gallery{height:min(max(0px,calc(100cqw + 8px - 100px)),var(--photo-height-limit,100vh))}
}

/* A stable photograph with flexible desktop details and controls. */
@media(min-width:1100px){
 .card{--control-height:calc(48px * var(--detail-scale,1));padding-bottom:calc(16px * var(--detail-scale,1))}
 .card .gallery{height:var(--fixed-photo-height);flex:none}
 .card .product-info,.cart-open .card .product-info{height:auto;min-height:calc(128px * var(--detail-scale,1))}
 .card .product-info h2{font-size:min(calc(40px * var(--detail-scale,1)),8cqw);line-height:1.15;font-weight:500}
 .card .product-info .specs{font-size:min(calc(16px * var(--detail-scale,1)),3.65cqw);line-height:1.4;white-space:nowrap;margin-top:calc(8px * var(--detail-scale,1))}
 .card .button{font-size:min(calc(20px * var(--detail-scale,1)),4.7cqw);white-space:nowrap;padding-top:0;padding-bottom:0}
 .card .gallery-spacing{height:calc(20px * var(--detail-scale,1));margin-top:4px;margin-bottom:calc(12px * var(--detail-scale,1))}
}

/* Remove 40px of reserved space above the price and lift purchase controls. */
@media(min-width:600px){
 .card .product-info{min-height:max(0px,calc(123.2px - 40px))}
}
@media(min-width:1100px){
 .card .product-info,.cart-open .card .product-info{min-height:max(0px,calc(128px * var(--detail-scale,1) - 40px))}
}

/* Equal outer catalogue gutters beside the screen edge and open cart. */
@media(min-width:1100px){main{padding-left:5vw;padding-right:5vw}}

@media(min-width:1100px){
 .card .product-info h2{font-size:calc(var(--title-font,32px) * var(--detail-scale,1));transition:none!important;animation:none!important}
 .card .product-info,.card .specs{transition:none!important}
}

/* Tighten the description-to-price space without allowing text overlap. */
.card .product-info,.cart-open .card .product-info{min-height:0;margin-bottom:0}

/* Keep purchase controls together at the bottom of each card. */
@media(max-width:1099px){
 body{padding-top:0}
}
/* The whole purchasing block sits at the bottom, with space above the price. */
.card>.product-info{margin-bottom:20px}
/* Hover feedback is immediate; cart movement keeps its existing timing. */
button,.button,a,.colour-swatch{transition:none!important}

/* Catalogue row spacing and two-line product titles. */
.grid{row-gap:24px}

/* Card insets scale up on desktop and large desktop screens. */
@media(min-width:1100px){
 .card{--card-inset:24px;padding:0 var(--card-inset) var(--card-inset)}
 .card .gallery{width:calc(100% + 2 * var(--card-inset));margin-left:calc(-1 * var(--card-inset));margin-right:calc(-1 * var(--card-inset))}
 .card>.product-info{margin-left:0;margin-right:0}
}
@media(min-width:2560px){
 .card{--card-inset:32px}
}

/* Card insets and purchase-control spacing by desktop size. */
.card{border-radius:8px}
.card .gallery{border-radius:8px 8px 0 0}
@media(min-width:1100px){
 .card{--purchase-gap:calc(16px * var(--detail-scale,1) + 4px);padding-left:8px;padding-right:8px;padding-bottom:var(--purchase-gap)}
 .card .gallery{width:calc(100% + 16px);margin-left:-8px;margin-right:-8px}
}
@media(min-width:2560px){
 .card{--purchase-gap:calc(16px * var(--detail-scale,1) + 16px);--control-height:calc(48px * var(--detail-scale,1) * 1.3);padding-left:20px;padding-right:20px}
 .card .gallery{width:calc(100% + 40px);margin-left:-20px;margin-right:-20px}
}

/* Large-desktop side insets equal the bottom inset. */
@media(min-width:2560px){
 .card{padding-left:var(--purchase-gap);padding-right:var(--purchase-gap)}
 .card>.product-info{margin-left:0;margin-right:0}
 .card .gallery{width:calc(100% + 2 * var(--purchase-gap));margin-left:calc(-1 * var(--purchase-gap));margin-right:calc(-1 * var(--purchase-gap))}
}

/* Equal side and bottom insets across desktop widths. */
@media(min-width:1280px) and (max-width:2559px){
 .card{padding-left:var(--purchase-gap);padding-right:var(--purchase-gap)}
 .card>.product-info{margin-left:0;margin-right:0}
 .card .gallery{width:calc(100% + 2 * var(--purchase-gap));margin-left:calc(-1 * var(--purchase-gap));margin-right:calc(-1 * var(--purchase-gap))}
}

/* Opening the cart must preserve the description-to-price spacing. */
.card>.product-info,.cart-open .card>.product-info{margin-bottom:20px}

/* Cart contents and footer remain independently scrollable. */
.cart-panel-content h3{font-size:18px;font-weight:500;margin:0 0 16px}
.panel-checkout section{border-top:1px solid #594365;padding-top:24px;margin-top:24px}
.panel-checkout label{display:flex;flex-direction:column;gap:8px;color:#c2b8cd;font-size:14px}
.panel-checkout .fields{gap:12px;margin-top:12px}
.panel-checkout input,.panel-checkout select,.panel-checkout textarea{width:100%;min-width:0;background:#191020;color:#f3f1ed;border:1px solid #776981;border-radius:4px;padding:10px;font-size:16px;min-height:44px}
.panel-checkout select option{background:#191020}
.panel-checkout textarea{resize:vertical}
.panel-checkout .drawer-check{display:flex;flex-direction:row;align-items:flex-start;margin:16px 0;line-height:1.5}
.panel-checkout .drawer-check input{width:18px;height:18px;min-height:18px;flex:none;accent-color:#8251e3;margin-top:2px}
.drawer-check a{text-decoration:underline;text-underline-offset:3px}
.drawer-error{color:#ef8b9e;font-size:14px}
/* Keep the first checkout section clear of an extra separator. */
.panel-checkout section:first-child{border-top:0;padding-top:0}

/* Checkout delivery select styling. */
.panel-checkout select{appearance:none;-webkit-appearance:none;padding-left:10px;padding-right:36px;background-image:url('/merch/assets/chevron-down.svg');background-repeat:no-repeat;background-position:right 10px center;background-size:16px 16px}

/* Three generous desktop photos, with a tighter vertical card rhythm. */
.card{padding-bottom:12.8px}
.card>.product-info,.cart-open .card>.product-info{margin-bottom:16px}
.card .product-info .specs{margin-top:6.4px}
.card .gallery-spacing{height:16px;min-height:16px;margin-top:3.2px;margin-bottom:9.6px}
.card .sizes legend{margin-bottom:6.4px}
@media(min-width:1100px){
 .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .card{padding-bottom:calc(var(--purchase-gap) * .8)}
 .card .product-info .specs{margin-top:calc(6.4px * var(--detail-scale,1))}
 .card .gallery-spacing{height:calc(16px * var(--detail-scale,1));min-height:0;margin-bottom:calc(9.6px * var(--detail-scale,1))}
}
@media(min-width:600px) and (max-width:1099px){.card{padding-bottom:19.2px}}
@media(max-width:1099px){.card .button{padding-top:8px;padding-bottom:8px}}

/* Every card edge uses its existing bottom inset. */
.card{--edge-inset:12.8px;padding:var(--edge-inset)}
.card>.product-info{margin-left:0;margin-right:0}
.card .gallery{width:100%;margin-left:0;margin-right:0}
@media(min-width:600px) and (max-width:1099px){.card{--edge-inset:19.2px}}
@media(min-width:1100px){
 .card{--edge-inset:calc(var(--purchase-gap) * .8);--control-height:calc(48px * var(--detail-scale,1) * 1.2)}
 .card .product-info h2{font-size:calc(var(--title-font,32px) * var(--detail-scale,1) + 4px)}
 .card .product-info .specs{font-size:calc(min(16px * var(--detail-scale,1),3.65cqw) + 4px)}
 .card .sizes legend{font-size:calc(14px * var(--detail-scale,1) + 4px)}
 .card .button{font-size:calc(min(20px * var(--detail-scale,1),4.7cqw) + 4px)}
 .card .size-option{font-size:24px}
}
@media(min-width:2560px){
 .card{--control-height:calc(48px * var(--detail-scale,1) * 1.3 * 1.2)}
}

/* Catalogue spacing below the store heading. */
#catalogue .grid{margin-top:24px}
.card .gallery{border-radius:2px}
.cart-panel-content h3,.panel-checkout h3{font-size:26px}

/* Checkout and receipt headings. */
.cart-panel-content h3,.panel-checkout h3{font-size:22px;font-weight:500}


/* Flush product photography. */
.card .gallery{width:calc(100% + var(--edge-inset) * 2);max-width:none;margin-left:calc(var(--edge-inset) * -1);margin-right:calc(var(--edge-inset) * -1);margin-top:calc(var(--edge-inset) * -1)}

/* Compact foldable / short tablet screens retain a complete, usable card. */
@media(min-width:480px) and (max-width:1099px) and (max-height:800px){
 .card .gallery{height:clamp(120px,calc(100svh - 510px),260px);aspect-ratio:auto;flex:none}
 .card .product-info,.cart-open .card .product-info{height:auto;min-height:0;margin-bottom:12px}
 .card .product-info h2{font-size:28px;line-height:1.1}
 .card .product-info .specs{font-size:12px;margin-top:6px;white-space:nowrap}
 .card{--control-height:44px}
 .card .button{height:44px;min-height:44px}
 .card .button{font-size:18px}
}
/* Surface Duo portrait page gutters. */
@media(min-width:480px) and (max-width:599px){
 main{padding-left:24px;padding-right:24px}
}

/* Keep browser layout anchoring from shifting the viewport as product media
   and fonts finish sizing. The catalogue remains a naturally scrolling page. */
html,body,main,#catalogue,#grid,.card{overflow-anchor:none}
html,body,#catalogue,#grid,.card{scroll-snap-type:none;scroll-snap-align:none;scroll-snap-stop:normal}

/* Pin both vertical edges of the store artwork to the viewport on phones and
   tablets; iOS Safari does not consistently honor fixed body backgrounds. */
@media(max-width:1099px){
 body{position:relative;isolation:isolate;background:#000 url('/assets/music-background.webp') center center / auto 100% no-repeat fixed}
 body::before{content:none}
}

/* Product details reserve two title lines and keep all purchase controls
   anchored together at the bottom of each card. */
.grid{align-items:stretch}
.card{display:flex;flex-direction:column;min-height:0}
.card .product-info,.cart-open .card .product-info{
  --card-title-size:26px;
  --card-title-line:31.2px;
  --card-specs-size:15px;
  --card-specs-line:24px;
  display:block;
  flex:none;
  box-sizing:border-box;
  height:calc(2 * var(--card-title-line) + 8px + var(--card-specs-line));
  min-height:calc(2 * var(--card-title-line) + 8px + var(--card-specs-line));
  margin:0;
}
.card .product-title{display:block;height:auto;min-height:0;margin:0}
.card .product-info h2{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  margin:0;
  font-size:var(--card-title-size);
  line-height:var(--card-title-line);
  text-overflow:ellipsis;
}
.card .product-info .specs{
  display:block;
  height:var(--card-specs-line);
  min-height:var(--card-specs-line);
  margin:8px 0 0;
  overflow:hidden;
  font-size:var(--card-specs-size);
  line-height:var(--card-specs-line);
  white-space:nowrap;
}
@media(min-width:600px) and (max-width:1099px){
  .card .product-info,.cart-open .card .product-info{
    --card-title-size:25px;
    --card-title-line:30px;
    --card-specs-size:14px;
    --card-specs-line:22.4px;
  }
}
@media(min-width:1100px){
  .card .product-info,.cart-open .card .product-info{
    --card-title-size:calc(var(--title-font,32px) * var(--detail-scale,1) + 4px);
    --card-title-line:calc(var(--card-title-size) * 1.15);
    --card-specs-size:calc(min(16px * var(--detail-scale,1),3.65cqw) + 4px);
    --card-specs-line:calc(var(--card-specs-size) * 1.4);
  }
}

/* Increase product name and price typography by 4px at each viewport size. */
.card .product-info,.cart-open .card .product-info{--card-title-size:30px}
@media(min-width:600px) and (max-width:1099px){
  .card .product-info,.cart-open .card .product-info{--card-title-size:29px}
}
@media(min-width:1100px){
  .card .product-info,.cart-open .card .product-info{
    --card-title-size:calc(var(--title-font,32px) * var(--detail-scale,1) + 8px);
  }
}

/* Desktop cards use 16px inner padding while the gallery keeps its current
   outer frame dimensions through the matching edge bleed. */
@media(min-width:1100px){
  .card{--edge-inset:16px;padding:16px}
}

/* Give all three purchase controls 8px more height on desktop. */
@media(min-width:1100px) and (max-width:2559px){
  .card{--control-height:calc(48px * var(--detail-scale,1) * 1.2 + 8px)}
}
@media(min-width:2560px){
  .card{--control-height:calc(48px * var(--detail-scale,1) * 1.3 * 1.2 + 8px)}
}

/* Keep the image frame size unchanged while increasing 4K card padding. */
@media(min-width:2560px){
  .card{--edge-inset:24px;padding:24px}
}

/* Shorten the purchase controls and title-to-description gap; app.js gives
   the reclaimed height to the photo frame while keeping card padding intact. */
.card.compact-purchase-controls .button.add{
  height:calc(var(--control-height) * .8)!important;
  min-height:calc(var(--control-height) * .8)!important;
}
.card.compact-purchase-controls .button.add{padding-top:0;padding-bottom:0}
.card.compact-purchase-controls .product-info .specs{margin-top:6.4px}
/* Gallery height is recalculated from the unscaled frame on every resize; do
   not let the global transition rule feed an in-flight height back into it. */
.card .gallery{transition:none!important}
/* Keep every product gallery at a landscape 4:3 ratio across viewports. */
.card .gallery{aspect-ratio:4 / 3!important;height:auto!important;min-height:0;flex:none}
.card .gallery img{object-fit:cover;object-position:center}

/* Catalogue category filter. */
#catalogue .category-filter{display:flex;align-items:center;font-size:16px;letter-spacing:.04em}
@media(max-width:599px){#catalogue .category-filter{width:100%}}

/* Tighten the category filter spacing above and below by 8px. */
#catalogue .grid{margin-top:16px}

/* Multi-image clothing galleries: compact circular indicators and hover arrows. */
.gallery-arrow{position:absolute;top:50%;z-index:2;display:grid;place-items:center;width:40px;height:40px;padding:0;border:0;border-radius:50%;background:rgb(255 255 255 / 30%);color:#3a3a3a;opacity:0;transform:translateY(-50%);transition:opacity .16s ease}
.gallery-arrow svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.card .product-title h2 .nowrap{white-space:nowrap}

/* Keep every product name on one line and size all titles from the card width,
   with the longest catalogue name setting the shared maximum. */
.card .product-info h2{
  display:block;
  width:100%;
  max-width:100%;
  font-size:calc(min(30px,6.4cqw) + 2px)!important;
  line-height:1.2;
  white-space:nowrap;
  overflow:visible;
  text-overflow:clip;
}
@media(min-width:600px) and (max-width:1099px){
  .card .product-info h2{font-size:min(30px,6.4cqw)!important}
}
.gallery-arrow-prev{left:12px;right:auto;top:50%;transform:translateY(-50%)}.gallery-arrow-next{left:auto;right:12px;top:50%;transform:translateY(-50%)}
.gallery:hover .gallery-arrow{opacity:1}
@media (hover:none){.gallery-arrow{display:none}}

/* Adjust title, description, price, and gallery indicator spacing. */
.card>.product-info{transform:none}

/* Responsive catalogue gutters: preserve the existing column count while
   giving each card as much width as practical. */

/* Give catalogue cards more of the available screen width while keeping a
   compact, readable gutter between them. */
@media(min-width:1100px){
  main{margin:0 2%;padding-left:clamp(18px,2vw,48px);padding-right:clamp(18px,2vw,48px)}
  #catalogue #grid{column-gap:clamp(8px,.75vw,16px);row-gap:clamp(12px,1vw,20px)}
}
@media(min-width:600px) and (max-width:1099px){#catalogue #grid{column-gap:12px;row-gap:16px}}

/* Hide card outlines without affecting the card's dimensions. */
#catalogue .card{border-color:transparent}

/* Remove the gallery's own 1px frame line. */
#catalogue .card .gallery{border:0!important}
/* Remove every card/gallery frame edge, including any later theme overrides. */
#catalogue .card,
#catalogue .card .gallery,
#catalogue .card .gallery-slide,
#catalogue .card .gallery img,
#catalogue .card .gallery::before,
#catalogue .card .gallery::after{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
}
/* Fill the 4:3 gallery frame and clip the complete card to a 4px radius. */
#catalogue .card{
  border-radius:4px!important;
  overflow:hidden;
}
#catalogue .card .gallery{
  border-radius:0!important;
  overflow:hidden;
}
#catalogue .card .gallery-slide{width:100%;height:100%}
#catalogue .card .gallery img{
  width:100%;
  height:100%;
  padding:0!important;
  object-fit:cover!important;
  object-position:center;
  border-radius:0!important;
}

/* Product titles are kept to one line, so do not reserve a phantom second
   title line below the details. This leaves the intended 24px visual gap
   between the material line and price without changing the gallery frame. */
#catalogue .card>.product-info{height:auto!important;min-height:0!important}

/* Limit the catalogue to 1600px at 4K. */
@media(min-width:2560px){
  .merch-page main{
    width:100%;
    margin:0;
    padding-left:max(0px,calc((100vw - 1600px)/2));
    padding-right:max(0px,calc((100vw - 1600px)/2));
  }
}

/* Match the main page's 1600px content measure at the 1920px desktop target. */
@media (width: 1920px) {
  body.merch-page main { padding-left: 160px; padding-right: 160px; }
}

/* On phones, let each product card and gallery use the full viewport width.
   Keep the copy and controls comfortably inset inside the full-bleed card. */
@media(max-width:599px){
  html,body{max-width:100%;overflow-x:clip}
  main{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important}
  #catalogue{width:100%;margin-left:0;margin-right:0}
  #catalogue #grid{width:100%;margin-left:0;margin-right:0;column-gap:0;row-gap:16px}
  #catalogue .card{width:100%;margin:0;padding:0 0 12px!important;--edge-inset:0px;border-radius:0!important;overflow:hidden}
  #catalogue .card>.product-info,
  #catalogue .card>.card-feedback{margin-left:16px!important;margin-right:16px!important}
  #catalogue .card .gallery{width:100%!important;max-width:none;margin:0!important;border-radius:0!important}
  #catalogue .card .gallery,
  #catalogue .card .gallery-slide,
  #catalogue .card .gallery img{border-radius:0!important}
}

/* 3D Alpha T-shirt product cutouts sit over a shared light concrete surface. */
#catalogue .card[data-id="30"] .gallery{
  background-color:var(--gallery-background,#8C8998)!important;
  background-image:none!important;
}
#catalogue .card[data-id="30"] .gallery img{object-fit:contain!important}

/* Product images gently zoom on pointer hover and open in a full-size viewer. */
#catalogue .card .gallery{cursor:zoom-in}
#catalogue .card .gallery img{transition:transform .22s ease;transform:scale(1.1)}
@media(hover:hover) and (pointer:fine){
  #catalogue .card .gallery:hover img:not([hidden]){transform:translateY(40px) scale(1.4)}
}
.product-image-viewer{
  position:fixed;
  inset:0;
  width:min(var(--viewer-width,1600px),calc(100vw - 32px));
  height:fit-content;
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 32px);
  padding:0;
  border:0;
  overflow:hidden;
  background-color:#deddda;
  background-image:url('/merch/assets/products/light-grey-concrete.svg');
  background-size:cover;
  background-position:center;
  color:#fff;
}
.product-image-viewer::backdrop{background:rgb(0 0 0 / 40%);backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.product-image-viewer .product-image-large{
  display:block;
  width:100%;
  height:auto;
  max-width:100%;
  max-height:calc(100dvh - 32px);
  object-fit:contain;
  transform:none;
}
.product-image-viewer button{
  position:absolute;
  z-index:1;
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  border:1px solid rgb(255 255 255 / 60%);
  border-radius:50%;
  background:rgb(20 18 24 / 72%);
  color:#fff;
  font:400 30px/1 Arial,sans-serif;
  cursor:pointer;
}
.product-image-viewer .product-image-close{top:12px;right:12px;font-size:32px}
.product-image-viewer .product-image-prev,.product-image-viewer .product-image-next{top:50%;transform:translateY(-50%)}
.product-image-viewer .product-image-prev{left:12px}
.product-image-viewer .product-image-next{right:12px}
.product-image-viewer .product-image-prev,.product-image-viewer .product-image-next{box-sizing:border-box;padding:0;line-height:0;display:grid;place-items:center}
.product-image-viewer .product-image-prev svg,.product-image-viewer .product-image-next svg{display:block;width:24px;height:24px;flex:none}
.product-image-viewer .product-image-prev svg path,.product-image-viewer .product-image-next svg path{fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.product-image-viewer button[hidden]{display:none}
/* On 4K screens, show source product photos at their native 1600 × 1267 size. */
@media(min-width:2560px){
  .product-image-viewer{
    box-sizing:border-box;
    width:min(1600px,calc(100vw - 32px),calc((100dvh - 32px) * 1.262826));
    height:auto;
    aspect-ratio:1600 / 1267;
    max-width:none;
    max-height:none;
    margin:auto;
  }
  .product-image-viewer .product-image-large{
    width:100%;
    height:100%;
    max-width:none;
    max-height:none;
    object-fit:contain;
  }
}
@media(max-width:599px){
  .product-image-viewer:not([open]){display:none}
  .product-image-viewer[open]{inset:0;width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;margin:0;display:flex;align-items:center;justify-content:center;touch-action:none}
  .product-image-viewer .product-image-large{width:100vw;height:auto;max-width:none;max-height:100dvh;object-fit:contain;transform:scale(1.7);transform-origin:center center;pointer-events:none;user-select:none}
}

/* Reveal gallery arrows on hover or when navigating the gallery by keyboard. */
#catalogue .gallery-arrow{
  display:grid!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  width:44px;
  height:44px;
  background:rgb(255 255 255 / 30%);
  color:#3a3a3a;
}
#catalogue .gallery:hover .gallery-arrow:not([hidden]):not(:disabled){
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
#catalogue .gallery-arrow:disabled{display:none!important}

/* Keep viewer arrows in the tab order while the dialog has focus. */
.product-image-viewer .product-image-prev:not([hidden]),
.product-image-viewer .product-image-next:not([hidden]){
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,visibility .16s ease;
}
.product-image-viewer:is(:hover,:focus-within) .product-image-prev:not([hidden]),
.product-image-viewer:is(:hover,:focus-within) .product-image-next:not([hidden]){
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* Use one neutral background behind every merch product image. */
#catalogue .card .gallery{
  background-color:var(--gallery-background,#C9C8C5)!important;
  background-image:none!important;
}
.product-image-viewer{
  background-color:var(--gallery-background,#C9C8C5)!important;
  background-image:none!important;
}
/* Merch intro hierarchy matches the landing page section headings. */
.merch-page .intro{display:block;padding:0 0 34px}
.merch-page .intro-heading{display:flex;align-items:center;flex-wrap:wrap;gap:14px}
.merch-page .intro h1{margin:0;transform:none;font:400 clamp(42px,6vw,82px)/1.03 'Roboto Condensed',Arial,sans-serif;letter-spacing:-.065em}
.merch-page .preview-note{display:inline-flex;align-items:center;gap:5px;color:#bdbbb5;font:16px/1.4 'Roboto Condensed',Arial,sans-serif;letter-spacing:.02em}
.merch-page .preview-note>span{color:#a681ff;font-weight:700}
.merch-page .intro-meta-row{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:20px}
.merch-page .intro-description{max-width:none;margin:0;color:#c6c4bf;font:18px/1.55 'Roboto Condensed',Arial,sans-serif}
.merch-page .intro-meta-row .category-filter{flex:0 0 auto}
@media(max-width:760px){.merch-page .intro-meta-row{align-items:flex-start;flex-direction:column;gap:16px}.merch-page .intro-meta-row .category-filter{align-self:flex-end}}
@media(max-width:599px){.merch-page .intro{padding:0 0 28px}.merch-page .intro h1{font-size:clamp(42px,11vw,58px)}.merch-page .preview-note{font-size:15px}.merch-page .intro-meta-row{margin-top:16px}.merch-page .intro-description{font-size:17px}}


/* Compact one-step purchase row: variants left, price and add-basket action right. */
.card>.purchase-row{display:flex;gap:8px;width:100%;min-width:0;flex:none;padding-top:16px!important}
.card .colour-swatch{width:22px;min-width:22px;height:22px;outline-offset:2px}
.card .sizes{flex:1 1 auto;min-width:0;margin:0;padding:0;border:0}
.card .sizes legend{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.card .size-options{display:flex;align-items:center;flex-wrap:nowrap;gap:3px;width:max-content;max-width:100%}
.card .size-option{display:grid;place-items:center;width:26px;min-width:26px;height:26px;min-height:26px;padding:0;border:1px solid #8d81b3;border-radius:50%;background:transparent;color:#f3f1ed;font-size:12px;line-height:1}
.card .size-option.selected{border-color:#fff;outline:2px solid #8251e3;outline-offset:2px;background:transparent;color:#fff}
.card .size-option:disabled{opacity:.35;text-decoration:line-through}
.card .size-option.unavailable{opacity:.5;text-decoration:line-through}
.card .price-action{display:flex;align-items:center;gap:7px;flex:0 0 auto;margin-left:auto}
.card .price-value{color:#f3f1ed;font-size:clamp(17px,1.7vw,24px);font-weight:500;line-height:1;white-space:nowrap}
.card .button.add{display:grid;place-items:center;width:38px;min-width:38px;height:38px;min-height:38px;margin:0;padding:0;border:1px solid #c6c5d1;border-radius:2px;background:transparent;color:#fff}
.card .button.add:hover:not(:disabled){border-color:#8251e3;background:#8251e3}
.card .button.add:disabled{opacity:.45}
.card .button.add svg{display:block;width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.card>.card-feedback{min-height:0;margin:6px 0 0;color:#d9c7ff;font-size:12px;line-height:1.3}
.card>.card-feedback.unavailable{color:#b2aeb9}
@media(min-width:600px) and (max-width:1099px){.card>.purchase-row{gap:5px;padding-top:12px!important}.card .colour-swatch{width:20px;min-width:20px;height:20px}.card .size-options{gap:2px}.card .size-option{width:24px;min-width:24px;height:24px;min-height:24px;font-size:11px}.card .price-action{gap:5px}.card .price-value{font-size:clamp(16px,2.2vw,21px)}.card .button.add{width:36px;min-width:36px;height:36px;min-height:36px}.card .button.add svg{width:21px;height:21px}}
@media(max-width:599px){.card>.purchase-row{gap:5px;padding-top:12px!important}.card .colour-swatch{width:20px;min-width:20px;height:20px}.card .size-options{gap:2px}.card .size-option{width:24px;min-width:24px;height:24px;min-height:24px;font-size:11px}.card .price-action{gap:5px}.card .price-value{font-size:19px}.card .button.add{width:36px;min-width:36px;height:36px;min-height:36px}.card .button.add svg{width:21px;height:21px}.card>.card-feedback{font-size:13px}}


/* Always-visible, multi-select merchandise categories. */
.merch-page .category-filter{display:flex;align-items:center;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin:0;padding:0;border:0;color:#f3f1ed;font-size:16px;letter-spacing:.04em}
.merch-page .category-filter-label{color:#b2aeb9}
.merch-page .category-filter label{display:inline-flex;align-items:center;gap:7px;min-height:32px;white-space:nowrap;cursor:pointer}
.merch-page .category-filter input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#8251e3}
@media(max-width:599px){.merch-page .category-filter{justify-content:flex-end;gap:8px 14px;font-size:15px}}

/* Dim the catalogue beneath the mobile navigation. */
@media(max-width:700px){
}

/* Card content placement follows the reference hierarchy while retaining the
   existing card design and image-frame dimensions. */
.card>.purchase-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:auto auto;
  column-gap:0;
  row-gap:12px;
  margin:auto 0 0!important;
  padding-top:0!important;
}
.card .purchase-row>.price-action{grid-column:1;grid-row:1;margin:0}
.card .purchase-row>.sizes{grid-column:1;grid-row:2;width:100%;min-width:0;margin:0;padding:0;border:0}
.card .purchase-row:not(.has-sizes){grid-template-rows:auto;column-gap:12px}
.card .purchase-row .size-option{flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;border-radius:2px;font-size:14px;line-height:1}
.card .purchase-row .size-option.selected{background:#8251e3;border-color:#a681ff;color:#fff;outline:0}
.card .colour-swatch{flex:0 0 44px;width:44px;min-width:44px;height:44px;border-radius:50%}
.card .gallery>.gallery-add{
  position:absolute;
  right:12px;
  bottom:12px;
  z-index:4;
  display:grid;
  place-items:center;
  margin:0;
  padding:0;
  background:#17121dcc;
  border:1px solid #c6c5d1;
  color:#fff;
}
.card .gallery>.gallery-add:hover:not(:disabled){background:#8251e3;border-color:#8251e3}
.card .gallery>.gallery-add:disabled{opacity:.45}
.card .gallery>.gallery-add svg{width:24px;height:24px}

/* Compact, edge-aligned size and colour controls. */
.card .purchase-row>.price-action{
  justify-self:end;
  width:100%;
  justify-content:flex-end;
}
.card .purchase-row .price-value{font-size:24px!important}
.card .purchase-row .size-option{
  flex:0 0 32px;
  width:32px;
  min-width:32px;
  height:32px;
  min-height:32px;
  padding:0;
}
.card .purchase-row .colour-swatch{
  flex:0 0 24px;
  width:24px;
  min-width:24px;
  height:24px;
}
.card .purchase-row:not(.has-sizes){grid-template-columns:minmax(0,1fr) auto}
.card .purchase-row:not(.has-sizes)>.price-action{grid-column:2;grid-row:1;width:auto}

/* Requested card spacing and control positions. Keep after legacy card overrides. */
#catalogue .card>.purchase-row .price-value{
  font-size:32px!important;
}

/* Final requested spacing and edge offsets for the product cards. */
#catalogue .card>.purchase-row{
  margin:20px -16px 0!important;
}
@media(max-width:599px){
  #catalogue .card>.purchase-row{
    margin:20px 0 0!important;
  }
}

/* Final card geometry requested: consistent 16px edge offsets and compact squares. */
#catalogue .card>.product-info{
  margin:0 0 0!important;
}
@media(max-width:599px){
  #catalogue .card>.purchase-row{
    padding-right:16px!important;
    padding-left:16px!important;
  }
}

/* Fine spacing and sizing requested for the compact product card controls. */
#catalogue .card .gallery-spacing{
  flex:0 0 20px;
}
#catalogue .card>.product-info{
  margin-bottom:0!important;
}
#catalogue .card>.purchase-row{
  width:calc(100% + 32px);
  margin-left:-16px!important;
  margin-bottom:0!important;
}
#catalogue .card>.purchase-row .size-option{
  flex:0 0 36px;
  width:36px;
  min-width:36px;
  height:36px;
  min-height:36px;
}
#catalogue .card .gallery-colours{
  left:16px;
  bottom:16px;
}
#catalogue .card .gallery>.gallery-add{
  right:16px;
  bottom:16px;
}
@media(max-width:599px){
  #catalogue .card>.purchase-row{
    width:100%;
  }
}

/* Card colour choices sit on the image beside the 44px add-to-cart control. */
.card .gallery-colours{
  position:absolute;
  z-index:5;
  left:12px;
  bottom:12px;
  display:flex;
  align-items:center;
  gap:6px;
  min-height:44px;
}
.card .gallery-colours .colour-swatch{
  flex:0 0 24px;
  width:24px;
  min-width:24px;
  height:24px;
  min-height:24px;
  border-radius:50%;
}
.card .gallery>.gallery-add{
  width:44px;
  min-width:44px;
  height:44px!important;
  min-height:44px!important;
}

/* Sizes and price share the bottom row, aligned to opposite card edges. */
.card>.purchase-row{
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:calc(100% + 24px);
  margin-left:-12px!important;
  padding:0 12px!important;
}
.card>.purchase-row>.sizes{
  flex:0 1 auto;
  width:auto;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}
.card>.purchase-row .size-options{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:nowrap;
  gap:0;
  width:max-content;
  max-width:none;
}
.card>.purchase-row .size-option{
  flex:0 0 32px;
  width:32px;
  min-width:32px;
  height:32px;
  min-height:32px;
  padding:0;
}
.card>.purchase-row>.price-action{
  flex:0 0 auto;
  justify-self:auto;
  width:auto;
  margin-left:auto;
  justify-content:flex-end;
}
.card>.purchase-row .price-value{font-size:24px!important}
@media(max-width:599px){
  .card>.purchase-row{width:100%;margin-left:0!important;padding:0 12px!important}
}

/* Latest card layout: 20px image/name and name/size gaps, 16px edge offsets. */
#catalogue .card{
  padding-bottom:16px!important;
}
#catalogue .card .gallery-spacing{
  height:20px!important;
  min-height:20px!important;
  margin:0!important;
  flex:0 0 20px!important;
}
#catalogue .card>.product-info{
  margin:0!important;
}
#catalogue .card>.purchase-row{
  width:calc(100% + 32px)!important;
  margin:20px 0 0 -16px!important;
  padding:0 16px!important;
  flex:0 0 auto!important;
}
#catalogue .card>.purchase-row .size-options{
  gap:0!important;
}
#catalogue .card>.purchase-row .size-option{
  box-sizing:border-box!important;
  flex:0 0 36px!important;
  width:36px!important;
  min-width:36px!important;
  height:36px!important;
  min-height:36px!important;
  border-radius:0!important;
}
#catalogue .card>.purchase-row .price-value{
  font-size:28px!important;
}
#catalogue .card .gallery-colours{
  left:16px!important;
  bottom:16px!important;
}
#catalogue .card .gallery>.gallery-add{
  right:16px!important;
  bottom:16px!important;
}
@media(max-width:599px){
  #catalogue .card>.product-info{
    margin:0 16px!important;
  }
  #catalogue .card>.purchase-row{
    width:100%!important;
    margin-left:0!important;
    padding:0 16px!important;
  }
}
/* Keep the product title 4px smaller while retaining its card-responsive fit. */
#catalogue .card .product-info h2{
  font-size:calc(min(30px,6.4cqw) - 2px)!important;
}
@media(min-width:600px) and (max-width:1099px){
  #catalogue .card .product-info h2{
    font-size:calc(min(30px,6.4cqw) - 4px)!important;
  }
}
#catalogue .grid .card>.purchase-row .price-action .price-value{
  font-size:32px!important;
}

/* Keep the cart action square and size separators to a single pixel. */
#catalogue .card .gallery>.gallery-add{
  box-sizing:border-box!important;
  width:44px!important;
  min-width:44px!important;
  max-width:44px!important;
  height:44px!important;
  min-height:44px!important;
  max-height:44px!important;
  aspect-ratio:1 / 1!important;
}
#catalogue .card>.purchase-row .size-option + .size-option{
  border-left-width:0!important;
}
#catalogue .card .gallery-colours .colour-swatch[aria-pressed="true"]{
  outline:2px solid #fff!important;
  outline-offset:3px!important;
}
#catalogue .card .gallery-colours{gap:8px!important}

/* Keep the page active while the cart drawer is open. */

/* The panel motion is controlled by one Web Animation in app.js. */
#cart-panel{animation:none!important;transition:none!important;will-change:transform}

/* Merch intro alignment and responsive category placement. */
.merch-page .intro{padding-top:24px}
@media(max-width:1099px){
  .merch-page .intro{display:block}
  .merch-page .intro-meta-row{display:flex;flex-direction:column;align-items:flex-start;gap:16px}
  .merch-page .intro-description{align-self:flex-start;text-align:left}
  .merch-page .category-filter{align-self:flex-start;justify-content:flex-start;text-align:left}
}
@media(max-width:599px){
  .merch-page .intro{padding-top:24px;text-align:left}
  /* Product details sit 16px inside each full-width card. Match that same
     content edge for the store heading, description, and category filters. */
  .merch-page main .intro{margin-left:0;margin-right:0}
  .merch-page main .intro-heading,
  .merch-page main .intro-meta-row{margin-left:16px;margin-right:16px}
  .merch-page main .intro-heading{justify-content:flex-start}
  .merch-page main .intro-heading,
  .merch-page main .intro-description,
  .merch-page main .category-filter,
  .merch-page main .category-filter-label,
  .merch-page main .category-filter label{text-align:left}
  .merch-page main .intro-meta-row{align-items:stretch}
  /* Put "Show:" above the checkbox row so the first filter aligns with the
     product-name edge instead of being indented after the label. */
  .merch-page main .intro-meta-row .category-filter{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    width:100%;
    align-self:stretch;
    justify-content:initial;
    align-items:start;
    column-gap:8px;
    row-gap:8px;
  }
  .merch-page main .category-filter-label{grid-column:1/-1}
  .merch-page main .category-filter label{justify-self:start;white-space:nowrap}
  .merch-page main .intro-description{width:100%;align-self:flex-start}
}

/* Mobile storefront polish: evenly sized filters, immediately usable gallery
   controls, and a clearly visible success confirmation. */
@media (max-width: 599px) {
  .merch-page main .category-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 4px;
    row-gap: 8px;
  }
  .merch-page main .category-filter label {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    justify-content: center;
    gap: 5px;
    font-size: 18px;
    line-height: 1.15;
  }
  .merch-page main .category-filter input[type="checkbox"] {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
  }
  .product-image-viewer .product-image-prev:not([hidden]),
  .product-image-viewer .product-image-next:not([hidden]) {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .product-image-viewer[open] .product-image-large {
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

#toast {
  z-index: 200 !important;
  bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: min(92vw, 520px);
}
#toast.visible.toast-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border: 1px solid #a681ff;
  border-radius: 4px;
  background: #7441d7;
  color: #fff;
  box-shadow: 0 8px 30px rgb(0 0 0 / 35%);
  font-weight: 600;
  text-align: center;
}
#toast.toast-success svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

/* 11:15 mobile filter row and cart-panel refinements. */
@media (max-width: 700px) {
  .merch-page main .intro-description { display: none !important; }
}

/* Cart quantity selector has square corners. */
body.merch-page #cart-panel .cart-item-controls .quantity {
  border-radius: 0 !important;
}

@media (max-width: 599px) {
  .merch-page main .intro-meta-row { display: block !important; margin-top: 16px !important; }
  .merch-page main .intro-meta-row { margin-left: 16px !important; margin-right: 16px !important; }
  .merch-page main .intro-meta-row .category-filter {
    display: grid !important; grid-template-columns: repeat(3,minmax(0,1fr)) !important;
    grid-template-rows: auto auto !important; align-items: center !important; justify-content: initial !important;
    column-gap: 8px !important; row-gap: 4px !important; width: 100% !important; text-align: left !important;
  }
  .merch-page main .category-filter-label { grid-column: 1 !important; grid-row: 1 !important; white-space: nowrap; }
  .merch-page main .category-filter label {
    width: 100% !important; min-width: 0 !important; justify-self: stretch !important;
    display: flex !important; align-items: center !important; gap: 4px !important;
    white-space: nowrap !important; font-size: clamp(10px,2.8vw,13px) !important;
  }
  .merch-page main .category-filter label:nth-of-type(1) { grid-column: 1 !important; grid-row: 2 !important; justify-content: flex-start !important; }
  .merch-page main .category-filter label:nth-of-type(2) { grid-column: 2 !important; grid-row: 2 !important; justify-content: center !important; }
  .merch-page main .category-filter label:nth-of-type(3) { grid-column: 3 !important; grid-row: 2 !important; justify-content: flex-end !important; }
}

/* Final 11:15 drawer and footer refinements: align storefront rows with the
   homepage cart treatment, including on narrow phones where older rules win. */
body.merch-page #cart-panel .cart-panel-content { padding: 16px !important; }
body.merch-page #cart-panel .cart-panel-item {
  display: grid !important;
  grid-template-columns: minmax(88px,1fr) minmax(0,3fr) !important;
  grid-template-areas: "thumb details" "thumb controls" !important;
  align-items: start !important; gap: 8px 16px !important; padding: 16px 0 !important;
  border-bottom: 1px solid #594365 !important;
}
body.merch-page #cart-panel .cart-item-thumb {
  grid-area: thumb; display: block; width: 100% !important; height: calc(100% - 8px) !important;
  min-height: 0 !important; aspect-ratio: auto; object-fit: cover; align-self: start;
}
body.merch-page #cart-panel .drawer-item-details { grid-area: details; min-width: 0; }
body.merch-page #cart-panel .drawer-product-heading h4 {
  margin: 0 !important; font: 500 16px/1.2 'Roboto Condensed',Arial,sans-serif !important;
}
body.merch-page #cart-panel .cart-item-attributes {
  display: grid; gap: 0; margin-top: 8px; color: #c2b8cd;
  font: 400 12px/1.4 'Roboto Condensed',Arial,sans-serif;
}
body.merch-page #cart-panel .cart-item-controls {
  grid-area: controls; display: grid !important; grid-template-columns: 106px 32px minmax(0,1fr) !important;
  align-items: end !important; column-gap: 24px !important; min-width: 0; width: 100%; margin: 0 !important; padding: 0 !important; white-space: nowrap !important;
}
body.merch-page #cart-panel .cart-item-controls .quantity { grid-column: 1; width: 106px !important; min-width: 106px !important; max-width: 106px !important; padding-inline: 16px !important; margin: 0 !important; flex: none !important; }
body.merch-page #cart-panel .cart-item-controls .cart-delete { grid-column: 2; justify-self: center; width: 32px !important; min-width: 32px !important; flex: none !important; }
body.merch-page #cart-panel .cart-item-price {
  grid-column: 3; justify-self: end; min-width: max-content; margin: 0 !important; white-space: nowrap; font: 400 32px/1 'Roboto Condensed',Arial,sans-serif !important;
}
@media (max-width: 700px) {
  body.merch-page .site-footer.global-social-bar[data-scroll-social][data-site-footer] .global-social-label { display: none !important; }
  body.merch-page .site-footer.global-social-bar[data-scroll-social][data-site-footer] .global-social-links { transform: translateY(-8px) !important; }
  body.merch-page .site-footer.global-social-bar[data-scroll-social][data-site-footer] .global-social-links .social-icon {
    width: 17.6px !important; height: 17.6px !important; flex-basis: 17.6px !important;
  }
}

/* On phones the details column is narrower than the desktop cart layout.
   Keep the quantity, delete action, and price in their own compact tracks. */
@media (max-width: 700px) {
  body.merch-page #cart-panel .cart-item-controls {
    display: grid !important;
    grid-template-columns: 106px 24px minmax(0, 1fr) !important;
    align-items: end !important;
    column-gap: 24px !important; row-gap: 8px !important;
    width: 100% !important;
  }
  body.merch-page #cart-panel .cart-panel-item { grid-template-columns: 56px minmax(0,1fr) !important; }
  body.merch-page #cart-panel .cart-item-controls .quantity {
    grid-column: 1 !important;
    width: 106px !important; min-width: 106px !important; max-width: 106px !important; padding-inline: 16px !important;
  }
  body.merch-page #cart-panel .cart-item-controls .cart-delete {
    grid-column: 2 !important;
    justify-self: center !important;
    width: 24px !important; min-width: 24px !important; max-width: 24px !important;
  }
  body.merch-page #cart-panel .cart-item-price {
    grid-column: 3 !important; grid-row: 1 !important;
    justify-self: end !important;
    font-size: 32px !important;
  }
  body.merch-page #cart-panel .drawer-item-details { position: relative !important; }
  body.merch-page #cart-panel .cart-item-controls { position: static !important; }
  body.merch-page #cart-panel .cart-item-controls .quantity {
    position: absolute !important; left: 0 !important; bottom: 0 !important; align-self: auto !important;
  }
}

/* Final merch drawer and mobile navigation layout overrides. */
@media (max-width: 700px) {
  html { scrollbar-gutter: stable !important; }
  body.merch-page .site-header .site-nav {
    top: var(--site-header-height) !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
    width: auto !important; height: auto !important;
    max-height: none !important;
    padding: 24px 28px calc(32px + env(safe-area-inset-bottom)) !important;
  }
  body.merch-page #cart-panel .cart-panel-item { grid-template-columns: 112px minmax(0,1fr) !important; }
  body.merch-page #cart-panel {
    left: 0 !important; right: 0 !important; width: auto !important; max-width: none !important;
    box-shadow: 0 0 0 16px #23142f !important;
  }
}
body.merch-page #cart-panel .cart-panel-item { grid-template-columns: minmax(112px,1fr) minmax(0,3fr) !important; }
body.merch-page #cart-panel .cart-item-thumb {
  width: 100% !important; height: auto !important; min-height: 0 !important;
  aspect-ratio: 1 / 1 !important; align-self: start !important;
}
body.merch-page #cart-panel .drawer-item-details {
  display: flex !important; flex-direction: column !important; min-height: 112px !important;
}
body.merch-page #cart-panel .cart-item-controls { margin-top: auto !important; }
body.merch-page #cart-panel .cart-item-controls { column-gap: 20px !important; }
body.merch-page #cart-panel .cart-item-controls .quantity { justify-content: space-between !important; padding-inline: 16px !important; }
body.merch-page #cart-panel .cart-item-price { font-size: 24px !important; }
body.merch-page #cart-panel .cart-drawer-total > div { font-size: 32px !important; }
@media (max-width: 700px) {
  body.merch-page #cart-panel .cart-panel-item { grid-template-columns: 112px minmax(0,1fr) !important; }
}
@media (max-width: 375px) {
  body.merch-page #cart-panel .cart-item-price {
    grid-column: 1 / -1 !important; grid-row: 2 !important; justify-self: end !important;
  }
}
body.merch-page #cart-panel .cart-panel-item { padding: 16px 0 !important; }
body.merch-page #cart-panel .cart-item-controls .quantity { border-radius: 0 !important; }
body.merch-page .cart-panel-scrim:hover,
body.merch-page .cart-panel-scrim:focus,
body.merch-page .cart-panel-scrim:focus-visible {
  background: rgb(0 0 0 / 50%) !important; box-shadow: none !important; filter: none !important; outline: none !important;
}
@media (max-width: 700px) {
  body.merch-page .site-header,
  body.merch-page .site-footer.global-social-bar[data-scroll-social] {
    transition: transform 300ms cubic-bezier(.22,1,.36,1) !important;
  }
  body.merch-page #cart-panel { transition: none !important; }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  body.merch-page .site-header,
  body.merch-page .site-footer.global-social-bar[data-scroll-social] { transition: none !important; }
}
@media (orientation: portrait) and (min-width: 360px) and (max-width: 375px) {
  body.merch-page #cart-panel .cart-item-controls {
    grid-template-columns: 84px 24px minmax(0,1fr) !important;
    align-items: center !important; column-gap: 16px !important; row-gap: 0 !important;
  }
  body.merch-page #cart-panel .cart-item-controls .quantity {
    width: 84px !important; min-width: 84px !important; max-width: 84px !important;
    height: 32px !important; padding-inline: 13px !important;
  }
  body.merch-page #cart-panel .cart-item-controls .quantity button {
    width: 19px !important; min-width: 19px !important; height: 32px !important; font-size: 13px !important;
  }
  body.merch-page #cart-panel .cart-item-controls .quantity > span {
    min-width: 13px !important; font-size: 13.5px !important;
  }
  body.merch-page #cart-panel .cart-item-controls .cart-delete {
    grid-column: 2 !important; width: 24px !important; min-width: 24px !important; max-width: 24px !important;
    height: 32px !important; min-height: 32px !important; max-height: 32px !important;
  }
  body.merch-page #cart-panel .cart-item-controls .cart-delete svg {
    width: 20px !important; height: 20px !important;
  }
  body.merch-page #cart-panel .cart-item-controls .cart-item-price {
    grid-column: 3 !important; grid-row: 1 !important; font-size: 24px !important;
  }
}

/* Apply the same evenly distributed 8px inset throughout the store cart. */
body.merch-page #cart-panel .cart-item-controls .quantity {
  justify-content: space-between !important;
  padding-left: 8px !important; padding-right: 8px !important;
  gap: 0 !important;
}
body.merch-page #cart-panel .cart-item-controls .quantity > span {
  padding-left: 0 !important; padding-right: 0 !important;
}
body.merch-page #cart-panel .cart-item-controls {
  align-items: center !important;
}

@media (max-width: 700px) {
  body.merch-page .site-header .site-nav {
    transform: translateX(100%) !important;
    transition: transform 300ms cubic-bezier(.22,1,.36,1), opacity 300ms ease, visibility 0s linear 300ms !important;
  }
  body.merch-page .site-header .site-nav.is-open {
    transform: translateX(0) !important;
    transition: transform 300ms cubic-bezier(.22,1,.36,1), opacity 300ms ease !important;
  }
  body.merch-page .cart-panel-scrim {
    transition: opacity 300ms cubic-bezier(.22,1,.36,1), visibility 0s linear 300ms !important;
  }
  body.merch-page .cart-panel-scrim.is-visible {
    transition: opacity 300ms cubic-bezier(.22,1,.36,1), visibility 0s !important;
  }
}
@media (max-width: 700px) and (prefers-reduced-motion: reduce) {
  body.merch-page .site-header .site-nav,
  body.merch-page .site-header .site-nav.is-open, body.merch-page .cart-panel-scrim,
  body.merch-page .cart-panel-scrim.is-visible { transition: none !important; }
}

@media (max-width: 599px) {
  body.merch-page main .category-filter {
    grid-template-columns: minmax(0,1fr) max-content minmax(0,1fr) !important;
  }
  body.merch-page main .category-filter label:nth-of-type(2) {
    width: max-content !important;
    justify-self: center !important;
  }
  body.merch-page main .category-filter label {
    font-size: calc(clamp(10px, 2.8vw, 13px) + 8px) !important;
  }
}
@media (min-width: 600px) and (max-width: 700px) {
  body.merch-page main .category-filter label { font-size: 24px !important; }
}



/* Mobile filters share one evenly distributed row; keep the Show label above. */
@media (max-width: 599px) {
  body.merch-page main .category-filter {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    column-gap: 0 !important;
    row-gap: 4px !important;
  }
  body.merch-page main .category-filter-label {
    flex: 0 0 100% !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
  body.merch-page main .category-filter label {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    justify-content: center !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }
}

/* Center the 24px Add to cart artwork inside its existing 44px frame. */
.card .gallery > .gallery-add {
  display: grid !important;
  place-items: center !important;
}
.card .gallery > .gallery-add .add-to-cart-icon {
  position: absolute !important;
  inset: 50% auto auto 50% !important;
  display: block !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
  transform: translate(-50%, -50%) !important;
  transition: none !important;
  animation: none !important;
}

.card .gallery > .gallery-add:hover:not(:disabled) {
  border: 1px solid #fff !important;
}


/* Keep cart success text on one line without exceeding the viewport. */
#toast.visible.toast-success {
  width: max-content;
  max-width: calc(100vw - 32px);
  flex-wrap: nowrap;
  white-space: nowrap;
}
#toast.toast-success span { white-space: nowrap; }

/* Touch taps should not leave gallery arrow circles in a hover-colored state. */
@media (hover: none) {
  #catalogue .gallery-arrow:is(:hover, :active, :focus, :focus-visible) {
    background: rgb(255 255 255 / 30%) !important;
    color: #3a3a3a !important;
    box-shadow: none !important;
    filter: none !important;
    outline: none !important;
  }
}

/* Mobile spacing between the category filters and product cards. */
@media (max-width: 599px) {
  .merch-page .intro { padding-bottom: 16px !important; }
  #catalogue .grid { margin-top: 8px !important; }
}

/* Align this product photo with neighboring cards and center the mobile filters. */
#catalogue .card[data-id="30"] .gallery img { transform: translateY(-8px) scale(1.1); }
@media (max-width: 599px) {
  body.merch-page main .category-filter label:nth-of-type(2) { transform: translateX(12px) !important; }
}

/* Product card arrows appear on real pointer hover only. Image viewer arrows remain usable on touch. */
@media (hover: none) {
  #catalogue .gallery-arrow { display: none !important; }
  .product-image-viewer .product-image-prev:not([hidden]),
  .product-image-viewer .product-image-next:not([hidden]) {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* Apparel fit selector follows the gallery controls; the add button stays at the opposite corner. */
#catalogue .card.has-gender .gallery > .gallery-add { top: 16px !important; bottom: auto !important; right: 16px !important; }
.card .gallery-gender-options { position: absolute; z-index: 5; right: 16px; bottom: 16px; display: flex; width: min(168px, calc(100% - 112px)); max-width: none; }
.card .gender-select, .card .size-select { -webkit-appearance: none; appearance: none; box-sizing: border-box; display: block; height: 36px; min-height: 36px; padding-left: 16px !important; padding-right: 52px !important; border: 1px solid #fff; border-radius: 0; background-color: rgba(0,0,0,.3); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23f3f1ed' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; color: #f3f1ed; font-size: 14px; line-height: 1; cursor: pointer; }
.card .gallery-gender-options .fit-option { box-sizing: border-box; flex: 1 1 0; width: auto; min-width: 0; height: 36px; min-height: 36px; padding: 0 4px; border: 1px solid #b4a8da; border-radius: 0; background: rgb(0 0 0 / 30%); font-size: 13px; line-height: 1; white-space: nowrap; }
.card .gallery-gender-options .fit-option:not(.selected):not(:disabled):hover { background: rgb(0 0 0 / 40%); }
.card .gallery-gender-options .fit-option + .fit-option { border-left-width: 0; }
.card .gallery-gender-options .fit-option.selected { background: #8251e3; border-color: #b4a8da; color: #fff; outline: 0; }
.card .gallery-gender-options.invalid { outline: 1px solid #ffa6b0; outline-offset: 2px; }
.card .gender-select { width: max-content; min-width: 0; max-width: 100%; }
.card .size-select { width: max-content; min-width: 0; max-width: 100%; }
.card .gender-select option, .card .size-select option { background: #23142f; color: #f3f1ed; }
.card .gender-select:focus-visible, .card .size-select:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.card .gallery-gender-options.invalid .gender-select,
.card .gallery-gender-options.invalid .gender-select:focus-visible { border-color: #ff5151; outline: 1px solid #ff5151; outline-offset: 2px; }
.card .sizes.invalid .size-select,
.card .sizes.invalid .size-select:focus-visible { border-color: #ff5151; outline: 1px solid #ff5151; outline-offset: 2px; }
.card .button.add.validation-blocked:hover:not(:disabled),
.card .button.add.validation-blocked:active:not(:disabled),
.card .button.add.validation-blocked:focus:not(:disabled) { background: transparent !important; border-color: #c6c5d1 !important; box-shadow: none !important; transform: none !important; }
#catalogue .card>.purchase-row>.sizes { flex: 0 0 auto; width: max-content; max-width: 100%; min-width: 0; }
@media(max-width:599px){
  .card .gallery-gender-options { right:16px; bottom:16px; width:min(144px, calc(100% - 112px)); max-width:none; }
  .card .gallery-gender-options .fit-option { height:36px; min-height:36px; font-size:12px; padding:0 3px; }
  .card .gender-select, .card .size-select { height:36px; min-height:36px; padding:0 52px 0 16px !important; font-size:15px; }
}

/* Keep merch cart image edges aligned with the title and quantity row. */
body.merch-page #cart-panel .cart-panel-item {
  grid-template-columns: 134px minmax(0, 1fr) !important;
  grid-template-areas: "thumb details" !important;
  grid-template-rows: auto !important;
  column-gap: 16px !important;
  row-gap: 0 !important;
  align-items: start !important;
}
body.merch-page #cart-panel .cart-panel-content { padding: 0 16px !important; }
body.merch-page #cart-panel .cart-item-thumb {
  width: 134px !important;
  height: 134px !important;
  min-height: 134px !important;
  aspect-ratio: 1 / 1 !important;
  align-self: start !important;
  object-fit: cover !important;
}
body.merch-page #cart-panel .drawer-item-details {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
}
body.merch-page #cart-panel .cart-item-options { margin: 6px 0 12px !important; }
body.merch-page #cart-panel .cart-item-controls { margin: 0 !important; padding: 0 !important; }
body.merch-page #cart-panel .cart-item-controls .quantity { position: static !important; inset: auto !important; align-self: center !important; }
@media (max-width: 700px) {
  body.merch-page #cart-panel .cart-panel-item { grid-template-columns: 130px minmax(0, 1fr) !important; }
  body.merch-page #cart-panel .cart-item-thumb { width: 130px !important; height: 130px !important; min-height: 130px !important; }
}
@media (orientation: portrait) and (min-width: 360px) and (max-width: 375px) {
  body.merch-page #cart-panel .cart-panel-item { grid-template-columns: 126px minmax(0, 1fr) !important; }
  body.merch-page #cart-panel .cart-item-thumb { width: 126px !important; height: 126px !important; min-height: 126px !important; }
}

/* Keep native selects available to the card state while rendering a bounded,
   accessible popup that can flip and scroll inside the visible viewport. */
.card .gender-select[hidden], .card .size-select[hidden] { display:none !important; }
.card .gender-select-trigger, .card .size-select-trigger {
  -webkit-appearance:none; appearance:none; box-sizing:border-box; display:block;
  height:36px; min-height:36px; width:max-content; max-width:100%; min-width:0;
  padding:0 52px 0 16px !important; border:1px solid #fff; border-radius:0;
  background-color:rgba(0,0,0,.3);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23f3f1ed' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 16px center; background-size:12px 8px;
  color:#f3f1ed; font:14px/1 'Roboto Condensed',Arial,sans-serif; text-align:left;
  white-space:nowrap; cursor:pointer;
}
.card .gender-select-trigger:focus-visible, .card .size-select-trigger:focus-visible { outline:2px solid #fff; outline-offset:2px; }
.card .gender-select-trigger:disabled, .card .size-select-trigger:disabled { opacity:.55; cursor:not-allowed; }
.card .gallery-gender-options.invalid .gender-select-trigger,
.card .gallery-gender-options.invalid .gender-select-trigger:focus-visible,
.card .sizes.invalid .size-select-trigger,
.card .sizes.invalid .size-select-trigger:focus-visible { border-color:#ff5151; outline:1px solid #ff5151; outline-offset:2px; }
.product-select-menu {
  position:fixed; z-index:10000; display:grid; grid-auto-rows:min-content; box-sizing:border-box; overflow-x:hidden; overflow-y:auto;
  overscroll-behavior:contain; scrollbar-width:thin; border:1px solid #c6b6d6; border-radius:0;
  background:#23142f; color:#f3f1ed; box-shadow:0 10px 28px #0009; padding:4px;
}
.product-select-option {
  display:flex; align-items:center; width:100%; min-height:34px; padding:7px 12px; border:0;
  background:transparent; color:inherit; font:15px/1.2 'Roboto Condensed',Arial,sans-serif;
  text-align:left; cursor:pointer;
}
.product-select-option:hover, .product-select-option[data-active="true"],
.product-select-option[aria-selected="true"] { background:#8251e3; color:#fff; }
.product-select-option:disabled { opacity:.45; text-decoration:line-through; cursor:not-allowed; }
@media (max-width:599px) {
  .card .gender-select-trigger, .card .size-select-trigger { font-size:15px; }
}
