/* ===== Product detail page additions ===== */
.breadcrumb {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.breadcrumb-inner {
  display: flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.breadcrumb a:hover { color: var(--ember); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--ember); font-weight: 700; }

.product-page { background: var(--bg); padding: 48px 0 80px; }

.product-title-bar {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.product-title-bar h1 {
  font-family: 'Anton', sans-serif;
  font-size: 44px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.product-title-bar .sub {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
.product-title-bar .nav-prev-next {
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.product-title-bar .nav-prev-next button {
  width: 36px; height: 36px; border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all 0.15s;
}
.product-title-bar .nav-prev-next button:hover { color: var(--ember); border-color: var(--ember); }

/* === Main product card === */
.product-main {
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  position: relative;
  margin-bottom: 32px;
}
.product-gallery {
  position: relative;
  padding: 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  background: radial-gradient(circle at 50% 60%, #fafbfd 0%, #f3f4f8 100%);
}
.product-gallery .badge {
  position: absolute; top: 24px; left: 24px;
}
.product-gallery .gallery-actions {
  position: absolute; top: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.product-gallery .gallery-actions button {
  width: 36px; height: 36px;
  background: #fff; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all 0.15s;
}
.product-gallery .gallery-actions button:hover { color: var(--ember); border-color: var(--ember); }
.gallery-main {
  flex: 1;
  display: grid; place-items: center;
  min-height: 460px;
}
.gallery-main img {
  max-width: 100%; max-height: 520px;
  width: auto; height: auto;
  object-fit: contain;
}
.gallery-main .fw-canvas { width: 65%; height: auto; }
.gallery-thumbs {
  display: flex; gap: 10px;
  padding-top: 16px;
  border-top: 1px dashed rgba(0,0,0,0.08);
  margin-top: 16px;
}
.gallery-thumb {
  width: 64px; height: 64px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.15s;
}
.gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: cover; }
.gallery-thumb svg { width: 70%; height: 70%; }
.gallery-thumb.active { border-color: var(--ember); }
.gallery-thumb:hover { border-color: var(--ember); }
.gallery-thumb-video {
  background: var(--night);
  color: #fff;
  grid-template-rows: 1fr auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
}
.gallery-thumb-video svg { width: 22px; height: 22px; }
.gallery-video {
  width: min(430px, 92%);
  min-height: 300px;
  background:
    radial-gradient(circle at 50% 40%, rgba(230,57,70,0.28), transparent 34%),
    radial-gradient(circle at 70% 64%, rgba(245,184,46,0.22), transparent 30%),
    linear-gradient(135deg, var(--night), #171d3d);
  color: #fff;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  position: relative;
  overflow: hidden;
}
.gallery-video::before {
  content: '';
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,0.1);
}
.video-play {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ember);
  box-shadow: 0 0 0 10px rgba(230,57,70,0.16), 0 18px 42px rgba(0,0,0,0.28);
  position: relative;
  z-index: 1;
}
.video-copy { position: relative; z-index: 1; text-align: center; }
.video-copy span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 7px;
}
.video-copy strong {
  font-family: 'Anton', sans-serif;
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.video-wave { display: flex; align-items: end; gap: 5px; height: 32px; position: relative; z-index: 1; }
.video-wave i {
  width: 5px;
  height: 12px;
  background: var(--gold);
  animation: video-wave 1s ease-in-out infinite;
}
.video-wave i:nth-child(2) { animation-delay: 0.12s; }
.video-wave i:nth-child(3) { animation-delay: 0.24s; }
.video-wave i:nth-child(4) { animation-delay: 0.36s; }
.video-wave i:nth-child(5) { animation-delay: 0.48s; }
@keyframes video-wave { 50% { height: 30px; background: var(--ember); } }

/* === Detail column === */
.product-detail { padding: 32px 36px; display: flex; flex-direction: column; }
.detail-tabs {
  display: flex; gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.detail-tab {
  padding: 8px 0 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.detail-tab.active { color: var(--ink); border-color: var(--ember); }

.detail-desc {
  font-size: 14px; color: var(--ink-2); line-height: 1.7;
  margin-bottom: 22px;
}
.detail-desc .more { color: var(--ember); font-weight: 700; display: inline; }

.detail-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  gap: 12px 32px;
  margin-bottom: 24px;
}
.spec-row { display: grid; grid-template-columns: 110px 1fr; font-size: 13px; align-items: baseline; }
.spec-row .k { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.spec-row .v { color: var(--ink); font-weight: 600; }
.spec-row .v.link { color: var(--ember); cursor: pointer; }

.spec-link {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember); font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 4px;
}

.detail-buy {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 18px 22px;
  gap: 16px;
  margin-bottom: 18px;
}
.detail-buy .k {
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.detail-buy .effects-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-buy .duration {
  font-family: 'Anton', sans-serif; font-size: 24px;
  color: var(--night);
  letter-spacing: 0.02em;
}
.detail-buy .duration small { font-size: 12px; color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-left: 4px; letter-spacing: 0.1em; }
.detail-buy .caliber {
  font-family: 'Anton', sans-serif; font-size: 24px;
  color: var(--ember);
  letter-spacing: 0.02em;
}

.detail-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.rating { display: flex; align-items: center; gap: 10px; }
.stars { display: flex; gap: 2px; color: var(--gold); }
.rating .label { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.detail-actions { display: flex; gap: 8px; align-items: center; }
.detail-actions form.cart { display: flex; gap: 10px; align-items: center; margin: 0; flex-wrap: wrap; }
.detail-actions .quantity input { width: 72px; height: 40px; border: 1px solid var(--line); padding: 0 8px; }
.detail-actions .single_add_to_cart_button {
  min-height: 40px;
  background: var(--ember);
  color: #fff;
  padding: 0 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
.icon-btn {
  width: 40px; height: 40px;
  background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-2);
  transition: all 0.15s;
}
.icon-btn:hover { color: var(--ember); border-color: var(--ember); }

/* === Tabs section === */
.tabs-section {
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px 36px;
  margin-bottom: 48px;
}
.tabs-bar {
  display: flex; gap: 32px; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.tabs-bar .left { display: flex; gap: 32px; }
.tabs-bar .right a {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ember); font-weight: 700;
  padding-bottom: 14px;
}
.tab-pill {
  padding: 0 0 14px;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.tab-pill.active { color: var(--ink); border-color: var(--ember); }
.tab-pill .count { color: var(--muted); font-weight: 500; margin-left: 4px; }

.tab-body { color: var(--ink-2); line-height: 1.75; font-size: 14px; max-width: 920px; }
.tab-body[hidden] { display: none; }
.tab-body p { margin: 0 0 14px; }

.spec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
}
.spec-grid .row {
  display: grid; grid-template-columns: 200px 1fr;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.spec-grid .row .k { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.spec-grid .row .v { color: var(--ink); font-weight: 600; }
.spec-grid .row:nth-last-child(-n+2) { border-bottom: 0; }

/* Reviews */
.review-list { display: flex; flex-direction: column; gap: 22px; }
.review {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
}
.review-av {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--night);
  color: var(--gold);
  display: grid; place-items: center;
  font-family: 'Anton', sans-serif;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.review-body .head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.review-body .name { font-weight: 700; color: var(--ink); }
.review-body .date { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.review-body .title { font-family: 'Anton', sans-serif; font-size: 18px; text-transform: uppercase; letter-spacing: 0.02em; margin: 4px 0 8px; }
.review-body p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* Related */
.related-section { padding-bottom: 80px; }
.related-section .section-head h2 { font-size: 28px; }

@media (max-width: 900px) {
  .product-title-bar { align-items: flex-start; }
  .product-title-bar h1 { font-size: 34px; }
  .product-main { grid-template-columns: 1fr; }
  .product-gallery { border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery-main { min-height: 320px; }
  .detail-specs,
  .detail-buy,
  .spec-grid { grid-template-columns: 1fr; }
  .spec-grid .row:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
}
