/* ─────────────────────────────────────────────────────────────
   BASE HEALTH — Página de produto (AM / PM / Kit)
   Consome tokens.css. Carregada só no single product.
   ───────────────────────────────────────────────────────────── */

.pdp .breadcrumb { margin-bottom: 24px; }

.pdp__grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) {
  .pdp__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; }
  .pdp__gallery { position: sticky; top: 96px; }
}

/* ── Galeria ─────────────────────────────────────────────────── */
.pdp__stage {
  background: #f2efe9;
  border: 1px solid var(--base-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  display: grid;
  place-items: center;
}
.pdp--kit .pdp__stage { aspect-ratio: 4 / 3.4; }
.pdp__stage > img,
.pdp__stage > video { grid-area: 1 / 1; width: 100%; height: 100%; display: block; }
.pdp__stage > img { object-fit: contain; }
.pdp__stage > video { object-fit: cover; }
.pdp__stage > img[hidden],
.pdp__stage > video[hidden] { display: none !important; }
.pdp__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pdp__thumb {
  width: 76px; height: 76px; padding: 0; cursor: pointer;
  border: 1.5px solid var(--base-line); border-radius: var(--r-md);
  overflow: hidden; background: #f2efe9; position: relative;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.pdp__thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp__thumb.is-active { border-color: var(--base-ink); }
.pdp__thumb:hover { border-color: var(--base-line-strong); }
.pdp__thumb-video { position: absolute; inset: 0; display: grid; place-items: center; }
.pdp__thumb-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdp__thumb-video svg { position: relative; width: 22px; height: 22px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }

/* ── Buybox ──────────────────────────────────────────────────── */
.pdp__eyebrow {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wider); text-transform: uppercase;
}
.pdp--am .pdp__eyebrow { color: var(--am-600); }
.pdp--pm .pdp__eyebrow { color: var(--pm-400); }
.pdp--kit .pdp__eyebrow { color: var(--brand-deep); }
.pdp__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--fs-xl); line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight); margin: 8px 0 10px;
}
.pdp__tagline { margin: 0 0 20px; font-size: var(--fs-md); color: var(--base-mute); line-height: var(--lh-normal); max-width: 52ch; }

.pdp__price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--base-line); border-bottom: 1px solid var(--base-line); }
.pdp__price-main { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.02em; }
.pdp__price-notes { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--base-mute); }
.pdp__pix {
  display: inline-flex; align-self: flex-start; align-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  background: var(--am-50); color: var(--am-600);
  border: 1px solid var(--am-200); border-radius: var(--r-pill); padding: 3px 10px;
}

.pdp__bullets { list-style: none; margin: 18px 0 22px; padding: 0; display: grid; gap: 9px; }
.pdp__bullets li { position: relative; padding-left: 26px; font-size: var(--fs-sm); color: var(--base-ink-2); }
.pdp__bullets li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23e8b923'/%3E%3Cpath d='M17.5 8.5 10.4 15.6 6.5 11.8' fill='none' stroke='%232a1f00' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pdp--pm .pdp__bullets li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%231a2547'/%3E%3Cpath d='M17.5 8.5 10.4 15.6 6.5 11.8' fill='none' stroke='%23e6e9f5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── Compra ──────────────────────────────────────────────────── */
.pdp__cart { display: flex; gap: 12px; align-items: stretch; }
.pdp__qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--base-line-strong); border-radius: var(--r-pill);
  background: #fff; overflow: hidden; flex: none;
}
.pdp__qty-btn {
  width: 44px; height: 56px; border: 0; background: none; cursor: pointer;
  font-size: 20px; color: var(--base-ink-2); line-height: 1;
}
.pdp__qty-btn:hover { background: var(--base-surface-2); }
.pdp__qty input {
  width: 40px; height: 56px; border: 0; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--base-ink); background: transparent; -moz-appearance: textfield;
}
.pdp__qty input::-webkit-outer-spin-button, .pdp__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp__add {
  flex: 1; min-height: 56px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--base-ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base);
  box-shadow: 0 14px 30px -12px rgba(20,19,15,.5);
  transition: background var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.pdp__add:hover { background: #000; transform: translateY(-1px); }
.pdp__add:disabled { opacity: .5; cursor: not-allowed; }
.pdp--am .pdp__add { background: var(--am-500); color: var(--am-ink); box-shadow: 0 14px 30px -12px rgba(232,185,35,.6); }
.pdp--am .pdp__add:hover { background: var(--am-400); }
.pdp--pm .pdp__add { background: var(--pm-500); color: var(--pm-ink); }
.pdp--pm .pdp__add:hover { background: var(--pm-400); }

.pdp__trust { list-style: none; margin: 18px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.pdp__trust li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--base-mute); }
.pdp__trust svg { width: 15px; height: 15px; color: var(--base-mute-2); flex: none; }

