/* Product detail page styles */
.product-detail-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.product-media {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem;
}
.product-media .main-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  overflow: hidden;
  background: #ffffff;
}
.product-media .main-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-top: 1rem;
  padding-bottom: 0.25rem;
}
.thumb {
  background: #f3f3f3;
  border: 1px solid #e1e1e1;
  border-radius: 8px;
  padding: 4px;
  cursor: pointer;
}
.thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.product-purchase {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  height: 350px;
}
.product-purchase .product-card {
  display: flex;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  height: auto;
}

.product-purchase .product-card h2 {
  display: none; /* Скрываем h2, но оставляем для JavaScript */
}

.product-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.6rem;
  font-weight: 700;
}
.product-category {
  color: #777;
  margin-bottom: 0.75rem;
}
.product-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: #b77b3b;
  margin: 1rem 0;
}
/* Match catalog add-to-cart sizing/feel, but scoped to product page */
.product-purchase .add-to-cart {
  background: #4d2d0bd6;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
}
.product-purchase .add-to-cart:hover {
  background: #a06a2f;
}
.product-purchase .add-to-cart[disabled] {
  background: #ccc;
  cursor: not-allowed;
}
.product-description {
  grid-column: 1 / -1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}
@media (max-width: 992px) {
  .product-detail-container {
    grid-template-columns: 1fr;
  }
}

/* Стили для опций покупки */
.purchase-options {
  margin: 1rem 0;
}

.option-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.option-label {
  display: flex;
  align-items: center;
  background: #f8f8f8;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-label:hover {
  background: #f0f0f0;
}

.option-label input[type="radio"] {
  margin-right: 0.5rem;
}

.option-label input[type="radio"]:checked + span {
  font-weight: 600;
  color: #b77b3b;
}

/* Utility: screen reader only (for cart.js product name lookup) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 1, 1);
  border: 0;
}
