#crb-merch-store [hidden], #crb-merch-store[hidden], #crb-merch-placeholder[hidden] { display: none !important; }
#crb-merch-store { --crb-shop-ink:#171713; --crb-shop-paper:#f7f5ee; --crb-shop-line:#d8d3c8; color:var(--crb-shop-ink); margin-bottom:clamp(2rem,6vw,5rem); }
.crb-merch-toolbar { display:flex; align-items:flex-start; justify-content:flex-end; gap:1rem; margin:0 0 1.25rem; }
.crb-merch-toolbar p { margin:0 auto 0 0; }
#crb-merch-cart { width:min(100%, 34rem); border:1px solid var(--crb-shop-line); background:var(--crb-shop-paper); }
#crb-merch-cart:not([open]) { width:auto; }
#crb-merch-cart summary { cursor:pointer; padding:.65rem 1rem; font-weight:700; }
.crb-cart-content { padding:0 1rem 1rem; }
.crb-cart-content > p { margin:.65rem 0; }
#crb-merch-cart-items { list-style:none; margin:0; padding:0; }
.crb-cart-row { border-top:1px solid var(--crb-shop-line); padding:.7rem 0; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:.6rem; }
.crb-cart-row strong,.crb-cart-row span { display:block; }
.crb-cart-row label { display:flex; align-items:center; gap:.25rem; }
.crb-cart-row input { width:3.5rem; padding:.35rem; color:inherit; background:white; border:1px solid var(--crb-shop-line); font:inherit; }
.crb-merch-text { appearance:none; background:none; border:0; color:inherit; padding:0; font:inherit; font-size:.88rem; text-decoration:underline; text-underline-offset:.18em; cursor:pointer; }
#crb-merch-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
#crb-merch-grid[data-columns="3"] { grid-template-columns:repeat(3,minmax(0,1fr)); }
#crb-merch-grid[data-columns="4"] { grid-template-columns:repeat(4,minmax(0,1fr)); }
.crb-merch-card { overflow:hidden; border:1px solid var(--crb-shop-line); background:var(--crb-shop-paper); }
.crb-merch-featured { grid-column:1 / -1; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); }
.crb-merch-card:only-child:not(.crb-merch-featured) { max-width:34rem; }
.crb-merch-media { background:#e8e4da; }
.crb-merch-media > img { display:block; width:100%; aspect-ratio:1; object-fit:contain; }
#crb-merch-grid[data-crop="cover"] .crb-merch-media > img { object-fit:cover; }
.crb-merch-thumbs { display:flex; flex-wrap:wrap; gap:.35rem; padding:.55rem; }
.crb-merch-thumbs button { padding:0; width:2.7rem; height:2.7rem; overflow:hidden; border:1px solid transparent; background:#fff; cursor:pointer; }
.crb-merch-thumbs button[aria-pressed="true"] { border-color:var(--crb-shop-ink); }
.crb-merch-thumbs img { display:block; width:100%; height:100%; object-fit:contain; }
.crb-merch-body { padding:clamp(1rem,3vw,2.3rem); display:grid; align-content:center; gap:.8rem; }
.crb-merch-body h2 { font-size:clamp(1.12rem,2.7vw,2rem); line-height:1.12; margin:0; }
.crb-merch-body p { margin:0; }
.crb-merch-price { font-weight:750; font-size:1.13rem; }
.crb-merch-buy { display:flex; align-items:end; flex-wrap:wrap; gap:.55rem; }
.crb-merch-buy label { display:grid; gap:.22rem; }
.crb-merch-buy select { min-height:2.85rem; max-width:100%; padding:.35rem .8rem; border:1px solid var(--crb-shop-line); color:inherit; background:white; font:inherit; }
#crb-merch-status { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:850px) {
  #crb-merch-grid[data-columns] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .crb-merch-toolbar { flex-wrap:wrap; }
}
@media (max-width:600px) {
  #crb-merch-grid[data-columns], .crb-merch-featured { grid-template-columns:minmax(0,1fr); }
  .crb-merch-toolbar { justify-content:flex-start; }
  #crb-merch-cart[open] { width:100%; }
}
