/* Usa as variáveis globais definidas em assets/css/variables.css */

/* ── Page (versão específica desta página) ──
   Usa "main.page" (esta página usa <main class="page">) para não afetar
   o <body>, que o WordPress também marca com a classe "page". */
main.page {
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: black;
  margin-top: 30px;
  background: #ffffff;
  border: 2px dashed #f180b4;
  border-radius: var(--radius-lg);
  padding: .75rem 1.25rem;
}

.breadcrumb a {
  color: black;
  text-decoration: none;
  transition: color .2s;
}

.breadcrumb a:hover { color: var(--c-clay); }
.breadcrumb span { color: var(--border-mid); }
.breadcrumb span:last-child { color: grey; }

/* ── Eyebrow ── */
.hero-eyebrow,
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
  background: #ffffff;
  border: 2px dashed #f180b4;
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.hero-eyebrow-line,
.eyebrow-line {
  width: 36px;
  height: 1px;
  background: var(--ink-soft);
  flex-shrink: 0;
}

.hero-eyebrow span,
.section-eyebrow span {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: black;
}

/* ── Produto hero ── */
.produto-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 3rem 0 4rem;
  border-bottom: 1px solid var(--border-mid);
  margin-bottom: calc(var(--gap) * 2.5);
}

@media (max-width: 760px) {
  .produto-hero { grid-template-columns: 1fr; gap: 2rem; }
}

.produto-img {
  height: auto;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  right: 14%;
}

.produto-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: opacity .4s ease;
}

.miniaturas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1rem;
}

.miniatura {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s ease;
}

.miniatura img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

.miniatura.ativa { border-color: #f180b4; }
.miniatura:hover { border-color: var(--border-mid); }

.produto-img-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Info ── */
.produto-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  animation: fadeUp .5s .12s cubic-bezier(.22,1,.36,1) both;
  padding-bottom: 10rem;
  background: #ffffff;
  border: 5px dashed #f180b4;
  border-radius: var(--radius-lg);
  padding: 2rem 2rem;
  margin-top: 0;
}

.produto-nome {
  font-family: 'Caracolina', serif;
  font-size: 50px;
  font-weight: 300;
  line-height: .95;
  color: black;
}

.produto-desc {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  font-weight: 300;
  color: black;
  line-height: 1.8;
}

.produto-preco {
  font-family: 'Caracolina', serif;
  font-size: 2.2rem;
  color: black;
  letter-spacing: .02em;
}

.produto-acoes {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}

/* ── Secções ── */
.section-block {
  margin-bottom: 5rem;
}

/* ── Icon grid ── */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--gap);
  margin-top: 1.5rem;
}

.icon-card {
  background: #fff;
  border: 5px dashed #f180b4;
  border-radius: var(--radius-lg);
  padding: 1.75rem 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .45s cubic-bezier(.22,1,.36,1) forwards;
  transition: transform .3s ease, box-shadow .3s ease;
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(80,50,30,.08);
}

.icon-card svg { flex-shrink: 0; }

.icon-label {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: black;
  line-height: 1.4;
}

.icon-card:nth-child(1) { animation-delay: .05s; }
.icon-card:nth-child(2) { animation-delay: .10s; }
.icon-card:nth-child(3) { animation-delay: .15s; }
.icon-card:nth-child(4) { animation-delay: .20s; }
.icon-card:nth-child(5) { animation-delay: .25s; }
.icon-card:nth-child(6) { animation-delay: .30s; }

/* ── Descrição completa (WooCommerce) ── */
.produto-descricao-completa {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 300;
  font-style: italic;
  color: black;
  line-height: 1.8;
}

/* ── Botão de compra nativo do WooCommerce ── */
.produto-acoes .quantity {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background: #fff;
  border: 2px dashed #f180b4;
  border-radius: 100px;
  padding: .3rem;
  margin-right: .75rem;
}

.produto-acoes .quantity .qty {
  width: 40px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: 'Caracolina', serif;
  font-size: 1.3rem;
  color: black;
  -moz-appearance: textfield;
}

.produto-acoes .quantity .qty::-webkit-outer-spin-button,
.produto-acoes .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.produto-acoes .quantity-btn {
  background: #fff;
  border: 2px dashed #f180b4;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
  flex-shrink: 0;
}

.produto-acoes .quantity-btn:hover {
  background: rgba(241,128,180,.12);
  color: var(--ink);
  transform: scale(1.06);
}

.produto-acoes button.single_add_to_cart_button,
.produto-acoes a.added_to_cart {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  background: #44C2CC;
  color: var(--ink);
  border: none;
  padding: .9rem 1.6rem;
  border-radius: 100px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.produto-acoes button.single_add_to_cart_button:hover {
  background: pink;
  transform: scale(1.03);
}
