/* aura-fix-product — correções gap-audit aura-48 (28/06/2026) */

/* ==========================================================================
   PDP — novas features (lightbox, badge desconto, NF chip, descrição,
   estrelas dinâmicas, "ver mais" avaliações). Cores Aura:
   roxo #4b1d8f · verde CTA #15a05a · verde Pix #16803c · radius 16px.
   ========================================================================== */

/* ---- Chip "Preço com Nota Fiscal" (estático, verde) ---- */
.dazie-nf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e9f7ef;
  border: 1px solid #bbe8ce;
  color: #16803c;
  font: 600 12.5px/1 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: .1px;
}
.dazie-nf-chip svg { flex: 0 0 auto; color: #16803c; }

/* ---- Cursor de zoom na imagem principal ---- */
#pdp-zoom-container { cursor: zoom-in; }

/* ---- Estrelas: alinhamento dos SVGs inline ---- */
.dazie-mp-stars,
.dazie-score-stars,
.dazie-highlight-stars,
.dazie-review-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 0;
}
.dazie-score-stars { margin-bottom: 4px; }

/* ---- Descrição: fade + toggle ---- */
.pdp-description-content.is-collapsible {
  position: relative;
  max-height: 360px;
  overflow: hidden;
  transition: max-height .35s ease;
}
.pdp-description-content.is-collapsible::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 92%);
  pointer-events: none;
  transition: opacity .25s ease;
}
.pdp-description-content.is-collapsible.is-expanded {
  max-height: 6000px;
}
.pdp-description-content.is-collapsible.is-expanded::after { opacity: 0; }

