/* ─────────────────────────────────────────────────────────────────────────────
   product.css — Individual product page styles
   Extends main.css
───────────────────────────────────────────────────────────────────────────── */

/* Breadcrumb
───────────────────────────────────────────────────────────────────────────── */
.breadcrumb {
  background: var(--navy);
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
}

.breadcrumb ol {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb li { color: rgba(255,255,255,.5); }
.breadcrumb li + li::before { content: "›"; margin-right: 0.4rem; }
.breadcrumb a { color: rgba(255,255,255,.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb li:last-child { color: rgba(255,255,255,.9); }

/* Product Hero
───────────────────────────────────────────────────────────────────────────── */
.product-hero {
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  padding: 3rem 1.5rem;
}

.product-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .product-hero-inner { grid-template-columns: 340px 1fr; }
}

.product-img-frame {
  background: #f8f9fb;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  padding: 2rem;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-img-frame img {
  max-height: 280px;
  width: 100%;
  object-fit: contain;
}

.product-summary .brand-badge { margin-bottom: 0.75rem; }
.product-summary h1 { font-size: clamp(1.3rem, 3vw, 1.9rem); margin-bottom: 1rem; }

.product-price-block {
  background: var(--grey-light);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.product-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.product-price-label {
  font-size: 0.82rem;
  color: var(--grey-text);
  margin-top: 0.2rem;
}

/* Quantity stepper — product page */
.product-qty-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.product-qty-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-text);
}

.product-buy-btn {
  background: var(--stripe-blue);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background var(--transition);
  display: inline-block;
  white-space: nowrap;
}
.product-buy-btn:hover { background: var(--stripe-hover); }
.product-buy-btn--pending {
  background: var(--grey-border);
  color: var(--grey-text);
  cursor: not-allowed;
  pointer-events: none;
}

.product-desc {
  color: var(--grey-text);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Product Specs Table
───────────────────────────────────────────────────────────────────────────── */
.product-specs {
  padding: 3rem 1.5rem;
  background: var(--grey-light);
}

.product-specs-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-specs-inner { grid-template-columns: 1fr 1fr; }
}

.specs-block h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.specs-table th, .specs-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--grey-border);
}
.specs-table th {
  background: var(--white);
  font-weight: 600;
  color: var(--navy);
  width: 45%;
}
.specs-table td { color: var(--grey-text); }

/* Applications List
───────────────────────────────────────────────────────────────────────────── */
.applications-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.applications-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--grey-text);
}

.applications-list li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Related Products
───────────────────────────────────────────────────────────────────────────── */
.related-section {
  padding: 3rem 1.5rem;
  background: var(--white);
}

.related-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.related-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 540px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--orange);
  text-decoration: none;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: block;
}
.back-link:hover { text-decoration: underline; }
