/* Product page — load AFTER styles.css. Uses your existing theme variables, so dark mode works. */
.product-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 2rem 5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.gallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 1rem; }
.thumbs { display: flex; flex-direction: column; gap: 0.6rem; }
.thumbs button {
  width: 72px; height: 72px; padding: 0;
  background: none; box-shadow: none;
  border: 2px solid transparent; border-radius: 8px; overflow: hidden;
}
.thumbs button:hover { transform: none; box-shadow: none; }
.thumbs button[aria-current="true"] { border-color: var(--link-hover); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.main-image img { width: 100%; height: auto; border-radius: 8px; }

.product-title {
  font-family: 'Lora-Medium', 'DM Serif Display', serif;
  font-size: 2rem; font-weight: 500; line-height: 1.2; margin-bottom: 0.5rem;
}
.product-price-big { font-size: 1.25rem; margin-bottom: 0.25rem; }
.stock-note { font-size: 0.9rem; opacity: 0.75; margin-bottom: 1.5rem; }

.size-label { font-size: 0.95rem; margin-bottom: 0.5rem; }
.size-options { display: flex; gap: 0.6rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.size-options button {
  background: transparent; color: var(--text-color); box-shadow: none;
  border: 1.5px solid var(--link-hover); border-radius: 100px;
  padding: 0.6rem 1.4rem; font: inherit;
}
.size-options button:hover { transform: none; box-shadow: none; }
.size-options button[aria-pressed="true"] { background: var(--button-bg); color: var(--button-text); }
.size-options button:disabled { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }

a.buy-btn { display: inline-block; text-decoration: none; }
a.buy-btn:hover { color: #1F2933; transform: translateY(-2px); }
.product-buy { display: block; width: 100%; text-align: center; padding: 0.9rem 1.6rem; font-size: 1.05rem; }
.product-buy[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

.blurb { margin-top: 1.5rem; }
.product-details { list-style: none; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--footer-divider-color); }
.product-details li { margin-bottom: 0.6rem; line-height: 1.5; }
.product-details a { text-decoration: underline; }

@media (max-width: 900px) {
  .product-page { grid-template-columns: 1fr; padding: 8rem 1.25rem 3rem; gap: 2rem; }
}
@media (max-width: 768px) {
  .product-page { padding-top: 1.5rem; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; order: 2; }
}
