/* ===== MERCHANDISE STORE ===== */

/* Hero */
.shop-hero { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem); text-align: center; }
.shop-hero__inner { position: relative; z-index: 2; max-width: 780px; margin-inline: auto; }
.shop-hero__title { font-size: clamp(3rem, 10vw, 7rem); text-transform: uppercase; line-height: .9; margin: 1rem 0 1.2rem; }
.shop-hero .lead { margin-inline: auto; }
.shop-hero__meta { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Coverflow ---------- */
.featured__head { max-width: 640px; margin-bottom: 2.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cover { position: relative; }
.cover__viewport { position: relative; height: 460px; perspective: 1600px; overflow: hidden; }
.cover__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.cover__item {
  position: absolute; top: 50%; left: 50%; width: 300px; height: 400px;
  margin: -200px 0 0 -150px;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
  will-change: transform; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
}
.cover__card {
  width: 100%; height: 100%; border-radius: var(--r-lg);
  border: 1px solid var(--line-strong); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  display: flex; flex-direction: column; padding: 1rem; box-shadow: var(--sh-2);
}
.cover__art { flex: 1; display: grid; place-items: center; border-radius: var(--r); }
.cover__art svg { width: 80%; filter: drop-shadow(0 18px 26px rgba(0,0,0,.4)); }
.cover__label { text-align: center; padding-top: .8rem; }
.cover__label h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.cover__label span { font-family: var(--mono); color: var(--flame-2); font-size: .85rem; }
.cover__item.is-active .cover__card { border-color: var(--flame-2); box-shadow: var(--sh-flame); }
.cover__hint { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); white-space: nowrap; opacity: 0; transition: opacity .3s; }
.cover__item.is-active .cover__hint { opacity: 1; }

.cover__nav {
  position: absolute; top: 42%; z-index: 5; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
  font-size: 1.6rem; display: grid; place-items: center; transition: .25s var(--ease);
}
.cover__nav:hover { background: var(--grad-flame); color: #1b0f08; border-color: transparent; transform: scale(1.08); }
.cover__prev { left: max(16px, 4vw); } .cover__next { right: max(16px, 4vw); }
.cover__dots { display: flex; gap: .5rem; justify-content: center; margin-top: 2.4rem; }
.cover__dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: .25s; }
.cover__dots button.is-active { background: var(--grad-flame); width: 26px; border-radius: 5px; }
@media (max-width: 520px) { .cover__viewport { height: 400px; } .cover__nav { width: 44px; height: 44px; } }

/* ---------- Store bar / filters ---------- */
.store__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.store__filters { display: flex; gap: .5rem; flex-wrap: wrap; }
.filter-btn {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted);
  transition: .22s var(--ease);
}
.filter-btn:hover { color: var(--text); border-color: var(--flame-2); }
.filter-btn.is-active { background: var(--grad-flame); color: #1b0f08; border-color: transparent; font-weight: 700; }
.store__sort .select { padding: .55rem 2.4rem .55rem 1rem; font-size: .85rem; }

/* ---------- Product grid ---------- */
.store__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 1.4rem; }
.tb-product {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.tb-product:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--sh-2); }

