/* Shop cards ("Pick your poison"), used on the shop page and in "Try another" on product pages,
   plus the shop page's own header. Card markup: js/components/shop-card.js. */

/* ===== cards: pack colour; on hover (or on their own on touch screens, .boxed) the khakhra spins away and the box
   it comes in pops up, while the name swells behind ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.scard { --c: #da5521; background: var(--c); color: var(--cream); border-radius: 10px; overflow: hidden; display: grid; grid-template-rows: 280px auto; }
.scard .ph { position: relative; display: grid; place-items: center; overflow: hidden; text-decoration: none; color: inherit; }
.scard .bgname { position: absolute; font-family: var(--display); text-transform: uppercase; font-size: 6.2rem; line-height: .85; color: rgba(0,0,0,.16); text-align: center; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.scard .ph img { position: relative; width: 78%; height: 240px; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(0,0,0,.35));
  transition: transform .6s cubic-bezier(.2,.9,.25,1.3), opacity .4s ease; }
/* the box frame (tools/box/render.js) has its shadow baked in, with clear space round the box: the lid is 2/3 of
   the frame's height, so the frame is larger than the photo area and only empty corners are cropped */
.scard .ph img.bx { position: absolute; left: 50%; top: 50%; width: 335px; height: 335px; translate: -50% -50%; filter: none;
  opacity: 0; transform: scale(.75); }
.scard:is(:hover, :focus-within, .boxed) .ph img.ck { opacity: 0; transform: scale(.8) rotate(-25deg); }
.scard:is(:hover, :focus-within, .boxed) .ph img.bx { opacity: 1; transform: none; }
.scard:is(:hover, :focus-within, .boxed) .bgname { transform: scale(1.15); }
.scard .bd { padding: 16px 18px 20px; display: grid; gap: 8px; }
.scard .nm { font-family: var(--display); font-weight: 400; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .5px; line-height: 1; color: inherit; text-decoration: none; }
.scard .nm:hover { text-decoration: underline; text-underline-offset: 4px; }
.scard .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.scard .pr { font-family: var(--display); font-size: 1.5rem; }
.scard .pr small { font-family: var(--body); font-size: .76rem; opacity: .85; }
.scard .chip { justify-self: start; background: rgba(0,0,0,.22); border-radius: 999px; padding: 2px 10px; font-size: .78rem; font-weight: 800; }
.scard .btn { padding: 10px 20px; font-size: .88rem; }
@media (prefers-reduced-motion: reduce) { .scard .ph img, .scard .bgname { transition: none; } }

/* ===== shop page header ===== */
.shop { background: var(--paper); }
.shop .wrap { padding-block: 48px 80px; display: grid; gap: 28px; }
.shop .kick { color: var(--muted); }
.shop h1 { margin: 6px 0 0; font-size: clamp(3rem, 11vw, 6.5rem); color: var(--green); line-height: .9; }
.shop .sub { margin: 10px 0 0; max-width: 46ch; font-size: 1.05rem; }
