/* ============================================================
   STOREFRONT CSS — nav, catalog, product detail, buttons, 404
   ============================================================ */

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo:hover {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg);
}

.nav-cta {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--accent);
  padding: 0.5em 1.4em;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--fg);
}

/* Offset content below fixed nav */
body > section:first-of-type,
.hero,
.page-header,
.product-detail,
.not-found {
  padding-top: 64px;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  padding: 0.7em 2.2em;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  font-weight: 400;
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary.btn-large {
  font-size: 1.3rem;
  padding: 0.75em 2.5em;
  width: 100%;
  text-align: center;
}

.btn-ghost {
  display: inline-block;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  padding: 0.7em 2.2em;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  color: var(--fg);
  border-color: var(--fg-muted);
}

.btn-outline {
  display: inline-block;
  color: var(--accent);
  border: 1px solid var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.5em 1.4em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* === HERO ACTIONS === */
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* === PAGE HEADER (shop top) === */
.page-header {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.page-header-inner {
  max-width: 700px;
  margin: 0 auto;
}

.page-header .section-label {
  margin-bottom: 1.5rem;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* === CATALOG GRID === */
.catalog {
  padding: 4rem 2rem 6rem;
  background: var(--bg-section);
}

.catalog-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

/* === PRODUCT CARD === */
.product-card {
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  transition: background 0.3s;
}

.product-card:hover {
  background: var(--bg-card);
}

.product-card-image {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-card-image--utility  { background: linear-gradient(135deg, #1a1a0d 0%, #141408 100%); }
.product-card-image--truck    { background: linear-gradient(135deg, #0d1a1a 0%, #081414 100%); }
.product-card-image--discipline { background: linear-gradient(135deg, #1a0d1a 0%, #140814 100%); }
.product-card-image--fitness  { background: linear-gradient(135deg, #0d1a0d 0%, #081408 100%); }
.product-card-image--identity { background: linear-gradient(135deg, #1a0d0d 0%, #140808 100%); }

.product-card-icon {
  color: var(--accent);
  opacity: 0.6;
  transition: opacity 0.3s, transform 0.3s;
}

.product-card:hover .product-card-icon {
  opacity: 0.9;
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* === PRODUCT TAG === */
.product-tag {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.25em 0.8em;
  border: 1px solid;
}

.product-tag--utility    { color: #c4b43e; border-color: #c4b43e; }
.product-tag--truck      { color: #3ec4c4; border-color: #3ec4c4; }
.product-tag--discipline { color: #c43ec4; border-color: #c43ec4; }
.product-tag--fitness    { color: #3ec47a; border-color: #3ec47a; }
.product-tag--identity   { color: var(--accent); border-color: var(--accent); }

.product-card-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  color: var(--fg);
  font-weight: 400;
}

.product-card-tagline {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.5rem;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  color: var(--fg);
}

/* === PRODUCT DETAIL === */
.product-detail {
  min-height: 100vh;
  background: var(--bg-dark);
}

.product-detail-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Visual side */
.product-detail-visual {
  position: sticky;
  top: 96px;
}

.product-visual-box {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.product-visual-box--utility    { background: radial-gradient(ellipse at center, #2a2a0d 0%, #0d0d0d 70%); }
.product-visual-box--truck      { background: radial-gradient(ellipse at center, #0d2a2a 0%, #0d0d0d 70%); }
.product-visual-box--discipline { background: radial-gradient(ellipse at center, #2a0d2a 0%, #0d0d0d 70%); }
.product-visual-box--fitness    { background: radial-gradient(ellipse at center, #0d2a0d 0%, #0d0d0d 70%); }
.product-visual-box--identity   { background: radial-gradient(ellipse at center, #2a1a0d 0%, #0d0d0d 70%); }

.product-visual-tag {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.3em 0.8em;
}

.product-visual-icon {
  width: 140px;
  height: 140px;
  color: var(--accent);
  opacity: 0.5;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--fg);
}

/* Info side */
.product-detail-info {
  padding-top: 1rem;
}

.product-detail-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.05;
  margin: 0.75rem 0 1rem;
}

.product-detail-tagline {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
}

.product-detail-price {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.05em;
  color: var(--fg);
  display: block;
  margin-bottom: 0.25rem;
}

.price-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}

.product-order-box {
  margin-bottom: 2.5rem;
}

.order-note {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 0.75rem;
  text-align: center;
}

.product-description {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.product-description p {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.9;
}

.product-features {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.product-features h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  color: var(--fg);
}

.product-features ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.product-features li {
  font-size: 0.88rem;
  color: var(--fg-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.5;
}

.product-features li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-row {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
  align-items: baseline;
}

.spec-label {
  color: var(--fg-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  min-width: 100px;
  flex-shrink: 0;
}

.spec-value {
  color: var(--fg);
}

/* === 404 PAGE === */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-dark);
}

.not-found-inner {
  padding: 2rem;
}

.not-found h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--fg-muted);
  font-size: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .product-detail-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-detail-visual {
    position: static;
  }
}

@media (max-width: 700px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 13, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
  }

  .site-nav.open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
