/* ============================================================================
   Key for Change — Shop page components  (.k4c-shop)

   Mike's shop design (telegram, #1000993) wired into the live theme. Only the
   INTERNAL shop components are taken from the design — the hero band reuses the
   theme's existing .kfc-band[data-hero="listing"] (inner-hero.css), and the site
   nav + footer are the global ones. Fonts + palette are the brand tokens
   (Montserrat/Lato, --k4c-purple/#2A153F/lilac/yellow), NOT the design file's
   Bricolage/Newsreader/Instrument or its cream paper — per Mike: "don't change
   the fonts or the branding colour, just the design of the shop components".

   Everything here is scoped under .k4c-shop (or the shop's own full-width bands)
   so the design's generic names (card/grid/feature/price/trust) can't collide
   with the rest of the site. Loaded only on template: shop (see base.html.twig).
   ========================================================================== */

.k4c-shop {
  --kfc-deep: #2A153F;                 /* deepest brand purple — dark bands     */
  --kfc-lilac: #C9A6F2;                /* accent on dark                        */
  --kfc-on-soft: #D9C6F0;              /* softer copy on dark                   */
  --kfc-on-dim: #B9A6D4;               /* muted copy on dark                    */
  --shop-cover: var(--k4c-purple-50);  /* product cover surface (brand wash)    */
  --shop-spine: linear-gradient(160deg, #9A7CC0 0%, #5E3A90 60%, #2A153F 100%);
}

/* ---------- shared primitives -------------------------------------------- */
.k4c-shop .shop-price {
  font-family: var(--k4c-font-heading);
  font-weight: var(--k4c-fw-extrabold);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--k4c-purple);
}
.k4c-shop .shop-price s { font-family: var(--k4c-font-body); font-weight: var(--k4c-fw-regular); font-size: var(--k4c-fs-sm); color: var(--k4c-grey-400); margin-left: 6px; letter-spacing: 0; }
.k4c-shop .shop-price small { font-family: var(--k4c-font-body); font-weight: var(--k4c-fw-medium); font-size: 12px; letter-spacing: 0; margin-left: 6px; }

