/* Hidrausilva: paleta adaptada à logo (grafite, vermelho da engrenagem, dourado só no CTA) */
:root {
  --ink: #14171c;
  --ink-2: #1f242c;
  --text: #272c35;
  --muted: #5a6472;
  --line: #e2e5ea;
  --bg: #fff;
  --bg-alt: #f4f5f7;
  --accent: #c8102e;
  --cta: #f5b301;
  --cta-hover: #ffc420;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 23 28 / .05), 0 8px 24px rgb(20 23 28 / .06);
  --head: "Manrope", "Segoe UI", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: var(--head); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, 1200px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, 820px); }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: #fff; }
.skip:focus { top: 8px; }

/* Placeholder: informação pendente do cliente */
.ph { display: inline-block; padding: 1px 8px; border: 1px dashed #d4145a; border-radius: 6px; background: #ffe3ee; color: #a30d44; font-size: .92em; font-weight: 600; line-height: 1.5; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 2px solid transparent; border-radius: 10px; font: 700 1rem/1.2 var(--head); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 16px; font-size: .92rem; }
.btn--lg { padding: 15px 26px; }
.btn--xl { padding: 18px 32px; font-size: 1.15rem; }
.btn--cta { background: var(--cta); color: var(--ink); }
.btn--cta:hover { background: var(--cta-hover); }
.btn--ghost { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; text-decoration: none; }
.link .i { transition: transform .2s; }
.link:hover .i { transform: translateX(3px); }

/* Barra superior */
.topbar { background: #0d0f13; color: #c7ccd4; font-size: .84rem; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding-block: 6px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar__hours, .topbar__street { display: none; }
.topbar__phone { color: #fff; font-weight: 600; white-space: nowrap; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-stuck { box-shadow: 0 4px 18px rgb(20 23 28 / .08); }
.header__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: auto; height: 38px; }
.brand--light img { height: 44px; }
@media (min-width: 1024px) { .header .brand img { height: 44px; } }

/* Menu mobile: painel em tela cheia abaixo do header */
.nav { position: fixed; top: var(--menu-top, 76px); right: 0; bottom: 0; left: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--ink); color: #c7ccd4; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s; }
.nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
.nav__links li { border-bottom: 1px solid rgb(255 255 255 / .08); }
.nav__links a { display: flex; align-items: baseline; gap: 14px; padding: 15px 2px; color: #fff; font: 800 1.55rem/1.15 var(--head); letter-spacing: -.02em; text-decoration: none; }
.nav__links a:hover, .nav__links a:focus-visible { color: var(--cta); }
.nav__n { min-width: 22px; color: var(--accent); font: 600 .8rem/1 var(--body); letter-spacing: .04em; }
.nav.is-open .nav__links li { animation: navIn .4s ease both; }
.nav.is-open .nav__links li:nth-child(2) { animation-delay: .03s; }
.nav.is-open .nav__links li:nth-child(3) { animation-delay: .06s; }
.nav.is-open .nav__links li:nth-child(4) { animation-delay: .09s; }
.nav.is-open .nav__links li:nth-child(5) { animation-delay: .12s; }
.nav.is-open .nav__links li:nth-child(6) { animation-delay: .15s; }
@keyframes navIn { from { opacity: 0; transform: translateX(-10px); } }
.nav__extra .btn { width: 100%; }
.nav__info { display: grid; gap: 10px; margin-top: 20px; font-size: .92rem; }
.nav__info li { display: flex; align-items: center; gap: 10px; }
.nav__info .i { color: var(--accent); }
.nav__info a { color: #fff; text-decoration: none; }
.menu-open { overflow: hidden; }
.menu-open .wa-float { opacity: 0; pointer-events: none; }
.header__cta { display: none; }

/* Botão do menu: 3 barras que viram X */
.nav-toggle { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-left: auto; padding: 0 14px 0 12px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: 700 .9rem/1 var(--head); cursor: pointer; transition: background-color .2s; }
.nav-toggle:hover { background: var(--ink-2); }
.nav-toggle__bars { position: relative; width: 20px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s ease, opacity .2s ease, width .3s ease, top .3s ease; }
.nav-toggle__bars span:nth-child(1) { top: 0; width: 20px; }
.nav-toggle__bars span:nth-child(2) { top: 6px; width: 14px; background: var(--cta); }
.nav-toggle__bars span:nth-child(3) { top: 12px; width: 20px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { width: 0; opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Hero */
.hero { background: var(--ink); color: #d5d9e0; }
.hero__grid { display: grid; gap: 40px; padding-block: 44px 64px; }
.hero__eyebrow { margin-bottom: 18px; color: #fff; font-size: clamp(.7rem, 3.1vw, .82rem); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.hero__eyebrow::before { content: ""; display: block; width: 44px; height: 3px; margin-bottom: 14px; background: var(--accent); }
.hero h1 { color: #fff; font-size: clamp(2.35rem, 10.4vw, 4.6rem); line-height: 1.03; letter-spacing: -.025em; text-transform: uppercase; }
.hero__lead { max-width: 34em; margin: 20px 0 28px; font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { flex: 1 1 100%; }
.hero__media { position: relative; margin: 0 0 22px; }
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.seal { position: absolute; left: 16px; bottom: -22px; display: flex; align-items: center; gap: 12px; max-width: 250px; padding: 12px 18px; border-radius: 12px; background: #fff; color: var(--text); box-shadow: var(--shadow); font-size: .88rem; font-weight: 500; line-height: 1.3; }
.seal strong { color: var(--accent); font: 800 2.1rem/1 var(--head); letter-spacing: -.02em; }

/* Diferenciais */
.perks { border-bottom: 1px solid var(--line); }
.perks__grid { display: grid; gap: 28px 24px; padding-block: 44px; }
.perk .i { width: 30px; height: 30px; margin-bottom: 12px; color: var(--accent); stroke-width: 1.5; }
.perk h2 { margin-bottom: 6px; font-size: 1.1rem; letter-spacing: -.01em; }
.perk p { color: var(--muted); font-size: .95rem; }

/* Seções */
.section { padding-block: 64px; }
.section--alt { background: var(--bg-alt); }
.head { max-width: 640px; margin-bottom: 36px; }
.head h2, .split__copy h2, .about__copy h2, .contact__info h2 { font-size: clamp(1.8rem, 6.4vw, 2.6rem); }
.eyebrow { margin-bottom: 10px; color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

/* Cards de serviço */
.cards { display: grid; gap: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(20 23 28 / .06), 0 14px 32px rgb(20 23 28 / .1); }
.card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__body { position: relative; display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 34px 22px 22px; }
.card__icon { position: absolute; top: -24px; left: 22px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 1.05rem; }
.card h3 { margin-bottom: 6px; font-size: 1.2rem; letter-spacing: -.01em; }
.card p { flex: 1; margin-bottom: 14px; color: var(--muted); font-size: .96rem; }

/* Foto + texto */
.split { display: grid; gap: 32px; align-items: center; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.split__media--tall img { aspect-ratio: 4 / 3; object-position: 50% 40%; }
.split__copy h2 { margin-bottom: 14px; }
.checks { display: grid; gap: 8px; margin: 18px 0 24px; }
.checks li { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 500; }
.checks .i { color: var(--accent); stroke-width: 2.25; }

/* Produtos */
.feature { display: grid; gap: 32px; align-items: center; margin-bottom: 48px; }
.feature__video { justify-self: center; width: min(100%, 340px); }
.feature__video video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 18px; background: var(--ink); box-shadow: 0 2px 4px rgb(20 23 28 / .08), 0 22px 48px rgb(20 23 28 / .22); }
.tag { display: inline-block; margin-bottom: 14px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.feature__copy h3 { margin-bottom: 12px; font-size: clamp(1.7rem, 6vw, 2.4rem); }
.feature__label { margin: 22px 0 10px; color: var(--ink); font: 700 .95rem/1.3 var(--head); }
.build { display: flex; flex-wrap: wrap; gap: 8px; }
.build li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-alt); color: var(--ink); font-size: .92rem; font-weight: 500; }
.build span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; }
.products { display: grid; gap: 20px; }
.product { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); transition: transform .25s, box-shadow .25s; }
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.product__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 20px 22px 22px; }
.product h3 { margin-bottom: 6px; font-size: 1.2rem; letter-spacing: -.01em; }
.product p { flex: 1; margin-bottom: 14px; color: var(--muted); font-size: .96rem; }

/* Configurador 3D */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.config { padding-block: 64px; background: var(--ink); color: #c7ccd4; }
.head--light h2 { color: #fff; }
.head--light p:not(.eyebrow) { margin-top: 12px; color: #aab1bc; }
.config__grid { display: grid; gap: 16px; align-items: start; }
.config__stage { position: sticky; top: var(--header-h); z-index: 5; padding-block: 8px; background: var(--ink); }
.config__viewer { position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 42vh; max-height: 42svh; overflow: hidden; border-radius: 16px; background: #e9ecf0; }
.config__viewer canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.config__viewer canvas:active { cursor: grabbing; }
.config__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: .92rem; }
.config__hint { position: absolute; top: 12px; left: 50%; translate: -50% 0; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgb(20 23 28 / .72); color: #fff; font-size: .76rem; white-space: nowrap; pointer-events: none; transition: opacity .5s; }
.config__viewer.is-touched .config__hint { opacity: 0; }
.config__tools { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.tool { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--ink); color: #fff; font: 700 .88rem/1 var(--head); cursor: pointer; box-shadow: 0 4px 14px rgb(20 23 28 / .25); transition: background-color .2s; }
.tool:hover { background: var(--ink-2); }
.tool[aria-pressed="true"] { background: var(--accent); }
.tool:disabled { opacity: .5; cursor: wait; }
.tool--icon { justify-content: center; width: 42px; padding: 0; }
.config.is-fallback .config__tools, .config.is-fallback .config__hint { display: none; }
.config__fallback { width: 100%; height: 100%; object-fit: cover; }
.config__note { margin: 8px 0 0; color: #8f97a3; font-size: .8rem; }

.config__panel { display: grid; gap: 22px; padding: 22px 18px; border-radius: 16px; background: var(--bg); color: var(--text); }
.config__panel fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.config__panel legend, .field > span { display: block; margin-bottom: 10px; padding: 0; color: var(--ink); font: 700 .95rem/1.3 var(--head); }
.cfg-val { margin-left: 6px; color: var(--muted); font: 500 .88rem/1 var(--body); }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opts--2 { grid-template-columns: repeat(2, 1fr); }
.opt { position: relative; }
.opt input, .sw input[type="radio"], .switch input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: grid; place-items: center; min-height: 46px; padding: 8px 6px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); font-size: .88rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.opt span:hover { border-color: var(--ink); }
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt input:focus-visible + span, .sw input:focus-visible + span, .switch input:focus-visible + .switch__track { outline: 3px solid var(--accent); outline-offset: 2px; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { position: relative; }
.sw em { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sw span, .sw input[type="color"] { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); cursor: pointer; transition: transform .15s; }
.sw span:hover, .sw input[type="color"]:hover { transform: scale(1.08); }
.sw input:checked + span, .sw--custom input[type="radio"]:checked ~ input[type="color"] { outline: 2px solid var(--ink); outline-offset: 3px; }
.sw input[type="color"] { padding: 0; border: 0; background: conic-gradient(#e03131, #f5b301, #2f9e44, #1c7ed6, #7048e8, #e03131); -webkit-appearance: none; appearance: none; }
.sw input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.sw input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; opacity: 0; }
.sw input[type="color"]::-moz-color-swatch { border: 0; border-radius: 50%; opacity: 0; }
.sw--custom input[type="radio"]:checked ~ input[type="color"]::-webkit-color-swatch { opacity: 1; }
.sw--custom input[type="radio"]:checked ~ input[type="color"]::-moz-color-swatch { opacity: 1; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch__track { position: relative; width: 48px; height: 28px; border-radius: 999px; background: #c9ced6; transition: background-color .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .25); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--ink); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch__label { color: var(--ink); font: 700 .95rem/1 var(--head); }
.field input { width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); font: 500 1rem/1 var(--body); }
.field input[name="brand"] { font: 700 1rem/1 var(--head); letter-spacing: .02em; text-transform: uppercase; }
.field input[name="brand"]::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.field input:focus { border-color: var(--ink); outline: none; }
.config__send { width: 100%; }

/* Página de produtos */
.page-hero { padding-block: 36px 40px; background: var(--ink); color: #aab1bc; }
.page-hero h1 { margin: 10px 0 8px; color: #fff; font-size: clamp(2.1rem, 8vw, 3.2rem); text-transform: uppercase; letter-spacing: -.02em; }
.crumbs { display: flex; gap: 8px; font-size: .86rem; }
.crumbs a { color: #c7ccd4; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--cta); }
.section--tight { padding-block: 40px 64px; }
.nav__links a[aria-current="page"] { color: var(--cta); }

.pdp { display: grid; gap: 28px; align-items: start; }
.pdp__gallery { display: grid; gap: 10px; }
.pdp__stage { display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: var(--ink); aspect-ratio: 4 / 5; }
.pdp__stage video, .pdp__stage img { width: 100%; height: 100%; object-fit: contain; }
.pdp__stage img { object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.thumb { position: relative; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 12px; background: var(--line); cursor: pointer; aspect-ratio: 4 / 3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); }
.thumb__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(20 23 28 / .35); color: #fff; font-size: 1.3rem; }
.pdp__info > p { color: var(--muted); }
.pdp__title { margin-bottom: 8px; font-size: clamp(1.9rem, 7vw, 2.6rem); }
.pdp__price { margin: 0; color: var(--ink); font: 800 1.35rem/1.2 var(--head); }
.pdp__price-note { margin: 4px 0 14px; font-size: .88rem; }
.pdp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pdp__chips li { padding: 5px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); font-size: .85rem; font-weight: 600; }
.pdp__form { display: grid; gap: 20px; margin: 24px 0; padding: 22px 18px; border: 1px solid var(--line); border-radius: 16px; }
.pdp__form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.pdp__form legend { display: block; margin-bottom: 10px; padding: 0; color: var(--ink); font: 700 .95rem/1.3 var(--head); }
.field small { color: var(--muted); font: 500 .82rem var(--body); }
.field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); font: 500 .95rem/1.5 var(--body); resize: vertical; }
.field textarea:focus { border-color: var(--ink); outline: none; }
.pdp__buy { display: flex; flex-wrap: wrap; gap: 10px; }
.pdp__add { flex: 1 1 220px; }
.pdp__3d { width: 100%; }
.pdp__checks { margin-top: 0; }

.qty { display: inline-flex; align-items: center; height: 54px; border: 1.5px solid var(--line); border-radius: 10px; }
.qty__btn { display: grid; place-items: center; width: 44px; height: 100%; border: 0; background: none; color: var(--ink); cursor: pointer; }
.qty__btn:hover { color: var(--accent); }
.qty__input, .qty__value { width: 44px; border: 0; color: var(--ink); font: 700 1.05rem/1 var(--head); text-align: center; -moz-appearance: textfield; }
.qty__input::-webkit-inner-spin-button, .qty__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { height: 38px; }
.qty--sm .qty__btn { width: 34px; }
.qty--sm .qty__value { width: 28px; }

/* Botão do carrinho no header */
.cart-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.cart-btn:hover { border-color: var(--ink); }
.cart-btn__count { position: absolute; top: -7px; right: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font: 700 .72rem/1 var(--body); }
.cart-btn__count[hidden] { display: none; }
.has-cart .nav-toggle { margin-left: 8px; }

/* Gaveta do carrinho */
.cart { width: min(440px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--bg); color: var(--text); }
.cart[open] { display: flex; flex-direction: column; animation: cartIn .28s ease; }
.cart::backdrop { background: rgb(10 12 15 / .55); }
@keyframes cartIn { from { transform: translateX(40px); opacity: 0; } }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart__head h2 { font-size: 1.3rem; }
.cart__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg-alt); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.cart__body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.cart__empty { display: grid; justify-items: center; gap: 12px; padding: 48px 0; color: var(--muted); text-align: center; }
.cart__empty > .i { width: 44px; height: 44px; stroke-width: 1.4; }
.cart__empty[hidden], .cart__checkout[hidden] { display: none; }
.cart__list { display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.cart-item > img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.cart-item__name { margin: 0 0 4px; color: var(--ink); font: 700 1rem/1.3 var(--head); }
.cart-item__opts { display: grid; gap: 2px; margin-bottom: 10px; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-item__remove { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; border: 0; background: none; color: var(--muted); font: 500 .84rem var(--body); cursor: pointer; }
.cart-item__remove:hover { color: var(--accent); }
.cart__checkout { display: grid; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.cart__checkout h3 { font-size: 1.15rem; }
.cart__hint { margin: -6px 0 0; color: var(--muted); font-size: .88rem; }
.cart__checkout .field > span { margin-bottom: 6px; font-size: .9rem; }
.cart__error { margin: 0; color: var(--accent); font-size: .88rem; font-weight: 600; }
.cart__error[hidden] { display: none; }
.cart__send { width: 100%; }
.cart__clear { justify-self: center; padding: 6px; border: 0; background: none; color: var(--muted); font: 500 .86rem var(--body); text-decoration: underline; cursor: pointer; }
.cart-open { overflow: hidden; }
.cart-open .wa-float { opacity: 0; pointer-events: none; }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 200; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgb(20 23 28 / .3); font-size: .92rem; font-weight: 500; opacity: 0; transform: translate(-50%, 10px); transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Sobre */
.about { display: grid; gap: 40px; align-items: center; }
.about__media { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; margin-bottom: 18px; }
.about__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about__main { aspect-ratio: 4 / 5; }
.about__side { aspect-ratio: 3 / 5; align-self: end; object-position: 30% 50%; }
.seal--light { left: auto; right: 16px; bottom: -18px; max-width: 200px; }
.about__copy h2 { margin-bottom: 14px; }

/* Passos */
.steps { display: grid; gap: 28px; counter-reset: step; }
.step { padding-top: 18px; border-top: 2px solid var(--ink); }
.step__n { display: block; margin-bottom: 10px; color: var(--accent); font: 800 1.9rem/1 var(--head); letter-spacing: -.02em; }
.step h3 { margin-bottom: 6px; font-size: 1.15rem; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: .96rem; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery button { display: block; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: var(--line); cursor: zoom-in; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .35s; }
.gallery button:hover img { transform: scale(1.03); }

/* Lightbox */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 12 15 / .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(10 12 15 / .94); }
.lightbox img { max-width: min(92vw, 720px); max-height: 86dvh; border-radius: 10px; }
.lightbox__btn { position: fixed; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .14); color: #fff; font-size: 1.1rem; cursor: pointer; }
.lightbox__btn:hover { background: rgb(255 255 255 / .26); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev { left: 10px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 10px; top: 50%; translate: 0 -50%; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; color: var(--ink); font: 700 1.03rem/1.35 var(--head); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 18px 18px; color: var(--muted); }

/* CTA final */
.final { background: var(--ink); color: #d5d9e0; text-align: center; }
.final__in { padding-block: 64px; }
.final h2 { color: #fff; font-size: clamp(2rem, 7.6vw, 3.4rem); text-transform: uppercase; letter-spacing: -.02em; }
.final p { margin: 14px 0 26px; font-size: 1.08rem; }

/* Contato */
.contact { display: grid; gap: 36px; }
.contact__info h2 { margin-bottom: 24px; }
.contact__list { display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; }
.contact__list .i { width: 24px; height: 24px; margin-top: 2px; color: var(--accent); }
.contact__list .i:has(use[href="#i-whatsapp"]) { fill: currentColor; stroke: none; }
.contact__list strong { display: block; color: var(--ink); font-family: var(--head); font-weight: 700; }
.contact__list a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact__list a:hover { text-decoration: underline; }
.contact__map iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--bg-alt); }

/* Footer */
.footer { padding-block: 48px 0; background: #0d0f13; color: #aab1bc; font-size: .95rem; }
.footer__grid { display: grid; gap: 32px; }
.footer__brand p { margin-top: 12px; }
.footer h2 { margin-bottom: 10px; color: #fff; font-size: .95rem; letter-spacing: 0; }
.footer nav a, .footer__grid > div:last-child a { display: block; padding-block: 4px; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer__grid > div:last-child p { margin-top: 6px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 32px; padding-block: 18px; padding-right: 76px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .86rem; }
.footer .footer__credit a { color: var(--cta); font-weight: 700; text-decoration: none; white-space: nowrap; }
.footer .footer__credit a:hover { color: var(--cta-hover); text-decoration: underline; }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--cta); color: var(--ink); box-shadow: 0 6px 20px rgb(20 23 28 / .3); font-size: 1.45rem; transition: transform .2s, background-color .2s; }
.wa-float:hover { background: var(--cta-hover); transform: scale(1.05); }

/* Animação ao rolar (só com JS ativo) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (min-width: 560px) {
  .hero__actions .btn { flex: 0 1 auto; }
  .perks__grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .topbar__hours { display: inline-flex; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .topbar__street { display: inline; }
  .section { padding-block: 84px; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .contact { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .contact__map iframe { height: 100%; min-height: 420px; }
  .split { grid-template-columns: minmax(0, 460px) 1fr; gap: 56px; }
  .split--rev { grid-template-columns: 1fr minmax(0, 460px); }
  .about { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature { grid-template-columns: minmax(0, 340px) 1fr; gap: 56px; }
  .feature__video { width: 100%; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .config { padding-block: 84px; }
  .pdp { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; }
  .pdp__gallery { position: sticky; top: calc(var(--header-h) + 16px); }
  .pdp__form { padding: 24px; }
  .page-hero { padding-block: 48px 52px; }
  .config__panel { padding: 26px; }
  .final__in { padding-block: 84px; }
}

@media (min-width: 1024px) {
  .nav, .nav.is-open { position: static; display: block; margin-left: auto; padding: 0; overflow: visible; background: none; visibility: visible; opacity: 1; transform: none; transition: none; }
  .nav__links { display: flex; gap: 24px; }
  .nav__links li { border: 0; animation: none !important; }
  .nav__links a { display: block; padding: 6px 0; color: var(--ink); font: 500 .95rem/1.4 var(--body); letter-spacing: 0; }
  .nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--accent); }
  .nav__n, .nav__extra { display: none; }
  .header__cta { display: inline-flex; margin-left: 10px; }
  .has-cart .cart-btn { margin-left: 18px; }
  .has-cart .nav__links { gap: 20px; }
  .nav-toggle { display: none; }
  .hero__grid { grid-template-columns: 1.08fr 1fr; gap: 56px; align-items: center; padding-block: 72px 88px; }
  .hero__media { margin-bottom: 0; }
  .perks__grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .config__grid { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 28px; }
  .config__stage { top: calc(var(--header-h) + 16px); padding: 0; }
  .config__viewer { aspect-ratio: 16 / 11; max-height: none; }
}

/* Com carrinho no header, o botão de WhatsApp só aparece quando há espaço */
@media (min-width: 1024px) and (max-width: 1179px) {
  .has-cart .header__cta { display: none; }
}
