/* ==========================================================================
   STILI RIUTILIZZABILI PER TUTTE LE PAGINE SINGOLO PRODOTTO
   ========================================================================== */

/* REGOLAZIONE LOGO NAVBAR CATALOGO */
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
}

main.product-page {
  padding-top: 40px;
  padding-bottom: 80px;
}

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

/* --------------------------------------------------------------------------
   GALLERIA IMMAGINI
   -------------------------------------------------------------------------- */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface, #100e19);
  border: 1px solid var(--box-border, rgba(255, 255, 255, 0.12));
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.thumbnails {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.thumb {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.08));
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: all 0.2s ease;
  background: var(--surface, #100e19);
}

.thumb.active, 
.thumb:hover {
  opacity: 1;
  border-color: var(--accent-rose, #e11d48);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.3);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   INFO & CONFIGURATORE PRODOTTO
   -------------------------------------------------------------------------- */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  color: #fff;
}

.product-price {
  font-family: var(--font-mono, monospace);
  font-size: 20px;
  font-weight: 700;
  color: #a5b4fc;
  margin-top: 6px;
}

.product-desc {
  color: var(--text-muted, #958ea9);
  line-height: 1.65;
  font-size: 15px;
}

.config-box {
  background: var(--box-bg, #181524);
  border: 1px solid var(--box-border, rgba(255, 255, 255, 0.12));
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.config-title {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-teal, #14b8a6);
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-group label {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: var(--text-muted, #958ea9);
  text-transform: uppercase;
}

.select-input, 
.text-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(16, 14, 25, 0.9);
  border: 1px solid var(--border-bright, rgba(99, 102, 241, 0.5));
  color: #fff;
  font-family: var(--font-body, sans-serif);
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.select-input:focus, 
.text-input:focus {
  border-color: var(--accent-rose, #e11d48);
  box-shadow: 0 0 12px rgba(225, 29, 72, 0.25);
}

.text-input::placeholder {
  color: rgba(236, 232, 248, 0.3);
}

.btn-whatsapp-order {
  width: 100%;
  background: var(--accent-rose, #e11d48);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.3);
  margin-top: 10px;
}

.btn-whatsapp-order:hover {
  background: #f43f5e;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.45);
}

/* BOTTONE TORNA AL CATALOGO */
.back-link-container {
  margin-bottom: 24px;
  display: flex;
}

.btn-back-catalog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-display, 'Space Grotesk', sans-serif);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-back-catalog:hover {
  background-color: var(--accent-rose, #e11d48);
  border-color: var(--accent-rose, #e11d48);
  color: #ffffff;
  transform: translateX(-4px);
}

.order-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.btn-email-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-mono, monospace);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-email-order:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   RESPONSIVE (MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 868px) {
  main.product-page {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .product-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .config-box {
    padding: 20px;
  }
}

/* PULSANTE AGGIUNGI AL CARRELLO NELLE SCHEDE */
.btn-add-to-cart {
  width: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(99, 102, 241, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #c7d2fe;
  padding: 15px;
  border-radius: 12px;
  font-family: var(--font-mono, monospace);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.2);
}

.btn-add-to-cart:hover {
  background: rgba(99, 102, 241, 0.35);
  border-color: #818cf8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(99, 102, 241, 0.35);
}