.k4c-shop .shop-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--k4c-radius-pill); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: var(--k4c-fw-bold); }
.k4c-shop .shop-badge--best   { background: var(--k4c-purple); color: #fff; }
.k4c-shop .shop-badge--save   { background: var(--k4c-yellow); color: #5A4300; }
.k4c-shop .shop-badge--signed { background: var(--k4c-purple-100); color: var(--k4c-purple); }

.k4c-shop .shop-type { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--k4c-grey-400); font-weight: var(--k4c-fw-semibold); }

/* A solid white button for use on the dark feature / session bands (design's
   .btn-white). Brand yellow primary + white-outline onpurple already exist. */
.k4c-shop .k4c-btn--white { background: #fff; color: var(--kfc-deep); border-color: #fff; }
.k4c-shop .k4c-btn--white:hover { background: var(--k4c-purple-50); color: var(--kfc-deep); }
.k4c-shop .shop-card .k4c-btn,
.k4c-shop .shop-fcard .k4c-btn { min-height: 40px; padding: 9px 18px; font-size: var(--k4c-fs-sm); }

/* ---------- section heading cluster -------------------------------------- */
.k4c-shop .shop-sh { margin-bottom: var(--k4c-space-5); }
.k4c-shop .shop-sh h2 { margin: 0; font-family: var(--k4c-font-heading); font-weight: var(--k4c-fw-extrabold); font-size: var(--k4c-fs-2xl); line-height: 1.05; letter-spacing: -0.02em; color: var(--k4c-purple); }
.k4c-shop .shop-sessions .shop-sh h2 { color: #fff; }
.k4c-shop .shop-sh p { margin: 8px 0 0; font-size: var(--k4c-fs-md); line-height: 1.5; color: var(--k4c-grey-600); }
.k4c-shop .shop-sessions .shop-sh p { color: var(--kfc-on-soft); }

/* ---------- ① best sellers (dark feature cards) -------------------------- */
.k4c-shop .shop-sec { padding-top: var(--k4c-section-pad); }
.k4c-shop .shop-feature { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--k4c-space-4); }
.k4c-shop .shop-fcard { display: grid; grid-template-columns: 220px 1fr; border-radius: var(--k4c-radius-lg); overflow: hidden; background: var(--kfc-deep); color: #fff; position: relative; transition: transform .25s var(--k4c-ease), box-shadow .25s var(--k4c-ease); }
.k4c-shop .shop-fcard:hover { transform: translateY(-3px); box-shadow: var(--k4c-shadow-lg); }
.k4c-shop .shop-fcard::before { content: ""; position: absolute; right: -140px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(129,86,181,0.5) 0%, rgba(42,21,63,0) 70%); pointer-events: none; }
.k4c-shop .shop-fcard .cover { position: relative; background: var(--shop-spine); display: flex; align-items: center; justify-content: center; padding: 28px; }
.k4c-shop .shop-fcard .cover .art { width: 150px; aspect-ratio: 16 / 10; border-radius: 10px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); box-shadow: 0 20px 40px rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); text-align: center; padding: 8px; }
.k4c-shop .shop-fcard .cover img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--k4c-radius); }
.k4c-shop .shop-fcard .body { position: relative; padding: 26px 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.k4c-shop .shop-fcard .badges { display: flex; gap: 6px; align-items: center; }
.k4c-shop .shop-fcard .label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: var(--k4c-fw-semibold); color: var(--kfc-on-dim); }
.k4c-shop .shop-fcard h3 { margin: 0; font-family: var(--k4c-font-heading); font-size: var(--k4c-fs-xl); line-height: 1.05; font-weight: var(--k4c-fw-extrabold); letter-spacing: -0.02em; color: #fff; }
.k4c-shop .shop-fcard p { margin: 0; font-size: var(--k4c-fs-sm); line-height: 1.5; color: var(--kfc-on-soft); }
.k4c-shop .shop-fcard .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.k4c-shop .shop-fcard .shop-price { font-size: var(--k4c-fs-xl); color: #fff; }
.k4c-shop .shop-fcard .shop-price small { color: var(--kfc-on-dim); }

/* ---------- ② catalogue grid (white product cards) ----------------------- */
.k4c-shop .shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--k4c-space-4); }
.k4c-shop .shop-card { display: flex; flex-direction: column; border-radius: var(--k4c-radius-lg); background: #fff; border: 1px solid var(--k4c-grey-200); overflow: hidden; transition: transform .25s var(--k4c-ease), box-shadow .25s var(--k4c-ease), border-color .2s; }
.k4c-shop .shop-card:hover { transform: translateY(-3px); box-shadow: var(--k4c-shadow-lg); border-color: var(--k4c-purple-light); }
.k4c-shop .shop-card[hidden] { display: none; }
.k4c-shop .shop-card .cover { position: relative; background: var(--shop-cover); display: flex; align-items: center; justify-content: center; padding: 24px; height: 220px; }
.k4c-shop .shop-card .cover img { width: 100%; height: 100%; object-fit: contain; }
.k4c-shop .shop-card .badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; z-index: 1; }
.k4c-shop .shop-card .book { width: 120px; aspect-ratio: 2 / 3; border-radius: 4px 10px 10px 4px; background: var(--shop-spine); box-shadow: -6px 10px 24px rgba(36,26,51,0.25); display: flex; align-items: flex-end; padding: 10px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.k4c-shop .shop-card .course { width: 170px; aspect-ratio: 16 / 10; border-radius: 12px; background: linear-gradient(160deg, #6B4A96 0%, #3A2160 100%); box-shadow: 0 14px 30px rgba(36,26,51,0.25); display: flex; align-items: center; justify-content: center; }
.k4c-shop .shop-card .course .play { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.k4c-shop .shop-card .course .play svg { width: 14px; height: 14px; margin-left: 2px; }
.k4c-shop .shop-card .stack { position: relative; width: 140px; height: 160px; }
.k4c-shop .shop-card .stack i { position: absolute; width: 96px; height: 140px; border-radius: 4px 8px 8px 4px; background: var(--shop-spine); box-shadow: -4px 8px 20px rgba(36,26,51,0.25); }
.k4c-shop .shop-card .stack i:nth-child(1) { left: 0; top: 20px; transform: rotate(-6deg); }
.k4c-shop .shop-card .stack i:nth-child(2) { left: 22px; top: 10px; }
.k4c-shop .shop-card .stack i:nth-child(3) { left: 44px; top: 0; transform: rotate(6deg); }
.k4c-shop .shop-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.k4c-shop .shop-card h3 { margin: 0; font-family: var(--k4c-font-heading); font-size: var(--k4c-fs-lg); line-height: 1.12; font-weight: var(--k4c-fw-bold); letter-spacing: -0.01em; color: var(--k4c-purple); }
.k4c-shop .shop-card p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--k4c-grey-600); }
.k4c-shop .shop-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.k4c-shop .shop-card .shop-price { font-size: var(--k4c-fs-lg); }

/* ---------- ③ work with Keeley (dark sessions band) ---------------------- */
.k4c-shop .shop-sessions { margin-top: var(--k4c-space-9); background: var(--kfc-deep); color: #F4EEFA; position: relative; overflow: hidden; }
.k4c-shop .shop-sessions::before { content: ""; position: absolute; left: -200px; bottom: -280px; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(circle, rgba(129,86,181,0.45) 0%, rgba(42,21,63,0) 70%); pointer-events: none; }
.k4c-shop .shop-sessions > .k4c-container { position: relative; padding-block: var(--k4c-section-pad); }
.k4c-shop .shop-sgrid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--k4c-space-4); }
.k4c-shop .shop-scard { border-radius: var(--k4c-radius-lg); padding: 28px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); display: flex; flex-direction: column; gap: 12px; }
.k4c-shop .shop-scard .tag { font-family: var(--k4c-font-heading); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: var(--k4c-fw-semibold); color: var(--kfc-lilac); }
.k4c-shop .shop-scard h3 { margin: 0; font-family: var(--k4c-font-heading); font-size: var(--k4c-fs-xl); line-height: 1.05; font-weight: var(--k4c-fw-extrabold); letter-spacing: -0.02em; color: #fff; }
.k4c-shop .shop-scard > p { margin: 0; font-size: var(--k4c-fs-base); line-height: 1.5; color: var(--kfc-on-soft); }
.k4c-shop .shop-scard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--kfc-on-soft); }
.k4c-shop .shop-scard li { display: flex; gap: 8px; }
.k4c-shop .shop-scard li svg { width: 14px; height: 14px; color: var(--kfc-lilac); flex-shrink: 0; margin-top: 2px; }
.k4c-shop .shop-scard .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.k4c-shop .shop-scard .shop-price { font-size: var(--k4c-fs-2xl); color: #fff; }
.k4c-shop .shop-scard .shop-price small { color: var(--kfc-on-dim); }

/* ---------- ④ trust strip ------------------------------------------------ */
.k4c-shop .shop-trust > .k4c-container { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--k4c-space-4); padding-block: var(--k4c-space-7) var(--k4c-space-9); }
.k4c-shop .shop-t { display: flex; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--k4c-grey-600); }
.k4c-shop .shop-t svg { width: 20px; height: 20px; color: var(--k4c-purple); flex-shrink: 0; }
.k4c-shop .shop-t b { display: block; color: var(--k4c-grey); font-weight: var(--k4c-fw-semibold); margin-bottom: 2px; }

