/*
  Receita: petal-spruce / 01-vitrine-de-beleza
  Vitrine de loja de beleza. Escrita a partir de references/beauty/reference-01 e dos tokens da família
  (R29) — não de outra receita. Comportamento (troca de slides, trilhos, sacola, diálogos, busca,
  favoritos, variação, abas, menus suspensos) é todo global; aqui só a aparência.
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--ps-white);
  color: var(--ps-ink);
  font: 400 var(--ps-body-size)/var(--ps-body-leading) var(--ps-font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }

/* Faixas com texto branco (cabeçalho, vantagens, cadastro, rodapé): pétala aprofundada, para o branco ler a
   4,6:1 — a pétala clara da família dá 2,5:1, abaixo do mínimo de 4,5:1 (WCAG 1.4.3). A pétala clara segue
   nos detalhes (fios, fundos suaves, selos). */
[data-ws2-family="petal-spruce"] { --ps-band: #AD5D70; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ps-spruce); outline-offset: 3px; }

.wrap { width: min(var(--ps-container), calc(100% - 2 * var(--ps-gutter))); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -80px; z-index: 100; padding: 10px 16px;
  background: var(--ps-spruce); color: var(--ps-white); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Botões e links -------------------------------------------------------------------- */
.icon-button {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: inherit;
  transition: background .25s var(--ps-ease);
}
.icon-button:hover { background: rgba(31, 42, 41, .07); }
.icon-button svg { width: 24px; height: 24px; }
.icon-count {
  position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--ps-radius-pill);
  background: var(--ps-spruce); color: var(--ps-white); font-size: 11px; font-weight: 700; line-height: 1;
}
.link-line {
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--ps-ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; white-space: nowrap;
  transition: color .2s, text-decoration-color .2s;
}
.link-line:hover { color: var(--ps-spruce); text-decoration-thickness: 2px; }
a.link-line:not([href]) { cursor: default; }
.button-outline {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 24px;
  border: 1px solid var(--ps-ink); border-radius: var(--ps-radius-button); background: transparent; color: var(--ps-ink);
  font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .3s var(--ps-ease), color .3s var(--ps-ease), border-color .3s var(--ps-ease);
}
.button-outline:hover { background: var(--ps-ink); color: var(--ps-white); }
.pill { border-radius: var(--ps-radius-pill); padding: 0 36px; }
.button-primary {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px;
  border: 0; border-radius: var(--ps-radius-button); background: var(--ps-action); color: var(--ps-white);
  font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background .25s var(--ps-ease);
}
.button-primary:hover { background: var(--ps-action-hover); }
.button-primary:disabled { opacity: .45; cursor: not-allowed; }
.button-primary svg { width: 20px; height: 20px; }

/* Faixa de avisos ------------------------------------------------------------------------ */
.announce { background: var(--ps-mist); color: var(--ps-ink); font-size: 14px; }
.announce-inner {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 560px) 36px; justify-content: center;
  align-items: center; gap: 8px; min-height: 38px; padding-inline: 56px;
}
.announce-arrow, .announce-pause {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: none;
  color: var(--ps-muted); cursor: pointer;
}
.announce-arrow:hover, .announce-pause:hover { color: var(--ps-ink); }
.announce-arrow svg { width: 18px; height: 18px; }
.announce-pause { position: absolute; right: max(12px, calc((100% - var(--ps-container)) / 2)); top: 1px; }
.announce-pause svg { width: 16px; height: 16px; }
.announce-list { position: relative; height: 22px; overflow: hidden; }
.announce-list li {
  position: absolute; inset: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ps-ease), transform .45s var(--ps-ease);
}
.announce-list li.is-active { opacity: 1; transform: none; }
[data-ws2-rotator-toggle] .ic-play, [data-ws2-rail-toggle] .ic-play { display: none; }
[data-ws2-rotator-toggle][aria-pressed="true"] .ic-play, [data-ws2-rail-toggle][aria-pressed="true"] .ic-play { display: block; }
[data-ws2-rotator-toggle][aria-pressed="true"] .ic-pause, [data-ws2-rail-toggle][aria-pressed="true"] .ic-pause { display: none; }

/* Cabeçalho ---------------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 40; background: var(--ps-band); color: var(--ps-header-ink);
  transition: box-shadow .3s var(--ps-ease);
}
.header.scrolled { box-shadow: 0 1px 0 rgba(31, 42, 41, .14), 0 10px 30px rgba(31, 42, 41, .06); }
.header-row {
  width: min(var(--ps-container), calc(100% - 2 * var(--ps-gutter))); margin-inline: auto; height: var(--ps-header-h);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
}
.menu-open { display: none; }
.nav-main { display: flex; align-items: center; gap: clamp(14px, 1.7vw, 26px); font-size: var(--ps-nav-size); font-weight: 500; }
.nav-main > a, .nav-drop-button {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; border: 0; background: none; cursor: pointer;
  text-decoration: none; font-weight: 500; white-space: nowrap;
  background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat;
  background-position: 0 calc(100% - 4px); background-size: 0 1px; transition: background-size .3s var(--ps-ease);
}
.nav-main > a:hover, .nav-drop-button:hover, .nav-drop.is-open .nav-drop-button { background-size: 100% 1px; }
.nav-drop-button svg { width: 16px; height: 16px; transition: transform .25s var(--ps-ease); }
.nav-drop-button[aria-expanded="true"] svg { transform: rotate(180deg); }
.brand { justify-self: center; display: block; text-decoration: none; color: var(--ps-white); }
.brand-word {
  display: block; font-family: var(--ps-font-display); font-size: clamp(30px, 2.8vw, 40px); line-height: 1;
  letter-spacing: .06em; text-transform: lowercase;
}
.header-actions { justify-self: end; display: flex; align-items: center; gap: 2px; }
.header .icon-button:hover { background: rgba(255, 255, 255, .2); }

/* Menu suspenso: painel largo sob o cabeçalho */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; color: var(--ps-ink); background: var(--ps-white);
  box-shadow: 0 24px 48px rgba(31, 42, 41, .1);
}
/* véu pétala sobre o branco: acompanha o tom da faixa (R26) */
.mega::before { content: ""; position: absolute; inset: 0; background: var(--ps-petal-soft); opacity: .45; pointer-events: none; }
.nav-drop.is-open .mega { animation: ps-drop .26s var(--ps-ease); }
/* como na referência: título em serifada, três colunas de links finos separadas por fio pétala, e à
   direita um trilho de dois produtos com contador */