.pdp-description-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 10px 18px;
  border: 1.5px solid #4b1d8f;
  background: #fff;
  color: #4b1d8f;
  border-radius: 12px;
  font: 700 14px/1 'Plus Jakarta Sans', 'Inter', sans-serif;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.pdp-description-toggle:hover { background: #4b1d8f; color: #fff; }
.pdp-description-toggle__chev { transition: transform .25s ease; }
.pdp-description-toggle.is-open .pdp-description-toggle__chev { transform: rotate(180deg); }

/* ---- "Ver mais avaliações" ---- */
.dazie-reviews-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.dazie-reviews-more__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1.5px solid #4b1d8f;
  background: #fff;
  color: #4b1d8f;
  border-radius: 12px;
  font: 700 14.5px/1 'Plus Jakarta Sans', 'Inter', sans-serif;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.dazie-reviews-more__btn:hover:not(:disabled) {
  background: #4b1d8f;
  color: #fff;
  box-shadow: 0 6px 18px rgba(75,29,143,.22);
}
.dazie-reviews-more__btn:disabled { opacity: .65; cursor: default; }
.dazie-reviews-more__chev { transition: transform .25s ease; }

/* ---- Magnific Popup — skin Aura + contador/setas ---- */
.mfp-dazie .mfp-bg { background: #1b1130; opacity: .92; }
.mfp-dazie img.mfp-img { border-radius: 16px; }
.mfp-dazie .mfp-figure:after { box-shadow: 0 16px 60px rgba(0,0,0,.5); border-radius: 16px; }
.mfp-dazie .mfp-counter,
.mfp-dazie .mfp-bottom-bar .mfp-counter {
  color: #fff;
  font: 600 14px/1.4 'Plus Jakarta Sans', 'Inter', sans-serif;
  right: 0;
  top: -2px;
}
.mfp-dazie .mfp-arrow { opacity: .9; }
.mfp-dazie .mfp-arrow:hover { opacity: 1; }
.mfp-dazie .mfp-close { color: #fff; opacity: .85; font-size: 30px; }
.mfp-dazie .mfp-close:hover { opacity: 1; }
.mfp-dazie button.mfp-arrow:before { border-color: transparent; }
.mfp-dazie .mfp-arrow-left:after { border-right-color: #fff; }
.mfp-dazie .mfp-arrow-right:after { border-left-color: #fff; }

/* zoom-hint clicável */
.pdp-gallery__zoom-hint { cursor: pointer; }

/* ==========================================================================
   PDP REDESIGN — layout aura-48 (galeria lateral + info + buybox)
   Variáveis: roxo var(--au-primary) #4b1d8f · CTA var(--au-cta) #15a05a
   · Pix var(--au-pix) #16803c · radius var(--au-radius) 16px.
   ========================================================================== */

/* ---- Galeria: miniaturas verticais à ESQUERDA + imagem principal ---- */
.pdp-gallery--side {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}
.pdp-gallery--side .pdp-gallery__thumbs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  order: 0;
}
.pdp-gallery--side .pdp-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  max-height: calc(64px * 5 + 10px * 4);
  scroll-behavior: smooth;
  width: 64px;
}
.pdp-gallery--side .pdp-gallery__thumb {
  position: relative;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid var(--au-border, #ece8f3);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pdp-gallery--side .pdp-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pdp-gallery--side .pdp-gallery__thumb:hover { border-color: var(--au-accent, #7c3aed); }
.pdp-gallery--side .pdp-gallery__thumb.active {
  border-color: var(--au-primary, #4b1d8f);
  box-shadow: 0 0 0 2px rgba(75, 29, 143, .18);
}
/* overlay "+N" na última miniatura visível quando há mais de 5 */
.pdp-gallery__thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 23, 51, .62);
  color: #fff;
  font: 700 15px/1 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: .3px;
  pointer-events: none;
}
/* setas do carrossel vertical */
.pdp-gallery--side .pdp-gallery__nav {
  display: none;
  width: 28px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--au-border, #ece8f3);
  border-radius: 8px;
  background: #fff;
  color: var(--au-primary, #4b1d8f);
  cursor: pointer;
}
.pdp-gallery--side .pdp-gallery__nav svg { width: 16px; height: 16px; }
.pdp-gallery--side .pdp-gallery__nav:disabled { opacity: .35; cursor: default; }
/* As setas usam scrollLeft (horizontal) no JS; no layout vertical não rolam.
   O excesso de miniaturas é comunicado pelo overlay "+N" (que abre o lightbox
   com a galeria completa), então mantemos as setas ocultas no layout lateral. */
.pdp-gallery--side .pdp-gallery__nav { display: none !important; }

.pdp-gallery--side .pdp-gallery__main {
  position: relative;
  order: 1;
  border: 1px solid var(--au-border, #ece8f3);
  border-radius: var(--au-radius, 16px);
  background: #fff;
  overflow: hidden;
}
.pdp-gallery--side .pdp-gallery__main #main-product-image {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Eyebrow: categoria em caixa alta (discreto) ---- */
.pcat {
  display: inline-block;
  margin: 0 0 9px;
  color: var(--au-primary, #4b1d8f);
  font: 700 12px/1.2 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
}
.pcat:hover { color: var(--au-primary, #4b1d8f); }

/* ---- Linha de avaliação + Favoritar ---- */
.dazie-mp-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.dazie-mp-rating {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dazie-mp-rating__num {
  font: 700 14px/1 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--au-ink, #1f1733);
}
.dazie-mp-rating__count {
  font: 500 13.5px/1 'Inter', sans-serif;
  color: var(--au-muted, #6f6890);
  text-decoration: none;
}
.dazie-mp-rating__count:hover { color: var(--au-primary, #4b1d8f); text-decoration: underline; }
.dazie-mp-fav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--au-muted, #6f6890);
  font: 600 13.5px/1 'Inter', sans-serif;
  cursor: pointer;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.dazie-mp-fav:hover { color: var(--au-primary, #4b1d8f); background: var(--au-primary-soft, #f1ecfa); }
.dazie-mp-fav svg { flex: 0 0 auto; }

/* ---- Chip "Preço conforme seleção" ---- */
.pseltag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 12px 0 4px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--au-primary-soft, #f1ecfa);
  color: var(--au-primary, #4b1d8f);
  font: 600 12.5px/1 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.pseltag svg { flex: 0 0 auto; }

/* ---- Bloco de preço (redesign) ---- */
.dazie-mp-price__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.dazie-mp-price__old {
  color: var(--au-muted, #6f6890);
  text-decoration: line-through;
  font: 500 15px/1 'Inter', sans-serif;
}
.dazie-mp-price__off {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  background: #fdecec;
  color: #d92d20;
  font: 700 13px/1 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.dazie-mp-price__nowrow {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.dazie-mp-price__now {
  color: var(--au-primary, #4b1d8f);
  font: 800 34px/1.05 'Plus Jakarta Sans', 'Inter', sans-serif;
  letter-spacing: -.5px;
}
.dazie-mp-price__pixlabel {
  color: var(--au-primary, #4b1d8f);
  font: 700 16px/1 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.dazie-mp-pixchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #e9f7ef;
  color: var(--au-pix, #16803c);
  font: 700 12.5px/1 'Plus Jakarta Sans', 'Inter', sans-serif;
}
.dazie-mp-pixchip svg { flex: 0 0 auto; }
.dazie-mp-price__inst {
  margin: 9px 0 0;
  color: var(--au-ink, #1f1733);
  font: 400 14px/1.4 'Inter', sans-serif;
}
.dazie-mp-price__inst strong { font-weight: 700; }

/* ---- Linhas de confiança (buybox) ---- */
.dazie-pdp-trustlines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--au-border, #ece8f3);
}
.dazie-pdp-trustline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--au-ink, #1f1733);
  font: 600 13.5px/1.3 'Inter', sans-serif;
}
.dazie-pdp-trustline svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: var(--au-cta, #15a05a);
}

/* ---- Responsivo: empilha galeria abaixo de 768px ---- */
@media (max-width: 768px) {
  .pdp-gallery--side {
    grid-template-columns: 1fr;
  }
  .pdp-gallery--side .pdp-gallery__main { order: 0; }
  .pdp-gallery--side .pdp-gallery__thumbs-wrap {
    order: 1;
    flex-direction: row;
    width: 100%;
  }
  .pdp-gallery--side .pdp-gallery__thumbs {
    flex-direction: row;
    width: 100%;
    max-height: none;
    overflow-x: auto;
  }
  .pdp-gallery--side.has-overflow .pdp-gallery__nav { display: none; }
}

/* ==========================================================================
   ORDER-BUMP DO REFIL — cards de quantidade com desconto progressivo
   Padrão Aura: roxo var(--au-primary) #4b1d8f · accent #7c3aed · verde economia
   ========================================================================== */
.dazie-refil.dazie-refil--cards {
  display: block;
  border: 1px solid #e7e1f3;
  border-radius: var(--au-radius, 16px);
  background: #faf8ff;
  padding: 16px;
  margin-top: 16px;
}
.dazie-refil--cards .dazie-refil__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.dazie-refil--cards .dazie-refil__img {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ece6f7;
  padding: 4px;
}
.dazie-refil--cards .dazie-refil__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1 1 auto;
}
.dazie-refil--cards .dazie-refil__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #1c1230;
}
.dazie-refil--cards .dazie-refil__head p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #6b6480;
}
.dazie-refil--cards .dazie-refil__rec {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--au-primary, #4b1d8f);
  background: #efe7fb;
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

/* Grade de cards */
.dazie-refil__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dazie-refil-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  min-height: 104px;
  padding: 14px 8px 12px;
  border: 1.5px solid #e2dcf0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  font: inherit;
  color: #1c1230;
}
.dazie-refil-card:hover {
  border-color: var(--au-accent, #7c3aed);
}
.dazie-refil-card.is-active {
  border-color: var(--au-primary, #4b1d8f);
  background: #f3edff;
  box-shadow: 0 0 0 1px var(--au-primary, #4b1d8f) inset;
}
.dazie-refil-card__qty {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}
.dazie-refil-card__price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--au-primary, #4b1d8f);
}
.dazie-refil-card__months {
  font-size: 0.72rem;
  color: #6b6480;
  line-height: 1.15;
}
.dazie-refil-card__note {
  font-size: 0.74rem;
  color: #8a8398;
  line-height: 1.15;
}

/* Badge de economia (verde) */
.dazie-refil-card__badge {
  position: absolute;
  top: -9px;
  right: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .01em;
  color: #fff;
  background: var(--au-cta, #15a05a);
  border-radius: 999px;
  padding: 2px 7px;
  box-shadow: 0 2px 6px rgba(21,160,90,.35);
}

/* Check do card selecionado */
.dazie-refil-card__check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--au-primary, #4b1d8f);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
}
.dazie-refil-card__check svg { width: 11px; height: 11px; }
.dazie-refil-card.is-active .dazie-refil-card__check { display: flex; }

@media (max-width: 600px) {
  .dazie-refil__cards { grid-template-columns: repeat(2, 1fr); }
  .dazie-refil--cards .dazie-refil__top { flex-wrap: wrap; }
}
