/* Layout: vitrine de estúdio — hero com o kit, grade de peças avulsas, passo a passo do pedido, sacola lateral que vira mensagem de WhatsApp */
:root {
  --bg: #f7f2ee;
  --surface: #ffffff;
  --sand: #efe4dc;
  --sand-2: #e6d6cb;
  --fg: #231a1c;
  --muted: #6f6063;
  --line: #e3d5cc;
  --wine: #6e2838;
  --wine-ink: #ffffff;
  --wine-soft: #f3e3e6;
  --skin: #f2b98a;
  --ok: #1f7a4d;
  --wa: #1f9d55;
  --shadow: 0 1px 2px rgba(60, 25, 30, .06), 0 12px 32px -12px rgba(60, 25, 30, .18);
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --gut-l: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1416; --surface: #241c1f; --sand: #2d2326; --sand-2: #3a2d31; --fg: #f6ece8; --muted: #b9a7a9;
    --line: #3d3034; --wine: #e08a9c; --wine-ink: #2a0f16; --wine-soft: #3a2228; --skin: #f2b98a; --ok: #6fd3a0; --wa: #35c46f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a1416; --surface: #241c1f; --sand: #2d2326; --sand-2: #3a2d31; --fg: #f6ece8; --muted: #b9a7a9;
  --line: #3d3034; --wine: #e08a9c; --wine-ink: #2a0f16; --wine-soft: #3a2228; --skin: #f2b98a; --ok: #6fd3a0; --wa: #35c46f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--wine); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gut-l); padding-right: var(--gut-r); }
.eyebrow { font: 600 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.price { font: 800 clamp(30px, 4vw, 44px)/1 var(--font-display); color: var(--wine); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 15px 26px; font-weight: 700; font-size: 15px;
  text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--wine); color: var(--wine-ink); box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--wine) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--wine) 88%, var(--fg)); }
.btn-ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--wine); color: var(--wine); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; background: var(--wine); color: var(--wine-ink);
  display: grid; place-items: center; font: 800 15px/1 var(--font-display);
}
.logo-text { font: 700 15px/1 var(--font-body); letter-spacing: .2em; }
.nav { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--fg); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  background: var(--fg); color: var(--bg); border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14px;
}
.cart-btn svg { width: 18px; height: 18px; }
.cart-count {
  min-width: 22px; height: 22px; border-radius: 999px; background: var(--skin); color: #3a1d10;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; padding: 0 6px; font-variant-numeric: tabular-nums;
}
.cart-btn.bump { animation: bump .45s ease; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }

/* Hero */
.hero { padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--wine); color: var(--wine-ink);
  padding: 8px 16px; border-radius: 999px; font: 700 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
}
.hero h1 {
  font: 800 clamp(40px, 6.2vw, 78px)/.95 var(--font-display); letter-spacing: -.035em; margin: 22px 0 18px;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--wine); }