.mega-inner {
  position: relative; width: min(var(--ps-container), calc(100% - 2 * var(--ps-gutter))); margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 452px); gap: clamp(32px, 4vw, 64px); padding: 40px 0 48px;
}
.mega-title { font-family: var(--ps-font-display); font-size: 22px; line-height: 1.2; color: var(--ps-petal-text); }
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 30px; }
.mega-col { display: flex; flex-direction: column; gap: 4px; padding: 0 24px; border-left: 1px solid var(--ps-petal); }
.mega-col:first-child { padding-left: 0; border-left: 0; }
.mega-col a {
  display: inline-block; padding: 8px 0; font-size: 16px; line-height: 1.4; color: var(--ps-petal-text); text-decoration: none;
  transition: color .2s;
}
.mega-col a:hover { color: var(--ps-spruce); text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.mega-side { min-width: 0; }
.mega-side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.mega-counter { display: flex; align-items: center; gap: 2px; color: var(--ps-ink); font-size: 15px; }
.mega-count { min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; }
.mega-arrow { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ps-ink); }
.mega-arrow svg { width: 18px; height: 18px; }
.mega-track { gap: 14px; }
.mega-track > li { width: calc((100% - 14px) / 2); }
.mini { position: relative; }
.mini-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ps-nude); border-radius: var(--ps-radius-media); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ps-ease); }
.mini:hover .mini-media img { transform: scale(1.04); }
.mini-wish { position: absolute; top: 6px; right: 6px; }
.mini-name {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 12px 12px 10px;
  font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ps-ink); text-decoration: none;
}
.mini-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.mini .product-price, .mini .product-terms { margin-inline: 12px; }
.mini .product-terms { font-size: 13px; }

/* Hero em slides ------------------------------------------------------------------------ */
.hero { position: relative; background: var(--ps-mist); overflow: hidden; }
.hero-stage { position: relative; display: grid; min-height: clamp(540px, 46vw, 680px); }
/* slides empilhados na mesma célula: o palco tem a altura do maior, e nada vaza no celular */
.slide {
  grid-area: 1 / 1; position: relative; opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ps-ease), visibility 0s linear .8s;
}
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--ps-ease); z-index: 1; }
.slide-media { position: relative; overflow: hidden; background: var(--ps-nude); }
.slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.is-active .slide-media img { animation: ps-settle-slow var(--ps-kenburns) var(--ps-ease) both; }
.slide-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.slide-split .slide-media { min-height: 100%; }
.slide-flip .slide-media { order: -1; }
.slide-copy {
  align-self: center; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: clamp(32px, 5vw, 72px) clamp(28px, 5vw, 80px) clamp(72px, 6vw, 92px) max(84px, calc((100vw - var(--ps-container)) / 2 + 56px));
  color: var(--ps-petal-text);
}
.slide-flip .slide-copy { padding-left: clamp(28px, 5vw, 80px); padding-right: max(84px, calc((100vw - var(--ps-container)) / 2 + 56px)); }
.kicker { font-size: 14px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hero-title {
  font-family: var(--ps-font-display); font-weight: 700; font-size: var(--ps-hero-heading); line-height: 1.02;
  letter-spacing: .005em; color: var(--ps-petal-text); text-wrap: balance;
}
.hero-sub { font-family: var(--ps-font-display); font-size: clamp(19px, 1.8vw, 26px); line-height: 1.25; color: var(--ps-petal-text); }
.offer { display: flex; align-items: stretch; gap: 30px; margin: 14px 0 10px; }
.offer p { display: flex; flex-direction: column; gap: 2px; }
.offer p + p { padding-left: 30px; border-left: 1px solid currentColor; }
.offer-qty { font-size: clamp(18px, 1.6vw, 24px); font-weight: 400; }
.offer-off { font-family: var(--ps-font-display); font-weight: 600; font-size: clamp(46px, 5.2vw, 80px); line-height: .95; }
.offer-off small { font-size: .32em; font-weight: 400; margin-left: 4px; vertical-align: super; }
.slide-copy .button-outline { color: var(--ps-petal-text); border-color: var(--ps-petal-text); margin-top: 8px; }
.slide-copy .button-outline:hover { background: var(--ps-petal-text); color: var(--ps-white); }
.fineprint { font-size: 12px; color: var(--ps-muted); max-width: 46ch; line-height: 1.5; }

.slide-full .slide-media { position: absolute; inset: 0; }
.slide-full::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(29, 56, 54, .62), rgba(29, 56, 54, 0) 58%);
}
.slide-full .slide-copy {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; align-items: center; text-align: center;
  padding: 0 var(--ps-gutter) clamp(70px, 7vw, 96px); color: var(--ps-white);
}
.slide-full .hero-title, .slide-full .hero-sub { color: var(--ps-white); }
.button-light {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 36px;
  border: 1px solid var(--ps-white); background: transparent; color: var(--ps-white); cursor: pointer;
  font-size: 14px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background .3s var(--ps-ease), color .3s var(--ps-ease);
}
.button-light:hover { background: var(--ps-white); color: var(--ps-spruce); }
/* sem a foto de fundo, o slide de tela cheia volta para a faixa clara */
.slide-full:has([data-ws2-empty])::after { display: none; }
.slide-full:has([data-ws2-empty]) .slide-copy, .slide-full:has([data-ws2-empty]) .hero-title,
.slide-full:has([data-ws2-empty]) .hero-sub { color: var(--ps-petal-text); }
.slide-full:has([data-ws2-empty]) .button-light { color: var(--ps-petal-text); border-color: var(--ps-petal-text); }

