/* ===== Arena Fan Shop — components.css : hero, products, categories, etc ===== */

/* ---------- HOME HERO (compact promo banner) ---------- */
.hero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}
.hero-banner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
  min-height: 440px;
  background: var(--navy);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-copy {
  padding: clamp(28px, 4vw, 52px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; z-index: 2; color: #fff;
}
.hero-copy h1 { color: #fff; }
.hero-copy .hero-lead { color: #ccd6f5; margin: 16px 0 24px; font-size: 1.08rem; max-width: 42ch; }
.hero-copy .eyebrow { color: var(--yellow); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(11,31,77,.2) 30%, transparent 60%);
}
.hero-tag {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  background: var(--red); color: #fff;
  font-family: var(--font-head); font-weight: 800;
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-size: .9rem; box-shadow: var(--shadow);
}

/* Countdown */
.countdown {
  display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap;
}
.cd-cell {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 10px 14px;
  text-align: center;
  min-width: 64px;
}
.cd-cell b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem; font-weight: 800; color: #fff;
  line-height: 1;
}
.cd-cell span { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: #b9c4ec; }

/* ---------- USP row ---------- */
.usp-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(20px, 3vw, 30px);
}
.usp {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; gap: 14px; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.usp svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--blue); }
.usp h4 { font-size: .98rem; margin-bottom: 2px; }
.usp p { font-size: .82rem; }

/* ---------- Category tiles ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.cat-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  display: flex; align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  background: var(--navy);
  isolation: isolate;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-tile .cat-art {
  position: absolute; inset: 0; z-index: -1;
  display: grid; place-items: center;
}
.cat-tile .cat-art img { width: 100%; height: 100%; object-fit: cover; }
.cat-tile .cat-art svg { width: 54%; height: 54%; opacity: .9; }
.cat-tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(11,31,77,.86) 100%);
}
.cat-tile .cat-label {
  padding: 16px;
  font-family: var(--font-head);
  font-weight: 800; font-size: 1.02rem;
}
.cat-tile .cat-label small { display: block; font-weight: 600; font-size: .76rem; opacity: .8; }
.cat-c1 { background: linear-gradient(135deg, var(--blue), #0f3fc4); }
.cat-c2 { background: linear-gradient(135deg, var(--red), #b30022); }
.cat-c3 { background: linear-gradient(135deg, var(--navy-700), var(--navy)); }
.cat-c4 { background: linear-gradient(135deg, #ff8a00, var(--red)); }
.cat-c5 { background: linear-gradient(135deg, var(--green), #007a4d); }
.cat-c6 { background: linear-gradient(135deg, #7a3cff, var(--blue)); }

/* ---------- Product grid / cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.product-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

.card-media {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--blue-soft);
  overflow: hidden;
}
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-media img { transform: scale(1.06); }
.card-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.card-fav {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, background .15s;
}
.card-fav:hover { transform: scale(1.1); background: #fff; }
.card-fav svg { width: 19px; height: 19px; color: var(--red); }

/* CSS placeholder art */
.media-art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
}
.media-art svg { width: 52%; height: 52%; opacity: .85; }
.art-blue { background: linear-gradient(135deg, var(--blue-soft), #d4e1ff); color: var(--blue); }
.art-red { background: linear-gradient(135deg, var(--red-soft), #ffd2da); color: var(--red); }
.art-yellow { background: linear-gradient(135deg, var(--yellow-soft), #ffe98a); color: #b88a00; }

.card-body {
  padding: 16px 16px 18px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.card-cat { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.card-title {
  font-family: var(--font-head); font-weight: 700;
  font-size: 1.02rem; color: var(--navy); line-height: 1.25;
}
.card-title a:hover { color: var(--blue); }

.stars { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.stars .star-row { color: var(--yellow); letter-spacing: 1px; }

.card-price-row {
  margin-top: auto;
  display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap;
}
.price {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.32rem; color: var(--navy);
}
.price-old { font-size: .95rem; color: var(--muted); text-decoration: line-through; }
.price-save { font-size: .76rem; font-weight: 800; color: var(--green); }

.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { flex: 1; }

.add-cart {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.add-cart svg { width: 18px; height: 18px; }

/* ---------- Big promo split ---------- */
.split-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(120deg, var(--navy), var(--navy-700));
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
}
.split-promo .sp-text { padding: clamp(26px, 4vw, 48px); }
.split-promo h2 { color: #fff; }
.split-promo p { color: #c6cfee; margin: 14px 0 22px; }
.split-promo .eyebrow { color: var(--yellow); }
.split-promo .sp-media { align-self: stretch; }
.split-promo .sp-media img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }

/* ---------- Reviews ---------- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.review .star-row { color: var(--yellow); font-size: 1rem; margin-bottom: 10px; }
.review p { color: var(--ink); }
.review .rv-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.review .rv-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-head); font-weight: 800;
  background: var(--blue);
}
.review .rv-name { font-weight: 800; color: var(--navy); font-size: .95rem; }
.review .rv-meta { font-size: .8rem; color: var(--muted); }

/* ---------- Trust band ---------- */
.trust-band {
  background: var(--yellow);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 34px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  text-align: center;
}
.trust-band .tb { color: var(--navy); }
.trust-band .tb b { font-family: var(--font-head); font-size: 2rem; display: block; }
.trust-band .tb span { font-size: .88rem; font-weight: 600; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translate(-50%, 30px);
  background: var(--navy); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  padding: 13px 22px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); z-index: 300;
  opacity: 0; pointer-events: none; transition: .3s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .usp-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-banner { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 220px; order: -1; }
  .hero-media::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(11,31,77,.15) 60%); }
  .split-promo { grid-template-columns: 1fr; }
  .split-promo .sp-media { order: -1; }
  .review-grid { grid-template-columns: 1fr; }
  .trust-band { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .product-grid, .product-grid.cols-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .card-body { padding: 12px; }
  .card-actions { flex-direction: column; }
}
@media (max-width: 380px) {
  .usp-row { grid-template-columns: 1fr; }
}
