/* ============================================================
   MyLu · Produto — palco do frasco (esq.) + ficha editorial (dir.)
   Mundo claro. O frasco é o protagonista, flutuando no halo.
   ============================================================ */

.pd-main { padding-top: var(--header-h); }

/* Página interna é mundo CLARO sempre: neutraliza a jornada escura da
   landing (sem #favorites aqui, o trigger do motion.js dispara no topo) */
body.is-dark { background-color: var(--bg); }
body.is-dark .site-footer { background: var(--espresso); }
.site-header[data-theme="dark"] {
  background: rgba(246, 239, 225, 0.72);
  color: var(--ink);
}
.site-header[data-theme="dark"] .wordmark em { color: var(--ink-gold); }
.site-header[data-theme="dark"] .nav-link::after { background: var(--wheat); }

.pd-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  column-gap: clamp(24px, 4vw, 72px);
  align-items: start;
}

/* ----------------- PALCO ----------------- */
.pd-stage {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 1;
}

/* halo: arcos concêntricos da meia-lua, abertos no alto */
.pd-arcs {
  position: absolute; left: 50%; top: 50%;
  width: min(92%, 560px); height: auto; aspect-ratio: 1 / 1;
  transform: translate(-50%, -55%);
  overflow: visible; pointer-events: none; z-index: 0;
}
.pd-arcs path { stroke: var(--line-gold); stroke-width: 1; fill: none; }

.pd-stage .grain-dust { z-index: 0; }

/* frasco grande, dimensionado pela ALTURA: fotos de qualquer proporção
   (alta e fina ou baixa e bojuda) ocupam a mesma presença no palco */
.pd-bottle {
  position: relative; z-index: 2;
  height: clamp(380px, 56svh, 580px);
  width: min(38vw, 400px);
  display: flex; align-items: flex-end; justify-content: center;
}
/* wrappers do drag/respiração herdam a caixa: sem tamanho aqui o
   height:100% da foto não tem referência e cada foto renderia no
   tamanho natural (frasco alto e fino estoura o palco e sai da tela) */
.pd-bottle-drag,
.pd-bottle-breathe { width: 100%; height: 100%; }
.pd-bottle .flacon { width: 100%; height: 100%; }
.pd-bottle-drag { cursor: grab; touch-action: pan-y; }
.pd-bottle-drag:active { cursor: grabbing; }
.pd-bottle-breathe {
  transform-origin: 50% 100%;
  animation: pd-breathe 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 44px rgba(42, 32, 24, 0.34));
}
@keyframes pd-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012); } }
@media (prefers-reduced-motion: reduce) { .pd-bottle-breathe { animation: none; } }

.pd-hint {
  position: relative; z-index: 2;
  margin-top: var(--s-5);
  letter-spacing: 0.2em; text-transform: uppercase;
}

/* setas: perfume vizinho */
.pd-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line-gold); color: var(--ink-2);
  display: grid; place-items: center;
  transition: background var(--dur-quick) var(--ease-soft),
              color var(--dur-quick) var(--ease-soft);
}
.pd-arrow:hover { background: var(--wheat); color: var(--on-gold); }
.pd-arrow svg { width: 18px; height: 18px; }
.pd-arrow--prev { left: 0; }
.pd-arrow--next { right: 0; }

/* ----------------- FICHA ----------------- */
.pd-sheet {
  max-width: 600px;
  padding: clamp(40px, 7vh, 88px) 0 var(--s-9);
}

.pd-crumb { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pd-crumb a { transition: color var(--dur-quick); }
.pd-crumb a:hover { color: var(--wheat-deep); }
.pd-crumb span[aria-hidden] { opacity: 0.5; }

.pd-world { margin-top: var(--s-6); }
.pd-name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.02; letter-spacing: -0.01em;
  margin-top: var(--s-3);
}
.pd-name em { font-style: italic; color: var(--ink-gold); }
.pd-notes-line { margin-top: var(--s-3); letter-spacing: 0.08em; }

/* ----------------- BLOCO DE COMPRA ----------------- */
.pd-buy {
  margin-top: var(--s-7);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line-gold);
}
.pd-buy-label { color: var(--ink-2); }

