/* ===== Storefront Styles — Pennate ===== */
:root {
  --bg: #0f0f0f;
  --bg-alt: #141414;
  --fg: #f4f1ea;
  --fg-muted: #8a8578;
  --accent: #b8963e;
  --accent-dim: rgba(184,150,62,0.12);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 4px;
  --transition: 0.2s ease;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* Layout */
.store-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Store Header */
.store-header {
  border-bottom: 1px solid rgba(244,241,234,0.08);
  padding: 28px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.store-header .brand { display: flex; align-items: center; gap: 10px; }
.store-header .brand-mark { font-size: 18px; color: var(--accent); }
.store-header .brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: 0.02em; }
.store-header .breadcrumb { color: var(--fg-muted); font-size: 13px; }
.store-header .breadcrumb span { color: var(--fg); }

/* Overline label */
.overline-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Catalog Hero */
.catalog-hero {
  padding: 80px 0 60px;
  text-align: center;
}
.catalog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.catalog-hero h1 em { font-style: italic; color: var(--accent); }
.catalog-hero p { color: var(--fg-muted); font-size: 15px; max-width: 480px; margin: 0 auto; }

/* Filter Bar */
.filter-bar {
  display: flex;
  gap: 12px;
  padding: 20px 0 40px;
  border-bottom: 1px solid rgba(244,241,234,0.06);
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid rgba(244,241,234,0.12);
  color: var(--fg-muted);
  padding: 8px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 48px 0 80px;
}

/* Product Card */
.product-card {
  background: var(--bg-alt);
  border: 1px solid rgba(244,241,234,0.06);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: rgba(184,150,62,0.3);
  transform: translateY(-2px);
}
.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.product-tagline-sm { color: var(--fg-muted); font-size: 12px; font-style: italic; font-family: var(--font-display); margin-bottom: 6px; }
.product-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin-bottom: 16px; line-height: 1.2; }
.product-desc { color: var(--fg-muted); font-size: 13px; flex: 1; margin-bottom: 20px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-price { font-family: var(--font-display); font-size: 24px; color: var(--fg); }
.product-cta {
  background: var(--accent);
  color: #0f0f0f;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: opacity var(--transition);
}
.product-cta:hover { opacity: 0.85; }

/* ===== Product Detail Page ===== */
.pdp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 13px;
  padding: 28px 0 0;
  transition: color var(--transition);
}
.back-link:hover { color: var(--fg); }

/* PDP Layout */
.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 40px 0 80px;
  align-items: start;
}

/* Image Gallery */
.pdp-gallery { display: flex; flex-direction: column; gap: 12px; }
.pdp-main-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-alt);
}
.pdp-main-img img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pdp-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition);
}
.pdp-thumb.active, .pdp-thumb:hover { border-color: var(--accent); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* PDP Info */
.pdp-info { padding-top: 8px; }
.pdp-category { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pdp-tagline-sm { color: var(--fg-muted); font-size: 13px; font-style: italic; font-family: var(--font-display); margin-bottom: 10px; }
.pdp-title { font-family: var(--font-display); font-size: 42px; font-weight: 400; line-height: 1.15; margin-bottom: 8px; }
.pdp-price { font-family: var(--font-display); font-size: 32px; margin-bottom: 28px; }
.pdp-desc { color: var(--fg-muted); font-size: 15px; line-height: 1.7; margin-bottom: 32px; }

.pdp-financing { font-size: 13px; color: var(--fg-muted); margin-top: 12px; margin-bottom: 36px; }
.pdp-financing a { color: var(--accent); text-decoration: none; }
.pdp-financing a:hover { text-decoration: underline; }

.pdp-actions { display: flex; gap: 12px; margin-bottom: 40px; }
.btn-primary {
  background: var(--accent);
  color: #0f0f0f;
  border: none;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: opacity var(--transition);
  flex: 1;
}
.btn-primary:hover { opacity: 0.85; }
.btn-secondary {
  background: transparent;
  border: 1px solid rgba(244,241,234,0.2);
  color: var(--fg);
  padding: 16px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  transition: border-color var(--transition);
}
.btn-secondary:hover { border-color: var(--fg); }
.btn-buy {
  background: var(--accent);
  color: #0f0f0f;
  border: none;
}

/* Trust Bar */
.trust-bar { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(244,241,234,0.06); }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-muted); }
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* Specs Accordion — per-section toggle, only one open at a time */
.specs-accordion { margin-bottom: 48px; }
.spec-item { margin-bottom: 6px; }
.spec-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(244,241,234,0.1);
  color: var(--fg);
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color var(--transition);
}
.spec-btn:hover { border-color: rgba(184,150,62,0.3); }
.spec-chevron { color: var(--accent); transition: transform 0.2s ease; }
.spec-panel {
  display: none;
  border: 1px solid rgba(244,241,234,0.1);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 16px 18px;
  background: var(--bg-alt);
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.spec-panel.open { display: block; }

/* Reviews */
.reviews-section { margin-bottom: 48px; }
.reviews-header { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.reviews-title { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 0; }
.reviews-rating { display: flex; align-items: center; gap: 8px; }
.rating-stars { color: var(--accent); font-size: 18px; letter-spacing: 1px; }
.rating-half { color: var(--fg-muted); }
.rating-score { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.rating-count { color: var(--fg-muted); font-size: 13px; }
.review-card { background: var(--bg-alt); border: 1px solid rgba(244,241,234,0.06); border-radius: 6px; padding: 24px; margin-bottom: 16px; }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-dim); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--accent); }
.review-name { font-weight: 500; font-size: 14px; }
.review-stars { color: var(--accent); font-size: 14px; }
.review-text { color: var(--fg-muted); font-size: 14px; line-height: 1.6; font-style: italic; }

/* Related Products */
.related-section { margin-bottom: 80px; }
.related-title { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card { background: var(--bg-alt); border: 1px solid rgba(244,241,234,0.06); border-radius: 6px; overflow: hidden; }
.related-card-img { aspect-ratio: 16/9; overflow: hidden; }
.related-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.related-card:hover .related-card-img img { transform: scale(1.04); }
.related-card-body { padding: 16px; }
.related-name { font-family: var(--font-display); font-size: 16px; margin-bottom: 4px; }
.related-price { font-size: 14px; color: var(--fg-muted); }

/* Responsive */
@media (max-width: 768px) {
  .pdp-layout { grid-template-columns: 1fr; gap: 32px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .pdp-title { font-size: 32px; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}