/* ── Accordions ──────────────────────────────────────────────── */
.pdp__accs { border-top: 1px solid var(--base-line); }
.pdp__acc { border-bottom: 1px solid var(--base-line); }
.pdp__acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 2px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--base-ink);
}
.pdp__acc summary::-webkit-details-marker { display: none; }
.pdp__acc summary svg { width: 18px; height: 18px; color: var(--base-mute-2); transition: transform var(--dur-fast) var(--ease-out); flex: none; }
.pdp__acc[open] summary svg { transform: rotate(180deg); }
.pdp__acc-body { padding: 0 2px 18px; font-size: var(--fs-sm); color: var(--base-ink-2); line-height: var(--lh-normal); }
.pdp__acc-body p { margin: 0; }
.pdp__acc-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ── Ritual (reusa a timeline .howto) ────────────────────────── */
.pdp-ritual__panel { max-width: 560px; }
.pdp-ritual .howto__steps { margin-bottom: 0; }

/* ── Prova social no PDP: fundo creme ────────────────────────── */
.pdp-stories.stories { background: var(--base-bg); }

/* ── Cross-sell ──────────────────────────────────────────────── */
.pdp-cross__grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .pdp-cross__grid { grid-template-columns: repeat(3, 1fr); } }
.pdp-cross__card {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1.5px solid var(--base-line); border-radius: var(--r-lg);
  padding: 16px; text-decoration: none; color: var(--base-ink);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.pdp-cross__card:hover { border-color: var(--base-ink); transform: translateY(-2px); box-shadow: 0 18px 36px -20px rgba(20,19,15,.3); }
.pdp-cross__card.is-current { opacity: .6; pointer-events: none; }
.pdp-cross__visual { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3.2; margin-bottom: 10px; background: #f2efe9; display: grid; place-items: center; }
.pdp-cross__visual img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-cross__name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.pdp-cross__desc { font-size: 13px; color: var(--base-mute); }
.pdp-cross__price { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 14px; }

/* ── Botão de compra na cor do produto (vence a regra global do woo.css) ── */
main#main.pdp--am .pdp__add { background: var(--am-500); color: var(--am-ink); box-shadow: 0 14px 30px -12px rgba(232,185,35,.6); }
main#main.pdp--am .pdp__add:hover { background: var(--am-400); }
main#main.pdp--pm .pdp__add { background: var(--pm-500); color: var(--pm-ink); box-shadow: 0 14px 30px -12px rgba(26,37,71,.5); }
main#main.pdp--pm .pdp__add:hover { background: var(--pm-400); }

/* ── Foco visível (teclado) ── */
.pdp__thumb:focus-visible,
.pdp__qty-btn:focus-visible,
.pdp__qty input:focus-visible,
.pdp__add:focus-visible,
.pdp__acc summary:focus-visible,
.pdp-cross__card:focus-visible { outline: 2px solid var(--base-ink); outline-offset: 3px; border-radius: 6px; }

/* ── Barra de compra fixa no mobile ── */
.pdp__mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-top: 1px solid var(--base-line);
}
.pdp__mobilebar-price { font-family: var(--font-display); font-weight: 700; font-size: 18px; white-space: nowrap; }
.pdp__mobilebar-add {
  flex: 1; min-height: 50px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--base-ink); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.pdp__mobilebar-add:disabled { opacity: .5; cursor: not-allowed; }
@media (min-width: 960px) { .pdp__mobilebar { display: none; } }
@media (max-width: 959px) { main.pdp.bh-page { padding-bottom: 140px; } }

/* ── Ritual (PDP): timeline HORIZONTAL no desktop ─────────────────
   O trilho vertical de styles.css vira uma linha horizontal cruzando
   o centro dos 3 nós; no mobile permanece o modelo vertical. */
@media (min-width: 880px) {
  /* solta o cap de 560px e o grid 2-col herdado da home */
  .pdp-ritual__panel { max-width: none; }
  .howto__panel.is-active.pdp-ritual__panel { grid-template-columns: 1fr; }
  .pdp-ritual__panel .howto__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-8);
  }
  .pdp-ritual__panel .howto__step {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s-4);
  }
  .pdp-ritual__panel .howto__step p { max-width: 32ch; }
  .pdp-ritual__panel .howto__steps::before,
  .pdp-ritual__panel .howto__steps::after {
    left: 20px;
    top: 19px;
    bottom: auto;
    height: 2px;
    width: calc((((100% - (2 * var(--s-8))) / 3) + var(--s-8)) * 2);
  }
  .howto__panel.is-anim.pdp-ritual__panel .howto__steps::after {
    transform-origin: left;
    animation: pdpRailX 720ms var(--ease-out) 100ms both;
  }
}
@keyframes pdpRailX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Reestruturação PDP: hierarquia e ritmo (2026-08-27) ───────── */
/* títulos das seções internas no padrão grande do site */
.pdp .section__head h2 { font-size: clamp(32px, 4.2vw + 10px, 68px); text-wrap: balance; }
/* buybox: tagline no corpo de subtítulo, preço com mais presença */
.pdp__tagline { font-size: clamp(16px, 1.1vw + 10px, 21px); max-width: 46ch; }
.pdp__price-main { font-size: clamp(34px, 2.6vw + 12px, 46px); }
.pdp__price-notes { font-size: 14px; gap: 4px; }
.pdp__pix { font-size: 13px; padding: 4px 12px; }
.pdp__bullets li { font-size: 15px; }