.hero-controls { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-controls > * { pointer-events: auto; }
.hero-arrow {
  position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .86); color: var(--ps-ink); cursor: pointer;
  box-shadow: 0 6px 18px rgba(31, 42, 41, .12); transition: background .2s;
}
.hero-arrow:hover { background: var(--ps-white); }
.hero-arrow:first-child { left: clamp(10px, 1.6vw, 24px); }
.hero-arrow:last-child { right: clamp(10px, 1.6vw, 24px); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-dots {
  position: absolute; left: 50%; bottom: 20px; translate: -50% 0; display: flex; gap: 4px; padding: 0 10px;
  border-radius: var(--ps-radius-pill); background: rgba(255, 255, 255, .82);
}
.hero-dots button { width: 40px; height: 28px; padding: 12px 4px; border: 0; background: none; cursor: pointer; }
.hero-dots button span { position: relative; display: block; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(31, 42, 41, .2); }
.hero-dots button span::after {
  content: ""; position: absolute; inset: 0; background: var(--ps-spruce);
  transform: scaleX(var(--ws2-progress, 0)); transform-origin: left;
}
.hero-dots button.is-active span { background: rgba(44, 80, 78, .3); }
.hero-pause {
  position: absolute; bottom: 20px; left: calc(50% + 86px); width: 28px; height: 28px; display: grid; place-items: center;
  padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .82); color: var(--ps-ink); cursor: pointer;
}
.hero-pause svg { width: 16px; height: 16px; }

/* Vantagens ----------------------------------------------------------------------------- */
.perks { background: var(--ps-band); color: var(--ps-header-ink); }
.perks-list svg { color: var(--ps-spruce); }
.perks-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 20px; }
.perks-list li { display: flex; align-items: center; justify-content: center; gap: 14px; }
.perks-list svg { width: 34px; height: 34px; flex: none; stroke-width: 1.3; }
.perks-list p { display: flex; flex-direction: column; line-height: 1.3; }
.perks-list strong { font-size: 16px; font-weight: 600; }
.perks-list span { font-size: 14px; }

/* Seções ---------------------------------------------------------------------------------- */
.section { padding-block: var(--ps-band-y); }
.section-tight { padding-block: clamp(44px, 5vw, 76px); }
.section-mist { background: var(--ps-mist); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 3vw, 40px); }
.section-head h2, .editorial-title, .needs-aside h2 {
  font-family: var(--ps-font-display); font-size: var(--ps-section-heading); line-height: 1.1; color: var(--ps-spruce);
}
.section-head p { margin-top: 10px; color: var(--ps-muted); max-width: 54ch; }

/* Produto ----------------------------------------------------------------------------------- */
.product { position: relative; display: flex; flex-direction: column; height: 100%; }
.product-media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--ps-radius-media); background: var(--ps-nude);
}
.product-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity .55s var(--ps-ease), transform var(--ps-settle) var(--ps-ease);
}
.product-img-alt { opacity: 0; }
@media (hover: hover) {
  .product:hover .product-img-alt, .product:focus-within .product-img-alt { opacity: 1; }
}
/* o editor mostra a segunda foto para a cliente trocar (contrato de imagens) */
.product[data-ws2-show-alt] .product-img-alt { opacity: 1; }
.reveal .product-img { transform: scale(1.06); }
.reveal.in .product-img { transform: scale(1); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 6px 9px; border-radius: 2px;
  background: var(--ps-spruce); color: var(--ps-white); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; line-height: 1;
}
.product-peek { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: none; cursor: pointer; }
.wish {
  position: absolute; top: 6px; right: 6px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center;
  padding: 0; border: 0; background: none; color: var(--ps-ink); cursor: pointer;
}
.wish svg { width: 22px; height: 22px; transition: transform .25s var(--ps-ease), fill .25s, stroke .25s; }
.wish:hover svg { transform: scale(1.08); }
.wish[aria-pressed="true"] svg { fill: var(--ps-petal-text); stroke: var(--ps-petal-text); }
.product-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 2px 0; }
.product-name { font-family: var(--ps-font-ui); font-size: 16px; font-weight: 600; line-height: 1.3; }
.product-name button { padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.product-name button:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-price { margin-top: 2px; }
.price { font-size: var(--ps-price-size); font-weight: 500; color: var(--ps-ink); }
.product-terms { display: flex; flex-direction: column; gap: 1px; font-size: 14px; color: var(--ps-muted); line-height: 1.4; }
.pix { color: var(--ps-spruce); font-weight: 500; }
.add {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: auto; padding: 0 14px;
  border: 0; border-radius: var(--ps-radius-button); background: var(--ps-action); color: var(--ps-white); cursor: pointer;
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .25s var(--ps-ease);
}
.product-body .add { margin-top: 10px; }
.add:hover { background: var(--ps-action-hover); }
.add svg { width: 19px; height: 19px; }
@media (hover: hover) {
  .product-card .add { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ps-ease), transform .3s var(--ps-ease), background .25s; }
  .product-card:hover .add, .product-card:focus-within .add { opacity: 1; transform: none; }
}

.variants { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 2px; padding: 0; border: 0; min-width: 0; }
.variant { position: relative; display: inline-flex; cursor: pointer; }
.variant input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.variant > span:not(.ws2-visually-hidden) {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-pill); font-size: 13px; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}
.variant input:checked + span { background: var(--ps-ink); border-color: var(--ps-ink); color: var(--ps-white); }
.variant input:focus-visible + span { outline: 2px solid var(--ps-spruce); outline-offset: 2px; }
.variant-color > .swatch {
  width: 28px; height: 28px; min-height: 0; padding: 0; border-radius: 50%; background: var(--swatch);
  border: 3px solid var(--ps-white); box-shadow: 0 0 0 1px var(--ps-line);
}
.variant-color input:checked + .swatch { background: var(--swatch); border-color: var(--ps-white); box-shadow: 0 0 0 2px var(--ps-ink); }

/* Mais vendidos ---------------------------------------------------------------------------- */
.featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: stretch; }
/* a foto editorial acompanha a altura da grade de produtos ao lado */
.featured-photo { position: relative; min-height: 460px; overflow: hidden; border-radius: var(--ps-radius-media); background: var(--ps-nude); }
.featured-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--ps-ease); }
.featured-photo.in img { transform: scale(1); }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }

/* Vídeos em uso: a fila ocupa a largura toda, como na referência. Cabem --ps-story-count itens; o
   do meio cresce --ps-story-grow e os outros abrem espaço para ele, então o vão entre todos fica
   igual. Largura pelo contêiner (cqi), não pela tela: a barra de rolagem não entra na conta. --- */
