.product-detail-container {
  max-width: 1200px;
  margin: var(--space-6) auto;
  padding: 0 var(--space-4);
  font-family: var(--font-body);
  color: var(--text-main);
}

.product-detail-main {
  display: grid;
  grid-template-columns: 1fr 1fr 300px;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

/* Image Column */
.product-image-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Info Column */
.product-info-container {
  display: flex;
  flex-direction: column;
}

.product-badge-wrap {
  margin-bottom: var(--space-3);
}

.product-badge-wrap .store-badge {
  position: static;
  display: inline-block;
}

.product-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  margin: 0 0 var(--space-3) 0;
  line-height: 1.2;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--text-6); /* Star color */
  font-size: var(--fs-md);
}

.product-rating .count {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.product-desc {
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-paragraph);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--space-5);
}

.product-features h3 {
  font-size: var(--fs-lg);
  color: var(--text-heading);
  margin-bottom: var(--space-3);
}

.product-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.product-features li {
  margin-bottom: var(--space-2);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.product-features li::before {
  content: "✓";
  color: var(--border-success);
  font-weight: bold;
}

/* Action Box (Amazon Style) */
.product-action-box {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  background: var(--bg-surface-alt);
  height: fit-content;
  box-shadow: var(--shadow-1);
}

.product-price-large {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  margin-bottom: var(--space-2);
}

.product-stock-status {
  color: var(--border-success);
  font-weight: var(--fw-semi);
  margin-bottom: var(--space-4);
  font-size: var(--fs-md);
}

.product-btn-download {
  display: block;
  width: 100%;
  padding: var(--space-3);
  background: var(--primary-base);
  color: #fff;
  border: none;
  border-radius: var(--radius-btn);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--ease-normal);
  margin-bottom: var(--space-3);
}

.product-btn-download:hover {
  background: var(--primary-hover);
}

.product-meta-details {
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-2) 0;
  border-bottom: 1px dashed var(--border-color);
}

.product-meta-row:last-child {
  border-bottom: none;
}

/* Related Products */
.related-products-section {
  margin-top: var(--space-10);
  border-top: 2px solid var(--border-color);
  padding-top: var(--space-6);
}

.related-title {
  font-size: var(--fs-xl);
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  color: var(--text-heading);
  margin-bottom: var(--space-5);
}

/* Back Button */
.product-detail-header {
  max-width: 1200px;
  margin: var(--space-4) auto;
  padding: 0 var(--space-4);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-paragraph);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: var(--fw-semi);
  font-size: var(--fs-md);
  transition: color var(--ease-fast);
}

.btn-back:hover {
  color: var(--primary-base);
}

/* Responsive */
@media (max-width: 1024px) {
  .product-detail-main {
    grid-template-columns: 1fr 1fr;
  }
  .product-action-box {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .product-detail-header {
    margin-top: 70px; /* Clears fixed header on mobile */
  }
  .product-detail-main {
    grid-template-columns: 1fr;
    border-radius: 0;
    border-left: none;
    border-right: none;
    padding: var(--space-4);
  }
  .product-detail-container {
    padding: 0;
  }
  .product-action-box {
    grid-column: span 1;
  }
}
