.catalogue-head{padding-block:calc(var(--header) + 3rem) 3rem}
.catalogue-head p{margin-top:1rem;color:var(--muted)}
.catalogue-content{padding-block:2rem 4rem;min-height:50vh}
.filters{display:grid;grid-template-columns:1fr 1fr 1.3fr;gap:1rem}
.filters label{display:grid;gap:.34rem;font-weight:650;min-width:0}
.filters select,.filters input{min-width:0;width:100%;min-height:45px;border:1px solid var(--line-light);background:#fff;color:var(--ink);padding:.55rem}
.results-note{color:var(--slate);margin-block:1rem}
.catalogue-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gap)}
.catalog-card{background:var(--soft);border:1px solid var(--line-light);display:grid;grid-template-rows:auto 1fr}
.catalog-card .card-art{aspect-ratio:4/3;position:relative;overflow:hidden;background:#050505}
.card-art img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:transform 510ms var(--ease)}
.catalog-card:hover .card-art img,.catalog-card:focus-within .card-art img{transform:scale(1.025)}
.catalog-card .info{padding:1rem;display:grid;grid-template-rows:auto auto 1fr;gap:.4rem}
.catalog-card .series{font-size:.82rem;color:var(--slate)}
.catalog-card button{margin-top:.45rem}
#more{margin:1.45rem auto 0}
[hidden]{display:none!important}
#product-dialog{width:min(calc(100% - 1.5rem),57rem)}
.product-detail-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:1.3rem}
#detail-image{width:100%;aspect-ratio:4/3;object-fit:contain;background:#050505}
#detail-price{margin-top:.55rem;font-weight:650}
#product-order .button{margin-top:1rem}
#product-message,#payment-status{margin-block:.7rem;color:var(--muted)}
#cart-lines{margin:0;padding:0;list-style:none}
#cart-lines li{display:grid;grid-template-columns:56px 1fr auto;gap:.7rem;align-items:center;border-bottom:1px solid var(--line-dark);padding:.65rem 0}
#cart-lines img{width:56px;aspect-ratio:1;object-fit:contain;background:#050505}
#cart-lines input{max-width:5.5rem;padding:.45rem}
#cart-lines strong{display:block}
#cart-total{margin-top:.9rem}
#checkout:disabled{cursor:not-allowed;opacity:.5}
#cart-count{font-size:.85rem;min-width:1.25rem}
.catalogue-motion .catalog-card{animation:catalog-enter 500ms var(--ease) both}
@keyframes catalog-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:570px){.filters{grid-template-columns:1fr 1fr}.filters label:last-child{grid-column:1/-1}.catalogue-grid,.product-detail-grid{grid-template-columns:1fr}}
.catalog-card h2{font-size:clamp(1.13rem,2vw,1.4rem)}

.field-hint{font-size:.85rem;color:var(--muted);text-align:right;margin-top:.3rem}
#cart-lines li{grid-template-columns:56px minmax(0,1fr) auto}
#cart-lines p{overflow-wrap:anywhere}
#cart-lines .text-link{display:block;margin-top:.4rem;text-align:left}
#cart-lines .control{min-width:44px;min-height:44px}
@media(max-width:570px){
  #product-dialog,#cart-dialog{padding:1rem}
  #product-dialog .dialog-head h2,#cart-dialog .dialog-head h2{font-size:1.45rem}
  .product-detail-grid{gap:.9rem}
  #detail-image{max-height:27svh}
  #product-order .button{width:100%}
}

/* Keep enough room for the complete board and planchette in the bag. */
#cart-lines li{grid-template-columns:88px minmax(0,1fr) auto}
#cart-lines img{display:block;width:88px;height:66px;aspect-ratio:4/3}
@media(max-width:360px){
  #cart-lines li{grid-template-columns:72px minmax(0,1fr) auto;gap:.5rem}
  #cart-lines img{width:72px;height:54px}
}
@media(min-width:1600px){.catalogue-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:2200px){.catalogue-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