.story-rail {
  position: relative; container-type: inline-size;
  --ps-story-gap: 16px; --ps-story-count: 7; --ps-story-grow: 1.16;
  --ws2-rail-item: calc((100cqi - (var(--ps-story-count) + 1) * var(--ps-story-gap) + 4px) / (var(--ps-story-count) + var(--ps-story-grow) - 1));
}
.stories .section-head { margin-bottom: 4px; }
/* quantos cabem: o item nunca fica com menos de ~190 px, para o card do produto respirar */
@media (max-width: 1499px) { .story-rail { --ps-story-count: 6; } }
@media (max-width: 1279px) { .story-rail { --ps-story-count: 5; } }
.story-track { gap: var(--ps-story-gap); padding-block: calc(var(--ws2-rail-item) * .2 + 12px) 28px; }
/* a transformação fica no card de dentro: o encaixe do navegador mede o item (li) sem ela */
.story-card { transform-origin: 50% 72%; transition: transform .6s var(--ps-ease); }
.story.is-center .story-card { transform: scale(var(--ps-story-grow)); }
.story:has(~ .story.is-center) .story-card { transform: translateX(calc(var(--ws2-rail-item) * (1 - var(--ps-story-grow)) / 2)); }
.story.is-center ~ .story .story-card { transform: translateX(calc(var(--ws2-rail-item) * (var(--ps-story-grow) - 1) / 2)); }
.story-media { position: relative; aspect-ratio: 10 / 17; overflow: hidden; border-radius: var(--ps-radius-story); background: var(--ps-nude); }
.story-media img, .story-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* vídeo de verdade: a capa fica até ele tocar */
.story-media video { opacity: 0; transition: opacity .45s var(--ps-ease); }
.story[data-ws2-video-playing] .story-media video { opacity: 1; }
.story-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(29, 56, 54, .55), rgba(29, 56, 54, 0) 42%);
}
/* barra do avanço sozinho: enche no vídeo do meio; parada, fica onde está */
.story-media::before {
  content: ""; position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; height: 3px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(var(--ps-white), var(--ps-white)) 0 0 / calc(var(--ws2-rail-progress, 0) * 100%) 100% no-repeat, rgba(255, 255, 255, .38);
  opacity: 0; transition: opacity .3s var(--ps-ease);
}
[data-ws2-rail-autoplay]:not([data-ws2-rail-paused]) .story.is-center .story-media::before { opacity: 1; }
.story-label {
  position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: var(--ps-white);
  font-family: var(--ps-font-display); font-size: 18px; line-height: 1.2;
}
.story-product {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 12px;
  padding: 8px; border: 1px solid var(--ps-line); border-radius: var(--ps-radius-card); background: var(--ps-white);
}
.story-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 2px; background: var(--ps-nude); }
.story-copy { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.story-name { font-size: 13px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story-price { font-size: 13px; }
.story-add {
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--ps-spruce); color: var(--ps-white); cursor: pointer; transition: background .2s;
}
.story-add:hover { background: var(--ps-spruce-deep); }
.story-add svg { width: 18px; height: 18px; }
.rail-arrow {
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid var(--ps-line);
  border-radius: 50%; background: var(--ps-white); color: var(--ps-ink); cursor: pointer; transition: background .2s, color .2s;
}
.rail-arrow:not(:disabled):hover { background: var(--ps-ink); color: var(--ps-white); border-color: var(--ps-ink); }
.rail-arrow svg { width: 20px; height: 20px; }
.rail-toggle { flex: none; }
.rail-toggle svg { width: 18px; height: 18px; }
.story-rail .rail-arrow {
  position: absolute; z-index: 2; top: calc(var(--ws2-rail-item) * 1.05 + 12px); transform: translateY(-50%);
  box-shadow: 0 6px 18px rgba(31, 42, 41, .1);
}
.story-rail .rail-prev { left: 12px; }
.story-rail .rail-next { right: 12px; }

/* Trilho de produtos ------------------------------------------------------------------------- */
.rail-track { gap: 20px; }
.rail-track > li { width: calc((100% - 3 * 20px) / 4); }
.rail-foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 28px; }
.rail-dots { display: flex; justify-content: center; gap: 2px; }
.rail-dots button { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.rail-dots button::before {
  content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(31, 42, 41, .2); transition: background .2s, transform .2s;
}
.rail-dots button[aria-current]::before { background: var(--ps-petal-text); transform: scale(1.15); }
.journal .rail-dots { margin-top: 22px; }
/* tudo cabe na tela: setas, contador e pontos não têm o que fazer */
[data-ws2-rail-fits] .rail-counter, [data-ws2-rail-fits] .rail-foot, [data-ws2-rail-fits] > .rail-arrow { display: none; }

/* Categorias ----------------------------------------------------------------------------------- */
.rail-counter { display: flex; align-items: center; gap: 12px; flex: none; }
.rail-count { min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; }
.category-track { gap: 16px; }
.category-track > li { width: calc((100% - 3 * 16px) / 3.6); }
.category-link { display: block; text-decoration: none; color: inherit; }
.category-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--ps-radius-media); background: var(--ps-nude); }
.category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ps-ease); }
.category-link:hover .category-media img { transform: scale(1.04); }
.category-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; padding: 18px 2px 0; }
.category-title { font-family: var(--ps-font-display); font-size: clamp(20px, 1.7vw, 24px); line-height: 1.15; color: var(--ps-spruce); }
.category-more { grid-column: 1; font-size: 15px; color: var(--ps-muted); }
.category-arrow {
  grid-column: 2; grid-row: 1 / span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ps-mist); border: 1px solid var(--ps-line); color: var(--ps-ink);
  transition: background .35s var(--ps-ease), color .35s var(--ps-ease), border-color .35s var(--ps-ease);
}
.category-arrow svg { width: 20px; height: 20px; }
.category-link:hover .category-arrow, .category-link:focus-visible .category-arrow { background: var(--ps-spruce); border-color: var(--ps-spruce); color: var(--ps-white); }

