:root {
  --paper: #ffffff;
  --wash: #f4f5f7;
  --ink: #17181c;
  --ink-2: #5a5e68;
  --line: #e2e4e9;
  --blue: #1457d9;
  --blue-dark: #0e3f9e;
  --sale: #d7263d;
  --ok: #167a45;
  --warn: #a15c00;
  --radius: 10px;
  --font-head: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* ondas do calçadão de Copacabana */
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='16' viewBox='0 0 64 16'%3E%3Cpath d='M0 8c8 0 8-8 16-8s8 8 16 8 8-8 16-8 8 8 16 8v8H0z' fill='%2317181c'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font-body); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* topo */
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 14px; padding: 8px 16px; }
.demo-bar { background: #fff3cd; color: #5c4400; text-align: center; font-size: 13px; padding: 6px 16px; }
header.top { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
header.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--wave) repeat-x; background-size: 32px 8px; pointer-events: none; }
.bar { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.logo img { border-radius: 50%; display: block; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1; }
.logo small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .02em; color: var(--ink-2); margin-top: 3px; }
.search { flex: 1; display: flex; max-width: 520px; margin-inline: auto; }
.search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 10px 14px; background: var(--wash); }
.search button { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 0 var(--radius) var(--radius) 0; padding: 0 16px; }
.icon-btn { position: relative; background: none; border: 0; padding: 8px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.badge { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--sale); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 5px; }
nav.cats { display: flex; gap: 22px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: none; }
nav.cats a { white-space: nowrap; font-weight: 600; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.cats a:hover, nav.cats a.on { border-color: var(--ink); }
nav.cats a.hot { color: var(--sale); }
main { min-height: 60vh; padding: 28px 0 56px; }

/* herói */
.hero { background: var(--ink); color: #fff; border-radius: 16px; padding: clamp(28px, 6vw, 64px); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 40px; background: var(--wave) repeat-x; background-size: 128px 32px; filter: invert(1); opacity: .16; }
.hero h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(38px, 8vw, 84px); line-height: .95; letter-spacing: -0.04em; margin: 0 0 16px; max-width: 12ch; }
.hero p { max-width: 46ch; color: #d4d7de; margin: 0 0 24px; font-size: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: var(--radius); }
.btn:hover { background: #000; }
.btn.light { background: #fff; color: var(--ink); border-color: #fff; }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }

.sec { margin-top: 44px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(24px, 4vw, 34px); }
.sec-head a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px; font-family: var(--font-head); font-weight: 700; font-size: 18px; background: var(--wash); }
.tile:hover { border-color: var(--ink); }

/* grade de produtos */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card .ph { position: relative; aspect-ratio: 4/5; background: var(--wash); border-radius: var(--radius); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .name { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.card .brand { font-size: 13px; color: var(--ink-2); }
.tags { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.tag.sale { background: var(--sale); border-color: var(--sale); color: #fff; }
.tag.new { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag.out { background: #fff; color: var(--ink-2); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.price s { color: var(--ink-2); font-size: 14px; }
.price b { font-size: 19px; font-weight: 800; }
.price.big b { font-size: 30px; }
.sub { font-size: 13px; color: var(--ink-2); }
.sub.ok { color: var(--ok); font-weight: 600; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0 22px; }
.toolbar select, .field input, .field select, .field textarea, .coupon input { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: #fff; min-width: 0; }
.crumbs { font-size: 14px; color: var(--ink-2); }

/* produto */
.pdp { display: grid; gap: 28px; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.gallery .main { aspect-ratio: 4/5; background: var(--wash); border-radius: 14px; overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { width: 68px; height: 85px; flex: none; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--wash); }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 38px); line-height: 1.05; letter-spacing: -0.03em; margin: 6px 0 12px; }
.opt { margin: 20px 0; }
.opt > b { display: block; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 46px; padding: 9px 14px; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; font-weight: 600; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[disabled] { color: #a5a9b3; text-decoration: line-through; cursor: not-allowed; background: var(--wash); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 8px; }
.qty button { width: 36px; height: 38px; border: 0; background: none; font-size: 18px; }
.qty span { min-width: 32px; text-align: center; font-weight: 700; }
.box { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.box.wash { background: var(--wash); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.desc { white-space: pre-line; color: #33363e; max-width: 62ch; }
.cep { display: flex; gap: 8px; }
.cep input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.ship-opt { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ship-opt:first-child { border-top: 0; }

/* carrinho / checkout */
.two { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 380px; } .two aside { position: sticky; top: 130px; } }
.line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 84px; aspect-ratio: 4/5; object-fit: cover; border-radius: 8px; background: var(--wash); }
.line .meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.line .actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 8px; }
.linkbtn { background: none; border: 0; padding: 4px; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-2); }
.totals > div { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .grand { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-size: 20px; font-weight: 800; }
.coupon { display: flex; gap: 8px; margin: 14px 0; }
.coupon input { flex: 1; text-transform: uppercase; }
.form { display: grid; gap: 14px; }
.form .cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.field { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.field input, .field select { font-weight: 400; font-size: 16px; }
.field small { font-weight: 400; color: var(--ink-2); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
legend { font-family: var(--font-head); font-weight: 700; font-size: 21px; padding: 0; margin-bottom: 4px; }
.radio { display: flex; gap: 10px; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--ink); background: var(--wash); }
.radio input { margin-top: 5px; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 15px; background: #fdecee; color: #8a1424; border: 1px solid #f5c2c8; }
.alert.ok { background: #e7f6ee; color: #0f5a33; border-color: #b7e2c8; }
.alert.info { background: #eaf1ff; color: #0e3f9e; border-color: #c4d6fb; }
.empty { text-align: center; padding: 56px 16px; color: var(--ink-2); }
.empty h2 { color: var(--ink); margin-bottom: 8px; }

/* pagamento / pedido */
.pix-qr { width: 240px; max-width: 70%; margin: 8px auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.copybox { display: flex; gap: 8px; }
.copybox input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--wash); }
.steps { display: flex; justify-content: space-between; gap: 6px; margin: 18px 0 26px; counter-reset: s; }
.steps li { list-style: none; flex: 1; text-align: center; font-size: 13px; color: var(--ink-2); position: relative; padding-top: 30px; }
.steps li::before { content: ''; position: absolute; top: 6px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--line); z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done::before, .steps li.done::after { background: var(--ok); }
ul.plain { margin: 0; padding: 0; list-style: none; }

/* rodapé */
footer { background: var(--wash); border-top: 1px solid var(--line); padding: 40px 0 28px; }
.benefits { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 32px; }
.benefits b { font-family: var(--font-head); font-size: 18px; display: block; }
.foot-cols { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); font-size: 15px; }
.foot-cols h3 { font-size: 16px; margin-bottom: 8px; }
.foot-cols a { display: block; padding: 3px 0; color: var(--ink-2); }
.foot-cols a:hover { color: var(--ink); text-decoration: underline; }
.copy { margin-top: 28px; font-size: 13px; color: var(--ink-2); }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: #1ea952; color: #fff; font-weight: 700; padding: 12px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 60; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast a { text-decoration: underline; font-weight: 700; }
.spin { text-align: center; padding: 60px; color: var(--ink-2); }
@media (max-width: 720px) { .search { order: 3; flex-basis: 100%; max-width: none; } .bar { flex-wrap: wrap; } .logo { margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
