/* assets/css/product.css
   Estilos para página de produto / detalhe
   Visual moderno, centralizado e elegante
*/

/* =========================
   VARIÁVEIS
========================= */

:root{
  --accent: #452021;
  --muted: #6b5b53;
  --bg: #ffffff;
  --card-bg: #fbfbfb;
  --shadow: rgba(0,0,0,0.08);
  --radius: 12px;
  --gold: linear-gradient(90deg,#c5a253,#f5e6b0,#a67c2d);
}

/* =========================
   RESET
========================= */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #222;
  background: var(--bg);
}

/* =========================
   LAYOUT PRINCIPAL
========================= */

.product-page {
  display: flex;
  gap: 48px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
  align-items: flex-start;
  justify-content: center;
}

/* galerias */
.pd-gallery {
  width: 48%;
  position: relative;
  overflow: hidden;
}

/* informações */
.product-info {
  width: 48%;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 14px;
}

/* largura elegante centralizada */
.product-title-config,
.short-desc,
.purchase-container,
.share-section,
.product-details,
.buy-together {
  width: 100%;
  max-width: 520px;
}

/* =========================
   GALERIA
========================= */

.pd-slides {
  display: flex;
  transition: transform .45s cubic-bezier(.2,.9,.2,1);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.pd-slide {
  min-width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pd-slide img {
  width:100%;
  height:420px;
  object-fit: contain;
  /* border-radius:14px; */
  box-shadow: 0 12px 30px var(--shadow);
}

/* =========================
   SETAS
========================= */

/* 1) Setas: área de clique maior e sempre clicáveis ao passar o mouse */
.pd-arrow {
  width: 56px;               /* aumenta área */
  height: 56px;
  padding: 8px;              /* mantém o ícone centralizado */
  opacity: 0;                /* mantém comportamento atual */
  pointer-events: none;      /* padrão: não clicável até hover do container */
  z-index: 20;               /* garante que fique acima das imagens */
  transition: opacity .18s ease, transform .12s ease;
}

/* esconde todas as setas da galeria */
.pd-gallery .pd-arrow {
  display: none !important;
}


/* mostra as setas quando o mouse está sobre a galeria */
.pd-gallery:hover .pd-arrow,
.pd-gallery:focus-within .pd-arrow {
  opacity: 1;
  pointer-events: auto;
}

/* aumenta a "hit area" invisível para facilitar clique */
.pd-arrow::before {
  content: "";
  position: absolute;
  inset: -8px;               /* expande área clicável além do botão */
  border-radius: 50%;
}

/* feedback visual ao passar o mouse */
.pd-arrow:hover {
  transform: translateY(-3px) scale(1.03);
}

/* 2) Evitar que imagens capturem o clique e bloqueiem as setas */
.pd-slide img {
  pointer-events: none;      /* permite que cliques passem para controles sobrepostos */
}

/* 3) Cursor e estados de arraste */
.pd-slides {
  cursor: grab;
  touch-action: pan-y;       /* mantém rolagem vertical em touch */
  user-select: none;
}

.pd-slides.dragging {
  cursor: grabbing;
}


/* =========================
   DOTS
========================= */

.dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 6px 12px;
  width: 100%;
}

.dots .dot {
  flex: 1 1 0;
  height: 6px;
  background: rgba(0,0,0,0.08);
  border: none;
  border-radius: 999px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s ease;
  min-width: 28px;
}

.dots .dot .fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: black;
  transition: width .35s cubic-bezier(.2,.9,.2,1);
  border-radius: 999px;
}

.dots .dot.active .fill {
  width: 100%;
}

.dots .dot:hover,
.dots .dot:focus {
  transform: translateY(-3px);
  outline: none;
}

/* =========================
   TÍTULO E DESCRIÇÃO
========================= */

.product-title-config {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: black;
  margin: 0;
}

.short-desc {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* =========================
   PREÇO
========================= */

.price {
  font-size: 26px;
  font-weight: 700;
  color: #111;
}

/* =========================
   BUY BOX
========================= */

.buy-box {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  align-items: center;
}

/* quantidade */

.quantity {
  display: flex;
  align-items: center;
  border: 1px solid #eee;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  height: 44px;
}

.quantity button {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  color: #333;
}

.quantity input {
  width: 56px;
  border: none;
  text-align: center;
  font-size: 15px;
  outline: none;
  -moz-appearance: textfield;
}

/* botão */

.btn-adquirir,
.btn-acquire {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  border-radius: 10px;
  border: 1px solid #111;
  background: transparent;
  color: #111;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .22s ease;
  box-shadow: 0 8px 24px rgba(17,17,17,0.06);
}

.btn-adquirir:hover,
.btn-acquire:hover {
  background: #111;
  color: #fff;
  transform: translateY(-2px);
}

/* =========================
   DETALHES
========================= */

.product-details {
  margin-top: 24px;

  padding: 24px;

  border-radius: 18px;

  background: #fff;

  border: 1px solid rgba(0,0,0,0.04);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.03);
}

