/* Shop page — product grid, collection filter (each card opens /shop/<slug>, css/pages/product.css) */

.shop{padding-block:44px 72px}

/* header + filter tabs */
.shop-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:22px}
.shop-head .eyebrow{line-height:normal}
.shop-head__title{margin-top:5px;line-height:normal}
.shop-tabs{gap:7px}
.shop-tabs .chip-btn{line-height:normal}
.shop-tabs .chip-btn.is-pressed{background:var(--lilac);color:#fff;border-color:transparent;box-shadow:var(--shadow-chip)}
.shop-tabs__all{cursor:pointer}

/* grid */
.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.shop-card{position:relative;scroll-margin-top:130px}
.shop-card[hidden]{display:none}
.shop-card:hover{transform:translateY(-2px);box-shadow:0 18px 30px -20px rgba(75,59,110,.55)}
.shop-card__media{height:250px}
/* "Card shape: Square" (shop.cardShape) — wins over the fixed heights below at every width */
.shop-grid.is-square .shop-card__media{height:auto!important;aspect-ratio:1 / 1}
.shop-card__body{padding:14px 16px 17px}
.shop-card__name{font-size:18px;line-height:normal}
.shop-card__open{
  all:unset;cursor:pointer;font:inherit;color:inherit;text-align:left;
}
/* the whole card links to the product page */
.shop-card__open::after{content:"";position:absolute;inset:0;z-index:1;border-radius:16px}
.shop-card__open:focus-visible{outline:none}
.shop-card__open:focus-visible::after{outline:2px solid var(--violet);outline-offset:-2px}
.shop-card__meta{margin-top:11px;flex-wrap:wrap}
.shop-card__meta .badge{line-height:normal}

/* favourite heart */
.shop-card__fav{
  position:absolute;top:3px;right:2px;z-index:2;width:40px;height:40px;padding:0;border:none;background:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;border-radius:50%;
}
.shop-heart{width:18px;height:18px;fill:transparent;stroke:#fff;stroke-width:1.9;stroke-linejoin:round;filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));transition:transform .15s ease,fill .15s ease}
.shop-card__fav:hover .shop-heart{transform:scale(1.12)}
.shop-card__fav[aria-pressed="true"] .shop-heart{fill:var(--blush);stroke:#fff}
.shop-card__fav[aria-pressed="true"].is-popped .shop-heart{animation:heart-pop .35s ease}
/* violet ring + white halo so keyboard focus shows on light and dark photos alike */
.shop-card__fav:focus-visible{outline:2px solid var(--violet);outline-offset:-4px;box-shadow:inset 0 0 0 6px rgba(255,255,255,.85)}
@keyframes heart-pop{0%{transform:scale(1)}45%{transform:scale(1.3)}100%{transform:scale(1)}}

/* colour dots */
.shop-dots{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}
.shop-dots i{width:13px;height:13px;border-radius:50%;box-shadow:inset 0 0 0 1px rgba(75,59,110,.14)}

.shop-empty{text-align:center;padding:48px 20px;background:var(--paper);border:1px dashed var(--lilac-line);border-radius:16px}
.shop-empty[hidden]{display:none}
.shop-note{margin:26px 2px 0}

/* editor-only helpers */
.ed-note.shop-ednote{justify-content:space-between;margin-bottom:22px}
.ed-note.shop-words{display:block;margin:28px 0 0;padding:14px 16px 16px}
.shop-words .shop-words__title{margin-bottom:12px}
.shop-words__list{margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px 22px}
.shop-words__list > div{min-width:0}
.shop-words__list dt{font:500 10px/1.4 var(--sans);letter-spacing:.12em;text-transform:uppercase;color:var(--stone)}
.shop-words__list dd{margin:3px 0 0;color:var(--plum-ink);overflow-wrap:anywhere}

/* ---------- responsive ---------- */
@media (max-width:1024px){
  .shop-card__media{height:230px}
}
@media (max-width:900px), (pointer:coarse){
  /* finger-sized filter chips on tablets and phones */
  .shop-tabs .chip-btn{min-height:40px;padding:9px 16px;display:inline-flex;align-items:center}
}
@media (max-width:900px){
  .shop-grid{grid-template-columns:repeat(2,1fr);gap:18px}
}
@media (max-width:760px){
  .shop{padding-block:32px 56px}
  .shop-head{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:18px}
}
@media (max-width:560px){
  .shop-grid{gap:12px}
  .shop-card__media{height:200px}
  .shop-card__body{padding:12px 12px 14px}
  .shop-card__name{font-size:16.5px}
  .shop-card__meta{margin-top:9px;gap:6px}
  .shop-card__fav{right:0}
}
@media (max-width:340px){
  .shop-grid{grid-template-columns:1fr}
}
