/* ══════════════════════════════════════════════════
   Durand's Designs — Gear Pages Shared Styles
   Gold theme variant
   ══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:     #C9A84C;
  --gold-lt:  #E8C97A;
  --gold-dim: rgba(201,168,76,0.15);
  --navy:     #0D1526;
  --dark:     #080C14;
  --mid:      #111827;
  --card:     rgba(255,255,255,0.04);
  --border:   rgba(201,168,76,0.2);
  --text:     #C8C2B8;
  --text-lt:  #EAE6E0;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── VIDEO BACKGROUND ── */
.video-bg-container {
  position: relative;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 0;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.video-bg-container::before,
.video-bg-container::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
  pointer-events: none;
}

.video-bg-container::before {
  top: 0;
  background: linear-gradient(to bottom, var(--dark) 0%, transparent 100%);
}

.video-bg-container::after {
  bottom: 0;
  background: linear-gradient(to top, var(--dark) 0%, transparent 100%);
}

.video-bg-container > *:not(.video-bg):not(.video-overlay) {
  position: relative;
  z-index: 2;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-lt);
  text-decoration: none;
}

nav a {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
  margin-left: 28px;
  transition: color 0.2s;
}

nav a:hover { color: var(--gold); }

/* ── SECTIONS ── */
.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 80px 20px;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-lt);
  margin-bottom: 16px;
}

.section .lead {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 50px;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ── PRODUCT CARDS (gold theme) ── */
.product-card {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s;
}

.product-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.1);
}

.product-card .product-img {
  width: 100%;
  height: 180px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.product-card .product-img img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.product-card .product-info {
  padding: 20px;
}

.product-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-lt);
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 14px;
}

.product-card .product-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.product-card .product-link:hover {
  color: var(--gold-lt);
  text-decoration: underline;
}

/* ── VIDEO REVIEW ── */
.product-card .review-btn {
  display: none;
  margin-top: 10px;
  padding: 8px 16px;
  background: var(--gold-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-lt);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.product-card .review-btn:hover {
  background: rgba(201,168,76,0.2);
}

.product-card[data-review] .review-btn {
  display: inline-block;
}

.review-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.review-overlay.active { display: flex; }

.review-overlay .review-player {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}

.review-overlay .review-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.review-overlay .review-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ── CATEGORY CARDS ── */
.category-card {
  background: var(--card);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: all 0.25s;
}

.category-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.1);
}

.category-card .cat-img {
  width: 100%;
  height: 160px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.category-card .cat-img img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}

.category-card:hover .cat-img img { transform: scale(1.05); }

.category-card .cat-info { padding: 20px; }

.category-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-lt);
  margin-bottom: 6px;
}

.category-card .cat-count {
  font-size: 0.78rem;
  color: var(--text);
  margin-bottom: 12px;
}

.category-card .cat-browse {
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 500;
}

/* ── GEAR PAGE HEADER ── */
.gear-header {
  padding: 120px 20px 60px;
  text-align: center;
}

.gear-header .back-link {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.gear-header .back-link:hover { color: var(--gold); }

.gear-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-lt);
  margin-bottom: 12px;
}

.gear-header p {
  font-size: 1rem;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 40px 20px;
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.6;
  line-height: 1.8;
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  header { padding: 14px 20px; }
  nav a { margin-left: 16px; font-size: 0.75rem; }
  .video-bg { display: none; }
  .gear-header h1 { font-size: 1.8rem; }
  .gear-header { padding: 100px 20px 40px; }
}
