/* assets/css/product-detail.css - Moto Alfaya Clean Luxury Product Page (Estilo Bee Brasil) */

.p-detail-page {
  background: #FFFFFF;
  color: var(--text-primary);
  padding: 2.5rem 0 5rem;
}

/* Breadcrumbs */
.p-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.p-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.p-breadcrumbs a:hover {
  color: var(--color-electric-blue);
}

.p-breadcrumbs span.sep {
  color: var(--border-light);
}

/* Layout Principal de 2 Colunas */
.p-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
  margin-bottom: 5rem;
}

/* Coluna Esquerda - Galeria */
.p-gallery-col {
  position: relative;
}

.p-gallery-stage {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.p-gallery-stage img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  transition: transform var(--transition-normal);
  filter: drop-shadow(0 15px 25px rgba(15, 23, 42, 0.12));
}

.p-gallery-stage:hover img {
  transform: scale(1.03);
}

.p-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.p-thumb-btn {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-light);
  background: var(--bg-surface);
  padding: 0.35rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.p-thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.p-thumb-btn:hover {
  border-color: var(--color-light-blue);
}

.p-thumb-btn.active {
  border-color: var(--color-electric-blue);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(8, 120, 249, 0.2);
}

.p-trust-badges-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.p-trust-badge {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Coluna Direita - Informações e Ação Sticky */
.p-info-col {
  position: sticky;
  top: 5.5rem;
}

.p-brand-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-electric-blue);
  background: var(--color-ice-blue);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.p-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.p-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.p-price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.p-price-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.p-price-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-electric-blue);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.p-installments {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.p-stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #16A34A;
  background: #DCFCE7;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}

.p-stock-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #16A34A;
}

/* Chips de Ficha Rápida */
.p-fast-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.p-fast-spec-box {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
}

.p-fast-spec-lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.p-fast-spec-val {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Botões de Conversão */
.p-actions-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.btn-p-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--color-whatsapp);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all var(--transition-fast);
}

.btn-p-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  color: #FFFFFF;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-p-showroom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: var(--bg-deep-navy);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  padding: 1rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-p-showroom:hover {
  background: var(--color-electric-blue);
  color: #FFFFFF;
}

.p-showroom-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================================
   SEÇÃO DE DIFERENCIAIS DA MOTO (STORYTELLING BEE BRASIL)
   ========================================================================== */
.p-features-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border-light);
  background: var(--bg-surface);
}

.p-section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.p-section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.p-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.p-feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-xs);
}

.p-feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-electric-blue);
  box-shadow: var(--shadow-card-hover);
}

.p-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-ice-blue);
  color: var(--color-electric-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.p-feature-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.p-feature-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   TABELA TÉCNICA COMPLETA
   ========================================================================== */
.p-specs-section {
  padding: 5rem 0;
  background: #FFFFFF;
  border-top: 1px solid var(--border-light);
}

.p-specs-table-wrap {
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.p-spec-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  background: #FFFFFF;
}

.p-spec-row:nth-child(even) {
  background: var(--bg-surface);
}

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

.p-spec-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.p-spec-value {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   ACESSÓRIOS COMPATÍVEIS (CROSS-SELL)
   ========================================================================== */
.p-accessories-section {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.p-accessories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.p-accessory-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.p-accessory-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-electric-blue);
  box-shadow: var(--shadow-card-hover);
}

.p-accessory-img-wrap {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.p-accessory-img-wrap img {
  max-width: 90%;
  max-height: 130px;
  object-fit: contain;
}

.p-accessory-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.p-accessory-price {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-electric-blue);
  margin-top: auto;
  margin-bottom: 1rem;
}

/* Responsividade */
@media (max-width: 991px) {
  .p-main-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .p-info-col {
    position: static;
  }
  .p-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .p-gallery-stage {
    height: 320px;
    padding: 1.5rem;
  }
  .p-features-grid {
    grid-template-columns: 1fr;
  }
  .p-trust-badges-row {
    grid-template-columns: 1fr;
  }
  .p-fast-specs {
    grid-template-columns: 1fr;
  }
  .p-spec-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
