:root {
  /* cores tiradas da logo: rosa cerejeira + dourado */
  --bg: #fdf9f8;
  --surface: #f8ebea;
  --card: #ffffff;
  --ink: #2a1f1d;
  --body: #4a3f3b;
  --muted: #76696a;
  --line: #eedfdd;
  --accent: #9a4257;        /* rosa vinho (contraste AA com branco) */
  --accent-ink: #ffffff;
  --accent-soft: #f7e1e4;
  --gold: #c9a46a;
  --dark: #2a1f1d;
  --on-dark: #f6efe7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(42 31 29 / .06), 0 8px 24px rgb(42 31 29 / .06);
  --wrap: 1200px;
  --gutter: 24px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 140px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); font-family: var(--font-display); font-weight: 500; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -.01em; }
.h3 { font-size: 22px; }
.lead { font-size: 18px; color: var(--body); max-width: 56ch; }
.muted { color: var(--muted); margin: 0; font-size: 14px; }
.link { font-weight: 600; color: var(--accent); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .25s; padding: 10px 0; }
.link:hover { background-size: 100% 1.5px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background-color .2s, color .2s, border-color .2s; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #7f3447; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; position: relative; text-decoration: none; transition: background-color .2s; }
.icon-btn:hover { background: var(--surface); }

/* Topbar + header */
.topbar { background: var(--dark); color: var(--on-dark); font-size: 13px; text-align: center; padding: 8px var(--gutter); }
.topbar p { margin: 0; }
.topbar strong { color: var(--gold); font-weight: 600; }
.header { position: sticky; top: 0; z-index: 40; background: rgb(251 248 244 / .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: flex; flex-direction: column; text-decoration: none; line-height: 1; flex-shrink: 0; }
.logo__mark { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.logo__mark--light { color: var(--on-dark); margin-bottom: 8px; }
.logo__img { display: block; height: 52px; width: auto; }
.logo__img--rodape { height: 64px; margin-bottom: 12px; }
@media (max-width: 720px) { .logo__img { height: 42px; } }
.logo__sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.search { flex: 1; max-width: 520px; margin: 0 auto; position: relative; }
.search input { width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 56px 0 20px; font-size: 15px; }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search__btn { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.search__btn svg { width: 18px; height: 18px; }
.header__actions { display: flex; gap: 4px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.cart-count[hidden] { display: none; }

.catnav { border-top: 1px solid var(--line); }
.catnav__row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.catnav__row::-webkit-scrollbar { display: none; }
.catnav a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 14px; font-weight: 500; padding: 0 16px; border-radius: 999px; color: var(--ink); transition: background-color .2s; }
.catnav a:hover { background: var(--surface); }
.catnav a.catnav__hl { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* Hero */
.hero { background: radial-gradient(120% 90% at 85% 40%, #f6d9dd 0%, var(--bg) 60%); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; min-height: min(640px, calc(100svh - 160px)); padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 20px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero__facts { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.hero__facts strong { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--ink); }
.hero__art { position: relative; height: 480px; }
.hero__glow { position: absolute; inset: 10% 8%; border-radius: 50%; background: radial-gradient(circle, #fff 0%, rgb(255 255 255 / 0) 70%); }
.hero__p { position: absolute; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 24px; padding: 4%; box-shadow: 0 24px 48px rgb(42 31 29 / .14); animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__p--1 { width: 52%; left: 24%; top: 4%; z-index: 2; animation-delay: .1s; }
.hero__p--2 { width: 38%; left: 0; top: 40%; animation-delay: .25s; }
.hero__p--3 { width: 38%; right: 0; top: 34%; animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ===== Duas faixas de Black Friday de ponta a ponta ===== */
.bf-faixas { position: relative; height: 150px; overflow: hidden; background: var(--bg); }
.faixa { position: absolute; left: -5%; width: 110%; top: 50%; padding: 14px 0; overflow: hidden; white-space: nowrap; box-shadow: 0 10px 24px rgb(20 14 12 / .18); }
.faixa--preta { background: #120c0a; color: #f6dc9b; transform: translateY(-50%) rotate(-3deg); z-index: 2; }
.faixa--ouro { background: linear-gradient(90deg, #c9a046, #f6dc9b 50%, #c9a046); color: #1a1208; transform: translateY(-50%) rotate(2.5deg); z-index: 1; }
.faixa__trilho { display: flex; width: max-content; animation: faixa-corre 140s linear infinite; will-change: transform; backface-visibility: hidden; transform: translate3d(0, 0, 0); }
.faixa__trilho--rev { animation-direction: reverse; animation-duration: 160s; }
.faixa__grupo { display: flex; align-items: center; flex-shrink: 0; transform: translateZ(0); }
.faixa__grupo span { font-family: var(--font-body); font-weight: 800; font-size: 22px; letter-spacing: .14em; text-transform: uppercase; padding: 0 22px; }
.faixa__sep { font-size: 16px !important; opacity: .8; padding: 0 !important; }
@keyframes faixa-corre { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 720px) {
  .bf-faixas { height: 140px; }
  .faixa { padding: 10px 0; }
  .faixa--preta { top: 36%; transform: translateY(-50%) rotate(-4deg); }
  .faixa--ouro { top: 68%; transform: translateY(-50%) rotate(3deg); }
  .faixa__grupo span { font-size: 16px; padding: 0 14px; }
  .faixa__trilho { animation-duration: 75s; }          /* ~30px/s no celular: devagar, mas sem andar "aos pulinhos" */
  .faixa__trilho--rev { animation-duration: 85s; }
}

/* ===== Black Friday: faixa, banner e laços ===== */
.topbar--bf { background: #0f0b0a; }
.bf-pill { display: inline-block; background: linear-gradient(135deg, #f6dc9b, #c9a046); color: #1a1208; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 11px; padding: 3px 10px; border-radius: 999px; margin-right: 8px; vertical-align: 1px; }
.btn--gold { background: linear-gradient(135deg, #f6dc9b, #c9a046 60%, #a87c2c); color: #1a1208; box-shadow: 0 6px 18px rgb(201 160 70 / .35); }
.btn--gold:hover { filter: brightness(1.06); }

.bf-hero { background: #0f0b0a; padding: 20px 0 0; }
.bf-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; height: min(640px, calc(100svh - 200px)); min-height: 520px; }
.bf-card { position: relative; display: block; overflow: hidden; border-radius: 22px; text-decoration: none; color: #fff; isolation: isolate; }
.bf-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); z-index: -2; }
.bf-card:hover > img { transform: scale(1.03); }
.bf-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(15 11 10 / 0) 30%, rgb(15 11 10 / .78) 100%); }
.bf-card--main { grid-row: 1 / 3; }
.bf-card--main > img { object-position: 50% 30%; }
.bf-card--main::after { background: linear-gradient(90deg, rgb(15 11 10 / .82) 0%, rgb(15 11 10 / .35) 55%, rgb(15 11 10 / 0) 100%); }
.bf-card--perf > img { object-position: 50% 62%; }
.bf-card__copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bf-card--main .bf-card__copy { top: 0; justify-content: center; max-width: 520px; padding: 48px; }
.bf-card h1 { color: #fff; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.02em; }
.bf-card p { color: #efe6dc; margin: 0; max-width: 40ch; }
.bf-card .btn { margin-top: 10px; }
.bf-card__h { color: #fff; font-size: clamp(22px, 2vw, 28px); line-height: 1.12; }
.bf-tag { background: linear-gradient(135deg, #f6dc9b, #c9a046); color: #1a1208; font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px; }
.bf-tag--light { background: rgb(255 255 255 / .16); color: #fff; backdrop-filter: blur(6px); font-weight: 700; }
.bf-link { font-weight: 700; color: #f6dc9b; }
.bf-card:hover .bf-link { text-decoration: underline; text-underline-offset: 4px; }

.laco { position: absolute; width: 132px; height: 99px; filter: drop-shadow(0 8px 14px rgb(0 0 0 / .35)); pointer-events: none; animation: laco-in .9s cubic-bezier(.2,.9,.3,1.3) both .2s; }
.laco--esq { top: -8px; left: 22px; transform: rotate(-12deg); }
.laco--dir { top: -6px; right: 18px; width: 104px; height: 78px; transform: rotate(10deg); animation-delay: .35s; }
@keyframes laco-in { from { opacity: 0; translate: 0 -30px; scale: .6; } to { opacity: 1; translate: 0 0; scale: 1; } }

.bf-facts { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 26px; margin: 0 auto; color: #cbbfb4; font-size: 14px; }
.bf-facts strong { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 500; color: #f6dc9b; }

.tag--bf { background: #0f0b0a; color: #f6dc9b; }

/* ===== Frasco 3D que borrifa ao rolar ===== */
.spray { position: relative; height: 230vh; background: radial-gradient(90% 70% at 70% 50%, #2a1a12 0%, #0f0b0a 70%); color: #efe6dc; }
.spray__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.spray__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; width: 100%; }
.eyebrow--gold { color: #f6dc9b; }
.spray__h { color: #fff; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -.02em; margin-bottom: 20px; }
.spray__h span { background: linear-gradient(135deg, #f6dc9b, #c9a046); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spray__copy p { color: #cbbfb4; max-width: 44ch; font-size: 17px; }
.spray__copy .btn { margin-top: 8px; }
.spray__stage { position: relative; height: min(560px, 74svh); }
.spray__skin { position: absolute; left: 0; top: 50%; width: 46%; aspect-ratio: 1; translate: 0 -55%; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 8px rgb(246 220 155 / .08), 0 30px 60px rgb(0 0 0 / .45); }
.spray__skin img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: filter .6s; }
.spray.is-misted .spray__skin img { filter: brightness(1.08) saturate(1.05); }
.spray__mist { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.bottle3d { position: absolute; right: 2%; top: 50%; width: 46%; max-width: 280px; translate: 0 -50%; border: 0; background: none; padding: 0; cursor: pointer; perspective: 900px; z-index: 1; }
.bottle3d__svg { width: 100%; height: auto; display: block; transform: rotateY(var(--rot, -14deg)) rotateX(4deg); transform-style: preserve-3d; transition: transform .2s ease-out; filter: drop-shadow(0 30px 40px rgb(0 0 0 / .5)); }
.bottle3d__cap { transition: transform .12s ease-in; transform-box: fill-box; }
.bottle3d.is-pressed .bottle3d__cap { transform: translateY(12px); }
.bottle3d__liquid { transition: transform .6s ease; transform: translateY(var(--nivel, 0px)); }
.bottle3d:focus-visible { outline: 2px solid #f6dc9b; outline-offset: 8px; border-radius: 16px; }
@media (max-width: 820px) {
  .spray { height: 200vh; }
  .spray__grid { grid-template-columns: 1fr; gap: 8px; }
  .spray__copy { order: 2; text-align: left; }
  .spray__copy p { font-size: 15px; }
  .spray__stage { height: 46svh; }
  .spray__h { font-size: clamp(36px, 10vw, 52px); margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .spray { height: auto; }
  .spray__sticky { position: static; height: auto; padding: 64px 0; }
}

/* ===== Topo: produtos recortados em cena 3D ===== */
.hero3d { perspective: 1100px; }
.hero3d__scene { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hero3d__halo { position: absolute; left: 12%; right: 8%; top: 4%; bottom: 10%; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .95) 0%, rgb(247 225 228 / .7) 38%, rgb(247 225 228 / 0) 70%); transform: translateZ(-80px); }
.hero3d__ring { position: absolute; left: 22%; right: 16%; top: 12%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgb(201 164 106 / .45); transform: translateZ(-40px) rotateX(64deg); box-shadow: 0 0 40px rgb(201 164 106 / .25); }
.hero3d__item { position: absolute; transform: translateZ(var(--z)); transform-style: preserve-3d; animation: flutua 6s ease-in-out infinite var(--d, 0s); }
.hero3d__item img { width: 100%; height: auto; display: block; filter: drop-shadow(0 26px 22px rgb(60 30 30 / .28)) drop-shadow(0 6px 6px rgb(60 30 30 / .18)); }
.hero3d__item::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -10px; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgb(60 30 30 / .28), transparent); filter: blur(2px); animation: sombra 6s ease-in-out infinite var(--d, 0s); }
/* 3 produtos alinhados na mesma base, sobre um pedestal */
.hero3d__podium { position: absolute; left: 6%; right: 6%; bottom: 4%; height: 22%; border-radius: 50%; transform: translateZ(0) rotateX(0deg);
  background: radial-gradient(ellipse at 50% 35%, #ffffff 0%, #fbeef0 45%, #f1d6da 100%);
  box-shadow: inset 0 -10px 24px rgb(154 66 87 / .14), 0 26px 40px -18px rgb(90 40 50 / .35), 0 0 0 1.5px rgb(201 164 106 / .55); }
.hero3d__podium::after { content: ""; position: absolute; inset: 14% 10% auto; height: 40%; border-radius: 50%; background: radial-gradient(ellipse, rgb(255 255 255 / .9), transparent 70%); }
.hero3d__item--mashrabya { left: 27%; bottom: 15%; width: 46%; }
.hero3d__item--khamrah { left: 2%; bottom: 11%; width: 37%; }
.hero3d__item--medicube { right: 1%; bottom: 9%; width: 37%; }
.hero3d__ring { display: none; }

/* --- profundidade: paralaxe por camada, reflexo no pedestal e brilho de luz --- */
.hero3d__item { transform: translateZ(var(--z)) translate3d(calc(var(--mx, 0) * var(--p, 10) * 1px), calc(var(--my, 0) * var(--p, 10) * .6px), 0); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.hero3d__pic { position: relative; }
.hero3d__shine { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--src) center / 100% 100% no-repeat; mask: var(--src) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .55) 48%, rgb(255 255 255 / .1) 54%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0; mix-blend-mode: screen; animation: luz 6.5s ease-in-out infinite var(--d, 0s); }
@keyframes luz { 0%, 55% { background-position: 160% 0; } 85%, 100% { background-position: -60% 0; } }
.hero3d__refl { position: absolute; left: 0; top: calc(100% - 2px); width: 100%; height: auto; transform: scaleY(-1); transform-origin: center; opacity: .22; filter: blur(1.5px) saturate(.9);
  -webkit-mask-image: linear-gradient(to bottom, transparent 55%, #000 100%); mask-image: linear-gradient(to bottom, transparent 55%, #000 100%); pointer-events: none; }
.hero3d__item .hero3d__pic img { filter: drop-shadow(0 22px 18px rgb(60 30 30 / .3)) drop-shadow(0 4px 5px rgb(60 30 30 / .2)); }
.hero3d__item::after { display: none; }

/* 3D real (WebGL): canvas por cima; as imagens só aparecem se o 3D não carregar */
.hero3d__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; cursor: grab; opacity: 0; transition: opacity .8s ease; }
.hero3d.is-3d .hero3d__gl { opacity: 1; }
.hero3d.is-grab .hero3d__gl { cursor: grabbing; }
.hero3d.is-3d .hero3d__item, .hero3d.is-3d .hero3d__podium, .hero3d.is-3d .hero3d__spark { display: none; }
.hero3d__dica { position: absolute; left: 50%; bottom: 2%; translate: -50% 0; z-index: 3; font-size: 13px; font-weight: 600; color: var(--accent); background: rgb(255 255 255 / .8); backdrop-filter: blur(6px); padding: 6px 14px; border-radius: 999px; pointer-events: none; opacity: 0; transition: opacity .5s; }
.hero3d.is-3d .hero3d__dica { opacity: 1; animation: dica 2.4s ease-in-out infinite 1s; }
.hero3d.is-used .hero3d__dica { opacity: 0; animation: none; }
@keyframes dica { 0%, 100% { translate: -50% 0; } 50% { translate: calc(-50% + 8px) 0; } }
@media (max-width: 820px) {
  .hero3d__scene { --ry: -6deg; }
  .hero3d__podium { left: 9%; right: 9%; }
  .hero3d__item--khamrah { left: 8%; width: 33%; }
  .hero3d__item--mashrabya { left: 29%; width: 43%; }
  .hero3d__item--medicube { right: 5%; width: 34%; }
}
.hero3d__spark { position: absolute; left: var(--x); top: var(--y); width: 10px; height: 10px; scale: var(--s); background: radial-gradient(circle, #fff 0%, #f6dc9b 40%, transparent 70%); border-radius: 50%; transform: translateZ(90px); animation: brilha 4s ease-in-out infinite var(--d); }
@keyframes flutua { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -14px; rotate: -1.5deg; } }
@keyframes sombra { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .6; scale: .86; } }
@keyframes brilha { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

/* Categories */
.cats { padding: 72px 0 24px; }
.cats .h2 { margin-bottom: 28px; }
.cats__row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; color: var(--ink); }
.cat__img { width: 100%; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; transition: transform .25s, background-color .25s; }
.cat__img img { width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.cat:hover .cat__img { background: var(--accent-soft); }
.cat:hover .cat__img img { transform: scale(1.05); }

/* Shelves */
.shelf { padding: 56px 0; }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* Product card */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; overflow: hidden; width: 100%; border: 0; padding: 0; cursor: pointer; }
.card__link { all: unset; cursor: pointer; }
.card__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.card__media img { width: 86%; height: 86%; object-fit: contain; transition: transform .35s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__ph { width: 70%; aspect-ratio: 3 / 4; border-radius: 12px; background: linear-gradient(160deg, var(--surface), var(--accent-soft)); display: grid; place-items: center; text-align: center; padding: 12px; font-family: var(--font-display); color: var(--accent); font-size: 18px; line-height: 1.2; }
.tag { position: absolute; left: 12px; top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); }
.tag--out { background: var(--ink); color: #fff; }
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card__name { font-family: var(--font-body); font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card__meta { font-size: 13px; color: var(--muted); margin: 0; }
.card__price { font-size: 20px; font-weight: 700; color: var(--ink); margin: 8px 0 12px; }
.card__add { margin-top: auto; min-height: 44px; padding: 6px 14px; font-size: 14px; line-height: 1.2; text-align: center; }

/* Skincare band */
.band { background: var(--surface); padding: 80px 0; }
.band__head { max-width: 680px; margin-bottom: 24px; }
.shelf__head--tight { margin-bottom: 12px; }
.band .chip, .band .select select { background: var(--card); }
.band__head .h2 { margin-bottom: 12px; }
.grid--sk { grid-template-columns: repeat(3, 1fr); }
.grid--sk .card__media { background: #fff; }

/* Catalog */
.catalog { padding: 80px 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.selects { display: flex; gap: 8px; }
.select select { min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); padding: 0 36px 0 16px; font-size: 14px; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232a1f1d' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cat-search input { min-height: 40px; width: 240px; border-radius: 999px; border: 1px solid var(--line); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2376696a' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center; padding: 0 16px 0 40px; font-size: 14px; }
.cat-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.selects { align-items: center; flex-wrap: wrap; }
.empty { text-align: center; padding: 48px 0; color: var(--muted); }
.more { display: flex; justify-content: center; margin-top: 32px; }

/* Brands */
.brands { padding: 24px 0 80px; }
.brands .h2 { margin-bottom: 24px; }
.brands__row { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-pill { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-family: var(--font-display); font-size: 17px; color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s, transform .15s; }
.brand-pill:hover { background: var(--ink); color: #fff; }
.brand-pill small { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-left: 6px; }
.brand-pill:hover small { color: #d9cfc6; }

/* About */
.about { background: var(--dark); color: var(--on-dark); padding: 88px 0; }
.about .h2 { color: var(--on-dark); margin-bottom: 20px; }
.about .eyebrow { color: var(--gold); }
.about p { color: #dccfc4; max-width: 58ch; }
.about .btn { margin-top: 12px; }
.about__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.perks li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid rgb(246 239 231 / .14); border-radius: var(--radius); }
.perks strong { color: var(--on-dark); }
.perks p { margin: 2px 0 0; font-size: 14px; }
.perks__i { width: 40px; height: 40px; border-radius: 999px; background: rgb(201 164 106 / .16); color: var(--gold); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }

/* Footer */
.footer { background: #1f1715; color: var(--on-dark); padding: 56px 0 24px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer a { text-decoration: none; color: #dccfc4; display: inline-block; padding: 6px 0; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__t { font-weight: 700; color: #fff; margin-bottom: 8px; }
.muted-light { color: #b9aca3; max-width: 36ch; }
.footer__base { border-top: 1px solid rgb(246 239 231 / .12); margin-top: 40px; padding-top: 20px; color: #a89b92; font-size: 13px; }
.footer__base p { margin: 0; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 56px; height: 56px; border-radius: 999px; background: #1f9e55; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgb(0 0 0 / .2); transition: transform .2s; }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 28px; height: 28px; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgb(20 14 12 / .45); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 70; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .7, .2, 1); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--card); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.total strong { font-size: 22px; color: var(--ink); }
.tiny { font-size: 12px; color: var(--muted); margin: 12px 0 0; text-align: center; }
.line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img, .line .card__ph { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 10px; }
.line__name { font-weight: 600; color: var(--ink); font-size: 14px; line-height: 1.3; }
.line__price { font-size: 13px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; border-radius: 999px; font-size: 16px; }
.qty button:hover { background: var(--surface); }
.qty span { min-width: 20px; text-align: center; font-size: 14px; font-weight: 600; }
.drawer__empty { text-align: center; color: var(--muted); padding: 48px 0; }

/* Detalhe do produto */
.modal { width: min(880px, calc(100% - 32px)); max-height: calc(100svh - 48px); padding: 0; border: 0; border-radius: 20px; background: var(--bg); color: var(--body); box-shadow: 0 24px 64px rgb(20 14 12 / .3); overflow: auto; }
.modal::backdrop { background: rgb(20 14 12 / .5); }
.modal__close { position: absolute; top: 12px; right: 12px; background: var(--card); z-index: 1; }
.modal__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.modal__media { background: #fff; display: grid; place-items: center; aspect-ratio: 1; position: sticky; top: 0; }
.modal__media img { width: 86%; height: 86%; object-fit: contain; }
.modal__media .card__ph { width: 60%; }
.modal__body { padding: 40px 32px 32px; display: flex; flex-direction: column; gap: 6px; }
.modal__body .h3 { font-size: 26px; line-height: 1.2; margin-bottom: 4px; padding-right: 32px; }
.modal__price { font-size: 26px; font-weight: 700; color: var(--ink); margin: 12px 0 16px; }
.modal__body .card__add { align-self: flex-start; min-width: 220px; }
.modal__desc { margin-top: 20px; font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.modal__desc p { margin-bottom: .8em; }
.modal__desc:empty { display: none; }
@media (max-width: 720px) {
  .modal { width: 100%; max-width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; margin: 0; }
  .modal__grid { grid-template-columns: minmax(0, 1fr); }
  .modal__media { aspect-ratio: 4 / 3; position: static; }
  .modal__body { padding: 20px 20px 32px; }
  .modal__body .card__add { align-self: stretch; }
}

/* Fotos sem endereço (antes do JS preencher) não aparecem como caixa quebrada */
img:not([src]), .sem-catalogo .hero__art, .sem-catalogo .cats__row img { visibility: hidden; }
.aviso-arquivos { background: #fff3cd; color: #5c4400; border-bottom: 1px solid #e8d48a; padding: 14px var(--gutter); font-size: 15px; text-align: center; }

.toast { position: fixed; left: 50%; bottom: 140px; max-width: calc(100% - 32px); text-align: center; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 80; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rail { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
  .hero__art { height: 400px; }
  .about__grid { gap: 40px; }
}
@media (max-width: 820px) {
  .bf-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; min-height: 0; }
  .bf-card--main { grid-column: 1 / -1; grid-row: auto; min-height: 460px; }
  .bf-card--perf, .bf-card--splash { min-height: 260px; }
  .bf-card--main .bf-card__copy { padding: 32px 24px; }
  .bf-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .bf-grid { grid-template-columns: 1fr; }
  .bf-card--main { min-height: 480px; }
  .bf-card--main::after { background: linear-gradient(180deg, rgb(15 11 10 / .1) 0%, rgb(15 11 10 / .85) 70%); }
  .bf-card--main .bf-card__copy { justify-content: flex-end; }
  .bf-card__copy { padding: 22px; }
  .laco--esq { width: 104px; height: 78px; left: 14px; }
  .laco--dir { width: 86px; height: 64px; }
}
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 16px; padding-top: 32px; }
  .hero__art { height: 320px; order: -1; }
  .about__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .grid--sk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 170px; }
  .header__row { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 8px 12px; }
  .logo { margin-right: auto; }
  .logo__mark { font-size: 24px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__add { padding: 6px 10px; font-size: 13px; }
  .catalog { padding-bottom: 96px; } /* espaço para o botão do WhatsApp não cobrir o último card */
  .rail { grid-auto-columns: 62%; gap: 12px; }
  .cats__row { grid-template-columns: repeat(5, 76px); overflow-x: auto; gap: 14px; padding-bottom: 4px; }
  .cat { font-size: 13px; }
  .card__body { padding: 12px; }
  .card__name { font-size: 15px; }
  .card__price { font-size: 18px; }
  .filters { flex-direction: column; flex-wrap: nowrap; }
  .chips { min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
  .chip { flex-shrink: 0; min-height: 44px; }
  .selects { width: 100%; }
  .select { flex: 1; }
  .cat-search { flex-basis: 100%; }
  .cat-search input { width: 100%; min-height: 44px; font-size: 16px; }
  .select select { width: 100%; min-height: 44px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__facts { gap: 24px; }
  .grid--sk { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cats, .shelf, .band, .about { padding-top: 56px; padding-bottom: 56px; }
  .catalog { padding-top: 56px; }
  .topbar { font-size: 12px; }
}
@media (max-width: 400px) {
  .grid--sk { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
