/* Prodotto — regole specifiche (prodotto.html) */

/* ---------- Hero scheda prodotto ---------- */
.product-hero {
  text-align: left;
  padding-top: calc(var(--nav-h) + 28px);
  padding-bottom: clamp(48px, 6vw, 88px);
}

.product-hero .breadcrumb {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.product-hero .split {
  align-items: start;
  grid-template-columns: 1.05fr 1fr;
}

.product-art {
  --art-bg: #fff;
  position: relative;
  padding: 10%;
  box-shadow: var(--shadow-sm);
}

.product-art > div {
  width: 100%;
}

/* Foto reale del prodotto (catalogo WooCommerce) al posto dell'illustrazione */
.product-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.product-art .badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 1;
}

/* Colonna info dell'hero. Nome dedicato (pd-*) per non collidere con
   .product-info di style.css, usata dalle card prodotto (anche in #product-related). */
.pd-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-title {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.product-sku {
  font-size: 13px;
  color: var(--text-3);
}

.pd-info .lead {
  font-size: 19px;
}

/* Box acquisto */
.product-buy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
  padding: 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.product-price-row .price {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-price-row .price-old {
  font-size: 17px;
  margin-left: 0;
}

.product-price-row .badge {
  box-shadow: none;
  align-self: center;
}

.product-purchase {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.product-purchase .btn {
  flex: 1 1 200px;
}

.product-hint {
  font-size: 13px;
  color: var(--text-3);
  margin-top: -8px;
}

.product-hint:empty {
  display: none;
}

.product-notes {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
}

.product-notes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.product-notes .icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--accent);
}

#product-notice:empty {
  display: none;
}

/* ---------- Dettagli ---------- */
.product-details {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.product-details-main {
  --gap: 40px;
}

.product-details h3 {
  margin-bottom: 14px;
}

.product-description p {
  color: var(--text-2);
  font-size: 17px;
}

.product-description p + p {
  margin-top: 12px;
}

.product-compat .chips {
  margin-bottom: 16px;
}

.product-compat .chip {
  cursor: default;
}

.product-specs .table th {
  width: 42%;
}

/* ---------- CTA finale ---------- */
.product-cta .hero-actions {
  margin-top: 48px;
}

.product-cta .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* ---------- Stato non trovato ---------- */
.product-notfound .feature-icon {
  margin: 0 auto 20px;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  padding: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 834px) {
  .product-hero .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-art {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .product-details {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .product-buy {
    padding: 18px;
  }

  .product-purchase .btn {
    flex-basis: 100%;
  }

  .product-price-row .price {
    font-size: 28px;
  }
}
