/* product.css — Product page styles, matches theme.css design tokens */

:root {
  --accent: #C4704F;
  --accent-light: #E8D5CC;
}

/* Breadcrumb */
.breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 48px;
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.breadcrumb a { color: var(--fg-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border); }

/* Product Layout */
.product-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Image Gallery */
.product-gallery {
  position: sticky;
  top: 100px;
}
.gallery-main {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: var(--bg-alt);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-thumbs button {
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  padding: 0;
  aspect-ratio: 1;
  transition: border-color 0.2s;
}
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs button:hover { border-color: var(--accent-light); }
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Product Info */
.product-info { padding-top: 8px; }
.product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--fg);
}
.product-variant {
  font-size: 15px;
  color: var(--fg-muted);
  margin-bottom: 20px;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.product-price {
  font-size: 28px;
  font-weight: 600;
  color: var(--fg);
}
.product-compare {
  font-size: 18px;
  color: var(--fg-muted);
  text-decoration: line-through;
}
.product-save {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* Financing Widget */
.financing-widget {
  background: #F7F4F0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.financing-widget p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  margin: 0;
}
.financing-widget strong { color: var(--fg); }
.financing-widget a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}
.financing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.financing-option {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  text-align: center;
}
.financing-option strong { display: block; font-size: 15px; color: var(--fg); }
.financing-option span { font-size: 11px; color: var(--fg-muted); }

/* Add to Cart */
.add-to-cart-btn {
  width: 100%;
  background: var(--fg);
  color: white;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 18px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.add-to-cart-btn:hover { background: #333; }
.add-to-cart-btn:active { background: #111; }

/* Shop Pay */
.shop-pay-btn {
  width: 100%;
  background: #5D31C8;
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 16px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
}
.shop-pay-btn:hover { background: #4A26A0; }

/* Trust Badges */
.trust-badges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-muted);
}
.trust-badge svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* Product Tabs */
.product-tabs {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.tab-nav button {
  background: none;
  border: none;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
}
.tab-nav button.active {
  color: var(--fg);
  border-bottom-color: var(--accent);
}
.tab-nav button:hover { color: var(--fg); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.tab-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
}
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table td { padding: 12px 0; font-size: 14px; }
.specs-table td:first-child {
  color: var(--fg-muted);
  width: 40%;
  font-weight: 500;
}
.specs-table td:last-child { color: var(--fg); }

/* Reviews snippet */
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.stars { color: #F5A623; font-size: 16px; }
.reviews-summary span { font-size: 14px; color: var(--fg-muted); }

/* Responsive */
@media (max-width: 768px) {
  .product-section {
    grid-template-columns: 1fr;
    padding: 0 24px 60px;
    gap: 32px;
  }
  .breadcrumb { padding: 20px 24px; }
  .product-gallery { position: static; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .financing-grid { grid-template-columns: 1fr; }
  .product-name { font-size: 28px; }
}

/* Assured badge row */
.assured-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.assured-tag {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #2D7D46;
  background: #F0FAF3;
  border: 1px solid #C3E8D0;
  border-radius: 4px;
  padding: 5px 10px;
}