/* Product Details Page CSS (RitualPiel)
   Modern, vibrant, accessible, responsive */

.product-hero {
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}
.product-hero-media {
  min-width: 240px;
  max-width: 380px;
  width: 100%;
  padding: var(--space-4);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--color-gray-50);
  box-shadow: var(--shadow-sm);
}
.product-hero-media img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  width: 100%;
}
.product-hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.product-key-features {
  margin-left: var(--space-3);
  font-size: var(--font-size-base);
}
.product-key-features li {
  margin-bottom: var(--space-1);
  line-height: 1.7;
}
.product-rating {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
  vertical-align: middle;
}
.product-review-count {
  color: var(--color-gray-600);
  text-decoration: underline;
  margin-left: var(--space-2);
  font-size: var(--font-size-sm);
}
.product-pricing-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-start;
}
.product-price {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.product-old-price {
  color: var(--color-gray-400);
  text-decoration: line-through;
  font-size: var(--font-size-base);
  margin-left: var(--space-2);
  margin-right: var(--space-1);
}
.product-secure-payment {
  margin-top: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-gray-500);
}
.product-cart-form {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.product-cart-form input[type="number"] {
  width: 56px;
}

.product-shipping {
  margin-top: var(--space-2);
  font-size: var(--font-size-sm);
}

.product-details-extra {
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
}
.product-specs, .product-benefits {
  min-width: 0;
  background: var(--color-gray-50);
}
.product-benefit-list li {
  margin-bottom: var(--space-2);
  padding-left: 0.7em;
  position: relative;
}
.product-benefit-list li::before {
  content: '\2714'; /* checkmark */
  color: var(--color-success);
  margin-right: .6em;
  font-size: 0.98em;
  vertical-align: middle;
}
.product-spec-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 9px;
  column-gap: 18px;
  font-size: var(--font-size-base);
}
.product-spec-list dt {
  font-weight: 600;
  color: var(--color-primary);
}
.product-spec-list dd {
  margin: 0;
  margin-bottom: 7px;
  color: var(--color-gray-800);
}

.product-reviews .reviews-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.review-header {
  font-weight: 500;
  color: var(--color-primary);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-1);
}
.review {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-3);
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
  padding-top: var(--space-2);
  padding-bottom: var(--space-2);
}
.stars {
  color: var(--color-warning);
  margin-left: var(--space-1);
  letter-spacing: 1px;
}

.product-pricing-bottom {
  text-align: left;
  display: none; /* shown in mobile */
}

.comparison-table-wrapper {
  overflow-x: auto;
}
.comparison-table {
  min-width: 380px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
}
.comparison-table th, .comparison-table td {
  padding: var(--space-3) var(--space-2);
  text-align: center;
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-gray-200);
}
.comparison-table th {
  background: var(--color-gray-100);
}
.comparison-table td.highlight, .comparison-table th.highlight {
  background: var(--color-primary);
  color: #fff;
}
.comparison-table tr:last-child td, .comparison-table tr:last-child th {
  border-bottom: none;
}

.product-how-to-use ol {
  padding-left: 22px;
  font-size: var(--font-size-base);
}
.product-how-to-use li {
  margin-bottom: var(--space-2);
}

.product-faq dl {
  margin: 0;
}
.faq-list dt {
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-3);
}
.faq-list dd {
  margin: 5px 0 var(--space-2) 0;
  color: var(--color-text);
}
.faq-contact {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-base);
}

@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: var(--space-6); }
  .product-hero-media, .product-hero-content { justify-content: center; align-items: flex-start; }
  .product-details-extra { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 700px) {
  .product-hero,
  .product-details-extra { grid-template-columns: 1fr; }
  .product-hero-media { margin: 0 auto; min-width: 160px; max-width: 320px; }
  .product-hero-content { align-items: stretch; }
  .product-pricing-bottom { display: block; }
  .product-pricing-block { display: none; }
  .site-footer { margin-top: var(--space-10); }
}
@media (max-width: 480px) {
  .comparison-table th, .comparison-table td { padding: var(--space-2) var(--space-1); font-size: 13px; }
}