/* Faixa editorial ------------------------------------------------------------------------------ */
.editorial-title { margin-bottom: 22px; }
.editorial-frame {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: clamp(300px, 32vw, 460px);
  overflow: hidden; border-radius: var(--ps-radius-media); background: var(--ps-nude);
}
.editorial-quote {
  align-self: center; padding: clamp(28px, 4.4vw, 68px); font-family: var(--ps-font-display);
  font-size: clamp(22px, 2.2vw, 34px); line-height: 1.25; color: var(--ps-spruce); text-wrap: balance;
}
.editorial-media { position: relative; overflow: hidden; }
.editorial-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Atributos ----------------------------------------------------------------------------------- */
.claims { text-align: center; }
.manifesto { font-family: var(--ps-font-display); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.3; color: var(--ps-ink); }
.manifesto .u {
  background-image: linear-gradient(var(--ps-petal), var(--ps-petal)); background-repeat: no-repeat;
  background-position: 0 94%; background-size: 0% 3px; transition: background-size 1.2s var(--ps-ease) .25s;
}
.manifesto.in .u { background-size: 100% 3px; }
.claims-list { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 4vw, 64px); margin-top: clamp(30px, 4vw, 48px); }
.claims-list li { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; }
.claims-list svg { width: 46px; height: 46px; color: var(--ps-spruce); stroke-width: 1.2; }
.claims-list span { font-size: 14px; font-weight: 500; line-height: 1.3; }

/* Produtos por necessidade --------------------------------------------------------------------- */
.needs-layout { display: grid; grid-template-columns: minmax(240px, 3.4fr) minmax(0, 8.6fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.needs-aside { position: sticky; top: calc(var(--ps-header-h) + 36px); }
.needs-tabs { display: flex; flex-direction: column; margin-top: 40px; border-left: 1px solid var(--ps-line); }
.needs-tabs [role="tab"] {
  display: flex; flex-direction: column; gap: 8px; margin-left: -1px; padding: 14px 0 14px 22px; text-align: left;
  border: 0; border-left: 2px solid transparent; background: none; cursor: pointer; transition: border-color .3s var(--ps-ease);
}
.need-title { font-family: var(--ps-font-display); font-size: 20px; line-height: 1.2; color: var(--ps-muted); transition: color .3s; }
.need-text { font-size: 15px; line-height: 1.45; color: var(--ps-ink); max-width: 36ch; }
.needs-tabs [aria-selected="true"] { border-left-color: var(--ps-ink); }
.needs-tabs [aria-selected="true"] .need-title { color: var(--ps-ink); font-weight: 600; }
/* troca sozinha: a linha da aba ativa enche de cima para baixo */
.needs-tabs [role="tab"] { position: relative; }
.needs-tabs [role="tab"]::after {
  content: ""; position: absolute; left: -2px; top: 0; width: 2px; height: calc(var(--ws2-tab-progress, 0) * 100%);
  background: var(--ps-petal-text); opacity: 0; transition: opacity .3s;
}
[data-ws2-tabs-playing] .needs-tabs [aria-selected="true"]::after { opacity: 1; }
.needs-tabs [aria-selected="true"] { border-left-color: var(--ps-line); }
[data-ws2-tabs]:not([data-ws2-tabs-playing]) .needs-tabs [aria-selected="true"] { border-left-color: var(--ps-ink); }
.needs-tabs [aria-selected="false"] .need-text { display: none; }
.needs-tabs [role="tab"]:hover .need-title { color: var(--ps-ink); }
.needs-panel:not([hidden]) { animation: ps-rise .5s var(--ps-ease); }
.needs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.needs-grid > li:nth-child(2n) { margin-top: clamp(56px, 9vw, 120px); }
.need-media { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--ps-radius-media); background: var(--ps-nude); }
.need-card {
  position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: -84px 16px 0; padding: 14px 14px 14px 16px; background: var(--ps-white); border-radius: var(--ps-radius-button);
  box-shadow: 0 12px 30px rgba(31, 42, 41, .08);
}
.need-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.need-copy .product-terms { font-size: 13px; }
.round-add {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
  background: var(--ps-petal-soft); color: var(--ps-spruce); cursor: pointer; transition: background .25s, color .25s;
}
.round-add:hover { background: var(--ps-spruce); color: var(--ps-white); }
.round-add svg { width: 22px; height: 22px; }

/* Journal ---------------------------------------------------------------------------------- */
.journal-track { gap: 20px; }
.journal-track > li { width: calc((100% - 3 * 20px) / 4); }
.post { display: flex; flex-direction: column; height: 100%; background: var(--ps-mist); border-radius: var(--ps-radius-card); overflow: hidden; }
.post-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ps-nude); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ps-ease); }
.post:hover .post-media img { transform: scale(1.04); }
.post-copy { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 22px; }
.post-copy time { font-size: 14px; color: var(--ps-muted); }
.post-copy h3 { font-size: 18px; font-weight: 500; line-height: 1.35; }
.post-copy p { font-size: 15px; color: var(--ps-muted); }
.post-copy .link-line { margin-top: auto; align-self: flex-start; padding-top: 8px; }

