/* ============================================================
   D STYLEZ ART — cart + shop filters (2026-11-27)
   Shared by /shop/ and /books/.
   ============================================================ */

/* ---------- add-to-cart buttons on product cards ---------- */
.cart-add {
  font-family: inherit;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.cart-add.in-cart {
  background: linear-gradient(135deg, #3a1d6e, #1d0e38);
  color: #ffd34d;
  box-shadow: none;
}
.buy-direct {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #d9cdf2;
  text-decoration: underline;
  margin-top: 0.1rem;
}
.buy-direct:hover { color: #ffd34d; }

/* ---------- header cart link ---------- */
.cart-link {
  color: #ffd34d !important;
  font-weight: 800;
  white-space: nowrap;
}

/* The sticky bar is fixed at the bottom — reserve room for it at the end
   of the page so it never covers the video caption or card bottoms.
   Toggled from cart.js render() via body.has-cart-bar. */
body.has-cart-bar { padding-bottom: 5rem; }

/* ---------- sticky cart bar (only when items are in the cart) ---------- */
#cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 0.7rem 5.5rem 0.7rem 1rem; /* right pad clears the sound toggle */
  background: rgba(12, 6, 20, 0.96);
  border-top: 2px solid #d4af37;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.95rem;
}
#cart-bar.visible { display: flex; }
#cart-bar .btn { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
@media (max-width: 560px) {
  #cart-bar { flex-wrap: wrap; gap: 0.5rem; padding-bottom: 0.6rem; }
  #cart-bar .cart-bar-summary { width: 100%; text-align: center; }
  body.has-cart-bar { padding-bottom: 7.5rem; }
}

/* ---------- slide-up cart panel ---------- */
#cart-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9500;
  max-width: 34rem;
  margin: 0 auto;
  background: #150a24;
  border: 2px solid #d4af37;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.7);
  padding: 1rem 1.2rem calc(1.2rem + 56px); /* clears the cart bar + sound toggle */
  transform: translateY(110%);
  transition: transform 0.25s ease;
  color: #fff;
}
#cart-panel.open { transform: translateY(0); }
.cart-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.cart-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}
.cart-items { display: grid; gap: 0.55rem; margin-bottom: 0.9rem; }
.cart-empty { color: #bdbdbd; margin: 0.4rem 0; }
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.7rem;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 0.55rem;
}
.cart-item-name { font-weight: 700; }
.cart-item-price { color: #ffd34d; font-weight: 800; white-space: nowrap; }
.cart-remove {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 50%;
  width: 1.7rem;
  height: 1.7rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.cart-remove:hover { border-color: #ff2fb3; color: #ff2fb3; }
.cart-panel-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1.05rem;
}
.cart-panel-foot .btn { padding: 0.7rem 1.2rem; font-size: 0.85rem; }

/* ---------- shop filter tabs (Easy Shop style, folded into /shop/) ---------- */
.cat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  max-width: 52rem;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
@media (min-width: 640px) { .cat-row { grid-template-columns: repeat(6, 1fr); } }
.cat-btn {
  background: #141414;
  border: 2px solid rgba(212, 175, 55, 0.4);
  border-radius: 14px;
  padding: 0.8rem 0.3rem;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cat-btn:hover { border-color: #d4af37; }
.cat-btn.active {
  border-color: #d4af37;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.45);
  background: #1b1a10;
}
.card.hidden { display: none; }

/* ---------- shop top: alive preview + free card ---------- */
.shop-top-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .shop-top-grid { grid-template-columns: 300px 1fr; align-items: stretch; }
}
.shop-top-grid .video-shell {
  position: relative;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}
.shop-top-grid .video-shell video {
  display: block;
  max-height: 420px;
  margin: 0 auto;
  cursor: pointer;
}
/* Tap-to-play affordance: a gold play button over the poster/frame.
   Hidden while the video is playing (JS toggles .playing on the shell),
   back on pause. Mobile webviews often block autoplay, so the tap is
   the way in — the poster underneath means it never looks black. */
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(12, 6, 20, 0.72);
  border: 2px solid #d4af37;
  color: #ffd34d;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0 0.35rem; /* optical center for the triangle */
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.45);
}
.video-shell.playing .video-play { display: none; }
.video-caption {
  text-align: center;
  color: #fff;
  font-weight: 800;
  padding: 0.7rem 0.5rem;
  margin: 0;
}
.free-card {
  border-color: #d4af37;
  box-shadow: 0 0 24px rgba(212, 175, 55, 0.3);
}
.free-card .card-body { justify-content: center; }

/* ---------- social proof strip ---------- */
.proof-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 720px) { .proof-list { grid-template-columns: 1fr 1fr; } }
.proof-list li {
  background: #141414;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  color: #d9cdf2;
  font-size: 0.95rem;
}
.proof-list li strong { color: #ffd34d; }