/* cartões-pill de tamanho, mini frascos crescentes na mesma base */
.pd-sizes {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3); margin-top: var(--s-4);
}
.pd-size {
  height: 96px; min-width: 0;
  display: flex; align-items: flex-end; justify-content: center; gap: 10px;
  padding: 12px 8px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--bg-warm);
  transition: background var(--dur-quick) var(--ease-soft),
              border-color var(--dur-quick) var(--ease-soft),
              transform var(--dur-quick) var(--ease-soft),
              box-shadow var(--dur-quick) var(--ease-soft);
}
.pd-size:hover { border-color: var(--line-gold); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pd-size .flacon { width: 100%; height: auto; }
.pd-size-fl { flex: 0 0 auto; display: block; }
.pd-size-ml {
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.06em;
  color: var(--ink-2); line-height: 1; padding-bottom: 3px;
  white-space: nowrap;
}
.pd-size[aria-checked="true"] {
  background: var(--espresso); border-color: var(--espresso);
  box-shadow: var(--shadow-md);
}
.pd-size[aria-checked="true"] .pd-size-ml { color: var(--cream); }

.pd-price-row {
  display: flex; align-items: baseline; gap: var(--s-4); flex-wrap: wrap;
  margin-top: var(--s-5);
}
.pd-total { font-size: 2rem; line-height: 1; }
.pd-perml { letter-spacing: 0.04em; }

.pd-add { width: 100%; margin-top: var(--s-5); --btn-fill: var(--espresso); --btn-ink: var(--cream); }
.pd-add::after { background: var(--espresso-80); }

/* ----------------- SUBSEÇÕES DA FICHA ----------------- */
/* anula o respiro de .section (scaffolding da landing) dentro da ficha */
.pd-sheet .section { padding-block: 0; }

/* 3 notas com hairline dourada */
.pd-sub { margin-top: var(--s-8); }
.pd-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.pd-note { border-top: 1px solid var(--line-gold); padding-top: var(--s-4); }
.pd-note-ing {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.2rem, 1.6vw, 1.45rem); line-height: 1.15;
  margin-top: var(--s-2);
}
.pd-note-phrase { margin-top: var(--s-1); }

/* história */
.pd-story { border-top: 1px solid var(--line-gold); padding-top: var(--s-6); }
.pd-story-text {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  margin-top: var(--s-3); max-width: 44ch;
}

/* relacionados */
.pd-related-head { border-top: 1px solid var(--line-gold); padding-top: var(--s-6); }
.pd-related-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.06;
  margin-top: var(--s-2);
}
.pd-related {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3); margin-top: var(--s-6);
}
.pd-mini {
  display: block; text-align: center;
  padding: var(--s-5) var(--s-3) var(--s-4);
  border-radius: var(--r-lg);
  transition: background var(--dur-calm) var(--ease-soft);
}
.pd-mini:hover { background: var(--bg-warm); }
.pd-mini .flacon {
  /* caixa fixa base-anchored (razão 1.66 dos cards): fotos de qualquer
     proporção ocupam o mesmo espaço e os nomes alinham entre os 3 */
  width: 64px; height: 106px; margin: 0 auto var(--s-3);
  filter: drop-shadow(0 16px 20px rgba(42, 32, 24, 0.22));
  transition: transform var(--dur-calm) var(--ease-bloom);
  transform-origin: 50% 90%;
}
.pd-mini:hover .flacon { transform: translateY(-6px) rotate(-2deg); }
.pd-mini-name {
  display: block;
  font-family: var(--serif); font-weight: 600;
  font-size: 1.02rem; line-height: 1.15;
}
.pd-mini-price {
  display: block; margin-top: 4px;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 0.88rem; color: var(--wheat-deep);
  font-variant-numeric: tabular-nums;
}

/* ----------------- BARRA STICKY (mobile) ----------------- */
.pd-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 64px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--cream-warm);
  border-top: 1px solid var(--line-gold);
  box-shadow: 0 -14px 30px -18px rgba(42, 32, 24, 0.28);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.34s var(--ease-soft), visibility 0.34s;
}
.pd-sticky.is-on { transform: translateY(0); visibility: visible; }
.pd-sticky-info { display: flex; flex-direction: column; min-width: 0; }
.pd-sticky-total {
  font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.1;
  color: var(--ink-gold); font-variant-numeric: tabular-nums;
}
.pd-sticky-btn { flex: 0 0 auto; min-height: 44px; padding: 0 var(--s-5); --btn-fill: var(--espresso); --btn-ink: var(--cream); }
.pd-sticky-btn::after { background: var(--espresso-80); }

/* ----------------- MOBILE ----------------- */
@media (max-width: 900px) {
  .pd-grid { grid-template-columns: 1fr; column-gap: 0; }
  .pd-stage {
    position: relative; top: 0;
    height: 62svh; min-height: 420px; max-height: 640px;
  }
  .pd-bottle { height: min(44svh, 420px); width: min(64vw, 300px); }
  .pd-sheet { max-width: none; padding-top: var(--s-6); padding-bottom: calc(var(--s-9) + 72px); }
  .pd-sticky { display: flex; }
  .pd-notes { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 480px) {
  .pd-sizes { grid-template-columns: repeat(2, 1fr); }
  .pd-size { height: 84px; }
  .pd-related { grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
  .pd-mini { padding-inline: var(--s-1); }
}