/* título do produto em Instrument Serif (padrão de títulos do site) */
.pdp__title { font-family: var(--font-serif); font-weight: 400; }

/* ── Informação nutricional (accordion do PDP) ─────────────── */
.pdp-nutri { margin: 0 0 20px; }
.pdp-nutri:last-of-type { margin-bottom: 0; }
.pdp-nutri__title {
  font-family: var(--font-display, inherit); font-weight: 700; font-size: 14px;
  margin: 0 0 8px; color: var(--base-ink, #1a1a17);
  display: inline-flex; align-items: center; gap: 8px;
}
.pdp-nutri__title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .85; }
.pdp--am .pdp-nutri__title { color: var(--am-600, #b9891a); }
.pdp--pm .pdp-nutri__title, .pdp-nutri:last-of-type .pdp-nutri__title { color: var(--pm-500, #2e4a8f); }
.pdp-nutri__meta { font-size: 12.5px; color: var(--base-mute, #6b6459); margin: 0 0 10px; }
.pdp-nutri__scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--base-line, #e7e1d6); border-radius: 12px;
}
.pdp-nutri__table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pdp-nutri__table thead th {
  text-align: right; font-weight: 700; font-size: 11.5px; letter-spacing: .02em;
  color: var(--base-ink, #1a1a17); background: var(--base-surface-2, #f4f1ec);
  padding: 10px 14px; border-bottom: 1px solid var(--base-line, #e7e1d6); white-space: nowrap;
}
.pdp-nutri__table thead th:first-child { text-align: left; }
.pdp-nutri__table tbody th {
  text-align: left; font-weight: 500; color: var(--base-ink-2, #3a352c);
  padding: 9px 14px; border-bottom: 1px solid var(--base-line-soft, #efeae0);
}
.pdp-nutri__table tbody td {
  text-align: right; color: var(--base-ink-2, #3a352c); font-variant-numeric: tabular-nums;
  white-space: nowrap; padding: 9px 14px; border-bottom: 1px solid var(--base-line-soft, #efeae0);
}
.pdp-nutri__table tbody td:last-child { color: var(--base-mute, #6b6459); }
.pdp-nutri__table tbody tr:last-child th,
.pdp-nutri__table tbody tr:last-child td { border-bottom: 0; }
.pdp-nutri__table tbody tr:hover th,
.pdp-nutri__table tbody tr:hover td { background: var(--base-surface-2, #f7f4ef); }
.pdp-nutri__obs,
.pdp-nutri__foot { font-size: 11.5px; color: var(--base-mute, #6b6459); line-height: 1.5; margin: 9px 2px 0; }
@media (max-width: 480px) {
  .pdp-nutri__table { font-size: 12.5px; }
  .pdp-nutri__table thead th,
  .pdp-nutri__table tbody th,
  .pdp-nutri__table tbody td { padding: 8px 10px; }
}