/* Cadastro ------------------------------------------------------------------------------------- */
.newsletter { background: var(--ps-band); color: var(--ps-header-ink); padding-block: clamp(44px, 5vw, 76px); }
.newsletter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.newsletter-copy h2 { font-family: var(--ps-font-display); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.15; color: var(--ps-header-ink); }
.newsletter-copy p { margin-top: 12px; max-width: 46ch; }
.field-inline { display: flex; min-height: 56px; color: var(--ps-ink); background: rgba(255, 255, 255, .55); border: 1px solid var(--ps-ink); transition: box-shadow .2s; }
.field-inline:focus-within { box-shadow: 0 0 0 1px var(--ps-ink); }
.field-inline input {
  flex: 1; min-width: 0; padding: 0 18px; border: 0; background: transparent; color: var(--ps-ink); font: inherit; font-size: 16px; outline: none;
}
.field-inline input::placeholder { color: rgba(31, 42, 41, .72); }
.field-inline input.invalid { box-shadow: inset 0 -2px 0 #8E2335; }
.field-inline button {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 15px;
}
.field-inline button svg { width: 18px; height: 18px; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 14px; line-height: 1.45; }
.consent a { text-underline-offset: 3px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ps-spruce); flex: none; }
.consent input.invalid { outline: 2px solid #8E2335; outline-offset: 2px; }
.form-status { min-height: 20px; margin-top: 8px; font-size: 14px; font-weight: 500; }

/* Rodapé ---------------------------------------------------------------------------------------- */
.footer { background: var(--ps-band); color: var(--ps-header-ink); padding: clamp(44px, 5vw, 64px) 0 28px; border-top: 1px solid rgba(255, 255, 255, .35); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand { color: var(--ps-white); }
.footer-brand .brand-word { font-size: 44px; }
.footer-about { margin-top: 14px; max-width: 32ch; }
.footer .ws2-social-row { width: auto; margin: 22px 0 0; }
/* nome da rede é texto: branco, como o resto do rodapé (o verde-abeto sobre a pétala aprofundada não chega a 4,5:1) */
.footer .ws2-social-link { color: var(--ps-white); border-color: rgba(255, 255, 255, .8); }
.footer-title { font-family: var(--ps-font-display); font-size: 19px; margin-bottom: 14px; color: var(--ps-header-ink); }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col a { padding: 4px 0; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-col p { padding: 4px 0; }
.footer-pay { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .4); }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
/* selo branco: as bandeiras ficam com as cores próprias (R18), legíveis sobre a pétala */
.pay-list li {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; min-width: 52px; padding: 0 4px; border-radius: 4px; background: #fff;
  color: var(--ps-ink); font-size: 13px; font-weight: 600; line-height: 1;
}
.pay-list li img { display: block; width: 52px; height: 34px; background: none; object-fit: contain; }
.pay-list li.pay-named { padding: 0 10px; }
.pay-list li.pay-named img { width: 18px; height: 18px; }
.footer-cats { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .4); }
.footer-cats-list { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.footer-cats-list a { text-decoration: none; }
.footer-cats-list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { margin-top: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }

/* Contato flutuante ------------------------------------------------------------------------------ */
.floating {
  position: fixed; right: 18px; bottom: 18px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
  min-height: 50px; padding: 0 18px 0 14px; border: 1px solid var(--ps-line); border-radius: var(--ps-radius-pill);
  background: var(--ps-white); color: var(--ps-ink); box-shadow: 0 10px 28px rgba(31, 42, 41, .14);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .25s var(--ps-ease);
}
.floating:hover { transform: translateY(-2px); }
.floating .ws2-icon { width: 24px; height: 24px; color: var(--ps-spruce); }

/* Gavetas e diálogos ------------------------------------------------------------------------------ */
dialog.drawer, dialog.quickview { padding: 0; border: 0; background: var(--ps-white); color: var(--ps-ink); }
dialog::backdrop { background: rgba(29, 56, 54, .4); }
dialog.drawer { position: fixed; margin: 0; width: min(440px, 92vw); height: 100dvh; max-height: 100dvh; inset: 0 0 0 auto; }
dialog.drawer-left { inset: 0 auto 0 0; }
dialog.drawer-top { width: 100%; height: auto; max-height: min(88dvh, 780px); inset: 0 0 auto 0; }
.drawer-inner { display: flex; flex-direction: column; gap: 16px; height: 100%; max-height: inherit; padding: 18px 22px 22px; overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--ps-line); }
.drawer-title { font-family: var(--ps-font-display); font-size: 24px; line-height: 1.1; color: var(--ps-spruce); display: flex; align-items: center; gap: 10px; }
.drawer-count {
  min-width: 26px; height: 26px; padding: 0 7px; display: inline-grid; place-items: center; border-radius: var(--ps-radius-pill);
  background: var(--ps-petal-soft); color: var(--ps-spruce); font-family: var(--ps-font-ui); font-size: 13px; font-weight: 700;
}
dialog.drawer-right[open] { animation: ps-in-right .34s var(--ps-ease); }
dialog.drawer-left[open] { animation: ps-in-left .34s var(--ps-ease); }
dialog.drawer-top[open] { animation: ps-in-top .34s var(--ps-ease); }
dialog.quickview[open] { animation: ps-in-scale .3s var(--ps-ease); }
dialog[open]::backdrop { animation: ps-fade .3s var(--ps-ease); }
dialog.drawer-right.is-closing { animation: ps-out-right .22s ease-in forwards; }
dialog.drawer-left.is-closing { animation: ps-out-left .22s ease-in forwards; }
dialog.drawer-top.is-closing { animation: ps-out-top .22s ease-in forwards; }
dialog.quickview.is-closing { animation: ps-out-scale .22s ease-in forwards; }
dialog.is-closing::backdrop { animation: ps-fade-out .22s ease-in forwards; }

/* menu do celular */
.drawer-nav { display: flex; flex-direction: column; }
.drawer-nav a { padding: 12px 0; border-bottom: 1px solid var(--ps-line); font-family: var(--ps-font-display); font-size: 21px; color: var(--ps-spruce); text-decoration: none; }
.drawer-label { margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ps-muted); }
.drawer-links a { display: block; padding: 8px 0; font-size: 17px; text-decoration: none; }

/* busca */
.search-inner { width: min(1100px, 100%); margin-inline: auto; padding-top: 22px; }
.search-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ps-ink); }
.search-head:focus-within { border-bottom: 2px solid var(--ps-spruce); padding-bottom: 7px; }
.search-icon { width: 24px; height: 24px; color: var(--ps-muted); }
.search-field { min-width: 0; padding: 8px 0; border: 0; background: transparent; color: var(--ps-ink); font-family: var(--ps-font-display); font-size: clamp(22px, 2.4vw, 30px); outline: none; }
.search-field::placeholder { color: rgba(31, 42, 41, .5); }
.search-field::-webkit-search-cancel-button { display: none; }
.search-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-pill); background: var(--ps-white); cursor: pointer; font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ps-ink); }
.chip svg { width: 16px; height: 16px; }
.chip[aria-pressed="true"] { background: var(--ps-ink); border-color: var(--ps-ink); color: var(--ps-white); }
.search-count { font-size: 13px; color: var(--ps-muted); }
.search-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; }
.hit {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; width: 100%; color: inherit; text-decoration: none;
  padding: 14px 8px; border: 0; border-bottom: 1px solid var(--ps-line); background: none; cursor: pointer; text-align: left;
  transition: background .2s;
}
.hit:hover { background: var(--ps-mist); }
.hit-name { font-weight: 600; }
.hit-cat { grid-row: 2; font-size: 13px; color: var(--ps-muted); }
.hit-price { grid-row: 1; grid-column: 2; font-size: 15px; }
.search-empty { grid-column: 1 / -1; padding: 24px 0; color: var(--ps-muted); }