.product-details h3 {
  text-align: center;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 18px;
  color: var(--accent);
}

.product-details h3::after {
  content: "";
  width: 50px;
  height: 2px;
  background: #111;
  display: block;
  margin: 10px auto 0 auto;
  border-radius: 999px;
  opacity: .2;
}

.product-details p {
  line-height: 1.7;
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   COMPRE JUNTO
========================= */

.section-title {
  text-align: center;

  font-size: 18px;

  letter-spacing: 2px;

  margin-top: 30px;

  color: var(--accent);
}

.section-title::after {
  content: "";
  width: 50px;
  height: 2px;
  background: #111;
  display: block;
  margin: 10px auto 0 auto;
  border-radius: 999px;
  opacity: .2;
}

.buy-together {
  margin-top: 18px;

  padding: 24px;

  border-radius: 18px;

  background: #fff;

  border: 1px solid rgba(0,0,0,0.04);

  box-shadow:
    0 10px 30px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.03);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.bt-products {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
}

.bt-item {
  width: 160px;

  padding: 12px;

  border-radius: 14px;

  background: #fafafa;

  text-align: center;

  transition: all .2s ease;
}

.bt-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

.bt-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.bt-item p {
  font-size: 13px;
  margin-bottom: 6px;
}

.bt-item span {
  font-weight: 600;
}

#btnAddCombo {
  width: 100%;
  max-width: 320px;
}

/* =========================
   COMPARTILHAR
========================= */

.share-section {
  text-align: center;
  padding: 28px 0;
}

.share-icons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.share-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: #f6f1ec;
  color: #6b5b53;

  border: 1px solid #e7ddd4;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  transition: .18s ease;
}

/* tamanho do ícone */
.share-icon i {
  font-size: 20px;
}

/* hover */
.share-icon:hover {
  transform: translateY(-3px);

  background: #6b5b53;
  color: #f6f1ec;

  border-color: #6b5b53;
}

/* remove aparência padrão */
.share-icon,
.share-icon * {
  text-decoration: none !important;
  color: inherit !important;
}

/* =========================
   FRETE
========================= */

.shipping-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(245,242,236,0.6),
    rgba(255,255,255,0.6)
  );

  border: 1px solid rgba(0,0,0,0.04);

  box-shadow: 0 6px 18px rgba(0,0,0,0.04);

  color: var(--muted);

  font-size: 13px;

  line-height: 1.3;
}

.shipping-note .sn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f08a5d;
  position: relative;
}

.shipping-note .sn-icon::after {
  content: "i";

  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #fff;
  font-weight: 700;
}

.shipping-note .sn-text {
  display:flex;
  gap:10px;
  align-items:center;
}

.shipping-note .sn-text strong {
  color: var(--accent);
  font-weight:600;
  letter-spacing:0.6px;
  text-transform:uppercase;
  font-size:12px;
}

.sn-contact {
  margin-left: 8px;
  background: transparent;
  border: 1px solid rgba(69,32,33,0.08);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all .18s ease;
}

.sn-contact:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 900px) {

  .product-page {
    flex-direction: column;
    gap: 18px;
    margin: 40px 12px;
  }

  .pd-gallery,
  .product-info {
    width: 100%;
  }

  .pd-slide img {
    height: 320px;
  }

}

@media (max-width: 768px) {

  .buy-box {
    flex-direction: column;
    align-items: stretch;
  }

  .quantity {
    width: 100%;
    justify-content: space-between;
  }

  #btnAddCombo,
  .btn-adquirir {
    width: 100%;
    max-width: none;
  }

}

@media (max-width: 520px) {

  .shipping-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .shipping-note .sn-text {
    flex-direction: column;
    align-items: flex-start;
  }

  .sn-contact {
    margin-left: 0;
  }

  .dots {
    gap: 6px;
    padding: 6px;
  }

  .dots .dot {
    min-width: 18px;
    height: 3px;
  }

}

/* helpers */

.dots,
.pd-arrow,
.btn-adquirir {
  -webkit-tap-highlight-color: transparent;
}

/* */

.bt-item{
  text-decoration: none;
  color: inherit;
  display: block;
}

/* */

@media (max-width: 768px){

  .buy-box{
    flex-direction: column;
  }

  .btn-adquirir,
  .btn-acquire{

    width: 100%;

    min-height: 48px;

    font-size: 14px;

    letter-spacing: .8px;
  }

}