/* ---------- responsive --------------------------------------------------- */
@media (max-width: 1100px) {
  .k4c-shop .shop-feature { grid-template-columns: 1fr; }
  .k4c-shop .shop-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .k4c-shop .shop-sgrid { grid-template-columns: 1fr; }
  .k4c-shop .shop-trust > .k4c-container { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .k4c-shop .shop-fcard { grid-template-columns: 1fr; }
  .k4c-shop .shop-fcard .cover { height: 180px; }
  .k4c-shop .shop-grid,
  .k4c-shop .shop-trust > .k4c-container { grid-template-columns: 1fr; }
  .k4c-shop .shop-card .row,
  .k4c-shop .shop-fcard .row,
  .k4c-shop .shop-scard .row { flex-direction: column; align-items: stretch; }
  .k4c-shop .shop-card .k4c-btn,
  .k4c-shop .shop-fcard .k4c-btn,
  .k4c-shop .shop-scard .k4c-btn { width: 100%; }
}

/* ---------- #1001609 real product covers ------------------------------------
   Keeley: "not sure the layout is doing my products justice". The designed
   placeholder covers (CSS spines / play chips) are replaced with the real
   product shots (each GHL product page's og:image, self-hosted in
   images/products/ — same source as the /library/ shelf, #1001406). Square
   mock-ups fill the cover edge to edge; the portrait journal sits on a mat. */
.k4c-shop .shop-card .cover { padding: 0; height: auto; aspect-ratio: 1 / 1; background: #F7F5F8; overflow: hidden; }
.k4c-shop .shop-card .cover .shop-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.k4c-shop .shop-card .cover .shop-img--contain { object-fit: contain; padding: 18px; }
.k4c-shop .shop-card:hover .cover .shop-img { transform: scale(1.04); }
.k4c-shop .shop-card .cover .badges { position: absolute; z-index: 1; }
.k4c-shop .shop-fcard .cover { padding: 0; background: #F7F5F8; overflow: hidden; }
.k4c-shop .shop-fcard .cover .shop-img { border-radius: 0; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .k4c-shop .shop-card:hover .cover .shop-img { transform: none; } }
