/* ==========================================================================
   CRIAMINDO - ESTILOS DA PÁGINA INDIVIDUAL DO PRODUTO (produto.html)
   ========================================================================== */

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

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-bottom: 30px;
}

.breadcrumbs a {
  color: var(--gray);
  font-weight: 600;
}

.breadcrumbs a:hover {
  color: var(--orange);
}

.breadcrumbs span.current {
  color: var(--blue);
  font-weight: 700;
}

/* ==========================================================================
   LAYOUT PRINCIPAL DO PRODUTO (GRID 2 COLUNAS)
   ========================================================================== */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
  margin-bottom: 80px;
}

/* Galeria de Fotos */
.product-gallery {
  position: sticky;
  top: 110px;
}

.product-main-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 16px;
  position: relative;
}

.product-main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.thumb-item {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.thumb-item.active {
  border-color: var(--orange);
}

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

/* Informações do Produto */
.product-details {
  display: flex;
  flex-direction: column;
}

.product-category-tag {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
  margin-bottom: 8px;
}

.product-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 14px;
}

.product-tagline {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* Box de Preço Dinâmico */
.product-price-container {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.price-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.price-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
}

.dynamic-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--blue);
}

.price-unit-hint {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray);
}

.min-order-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--soft-orange);
  color: var(--orange);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

/* Tabela de Preços Escalonados */
.tiered-pricing-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--gray-border);
}

.tiered-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tiered-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.tier-item {
  background: var(--bg);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  transition: var(--transition);
}

.tier-item.active-tier {
  background: var(--soft-blue);
  border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(18, 67, 143, 0.15);
}

.tier-qty {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray);
}

.tier-price {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--blue);
  margin-top: 2px;
}

/* Opções de Personalização */
.customization-section {
  background: var(--white);
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 28px;
}

.custom-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custom-group {
  margin-bottom: 18px;
}

.custom-group:last-child {
  margin-bottom: 0;
}

.custom-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

/* Seletores de Cor */
.color-options-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.color-option-btn {
  background: var(--bg);
  border: 1.5px solid var(--gray-border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}

.color-option-btn:hover {
  border-color: var(--blue);
}

.color-option-btn.selected {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.custom-input-text {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--dark);
  background: var(--bg);
  outline: none;
  transition: var(--transition);
}

.custom-input-text:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(18, 67, 143, 0.1);
}

.custom-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 6px;
}

/* Linha de Quantidade e Ação */
.product-action-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.qty-control-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--gray-border);
  border-radius: var(--radius-md);
  padding: 6px;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--soft-blue);
  color: var(--blue);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--blue);
  color: var(--white);
}

.qty-input-field {
  width: 60px;
  text-align: center;
  border: none;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--blue);
  outline: none;
  background: transparent;
}

.btn-add-to-cart {
  flex-grow: 1;
  padding: 18px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--orange), #FF8533);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(255, 106, 0, 0.3);
}

.btn-add-to-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 106, 0, 0.4);
}

.btn-ask-product-whatsapp {
  width: 100%;
  padding: 14px;
  background: var(--white);
  color: var(--green);
  border: 1.5px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-md);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.btn-ask-product-whatsapp:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* Selos de Confiança */
.product-trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--gray-border);
  border-bottom: 1px solid var(--gray-border);
  margin-bottom: 28px;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-badge-item i {
  font-size: 1.4rem;
  color: var(--blue);
}

.trust-badge-item span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.3;
}

/* Descrição Longa do Produto */
.product-long-description {
  margin-top: 20px;
}

.product-long-description h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 12px;
}

.product-long-description p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* Produtos Relacionados */
.related-products-section {
  padding-top: 40px;
  border-top: 1px solid var(--gray-border);
}

/* ==========================================================================
   RESPONSIVIDADE PRODUTO
   ========================================================================== */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .product-gallery {
    position: static;
  }
  .product-title {
    font-size: 2rem;
  }
  .product-trust-badges {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (max-width: 580px) {
  .product-action-row {
    flex-direction: column;
  }
  .qty-control-box {
    justify-content: center;
  }
  .tiered-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
