.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,1.5vw,23px);align-items:stretch}
.shop-card{min-width:0;display:flex;flex-direction:column;background:var(--paper);border:1px solid #e6e6e6;border-radius:17px;transition:border-color .2s ease,box-shadow .2s ease}
.shop-card:focus-within{border-color:#999}
.shop-card .shop-media{margin:5px 5px 0;border-radius:12px;background:#f4f4f4;isolation:isolate;aspect-ratio:1.23}
.shop-card .shop-media>a{height:100%;display:block}
.shop-card .shop-media img{width:100%;height:100%;aspect-ratio:auto;object-fit:contain;mix-blend-mode:multiply;padding:10px;background:#fff;transition:transform .28s ease}
.shop-card .shop-body{display:flex;flex-direction:column;flex:1;padding:12px 12px 11px}
.shop-material{font-size:12px;font-weight:600;color:#5b5b5b;margin-bottom:4px}
.shop-name{font-size:clamp(14px,1.15vw,17px);letter-spacing:-.022em;line-height:1.2;font-weight:550;min-height:2.4em}
.shop-name a{display:block;border-radius:3px;overflow-wrap:anywhere}
.shop-price{margin-top:7px;display:flex;align-items:baseline;gap:4px;white-space:nowrap;line-height:1.1;font-variant-numeric:tabular-nums}
.shop-currency{font-size:12px;color:#575757;font-weight:600}
.shop-price strong{font-size:clamp(19px,2vw,25px);letter-spacing:-.05em;font-weight:650}
.shop-price-muted{color:var(--muted);font-size:13px;white-space:normal;min-height:1.55rem;align-items:center}
.shop-action{display:flex;justify-content:center;align-items:center;gap:6px;width:100%;min-height:44px;margin-top:auto;position:relative;top:0;border-radius:999px;padding:7px 9px;background:var(--graphite);color:#fff;font-size:13px;line-height:1.2;font-weight:600;text-align:center;transition:background .2s,color .2s}
.shop-price+.shop-action{margin-top:auto}
.shop-price{margin-bottom:10px}
.shop-action svg{flex:none;width:15px;height:15px}
.shop-action-quiet{background:#fff;color:var(--ink);border:1px solid #c7c7c7}
.shop-action.is-added{background:#dedede;color:#141414}
@media(hover:hover){.shop-card:hover{border-color:#bbb;box-shadow:0 8px 28px #0000000a}.shop-card .shop-media>a:hover img{transform:scale(1.04)}.shop-action:not(.is-added):hover{background:#363636}.shop-action-quiet:not(.is-added):hover{background:#f0f0f0}}
@media(min-width:1250px){.catalog-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:970px){.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:660px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.shop-card .shop-body{padding:10px 8px 8px}.shop-card .shop-media{margin:4px 4px 0;aspect-ratio:1.12}.shop-card .shop-media img{padding:5px}.shop-action{font-size:12px;padding-inline:6px;gap:4px}.shop-action svg{width:13px;height:13px}}
@media(prefers-reduced-motion:reduce){.shop-card,.shop-card .shop-media img,.shop-action{transition:none!important}}

/* Keep the primary action clear, with a quieter alternative in the same card. */
.shop-actions{margin-top:auto;display:grid;gap:4px}
.shop-actions .shop-action{margin-top:0}
.shop-actions .shop-action-quiet{background:transparent;border-color:#d9d9d9}
.shop-actions .shop-action-quiet.is-added{background:#eee;border-color:#ccc}
.shop-actions .shop-action-quiet:hover:not(.is-added){background:#f0f0f0}

/* Browse each piece without leaving its card. Buttons never sit inside the product links. */
.shop-card .catalog-card-gallery{position:relative;overflow:hidden}
.catalog-photos{
  position:absolute;inset:0;display:flex;overflow:auto hidden;scroll-snap-type:x mandatory;
  scrollbar-width:none;overscroll-behavior-x:contain;
}
.catalog-photos>a{display:block;flex:0 0 100%;height:100%;scroll-snap-align:start}
.catalog-photos>a:focus-visible{outline-offset:-3px}
.catalog-photo-arrow{
  position:absolute;z-index:1;top:50%;transform:translateY(-50%);
  width:44px;height:44px;display:grid;place-items:center;color:#222;border:0;background:none;cursor:pointer;
}
.catalog-photo-arrow::before{
  content:"";position:absolute;width:27px;height:27px;border-radius:50%;
  border:1px solid #20202018;background:#fffffff2;
}
.catalog-photo-arrow svg{position:relative;pointer-events:none}
.catalog-photo-arrow[data-dir="-1"]{left:0}
.catalog-photo-arrow[data-dir="1"]{right:0}
.catalog-photo-arrow[aria-disabled=true]{cursor:default}
.catalog-photo-arrow[aria-disabled=true] svg{opacity:.38}
.catalog-photo-arrow:is(:focus-visible,:hover)::before{border-color:#777}
.catalog-photo-count{
  position:absolute;bottom:5px;left:50%;transform:translateX(-50%);pointer-events:none;
  min-width:28px;text-align:center;padding:3px 6px;border-radius:999px;
  background:#fffffff2;color:#262626;font-size:.6875rem;font-weight:650;font-variant-numeric:tabular-nums;
}
