.shop-page{padding-block:22px 60px}.shop-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:36px 0}.shop-intro h1{font-size:46px;margin-bottom:12px}.shop-intro p{margin-bottom:0;color:var(--muted)}.shop-intro .eyebrow{margin-bottom:12px;color:var(--gold)}.shop-intro .button{white-space:nowrap;gap:5px}.shop-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:32px}.shop-filters{border-top:1px solid var(--border);padding-top:20px}.shop-filters h2{font-size:24px;margin-bottom:22px}.shop-filters>label:not(.check){display:block;margin-top:18px;margin-bottom:7px;font-size:12px;color:var(--muted)}.shop-filters input[type=search],.shop-filters select{width:100%}.shop-page input,.shop-page select{background:#1b2328;border:1px solid #ffffff30;color:var(--text);padding:10px;border-radius:3px;min-height:42px;font:14px system-ui}.shop-filters .check{display:flex;align-items:center;gap:9px;font-size:12px;margin-block:24px}.check input{min-height:0}.reset{background:transparent;border:1px solid #ffffff35;color:var(--text);padding:9px 13px;cursor:pointer}.results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.results-toolbar p{margin:0;font-size:13px;color:var(--muted)}.results-toolbar label{font-size:12px;white-space:nowrap}.results-toolbar select{margin-left:7px}.price-note{font-size:11px;color:var(--muted);margin-block:15px 22px}.card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 16px}.product{min-width:0;border:1px solid var(--border);background:#171d22;display:flex;flex-direction:column}.product-image{display:block;width:100%;aspect-ratio:63/88;object-fit:contain;background:#101419;border-radius:7px}.product-info{padding:13px;display:flex;flex-direction:column;flex:1}.product h3{font-family:system-ui;font-size:14px;line-height:1.4;margin:0 0 8px}.product-meta{font-size:10px;color:var(--muted);margin-bottom:7px}.product-finish{color:var(--gold)}.product-price{display:flex;justify-content:space-between;align-items:center;margin-top:auto;padding-top:10px;gap:6px}.product-price strong{font-size:18px;color:var(--gold)}.product-price span{font-size:10px;color:var(--muted)}.price-source{font-size:9px;color:var(--muted);margin:3px 0 12px}.add-card{background:#233c2b;border:1px solid #50795c;color:#d0e8d3;min-height:36px;cursor:pointer;font:12px system-ui}.add-card:hover{background:#304e39}.add-card:disabled{opacity:.5;cursor:default}.pagination{display:flex;justify-content:center;gap:18px;align-items:center;margin-top:35px;font-size:12px}.pagination button,#basket-close{background:#1b2328;color:var(--text);border:1px solid var(--border);padding:10px;cursor:pointer}.pagination button:disabled{opacity:.4;cursor:default}dialog{background:#171d22;color:var(--text);border:1px solid #e9cf9150;border-radius:8px;width:min(600px,calc(100% - 30px));max-height:85vh;padding:26px}dialog::backdrop{background:#000b}.basket-heading{display:flex;justify-content:space-between;align-items:center}.basket-heading h2{font-size:30px}.basket-heading .eyebrow{margin-bottom:8px}dialog>p{font-size:13px;color:var(--muted)}.basket-line{border-top:1px solid var(--border);padding-block:15px;display:flex;justify-content:space-between;gap:20px}.basket-line strong{font-size:14px}.basket-line small{display:block;color:var(--muted);font-size:11px}.basket-controls{display:flex;align-items:center;gap:10px;margin-top:8px}.basket-controls button{background:#26322b;color:var(--text);border:1px solid #ffffff30;min-width:32px;min-height:32px;cursor:pointer}.basket-total{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding-top:20px}.empty-state{grid-column:1/-1;padding:45px 20px;border:1px solid var(--border);color:var(--muted)}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.shop-results{min-width:0}.store-info{font-size:10px;color:var(--gold);white-space:nowrap}
@media(min-width:701px){
 .shop-page{padding-top:0}.shop-layout{align-items:start}
 .shop-filters{position:sticky;top:calc(var(--store-header-height,135px) + 12px);max-height:calc(100dvh - var(--store-header-height,135px) - 24px);overflow-y:auto;padding:12px 8px 12px 0;border-top:0}
 .shop-filters h2{font-size:20px;margin-bottom:12px}.shop-filters>label:not(.check){margin-top:12px;margin-bottom:5px}.shop-filters .check{margin-block:16px}
 .results-toolbar{position:sticky;top:var(--store-header-height,135px);z-index:40;min-height:42px;padding:5px 0;gap:14px;background:var(--bg);border-bottom:1px solid var(--border);margin-bottom:14px;flex-wrap:nowrap}
 .results-toolbar p{font-size:11px;white-space:nowrap;margin-right:auto}.results-toolbar label{display:flex;align-items:center;font-size:11px}.results-toolbar select{min-height:28px;padding:3px 7px;font-size:11px;max-width:145px}
 .shop-page #results,.shop-page #shop-filters{scroll-margin-top:calc(var(--store-header-height,135px) + 50px)}
}
@media(max-width:1050px){.card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-layout{grid-template-columns:180px minmax(0,1fr);gap:20px}}
@media(max-width:700px){.shop-intro{align-items:flex-start;flex-direction:column;padding-block:25px}.shop-intro h1{font-size:36px}.shop-layout{grid-template-columns:1fr}.shop-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.shop-filters h2,.shop-filters label[for=search],.shop-filters input[type=search],.shop-filters .quiet,.shop-filters .check,.shop-filters .reset{grid-column:1/-1}.shop-filters>label:not(.check){margin:8px 0 0}.shop-filters label[for=set]{grid-column:1}.shop-filters #set{grid-column:1/-1}.shop-filters label[for=rarity],.shop-filters label[for=finish]{grid-column:1/-1}.shop-filters #rarity,.shop-filters #finish{grid-column:1/-1}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.results-toolbar{align-items:flex-start;flex-direction:column}.product-info{padding:10px}.product h3{font-size:13px}.product-price{flex-wrap:wrap}}

/* Compact mobile filters and image-based page navigation. */
.pagination{gap:10px}.pagination button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:8px}.pagination button img{display:block;width:18px;height:18px;object-fit:contain}.pagination button:disabled{opacity:.3}
@media(max-width:700px){
 .shop-filters{grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:6px;align-items:center;padding-top:8px}
 .shop-filters h2{grid-column:1/-1;font-size:18px;margin:0 0 4px}
 .shop-filters>label:not(.check){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .shop-filters #set,.shop-filters #rarity,.shop-filters #finish{grid-column:auto;min-width:0;width:100%;padding:6px 4px;min-height:34px;font-size:12px}
 .shop-filters .reset{grid-column:auto;min-height:34px;font-size:11px;padding:5px 7px}
}
@media(max-width:380px){.shop-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-filters .reset{grid-column:1/-1;justify-self:end}}
/* One compact search/filter group, with native mobile collapse. */
.shop-filters{display:block!important}.filter-fields{display:grid;gap:9px}.filter-fields input,.filter-fields select{width:100%;min-width:0}.filter-fields .reset{justify-self:start}
#search-panel>summary{display:none}#search-panel:not([open])>.filter-fields{display:grid}
.results-toolbar label{font-size:10px;gap:3px}.results-toolbar #sort{font-size:10px;min-height:24px;padding:2px 4px;max-width:116px;margin-left:3px}.results-toolbar{min-height:34px}
@media(max-width:700px){
 .shop-filters{position:sticky;top:var(--store-header-height,135px);z-index:60;background:var(--bg);padding:4px 0 6px;border-bottom:1px solid var(--border);max-height:calc(100dvh - var(--store-header-height,135px) - 12px);overflow-y:auto}
 #search-panel>summary{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--gold);padding:5px 3px;cursor:pointer;list-style:none}#search-panel>summary::-webkit-details-marker{display:none}#search-panel>summary::after{content:'+';font-size:19px;line-height:20px}#search-panel[open]>summary::after{content:'−'}
 #search-panel:not([open])>.filter-fields{display:none}.filter-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.filter-fields #search{grid-column:1/-1;min-height:34px;font-size:16px;padding:6px 8px}
 .shop-filters .filter-fields #set,.shop-filters .filter-fields #rarity,.shop-filters .filter-fields #finish,.shop-filters .filter-fields #mana{grid-column:auto;min-height:30px;padding:4px 5px;font-size:12px}.shop-filters .filter-fields .reset{grid-column:1/-1;min-height:27px;padding:4px 7px;font-size:10px;justify-self:end}
 .results-toolbar{flex-direction:row;align-items:center;flex-wrap:wrap;gap:6px;min-height:30px}.results-toolbar p{font-size:10px;margin-right:auto}.results-toolbar label{display:flex;align-items:center;font-size:9px}.results-toolbar #sort{font-size:10px;min-height:24px;max-width:110px}.store-info{font-size:9px}
}
/* Keep the desktop filter column stable, even when the result list is empty. */

.shop-layout{min-height:calc(100dvh - var(--store-header-height,135px));align-items:start}
.shop-filters{min-width:0;padding:10px 8px!important;box-sizing:border-box}
.filter-fields{gap:14px;padding:5px}
#search-panel>summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;color:var(--gold);font-size:12px;padding:3px 5px 9px}
#search-panel>summary::-webkit-details-marker{display:none}
#search-panel>summary::after{content:'+';font-size:18px;line-height:20px}
#search-panel[open]>summary::after{content:'−'}
#search-panel:not([open])>.filter-fields{display:none!important}
.shop-filters input:focus-visible,.shop-filters select:focus-visible{outline-offset:2px}
@media(min-width:701px){.shop-results{min-height:calc(100dvh - var(--store-header-height,135px))}.shop-filters{max-height:calc(100dvh - var(--store-header-height,135px) - 24px)}}
.store-categories{display:flex;gap:16px;align-items:center;min-width:0}
.store-categories button,.store-categories a,.context-search-link{font:12px system-ui;color:var(--muted);background:transparent;border:0;cursor:pointer;padding:6px 0;white-space:nowrap}
.store-categories button,.store-categories a{border-bottom:2px solid transparent}
.store-categories button[aria-pressed=true],.store-categories a[aria-current]{border-bottom-color:var(--gold);color:var(--gold)}
.context-search-link{margin-left:auto;color:var(--gold)}
.store-categories button:focus-visible,.store-categories a:focus-visible,.context-search-link:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:700px){.filter-fields{gap:9px;padding:5px}.shop-filters{padding:4px 5px 6px!important}.store-categories{gap:12px}.store-categories button,.store-categories a,.context-search-link{font-size:10px}.context-row>.header-inner{gap:10px;flex-wrap:wrap}.context-search-link{margin-left:auto}}
/* Shared collection foil overlay, limited to foil Singles. */
.product-artwork{position:relative;isolation:isolate;overflow:hidden;border-radius:7px;aspect-ratio:63/88}
.product-artwork .product-image{height:100%}
.product-foil{position:absolute;inset:0;background:url('/img/is-foil.webp') center/100% 100% no-repeat;border-radius:inherit;pointer-events:none;z-index:1;opacity:.25}
.search-only .filter-fields select[hidden]{display:none!important}
@media(max-width:700px){.search-only .filter-fields{grid-template-columns:1fr}.search-only .filter-fields #search{grid-column:1}}
/* Card presentation aligned with the collection preview. */
.product{border-radius:18px;overflow:hidden}
.product-artwork,.product-image{border-radius:18px}
.product-info h3{margin-bottom:5px}
.product-finish{margin-bottom:8px;font-size:12px;line-height:1.4}
.product-price .product-quantity{font-size:13px;font-weight:600;color:var(--text);white-space:nowrap}
.product-condition{font-size:13px;line-height:1.45;color:var(--muted);margin:7px 0 13px}
@media(max-width:700px){.product-price .product-quantity{font-size:12px}.product-condition{font-size:13px}}
/* Finish and quantity share a row; the Add button carries the price. */
.product-finish-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 9px}
.product-finish-row .product-finish{font-size:12px;margin:0;white-space:nowrap}
.product-finish-row .product-quantity{font-size:12px;font-weight:600;color:var(--text);white-space:nowrap}
.product-condition{margin-top:auto;padding-top:5px}
.add-card{font-size:14px;font-weight:600;min-height:38px}
@media(max-width:700px){.product-finish-row .product-finish,.product-finish-row .product-quantity{font-size:10px}}
/* Restored second header row, dedicated to search. */


.restored-header-search{display:flex;align-items:center;gap:12px;width:100%;font-size:12px;color:var(--muted)}
.restored-header-search input{width:min(480px,100%);min-width:0;min-height:28px;background:#1b2328;border:1px solid #ffffff30;border-radius:3px;padding:4px 9px;color:var(--text);font:13px system-ui}
.restored-header-search input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:700px){.restored-header-search input{width:100%;font-size:16px}.restored-header-search{gap:8px}}
@media(min-width:701px){.restored-header-search{justify-content:center}}

/* Results stay beneath the pinned headers and mobile filters. */
.results-toolbar{position:sticky;top:var(--store-header-height,135px);z-index:45;background:var(--bg);border-bottom:1px solid var(--border)}
.shop-results{align-self:stretch;min-height:calc(100dvh - var(--store-header-height,135px))}
@media(max-width:700px){.results-toolbar{top:calc(var(--store-header-height,135px) + var(--store-filter-height,0px))}}
/* Image toggles on mobile; sideways filter collapse on desktop. */
.context-search-link{display:inline-flex;align-items:center;gap:5px}
.filter-toggle-icon{width:16px;height:16px;object-fit:contain}
#search-panel>summary::after{content:'';display:block;width:16px;height:16px;flex:0 0 16px;background:url('/img/nav/d.webp') center/contain no-repeat}
#search-panel[open]>summary::after{content:'';background-image:url('/img/nav/u.webp')}
@media(min-width:701px){
 .shop-layout.filters-collapsed{grid-template-columns:34px minmax(0,1fr);gap:18px}
 .filters-collapsed .shop-filters{padding:8px 0!important;overflow:visible}
 .filters-collapsed #search-panel>summary{font-size:0;min-height:32px;padding:7px;justify-content:center}
 #search-panel>summary::after{background-image:url('/img/nav/l.webp')}
 #search-panel[open]>summary::after{background-image:url('/img/nav/r.webp')}
 .filter-toggle-icon{content:url('/img/nav/r.webp')}
 .is-collapsed .filter-toggle-icon{content:url('/img/nav/l.webp')}
}
/* A single pinned filter panel owns counts, sorting and filters. */
.shop-filters .results-toolbar{position:static!important;top:auto!important;z-index:auto;display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding:3px 5px 10px;min-height:0;background:transparent}
.shop-filters .results-toolbar p{flex:0 0 100%;font-size:11px;white-space:normal;margin:0;line-height:1.5}
.shop-filters .results-toolbar label{margin:0;gap:4px}
.shop-filters .store-info{margin-left:auto}
#search-panel>.panel-summary{display:none!important}
#search-panel>.panel-summary::after{display:none!important;content:none!important}
.shop-layout.filters-collapsed .shop-filters{display:none!important}
.shop-layout.filters-collapsed{grid-template-columns:minmax(0,1fr)!important}
.context-row .context-search-link{font-size:16px;line-height:1.5}
.context-row .filter-toggle-icon{width:19px;height:19px}
.shop-results{scroll-margin-top:calc(var(--store-header-height,135px) + 10px)}
@media(min-width:701px){
 .shop-layout{grid-template-columns:minmax(0,1fr) 245px;gap:24px}
 .shop-filters{grid-column:2;grid-row:1;align-self:start;position:sticky;top:calc(var(--store-header-height,135px) + 10px)}
 .shop-results{grid-column:1;grid-row:1}
 .filters-collapsed .shop-results{grid-column:1}
}
@media(max-width:700px){
 .shop-filters{grid-column:1;grid-row:1}.shop-results{grid-column:1;grid-row:2}
 .filters-collapsed .shop-results{grid-row:1}
 .shop-filters .results-toolbar{gap:6px;margin-bottom:8px;padding-bottom:7px}
 .shop-filters .results-toolbar p{flex:1 1 auto}
 .context-row .context-search-link{font-size:14px}
}
/* Base desktop card width on the expanded-panel layout, even when collapsed. */
@media(min-width:701px){
 .shop-page{container-type:inline-size}
 .card-grid{--card-width:calc((100cqw - 245px - 24px - 48px)/4);grid-template-columns:repeat(auto-fill,var(--card-width));justify-content:start}
}
@media(min-width:901px) and (max-width:1050px){.card-grid{--card-width:calc((100cqw - 245px - 24px - 32px)/3)}}
@media(min-width:701px) and (max-width:900px){.card-grid{--card-width:calc((100cqw - 245px - 24px - 16px)/2)}}
/* Tap a card image to reveal its printing details. */
button.product-artwork{display:block;width:100%;padding:0;border:0;background:#101419;cursor:pointer;color:var(--text);font:inherit;text-align:center;flex-shrink:0}
.product-artwork.is-revealed .product-image{filter:grayscale(.25) brightness(.7)}
.image-card-details{position:absolute;z-index:3;left:8px;right:8px;top:50%;transform:translateY(-50%);padding:10px 7px;border:1px solid #e9cf9150;border-radius:5px;background:#101419db;color:#fff;font-size:13px;line-height:1.5;pointer-events:none}
.image-card-details[hidden]{display:none!important}
button.product-artwork:focus-visible{outline:2px solid var(--gold);outline-offset:-3px}
/* Keep every detail while shortening the information area below the image. */
.product .product-info{padding:8px 9px;gap:0}
.product .product-info h3{font-size:14px;line-height:1.3;margin:0 0 5px}
.product .product-finish-row{margin:0 0 6px;gap:5px;line-height:1.3}
.product-purchase-row{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-top:auto;min-width:0}
.product-purchase-row .product-condition{flex:1;min-width:0;margin:0;padding:0;font-size:12px;line-height:1.3;overflow-wrap:anywhere}
.product-purchase-row .add-card{flex:0 0 auto;min-height:32px;padding:5px 8px;font-size:12px;line-height:1.3;white-space:nowrap;border-radius:4px}
@media(max-width:700px){.product .product-info{padding:7px}.product .product-info h3{font-size:13px}.product-purchase-row{gap:5px}.product-purchase-row .product-condition{font-size:11px}.product-purchase-row .add-card{font-size:11px;padding-inline:6px}}
/* Mobile: one stable, edge-to-edge sticky filter surface. */
@media(max-width:700px){
 .shop-page{padding-top:0}
 .shop-layout{display:block;min-height:calc(100svh - var(--store-header-height,135px))}
 .shop-filters{position:sticky;top:calc(var(--store-header-height,135px) - 1px);width:calc(100% + 32px);margin:0 -16px 12px;padding:6px 16px 8px!important;max-height:calc(100svh - var(--store-header-height,135px));background:var(--bg);background-clip:border-box;border-top:1px solid var(--bg);border-bottom:1px solid var(--border);z-index:60;overflow-y:auto;overscroll-behavior:contain}
 .shop-filters #search-panel,.shop-filters .results-toolbar,.shop-filters .filter-fields{background:var(--bg)}
 .shop-results{min-height:calc(100svh - var(--store-header-height,135px))}
 .filters-collapsed .shop-filters{margin-bottom:0}
}
/* Simple photo-and-description catalogue for Boosters and Other. */
.catalogue-gallery{position:relative;aspect-ratio:1;background:var(--bg);border-bottom:1px solid var(--border)}
.catalogue-gallery>a{display:block;width:100%;height:100%}
.catalogue-product .product-image{width:100%;height:100%;aspect-ratio:1;object-fit:contain;padding:8px;border-radius:0}
.catalogue-placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:12px;color:var(--muted)}
.catalogue-placeholder[hidden]{display:none}
.catalogue-gallery-controls{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:10px;background:#101419ed;border:1px solid var(--border);border-radius:5px;padding:2px 5px}
.catalogue-gallery-controls button{border:0;background:transparent;color:var(--gold);font:22px/1 system-ui;min-width:30px;min-height:30px;cursor:pointer}
.catalogue-photo-count{font-size:11px;white-space:nowrap}
.catalogue-product .product-quantity{font-size:12px;color:var(--gold)}
.catalogue-summary,.catalogue-description p{font-size:12px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);margin:9px 0}
.catalogue-description{font-size:12px;margin-bottom:10px}
.catalogue-description summary{cursor:pointer;color:var(--gold)}
.catalogue-price{display:flex;flex-direction:column;gap:3px;margin-top:auto;padding-top:12px}
.catalogue-price strong{font-size:16px;color:var(--gold)}
.catalogue-price>span{font-size:11px;color:var(--muted)}

.catalogue-gallery>a[hidden]{display:none}

.purchase-options{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 8px;margin:3px 0 6px;font:11px/1.3 system-ui}.purchase-options label{display:flex;align-items:center;gap:5px}.shop-page .purchase-options input[type=number]{width:48px;min-height:26px;padding:2px 4px;font-size:12px}.shop-page .purchase-options input[type=checkbox]{width:13px;height:13px;min-height:0;margin:0}.purchase-protection{color:var(--muted)}

/* Language stays visible over foil effects and printing details. */
.card-language-banner{position:absolute;z-index:4;left:0;right:0;bottom:21%;padding:6px 4px;background:rgba(0,0,0,.68);color:#fff;font:700 12px/1.3 system-ui,sans-serif;text-align:center;pointer-events:none}
@media(max-width:700px){.card-language-banner{font-size:11px;padding-block:5px}.shop-filters{max-height:calc(100svh - var(--store-header-height,135px) - var(--site-footer-height,28px))}}

.deck-search-state{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 10px;margin:0 0 12px;border:1px solid #e9cf9140;border-radius:4px;font:11px/1.4 system-ui,sans-serif;color:var(--gold)}
.deck-search-state[hidden]{display:none}
.deck-search-state button{flex-shrink:0;padding:3px 7px;border:1px solid #ffffff35;border-radius:3px;background:transparent;color:var(--text);font:11px/1.4 system-ui,sans-serif;cursor:pointer}

/* Fantasy palette trial for the shop's surfaces and controls. */
.shop-page .product{background:linear-gradient(165deg,#86efac12,#14191f 65%);border-color:#6a625a90;box-shadow:0 5px 16px #00000035}
.shop-page .product-artwork,.shop-page .catalogue-gallery{background:#10151c}
.shop-page .product-info{background:linear-gradient(150deg,#1c2728,#14191f)}
.shop-page .product-finish{color:#f3dcc4}
.shop-page .product-quantity{color:#86efac}
.shop-page .product-condition,.shop-page .catalogue-summary{color:#c7cbd1}
.shop-page .add-card{background:#22382b;border-color:#86efac70;color:#f3f4f6}
.shop-page .add-card:hover:not(:disabled){background:#304b36;border-color:#86efac}
.shop-page .shop-filters{background:#211b18;border-color:#9a542870}
.shop-page #search-panel,.shop-page .shop-filters .results-toolbar,.shop-page .shop-filters .filter-fields{background:transparent}
.shop-page .filter-fields select,.shop-page #sort,.shop-page .purchase-options input[type=number]{background:#d6d2cc;color:#1a1a1a;border-color:#6a625a;color-scheme:light}
.shop-page input[type=checkbox]{accent-color:#e6b14a}
.shop-page .reset,.deck-search-state button{background:#3a241c;color:#f3dcc4;border-color:#9a5428}
.deck-search-state{background:#60a5fa12;border-color:#60a5fa65;color:#b7d7ff}
.store-categories button,.store-categories a{color:#d6d2cc}
.store-categories button[aria-pressed=true],.store-categories a[aria-current]{color:#f3dcc4;border-bottom-color:#e6b14a}
.context-row .context-search-link{color:#e6b14a}
.card-language-banner{background:#2c1913d9;color:#fff}
.image-card-details{background:#14191fed;border-color:#9a542880;color:#f3f4f6}
@media(max-width:700px){.shop-page .shop-filters{background:#211b18;border-bottom-color:#9a5428}}

/* Visible while catalogue data is being fetched, including with filters collapsed. */
.store-loading{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--rr-amber,#e6b14a);font-size:13px;text-align:center}
.store-loading[hidden],.pagination[hidden]{display:none}
.store-loading-spinner{width:32px;height:32px;border:3px solid #e6b14a30;border-top-color:var(--rr-amber,#e6b14a);border-right-color:var(--rr-amber,#e6b14a);border-radius:50%;animation:store-loading-turn .85s linear infinite}
@keyframes store-loading-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.store-loading-spinner{animation:none}}

/* Keep description margins inside their aligned catalogue row. */
.catalogue-copy{display:flow-root}

.product-foil.product-surge{background-image:url('/img/is-surge.webp')}

/* Compact catalogue information links and on-page photo/description dialogs. */
.catalogue-gallery>.catalogue-image-open{display:block;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.catalogue-gallery>.catalogue-image-open[hidden]{display:none}
.catalogue-more-info{display:inline;padding:0;margin:8px 0;border:0;background:transparent;color:var(--gold);text-decoration:underline;text-underline-offset:2px;font:12px/1.5 system-ui;cursor:pointer}
.catalogue-popup{width:min(540px,calc(100% - 24px));max-height:90dvh;padding:16px;border:1px solid #9a5428;border-radius:7px;background:#14191f;color:#f3f4f6;font:13px/1.5 system-ui;overflow:auto}
.catalogue-popup::backdrop{background:#000c}
.catalogue-popup h2{margin:0 34px 12px 0;font:600 16px/1.4 system-ui}
.catalogue-popup-close{position:absolute;top:8px;right:8px;border:1px solid #9a5428;background:#3a241c;color:#f3dcc4;border-radius:4px;padding:2px 8px;font:20px/1.2 system-ui;cursor:pointer}
.catalogue-popup-description{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.catalogue-lightbox{width:min(820px,calc(100% - 24px))}
.catalogue-lightbox-image{display:block;width:100%;height:auto;max-height:65dvh;object-fit:contain}
.catalogue-lightbox-caption{text-align:center;margin:8px 0;font-size:11px;color:var(--muted)}
.catalogue-lightbox-controls{display:flex;justify-content:center;gap:12px}
.catalogue-lightbox-controls button{padding:5px 12px;border:1px solid #9a5428;background:#3a241c;color:#f3dcc4;border-radius:4px;font:12px system-ui;cursor:pointer}

/* Image-only lightbox: no visible dialog panel or title. */
.catalogue-popup.catalogue-lightbox{width:fit-content;max-width:calc(100vw - 24px);max-height:94dvh;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}
.catalogue-lightbox h2,.catalogue-lightbox .catalogue-lightbox-caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.catalogue-lightbox .catalogue-lightbox-image{width:auto;max-width:calc(100vw - 24px);height:auto;max-height:84dvh;object-fit:contain}
.catalogue-lightbox .catalogue-popup-close{top:6px;right:6px;background:#0009;border:0;color:white;z-index:1}
.catalogue-lightbox .catalogue-lightbox-controls{margin-top:6px}
.catalogue-lightbox .catalogue-lightbox-controls button{background:#0009;border:0;color:white}

.catalogue-more-info{display:inline-flex;align-items:center;gap:5px}
.catalogue-more-info img{display:block;width:14px;height:14px;object-fit:contain}

.catalogue-lightbox .catalogue-popup-close{display:none}

/* Scale the complete desktop grid, including card text and purchase controls. */
@media(min-width:701px){
 .card-grid{zoom:.75}
}
@media(min-width:1400px){
 .card-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
 .shop-layout:not(.filters-collapsed) .card-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
}

/* Match the desktop filters to the compact card controls. */
@media(min-width:701px){
 .shop-layout:not(.filters-collapsed){grid-template-columns:minmax(0,1fr) 200px;gap:16px}
 .shop-filters .results-toolbar{flex-wrap:wrap;gap:5px;min-height:0;padding:4px 0;margin-bottom:8px}
 .shop-filters .results-toolbar p{flex-basis:100%;font-size:10px}
 .shop-filters .results-toolbar select{min-height:24px;font-size:10px;max-width:120px;padding:2px 4px}
 .shop-filters .results-toolbar label,.shop-filters .store-info{font-size:10px}
 .shop-filters .filter-fields{gap:8px;padding:2px}
 .shop-filters .filter-fields select{font-size:11px;min-height:28px;padding:4px 6px}
 .shop-filters .reset{font-size:10px;padding:4px 7px;min-height:25px}
}

/* Centre the card columns within the available results area. */
.card-grid{justify-content:center}

/* Match the space above the first card row to the gap between rows. */
.card-grid{padding-top:24px}

/* Open filters over the right edge without changing card positions or widths. */
@media(min-width:701px){
 .shop-layout,.shop-layout:not(.filters-collapsed){grid-template-columns:minmax(0,1fr);gap:0}
 .shop-layout .shop-results{grid-column:1;grid-row:1}
 .shop-layout .shop-filters{grid-column:1;grid-row:1;justify-self:end;align-self:start;position:sticky;top:calc(var(--store-header-height,135px) + 18px);z-index:65;width:240px;height:calc(100dvh - var(--store-header-height,135px) - var(--site-footer-height,32px) - 36px);max-height:none;margin-top:18px;margin-right:0;padding:10px!important;overflow-y:auto;border:1px solid var(--border);border-radius:6px;background:var(--panel);box-shadow:0 8px 24px #0005}
}
@media(min-width:1400px){
 .shop-layout:not(.filters-collapsed) .card-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
}
@media(max-width:700px){
 .shop-filters .filter-fields #language{grid-column:auto;min-height:30px;padding:4px 5px;font-size:12px}
}

/* Align the filter panel bottom with the first card row, retaining internal scrolling. */
@media(min-width:701px){
 .shop-layout .shop-filters{height:var(--first-card-row-height,auto);max-height:calc(100dvh - var(--store-header-height,135px) - var(--site-footer-height,32px) - 36px)}
}