.hero .lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.kit-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; max-width: 520px; }
.kit-list li { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.kit-list li span { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero-price .old { color: var(--muted); text-decoration: line-through; font-size: 15px; }
.hero-price .save { display: inline-block; margin-left: 8px; background: var(--wine-soft); color: var(--wine); font-weight: 700; font-size: 12px; padding: 3px 9px; border-radius: 999px; }
.hero-price .terms { font-size: 13px; color: var(--muted); margin-top: 6px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-media { position: relative; }
.hero-photo {
  border-radius: var(--r-lg); overflow: hidden; background: var(--sand); aspect-ratio: 1600 / 1013;
  box-shadow: var(--shadow);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; animation: rise 1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { transform: scale(1.04); } to { transform: none; } }
.badge-float {
  position: absolute; left: -14px; bottom: 26px; background: var(--surface); border-radius: var(--r-md);
  padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; max-width: 250px;
}
.badge-float b { font: 800 26px/1 var(--font-display); color: var(--wine); white-space: nowrap; }
.badge-float small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }

/* Perks */
.perks { border-block: 1px solid var(--line); background: var(--surface); }
.perks .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.perk { display: flex; gap: 12px; align-items: center; padding-block: 20px; padding-inline: 18px; min-width: 0; }
.perk + .perk { border-left: 1px solid var(--line); }
.perk svg { width: 26px; height: 26px; flex: none; color: var(--wine); }
.perk strong { display: block; font-size: 14px; }
.perk span { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Section heads */
section.block { padding-block: clamp(56px, 8vw, 104px) 0; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.head h2 { font: 800 clamp(32px, 4.4vw, 54px)/1 var(--font-display); letter-spacing: -.03em; margin: 12px 0 0; text-wrap: balance; }
.head p { margin: 0; color: var(--muted); max-width: 40ch; }

/* Products */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-photo { position: relative; background: var(--sand); aspect-ratio: 1400 / 944; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-photo img { transform: scale(1.035); }
.card-photo .views { position: absolute; inset: auto 0 14px; display: flex; justify-content: space-around; padding-inline: 18%; }
.card-photo .views span { font-size: 11px; letter-spacing: .2em; color: #6f6063; text-transform: uppercase; background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: 999px; }
.tag { position: absolute; top: 16px; left: 16px; background: var(--surface); color: var(--fg); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.card-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card h3 { font: 800 28px/1.05 var(--font-display); letter-spacing: -.02em; margin: 0; }
.card .desc { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.specs { margin: 0; display: grid; gap: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.buy { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 6px; }
.buy .price { font-size: 34px; }
.buy small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.buy-actions { display: flex; align-items: center; gap: 10px; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; height: 48px; }
.stepper button { width: 40px; height: 100%; background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted); border-radius: 999px; }
.stepper button:hover { color: var(--wine); }
.stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.add { padding: 13px 22px; height: 48px; }
.add.done { background: var(--ok); }

/* Brocas: escolha kit ou avulsa */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 10px 12px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.seg button span { font-variant-numeric: tabular-nums; color: var(--wine); font-weight: 700; margin-left: 4px; }
.models { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.model {
  position: relative; border: 1.5px solid var(--line); background: var(--bg); border-radius: var(--r-sm);
  padding: 8px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: border-color .2s, background .2s;
}
.model img { height: 120px; width: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(60, 25, 30, .18)); }
.model span { font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; }
.model small { font-size: 11px; color: var(--muted); }
.model[aria-pressed="true"] { border-color: var(--wine); background: var(--wine-soft); }
.models-note { font-size: 13px; color: var(--muted); margin: -6px 0 0; }

/* Kit band */
.kit-band {
  margin-top: 22px; border-radius: var(--r-lg); background: var(--wine); color: var(--wine-ink);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; padding: 28px 32px; overflow: hidden; position: relative;
}
.kit-band h3 { font: 800 clamp(24px, 3vw, 34px)/1.05 var(--font-display); letter-spacing: -.02em; margin: 0 0 6px; }
.kit-band p { margin: 0; opacity: .85; font-size: 15px; }
.kit-band .btn { background: var(--wine-ink); color: var(--wine); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { background: var(--sand); border-radius: var(--r-md); padding: 22px 22px 26px; position: relative; min-width: 0; }
.steps li::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--wine); color: var(--wine-ink); font: 800 15px/1 var(--font-display); margin-bottom: 18px;
}
.steps strong { display: block; font-size: 17px; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 500 24px/1 var(--font-body); color: var(--wine); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Footer */
footer { margin-top: clamp(64px, 9vw, 120px); background: var(--fg); color: var(--bg); }
footer .wrap { padding-block: 48px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; }
footer h2 { font: 800 clamp(30px, 4vw, 48px)/1 var(--font-display); letter-spacing: -.03em; margin: 0 0 18px; }
footer .contacts { display: grid; gap: 12px; align-content: start; }
footer .contacts a { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 17px; opacity: .92; }
footer .contacts a:hover { opacity: 1; text-decoration: underline; }
footer .contacts svg { width: 22px; height: 22px; }
footer .fine { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--bg) 20%, transparent); padding-top: 22px; font-size: 13px; opacity: .65; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Floating WhatsApp */
.fab {
  position: fixed; z-index: 40; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(31, 157, 85, .7); text-decoration: none;
}
.fab svg { width: 30px; height: 30px; }

/* Drawer */
.scrim { position: fixed; inset: 0; background: rgba(20, 10, 12, .45); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: var(--bg); display: flex; flex-direction: column; transform: translateX(102%); transition: transform .38s cubic-bezier(.2,.8,.2,1);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); padding-right: env(safe-area-inset-right, 0px);
  box-shadow: -20px 0 50px -20px rgba(0,0,0,.3);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font: 800 26px/1 var(--font-display); letter-spacing: -.02em; margin: 0; }
.x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 20px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px 12px 10px 10px; }
.line-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: var(--sand); }
.line-item img[src$=".png"] { object-fit: contain; padding: 4px; }
.line-item .info { min-width: 0; }
.line-item b { display: block; font-size: 15px; line-height: 1.25; }
.line-item small { color: var(--muted); font-size: 13px; }
.line-item .right { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.line-item .stepper { height: 34px; }
.line-item .stepper button { width: 30px; font-size: 17px; }
.line-item .sub { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; display: grid; gap: 14px; justify-items: center; }
.empty svg { width: 54px; height: 54px; color: var(--sand-2); }
.fields { display: grid; gap: 10px; margin-top: 6px; }
.fields label { font-size: 13px; font-weight: 600; color: var(--muted); display: grid; gap: 6px; }
.fields input {
  font: inherit; color: var(--fg); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; width: 100%;
}
.fields input:focus { outline: none; border-color: var(--wine); }
.drawer-foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; display: grid; gap: 12px; background: var(--surface); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; }
.total-row span { color: var(--muted); }
.total-row strong { font: 800 30px/1 var(--font-display); color: var(--wine); font-variant-numeric: tabular-nums; }
.foot-note { font-size: 12.5px; color: var(--muted); margin: -4px 0 2px; line-height: 1.45; }
.foot-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.linkish { background: none; border: 0; color: var(--muted); font-size: 13.5px; text-decoration: underline; padding: 6px; }

.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px);
  background: var(--fg); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .3s ease; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .perks .wrap { grid-template-columns: 1fr 1fr; }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .kit-band { grid-template-columns: 1fr; padding: 24px; }
  .badge-float { display: none; }
}
@media (max-width: 520px) {
  .kit-list { grid-template-columns: 1fr; }
  .perks .wrap { grid-template-columns: 1fr; }
  .perk { border-left: 0 !important; }
  .perk + .perk { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .card-body { padding: 20px; }
  .logo-text { display: none; }
  .hero-cta, .hero-cta .btn { width: 100%; }
  .buy-actions { width: 100%; }
  .buy-actions .add { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
