/* Product detail page */
.product-detail { padding: 2.5rem 2rem 5rem; }
.product-detail-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: 2rem; }
.product-main-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0ebe0;
  margin-bottom: 0.75rem;
}
.product-main-img img { width: 100%; height: 100%; object-fit: cover; }
.product-thumbs { display: flex; gap: 0.5rem; }
.thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumb:hover, .thumb.active { opacity: 1; border-color: var(--accent); }

/* Info */
.product-info {}
.product-tagline {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0.75rem 0 1.5rem;
  line-height: 1.6;
}
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0;
}

/* Configurator */
.configurator-form { margin: 1.5rem 0 2rem; }
.config-group { margin-bottom: 1.5rem; }
.config-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
  font-weight: 500;
}
.config-optional { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.82rem; }
.config-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.config-btn {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 0.85rem;
  color: var(--fg);
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.15s, background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.config-btn:hover { border-color: var(--accent); }
.config-btn.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.config-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 80px;
  border-radius: 4px;
}
.config-textarea:focus { outline: none; border-color: var(--accent); }
.config-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; }
.config-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #f5f0e8;
  border-radius: 6px;
  margin: 1.5rem 0;
}
.config-total-label { font-size: 0.88rem; color: var(--muted); }
.config-total-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

/* Add to cart button */
.btn-add-to-cart {
  width: 100%;
  padding: 1rem;
  background: var(--ink);
  color: #f5f0e8;
  border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-add-to-cart:hover { background: var(--accent); }
.btn-add-to-cart.added { background: #3a7d44; }

/* Specs */
.product-specs { margin-top: 2rem; }
.product-specs h3 {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
  font-weight: 500;
}
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.spec-key {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.6rem 0.5rem 0.6rem 0;
  width: 45%;
}
.spec-val { font-size: 0.85rem; color: var(--ink); padding: 0.6rem 0; }

/* Lead time */
.product-lead-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 1.25rem;
  padding: 0.75rem;
  background: #f5f0e8;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .product-detail-inner { grid-template-columns: 1fr; gap: 2rem; }
  .product-gallery { position: static; }
}