/* ===================================================================
   TrailGear Co. — main stylesheet
   =================================================================== */

:root {
  --brand-dark: #16241f;
  --brand-accent: #d97b3f;
  --brand-light: #f4f1ea;
  --text: #1c1c1c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'TrailSans', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--brand-light);
}

header.site-header {
  position: relative;
  padding: 1.25rem 2rem;
  background: var(--brand-dark);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header.site-header .logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav.main-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  background-image: url('../assets/hero-banner.webp');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.hero-content .cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 2rem;
  background: var(--brand-accent);
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
}

.about-page .hero {
  background-image: url('../assets/hero-banner-about-page.webp');
  min-height: 40vh;
}

section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.product-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.product-card .info {
  padding: 1rem;
}

.product-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.product-card .price {
  color: var(--brand-accent);
  font-weight: 700;
}

.divider-band {
  height: 120px;
  background: var(--brand-dark);
}

.reviews-section {
  background: white;
}

.review-list {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid #e5e0d5;
  border-radius: 6px;
}

.review-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee5d8;
}

.review-item:last-child {
  border-bottom: none;
}

.review-item .stars {
  color: var(--brand-accent);
}

#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

footer {
  background: var(--brand-dark);
  color: #cfcabf;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

#perf-hud {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.8);
  color: #7CFC00;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 9999;
  line-height: 1.6;
  min-width: 190px;
}

#perf-hud .warn {
  color: #ff5c5c;
}

.quickview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.quickview-modal {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
}

.quickview-modal img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.quickview-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}