/* detalhe do produto */
dialog.quickview { width: min(1000px, 94vw); max-height: 92dvh; margin: auto; border-radius: var(--ps-radius-card); overflow: auto; }
.qv-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.qv-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .9); }
.qv-media { position: relative; aspect-ratio: 4 / 5; background: var(--ps-nude); overflow: hidden; }
.qv-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv-info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(24px, 3.4vw, 44px); }
.qv-info .badge { position: static; }
.qv-name { font-family: var(--ps-font-display); font-size: clamp(26px, 2.4vw, 32px); line-height: 1.12; color: var(--ps-spruce); padding-right: 40px; }
.qv-info .price { font-size: 22px; }
.qv-info .button-primary { margin-top: 6px; }
.qv-details { width: 100%; margin-top: 6px; }
.qv-desc { font-size: 15px; }
.qv-spec { margin: 14px 0 0; }
.qv-spec div { padding: 10px 0; border-top: 1px solid var(--ps-line); }
.qv-spec dt { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ps-muted); }
.qv-spec dd { margin: 4px 0 0; font-size: 15px; }
.qv-note { font-size: 13px; color: var(--ps-muted); }

/* sacola */
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 48px 0; text-align: center; color: var(--ps-muted); }
.cart-list { display: flex; flex-direction: column; gap: 18px; flex: 1; }
.cart-item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.cart-thumb { display: block; width: 76px; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ps-nude); border-radius: 2px; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.cart-variant, .cart-unit { font-size: 13px; color: var(--ps-muted); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--ps-line); border-radius: 2px; align-self: flex-start; }
.qty button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.qty button svg { width: 16px; height: 16px; }
.qty-n { min-width: 28px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-total { font-weight: 600; white-space: nowrap; }
.cart-remove { padding: 0; border: 0; background: none; cursor: pointer; font-size: 13px; color: var(--ps-muted); text-decoration: underline; text-underline-offset: 3px; }
.cart-foot { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--ps-line); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 18px; }
.cart-note, .cart-legal { font-size: 13px; color: var(--ps-muted); line-height: 1.45; }