/* 360 spin stage */
.tb-stage { position: relative; height: 300px; perspective: 1000px; display: grid; place-items: center; overflow: hidden; }
.tb-turn { position: relative; width: 220px; height: 240px; transform-style: preserve-3d; transition: transform .05s linear; cursor: grab; touch-action: pan-y; }
.tb-turn.grabbing { cursor: grabbing; }
.tb-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.tb-face svg { width: 100%; height: 100%; }
.tb-face--back { transform: rotateY(180deg); }
.tb-platform {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 180px; height: 26px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.5), transparent 70%);
  filter: blur(2px); pointer-events: none;
}
.tb-360 {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em;
  background: rgba(0,0,0,.4); border: 1px solid var(--line-strong);
  color: var(--text); padding: .3rem .55rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .35rem; backdrop-filter: blur(6px);
}
.tb-360::before { content: "🔁"; }
.tb-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad-flame); color: #1b0f08; padding: .3rem .6rem; border-radius: 999px; font-weight: 700;
}
.tb-quick {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.4);
  border: 1px solid var(--line-strong); color: var(--text); backdrop-filter: blur(6px);
  display: grid; place-items: center; opacity: 0; transform: translateY(-6px); transition: .25s var(--ease);
}
.tb-product:hover .tb-quick { opacity: 1; transform: none; }
.tb-quick:hover { background: var(--grad-flame); color: #1b0f08; border-color: transparent; }
.tb-drag-hint { position: absolute; bottom: 14px; right: 14px; z-index: 3; font-family: var(--mono); font-size: .62rem; color: var(--faint); letter-spacing: .1em; pointer-events: none; }

/* meta */
.tb-meta { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.tb-meta__row { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.tb-meta h3 { font-family: var(--display); font-weight: 700; font-size: 1.15rem; line-height: 1.05; }
.tb-price { font-family: var(--mono); font-weight: 700; color: var(--flame-2); white-space: nowrap; }
.tb-cat { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tb-sizes { display: flex; gap: .35rem; margin: .5rem 0 .3rem; flex-wrap: wrap; }
.tb-size {
  min-width: 34px; height: 34px; padding: 0 .4rem; border-radius: 9px;
  border: 1px solid var(--line-strong); color: var(--muted); font-size: .82rem; font-weight: 500;
  display: grid; place-items: center; transition: .2s;
}
.tb-size:hover { border-color: var(--flame-2); color: var(--text); }
.tb-size.is-active { background: var(--text); color: var(--ink); border-color: var(--text); font-weight: 700; }
.tb-add { margin-top: .5rem; width: 100%; }

/* ---------- Care band ---------- */
.care__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.care__grid > div { text-align: left; }
.care__ico { font-size: 1.8rem; display: block; margin-bottom: .8rem; }
.care__grid h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-bottom: .4rem; }
.care__grid p { color: #5b4d55; font-size: .95rem; }
@media (max-width: 720px) { .care__grid { grid-template-columns: 1fr; gap: 1.6rem; } }

/* ---------- Cart FAB + drawer ---------- */
.cart-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 400;
  width: 60px; height: 60px; border-radius: 50%; font-size: 1.4rem;
  background: var(--grad-flame); color: #1b0f08; box-shadow: var(--sh-flame);
  display: grid; place-items: center; transition: transform .25s var(--ease);
}
.cart-fab:hover { transform: scale(1.08) translateY(-2px); }
.cart-fab__count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px;
  background: var(--violet); color: #fff; border-radius: 999px; font-family: var(--mono);
  font-size: .72rem; font-weight: 700; display: none; place-items: center; border: 2px solid var(--bg);
}
.cart-scrim { position: fixed; inset: 0; background: rgba(8,5,10,.6); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; z-index: 500; transition: .3s; }
.cart-scrim.open { opacity: 1; visibility: visible; }
.cart {
  position: fixed; top: 0; right: 0; z-index: 600; height: 100%; width: min(420px, 92vw);
  background: var(--bg-2); border-left: 1px solid var(--line-strong); box-shadow: var(--sh-2);
  transform: translateX(100%); transition: transform .4s var(--ease);
  display: flex; flex-direction: column;
}
.cart.open { transform: none; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-family: var(--display); font-weight: 700; font-size: 1.3rem; }
.cart__close { font-size: 1.8rem; line-height: 1; color: var(--muted); width: 40px; height: 40px; border-radius: 10px; }
.cart__close:hover { color: var(--text); background: var(--surface); }
.cart__items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.cart__empty { color: var(--muted); text-align: center; margin-top: 3rem; font-size: .95rem; }
.cart__empty a { color: var(--flame-2); }
.ci { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center; }
.ci__art { width: 64px; height: 64px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.ci__art svg { width: 88%; }
.ci__name { font-weight: 600; font-size: .95rem; }
.ci__sub { font-family: var(--mono); font-size: .72rem; color: var(--faint); margin-top: .15rem; }
.ci__qty { display: inline-flex; align-items: center; gap: .5rem; margin-top: .4rem; }
.ci__qty button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 1rem; line-height: 1; }
.ci__qty button:hover { color: var(--text); border-color: var(--flame-2); }
.ci__qty span { font-family: var(--mono); font-size: .85rem; min-width: 18px; text-align: center; }
.ci__price { font-family: var(--mono); font-weight: 700; color: var(--flame-2); font-size: .9rem; text-align: right; }
.ci__rm { display: block; margin-top: .4rem; font-size: .7rem; color: var(--faint); text-decoration: underline; }
.ci__rm:hover { color: var(--pink); cursor: pointer; }
.cart__foot { padding: 1.3rem 1.5rem 1.6rem; border-top: 1px solid var(--line); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .3rem; }
.cart__total b { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.cart__ship { font-size: .78rem; color: var(--faint); margin-bottom: 1rem; }
.cart__checkout { width: 100%; }

/* ---------- Quick view ---------- */
.qv { position: fixed; inset: 0; z-index: 700; display: none; }
.qv.open { display: block; }
.qv__scrim { position: absolute; inset: 0; background: rgba(8,5,10,.72); backdrop-filter: blur(6px); }
.qv__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(920px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); display: grid; grid-template-columns: 1fr 1fr;
  animation: qvIn .4s var(--ease);
}
@keyframes qvIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.qv__close { position: absolute; top: 14px; right: 16px; z-index: 3; font-size: 1.8rem; color: var(--muted); width: 42px; height: 42px; border-radius: 12px; }
.qv__close:hover { color: var(--text); background: var(--surface); }
.qv__viewer { border-right: 1px solid var(--line); padding: 2rem; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, var(--surface), var(--bg-2)); }
.qv__info { padding: 2.4rem 2rem; }
.qv__info .tb-cat { margin-bottom: .5rem; }
.qv__info h2 { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.qv__info .qv-price { font-family: var(--mono); font-weight: 700; font-size: 1.2rem; color: var(--flame-2); margin: .6rem 0 1rem; }
.qv__info p.qv-desc { color: var(--muted); font-size: .95rem; margin-bottom: 1.4rem; }
.qv__info .field-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; display: block; }
.qv__viewer .tb-stage { height: 340px; width: 100%; }
.qv__viewer .tb-turn { width: 260px; height: 300px; }
.qv-actions { display: flex; gap: .7rem; margin-top: 1.4rem; flex-wrap: wrap; }
@media (max-width: 720px) {
  .qv__panel { grid-template-columns: 1fr; }
  .qv__viewer { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Checkout (delivery details → Paystack) ---------- */
.co { position: fixed; inset: 0; z-index: 720; display: none; }
.co.open { display: block; }
.co__scrim { position: absolute; inset: 0; background: rgba(8,5,10,.72); backdrop-filter: blur(6px); }
.co__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(480px, 94vw); max-height: 92vh; overflow: auto;
  background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-xl);
  box-shadow: var(--sh-2); padding: 1.8rem; animation: qvIn .4s var(--ease);
}
.co__close { position: absolute; top: 12px; right: 14px; font-size: 1.8rem; color: var(--muted); width: 42px; height: 42px; border-radius: 12px; }
.co__close:hover { color: var(--text); background: var(--surface); }
.co__title { font-family: var(--display); font-weight: 800; font-size: 1.5rem; margin-bottom: 1rem; }

.co__summary { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; margin-bottom: 1.3rem; }
.co__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; padding: .25rem 0; }
.co__line span { color: var(--muted); }
.co__line b { font-family: var(--mono); font-weight: 700; white-space: nowrap; }
.co__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .6rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.co__total b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--flame-2); }

.co__field { margin-bottom: .9rem; }
.co__field label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.co__field .input { width: 100%; }
.co__field .input.is-bad { border-color: var(--pink); }
.co__note { min-height: 1em; font-size: .85rem; color: var(--pink); margin: .2rem 0 .8rem; }
.co__pay { width: 100%; }
.co__pay:disabled { opacity: .6; pointer-events: none; }
.co__secure { text-align: center; font-size: .74rem; color: var(--faint); margin-top: .8rem; }
