/* ============================================
   Glass Aurora — Product Detail Page
   ============================================ */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail__gallery {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.product-gallery__main {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-glass);
}

.product-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-gallery__main:hover .product-gallery__image {
  transform: scale(1.02);
}

.product-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-gallery__thumbs img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.65;
  transition: border-color var(--transition-fast),
              opacity var(--transition-fast),
              box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.product-gallery__thumbs img:hover,
.product-gallery__thumb--active,
.product-gallery__thumbs img.active {
  opacity: 1;
  border-color: var(--accent-start);
  box-shadow: 0 0 12px var(--glow-color-soft);
}

.product-detail__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.product-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.product-detail__tag {
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}

.product-detail__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.08) 100%);
}

.product-detail__price-label {
  font-size: 13px;
  color: var(--text-muted);
}

.product-detail__price-value {
  font-size: 28px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.product-detail__specs {
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.spec-table {
  width: 100%;
}

.spec-table__row {
  border-bottom: 1px solid var(--glass-border);
}

.spec-table__row:last-child {
  border-bottom: none;
}

.spec-table__head,
.spec-table__cell {
  padding: 13px 20px;
  font-size: 14px;
  text-align: left;
}

.spec-table__head {
  width: 100px;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.spec-table__cell {
  font-weight: 500;
  color: var(--text-primary);
}

.product-detail__cta {
  margin-bottom: 20px;
}

.product-detail__notices {
  padding: 20px 24px;
  margin-bottom: 20px;
}

.product-detail__notices p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.product-detail__content {
  padding: 24px;
}

.product-detail__content-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
}

.product-detail__content-body {
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-secondary);
}

.product-detail__content-body p {
  margin-bottom: 14px;
}

.content-section--related {
  padding-top: 0;
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .product-detail__gallery {
    position: static;
  }

  .product-detail__title {
    font-size: 22px;
  }

  .product-detail__price-value {
    font-size: 24px;
  }
}