/* Revelação --------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ps-ease), transform .8s var(--ps-ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-media { opacity: 0; transition: opacity .9s var(--ps-ease); }
.reveal-media.in { opacity: 1; }

@keyframes ps-settle-slow { from { transform: scale(1.09); } to { transform: scale(1); } }
@keyframes ps-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ps-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ps-rise { from { transform: translateY(14px); } to { transform: none; } }
@keyframes ps-fade-out { to { opacity: 0; } }
@keyframes ps-in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes ps-out-right { to { transform: translateX(100%); } }
@keyframes ps-in-left { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes ps-out-left { to { transform: translateX(-100%); } }
@keyframes ps-in-top { from { transform: translateY(-100%); } to { transform: none; } }
@keyframes ps-out-top { to { transform: translateY(-100%); } }
@keyframes ps-in-scale { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ps-out-scale { to { opacity: 0; transform: scale(.97); } }

/* Página de produto (v1.50) ------------------------------------------------------------------- */
.pdp-top { padding: 22px 0 clamp(48px, 6vw, 88px); }
.pdp-crumbs ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: 14px; color: var(--ps-muted); }
.pdp-crumbs li + li::before { content: "›"; margin: 0 10px; color: var(--ps-muted); }
.pdp-crumbs a { color: var(--ps-ink); text-decoration: none; }
.pdp-crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pdp-crumbs [aria-current] { color: var(--ps-ink); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); margin-top: 26px; align-items: start; }
.pdp-gallery { position: sticky; top: calc(var(--ps-header-h) + 20px); }
.pdp-stage { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: var(--ps-radius-media); background: var(--ps-nude); }
.pdp-photo { position: absolute; inset: 0; }
.pdp-photo img { width: 100%; height: 100%; object-fit: cover; }
.pdp-photo:not([hidden]) { animation: ps-in-scale .45s var(--ps-ease); }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumbs [role="tab"] {
  width: 96px; aspect-ratio: 1 / 1; padding: 0; overflow: hidden; border: 1px solid var(--ps-line); border-radius: var(--ps-radius-media);
  background: var(--ps-nude); cursor: pointer; opacity: .7; transition: opacity .2s, border-color .2s;
}
.pdp-thumbs [role="tab"] img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumbs [aria-selected="true"] { opacity: 1; border-color: var(--ps-ink); box-shadow: 0 0 0 1px var(--ps-ink); }
.pdp-thumbs [role="tab"]:hover { opacity: 1; }
.pdp-flags { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.pdp-badge {
  padding: 5px 10px; border-radius: 2px; background: var(--ps-spruce); color: var(--ps-white);
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.pdp-wish { position: static; margin-left: auto; }
.pdp-name { margin-top: 10px; font-family: var(--ps-font-display); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.15; color: var(--ps-spruce); }
.pdp-price { margin-top: 18px; }
.pdp-price .price { font-size: 24px; font-weight: 600; }
.pdp-terms { margin-top: 4px; font-size: 15px; }
.pdp-desc { margin-top: 22px; max-width: 58ch; line-height: 1.6; }
.pdp-variants { margin-top: 24px; gap: 8px; }
.pdp-legend { width: 100%; margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 600; }
.pdp-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; margin-top: 26px; max-width: 520px; }
.qty { display: inline-flex; align-items: center; min-height: 52px; border: 1px solid var(--ps-ink); border-radius: var(--ps-radius-button); }
.qty button { width: 44px; height: 50px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; }
.qty button svg { width: 18px; height: 18px; }
.qty input {
  width: 44px; height: 50px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 16px; text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pdp-note { margin-top: 16px; max-width: 58ch; font-size: 14px; color: var(--ps-muted); }
.pdp-note a { color: var(--ps-ink); text-underline-offset: 3px; }
.pdp-more { margin-top: 26px; border-top: 1px solid var(--ps-line); }
.pdp-detail { border-bottom: 1px solid var(--ps-line); }
.pdp-detail summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none;
  font-family: var(--ps-font-display); font-size: 20px; color: var(--ps-spruce);
}
.pdp-detail summary::-webkit-details-marker { display: none; }
.pdp-detail summary::after { content: "+"; font-family: var(--ps-font-ui); font-size: 24px; font-weight: 300; line-height: 1; transition: transform .25s var(--ps-ease); }
.pdp-detail[open] summary::after { transform: rotate(45deg); }
.pdp-detail p { padding: 0 2px 20px; max-width: 60ch; line-height: 1.6; }
/* barra de compra: aparece quando o botão principal sai da tela */
.pdp-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ps-white); box-shadow: 0 -10px 30px rgba(31, 42, 41, .1);
  transform: translateY(105%); visibility: hidden; transition: transform .35s var(--ps-ease), visibility 0s linear .35s;
}
.pdp-bar[data-ws2-shown] { transform: none; visibility: visible; transition: transform .35s var(--ps-ease), visibility 0s; }
.pdp-bar-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding-block: 12px; }
.pdp-bar-img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--ps-radius-media); background: var(--ps-nude); }
.pdp-bar-copy { display: flex; flex-direction: column; min-width: 0; }
.pdp-bar-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdp-bar-add { width: auto; padding: 0 28px; }
body:has(.pdp-bar[data-ws2-shown]) .floating { bottom: 104px; transition: bottom .35s var(--ps-ease); }
.pdp-related { padding-top: 0; }
body:has(.pdp-bar) .footer { padding-bottom: 112px; }
/* nome do produto é link para a página dele (v1.50) */
.product-name a, a.story-name { color: inherit; text-decoration: none; }
.product-name a:hover, a.story-name:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Telas médias ------------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .header-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .menu-open { display: inline-grid; }
  .nav-main { display: none; }
  .brand { justify-self: center; }
  .rail-track > li { width: calc((100% - 2 * 20px) / 3); }
  .category-track > li { width: calc((100% - 2 * 16px) / 2.6); }
  .journal-track > li { width: calc((100% - 2 * 20px) / 2.4); }
  .story-rail { --ps-story-count: 4; }
  .search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  .perks-list li { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .pdp-grid { grid-template-columns: minmax(0, 1fr); }
  .pdp-gallery { position: static; }
  .pdp-thumbs [role="tab"] { width: 72px; }
  .pdp-bar-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .pdp-bar .qty { display: none; }
  .hero-stage { min-height: 560px; }
  .hero-arrow { display: none; }
  .story-rail { --ps-story-count: 3; }
  .slide-split { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .slide-split .slide-media { order: -1; height: min(64vw, 420px); }
  .slide-copy, .slide-flip .slide-copy { align-self: start; padding: 24px var(--ps-gutter) 76px; gap: 10px; }
  .offer { gap: 20px; margin: 6px 0; }
  .offer p + p { padding-left: 20px; }
  .featured { grid-template-columns: minmax(0, 1fr); }
  .featured-photo { min-height: 0; aspect-ratio: 16 / 10; }
  .editorial-frame { grid-template-columns: minmax(0, 1fr); }
  .editorial-media { order: -1; aspect-ratio: 4 / 3; }
  .needs-layout { grid-template-columns: minmax(0, 1fr); }
  .needs-aside { position: static; }
  .needs-tabs { flex-direction: row; overflow-x: auto; margin-top: 22px; border-left: 0; border-bottom: 1px solid var(--ps-line); scrollbar-width: none; }
  .needs-tabs [role="tab"] { flex: none; margin: 0 0 -1px; padding: 10px 16px; border-left: 0; border-bottom: 2px solid transparent; }
  .needs-tabs [aria-selected="true"] { border-bottom-color: var(--ps-ink); }
  .needs-tabs .need-text { display: none !important; }
  .need-title { font-size: 19px; }
  .newsletter-row { grid-template-columns: minmax(0, 1fr); }
  dialog.quickview { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; }
  .qv-inner { grid-template-columns: minmax(0, 1fr); }
  .qv-media { aspect-ratio: 1 / 1; }
}

@media (max-width: 640px) {
  .pdp-buy { grid-template-columns: minmax(0, 1fr); }
  .pdp-buy .qty { justify-self: start; }
  .pdp-bar-img { width: 48px; height: 48px; }
  .pdp-bar-add { padding: 0 18px; }
  [data-ws2-family="petal-spruce"] { --ps-header-h: 62px; }
  .announce-inner { grid-template-columns: 32px minmax(0, 1fr) 32px; padding-inline: 8px 40px; font-size: 13px; }
  .announce-pause { right: 6px; }
  .header-actions .icon-wish { display: none; }
  .icon-button { width: 40px; height: 40px; }
  .brand-word { font-size: 30px; }
  .perks-list { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 16px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .stories .section-head { flex-direction: row; align-items: flex-end; }
  .featured-grid { gap: 26px 14px; }
  .product-terms { font-size: 13px; }
  .rail-track > li { width: 72%; }
  .category-track > li { width: 66%; }
  .journal-track > li { width: 82%; }
  .story-rail { --ps-story-count: 1.6; }
  .story-rail .rail-arrow { display: none; }
  .needs-grid { grid-template-columns: minmax(0, 1fr); }
  .needs-grid > li:nth-child(2n) { margin-top: 0; }
  .search-results { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .floating { padding: 0; width: 54px; justify-content: center; }
  .floating-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Movimento reduzido ------------------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html:not([data-ws2-motion="full"]) { scroll-behavior: auto; }
  html:not([data-ws2-motion="full"]) .reveal,
  html:not([data-ws2-motion="full"]) .reveal-media { transform: none !important; transition: opacity .4s ease !important; }
  html:not([data-ws2-motion="full"]) .reveal .product-img,
  html:not([data-ws2-motion="full"]) .featured-photo img { transform: none !important; }
  html:not([data-ws2-motion="full"]) .slide.is-active .slide-media img { animation: none; }
  html:not([data-ws2-motion="full"]) .story-card { transition: none; }
  html:not([data-ws2-motion="full"]) dialog[open],
  html:not([data-ws2-motion="full"]) dialog[open]::backdrop,
  html:not([data-ws2-motion="full"]) .needs-panel,
  html:not([data-ws2-motion="full"]) .mega { animation: none !important; }
  html:not([data-ws2-motion="full"]) .manifesto .u { transition: none; }
}
