:root {
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --soft: #F3EEE7;
  --ink: #2D2B28;
  --ink-2: #57514A;
  --muted: #8A7F73;
  --line: #ECE6DE;
  --accent: #B5835F;
  --accent-ink: #8E5F3E;
  --ok: #5E7D5A;
  --danger: #B5523F;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(45, 43, 40, .04), 0 8px 24px rgba(45, 43, 40, .06);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
mark { background: #F5E3CF; color: inherit; border-radius: 4px; padding: 0 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

/* ---------- Marca ---------- */
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 44px; height: 44px; }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-family: var(--serif); font-weight: 500; font-size: 24px; letter-spacing: .5px; }
.brand-name small { font-size: 10.5px; letter-spacing: 3.6px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); cursor: pointer; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .15s, border-color .15s, transform .1s; white-space: nowrap;
}
.btn:hover { border-color: #D9CFC3; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #45413C; border-color: #45413C; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--soft); }
.btn-danger { color: var(--danger); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-icon { width: 40px; padding: 0; height: 40px; }
.btn svg { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Topo ---------- */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 12px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.aviso { background: var(--soft); color: var(--ink-2); font-size: 13.5px; text-align: center; padding: 8px 16px; }

.hero { padding: 44px 0 20px; }
.eyebrow { font-size: 12.5px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; margin: 0 0 10px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 0 0 24px; letter-spacing: -.5px; }
.hero p.lead { color: var(--ink-2); margin: 0 0 26px; max-width: 560px; }
.updated { display: block; margin-top: 4px; }

/* ---------- Busca ---------- */
.search { position: relative; max-width: 720px; }
.search svg.lupa { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 60px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  padding: 0 56px 0 52px; font-size: 16.5px; box-shadow: var(--shadow); outline: none; transition: border-color .15s;
}
.search input:focus { border-color: #D3C2B0; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search input::placeholder { color: #A99E92; }
.search .limpar { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.search kbd { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 600 12px var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }
.dicas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--muted); align-items: center; }
.dicas button { border: 1px dashed #DCCFC1; background: transparent; border-radius: 999px; padding: 4px 12px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
.dicas button:hover { background: var(--soft); }

/* ---------- Barra de filtros ---------- */
.toolbar { position: sticky; top: 0; z-index: 20; background: rgba(250, 248, 245, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.toolbar.stuck { border-bottom-color: var(--line); }
.toolbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .n { font-weight: 500; opacity: .6; margin-left: 4px; }
.tools { display: flex; gap: 8px; align-items: center; flex: none; }
.select { height: 38px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); padding: 0 34px 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); appearance: none; -webkit-appearance: none; cursor: pointer;
  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='%238A7F73' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 3px; }
.seg button { border: 0; background: transparent; width: 34px; height: 30px; border-radius: 999px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.seg button[aria-pressed="true"] { background: var(--soft); color: var(--ink); }
.seg svg { width: 17px; height: 17px; }

/* ---------- Resultados ---------- */
.status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 22px 0 14px; color: var(--ink-2); font-size: 14.5px; }
.status b { color: var(--ink); }
.status .sug button { border: 0; background: none; padding: 0; color: var(--accent-ink); font-weight: 700; text-decoration: underline; cursor: pointer; }
.filtro-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border-radius: 999px; padding: 3px 12px; font-size: 13px; }

.site-hits { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-bottom: 18px; }
.site-hit { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.site-hit:hover { border-color: #D9CFC3; }
.site-hit .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; flex: none; color: var(--accent-ink); }
.site-hit .ic svg { width: 18px; height: 18px; }
.site-hit b { display: block; font-size: 14.5px; }
.site-hit span { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; padding: 0; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #E3DACF; }
.thumb { position: relative; aspect-ratio: 4 / 3; background: var(--soft); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* fotos das fábricas são recortes em fundo branco: mostrar inteiras */
.thumb.has-img { background: #fff; }
.thumb.has-img img, .row .mini.has-img img { object-fit: contain; }
.card .thumb.has-img img { padding: 8px; }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #CDBFAF; }
.thumb .ph svg { width: 46%; height: auto; }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; padding: 4px 10px; color: var(--accent-ink); }
.badge.off { left: auto; right: 12px; background: var(--accent); color: #fff; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.card h3 { font-size: 16.5px; line-height: 1.3; margin: 0; font-weight: 700; }
.desc { font-size: 14px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.medidas { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.medidas svg { width: 14px; height: 14px; }
.price-row { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.3px; }
.price small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.old { font-size: 13.5px; color: var(--muted); text-decoration: line-through; }
.consulte { font-size: 15px; color: var(--accent-ink); font-weight: 700; }

/* Seções de produtos */
.secao { margin-bottom: 44px; scroll-margin-top: 80px; }
.secao-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.secao-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3.2vw, 32px); margin: 0; letter-spacing: -.3px; }
.secao-head span { font-size: 13.5px; color: var(--muted); white-space: nowrap; }

/* Lista (tabela de preços) */
.lista { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.row { display: grid; grid-template-columns: 64px 1fr 150px 160px 130px; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; }
.row:first-child { border-top: 0; }
.row:hover { background: #FCFAF7; }
.row.head { cursor: default; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 700; padding-top: 14px; padding-bottom: 14px; background: #FCFAF7; }
.row .mini { width: 64px; height: 50px; border-radius: 10px; overflow: hidden; background: var(--soft); position: relative; }
.row .mini img { width: 100%; height: 100%; object-fit: cover; }
.row .mini .ph svg { width: 70%; }
.row .nm b { display: block; font-size: 15px; line-height: 1.3; }
.row .nm small { color: var(--muted); font-size: 12.5px; }
.row .c, .row .m { font-size: 14px; color: var(--ink-2); }
.row .nm .cat-m { display: none; }
.row .p { text-align: right; }
.row .p .price { font-size: 19px; }
.row .p .old { display: block; font-size: 12.5px; }

.vazio { text-align: center; padding: 60px 20px; color: var(--muted); }
.vazio svg { width: 54px; height: 54px; color: #D6C8B8; margin-bottom: 10px; }
.vazio b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* ---------- Seções informativas ---------- */
.info { padding-top: 70px; padding-bottom: 30px; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; scroll-margin-top: 90px; }
.info-card h2 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 10px; }
.info-card p { margin: 0; color: var(--ink-2); font-size: 15px; white-space: pre-line; }
.info-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.info-card li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.info-card li svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.info-card li a { text-decoration: none; }
.info-card li a:hover { text-decoration: underline; }
.info-card.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 4px #F0DFCD; } }

footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--muted); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-bg { position: absolute; inset: 0; background: rgba(45, 43, 40, .42); animation: fade .2s ease; }
.modal-box { position: relative; background: var(--surface); border-radius: 22px; width: 100%; max-width: 880px; max-height: calc(100dvh - 40px); overflow: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .2); animation: up .25s ease; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .92); }
.produto { display: grid; grid-template-columns: 1.1fr 1fr; }
.produto .thumb { aspect-ratio: auto; min-height: 100%; }
.produto .thumb.has-img { background: #fff; }
.produto .thumb img { object-fit: contain; }
.produto .info-p { padding: 34px 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.produto h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.12; margin: 0; }
.produto .ref { font-size: 13px; color: var(--muted); }
.produto .full { color: var(--ink-2); white-space: pre-line; margin: 0; }
.produto .price { font-size: 34px; }
.produto .badge.off { left: 12px; right: auto; }
.produto .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14.5px; z-index: 200; box-shadow: var(--shadow); animation: up .2s ease; max-width: calc(100% - 32px); }
.toast.erro { background: var(--danger); }

/* ---------- Abas (Plataforma / Matos e Lopes) ---------- */
.abas { display: flex; gap: 6px; background: var(--soft); padding: 4px; border-radius: 999px; }
.aba { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, box-shadow .15s; }
.aba svg { width: 18px; height: 18px; flex: none; }
.aba:hover { color: var(--ink); }
.aba[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(45,43,40,.08), 0 2px 8px rgba(45,43,40,.06); }
.aba[aria-selected="true"] svg { color: var(--accent); }
.aba-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface); color: var(--accent-ink); font-size: 12px; display: inline-grid; place-items: center; }
.abas-mob { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .info { grid-template-columns: 1fr; padding-top: 50px; }
  .row { grid-template-columns: 56px 1fr auto; }
  .row .c, .row .m, .row.head .c, .row.head .m { display: none; }
  .row .mini { width: 56px; height: 46px; }
  .row .nm .cat-m { display: inline; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar .abas { display: none; }
  .abas-mob { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .abas-mob .aba { flex: 1; flex-direction: column; justify-content: center; gap: 3px; height: 58px; padding: 0 6px; border-radius: 14px; font-size: 12.5px; position: relative; }
  .abas-mob .aba svg { width: 22px; height: 22px; }
  .abas-mob .aba[aria-selected="true"] { background: var(--soft); box-shadow: none; }
  .abas-mob .aba-n { position: absolute; top: 5px; left: calc(50% + 8px); min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; background: var(--accent); color: #fff; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .topbar .wrap { height: 64px; }
  .brand img { width: 38px; height: 38px; }
  .brand-name b { font-size: 21px; }
  .brand-name small { font-size: 9.5px; letter-spacing: 3px; }
  .top-actions .txt { display: none; }
  .top-actions .btn { width: 44px; padding: 0; }
  .hero { padding: 28px 0 10px; }
  .search input { height: 54px; font-size: 16px; }
  .search kbd { display: none; }
  .toolbar .wrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .chips { margin: 0 -16px; padding: 2px 16px; }
  .tools { justify-content: space-between; }
  .tools .select { flex: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card { border-radius: 14px; }
  .card-body { padding: 12px 12px 14px; gap: 4px; }
  .card h3 { font-size: 14.5px; }
  .card .desc, .card .medidas { display: none; }
  .cat { font-size: 10.5px; letter-spacing: 1px; }
  .price { font-size: 19px; }
  .badge { top: 8px; left: 8px; font-size: 10px; padding: 3px 8px; }
  .badge.off { right: 8px; }
  .row { padding: 10px 14px; gap: 12px; }
  .row.head { display: none; }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 22px 22px 0 0; max-height: 94dvh; }
  .produto { grid-template-columns: 1fr; }
  .produto .thumb { aspect-ratio: 4 / 3; min-height: 0; }
  .produto .info-p { padding: 22px 20px 28px; }
  .produto h2 { font-size: 25px; }
  .produto .actions .btn { flex: 1; }
}
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
}
/* ---------- Detalhe do produto: miniatura, descrição curta, calculadora + informações ---------- */
.pd-mini { display: none; }
.ver-mais { display: none; }
.calc-top { display: flex; align-items: stretch; }
.calc-top .calc-toggle { flex: 1; min-width: 0; }
.calc-info { flex: none; display: flex; align-items: center; gap: 6px; border: 0; border-left: 1px solid var(--line); background: none; padding: 0 16px; color: var(--accent-ink); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.calc-info svg { width: 18px; height: 18px; }

@media (max-width: 720px) {
  /* a janela não rola: só a lista de medidas encolhe (e rola) quando o modelo tem muitas opções */
  .modal-box.sheet-produto { display: flex; flex-direction: column; overflow: hidden; }
  .sheet-produto #modalBody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
  .sheet-produto .pd { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .sheet-produto .pd-foto { display: none; flex: none; }
  .sheet-produto .pd.foto-aberta .pd-foto { display: block; }
  .sheet-produto .pd-info { flex: 1 1 auto; min-height: 0; gap: 10px; padding: 26px 16px calc(14px + env(safe-area-inset-bottom)); }
  .sheet-produto .pd-info > * { flex-shrink: 0; }
  .sheet-produto #pdVars { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 16px; }
  .sheet-produto .pd:has(.calc-box.aberta) #pdVars, .sheet-produto .pd:has(.pd-desc.aberta) #pdVars, .sheet-produto .pd.foto-aberta #pdVars { flex: none; overflow: visible; }
  .pd-mini { display: block; width: 72px; height: 72px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 4px; cursor: zoom-in; }
  .pd-mini img { width: 100%; height: 100%; object-fit: contain; }
  .pd.foto-aberta .pd-mini { cursor: zoom-out; border-color: var(--accent); }
  .sheet-produto .pd-head { gap: 12px; padding-right: 40px; }
  .sheet-produto .pd-head h2 { font-size: 21px; margin: 2px 0; }
  .sheet-produto .pd-head .cat { font-size: 10.5px; }
  .sheet-produto .pd-head .ref { font-size: 12px; }
  .sheet-produto .pd-preco { flex-wrap: nowrap; align-items: baseline; }
  .sheet-produto .pd-preco .apartir { display: inline; width: auto; margin: 0 6px 0 0; font-size: 12px; }
  .sheet-produto .pd-preco .price { font-size: 25px; }
  .sheet-produto .pd-info > .medidas { font-size: 12.5px; line-height: 1.35; align-items: flex-start; }
  .pd-desc .full { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; }
  .pd-desc.aberta .full { display: block; }
  .ver-mais { display: inline; border: 0; background: none; padding: 2px 0; color: var(--accent-ink); font-weight: 700; font-size: 13.5px; cursor: pointer; }
  .sheet-produto .pd-faixas { position: static; margin: 0; padding: 0; gap: 6px; }
  .sheet-produto .var { min-height: 44px; padding: 7px 12px; }
  .sheet-produto .v-n b { font-size: 14.5px; }
  .sheet-produto .vp { font-size: 18px; }
  .sheet-produto .vg { padding: 8px 12px 6px; }
  .sheet-produto .calc-toggle { padding: 10px 12px; font-size: 14.5px; }
  .calc-info { padding: 0 12px; }
  .ct-extra { display: none; }
}

/* ---------- Instalar app ---------- */
.top-direita { display: flex; align-items: center; gap: 10px; }
.btn-instalar { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--accent); background: #FBF4EC; color: var(--accent-ink); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn-instalar:hover { background: #F6E9DA; }
.btn-instalar svg { width: 18px; height: 18px; flex: none; }
.inst-passos { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: passo; }
.inst-passos li { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--ink-2); }
.inst-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: #2F7DF6; display: grid; place-items: center; flex: none; overflow: hidden; }
.inst-ico svg { width: 22px; height: 22px; }
.inst-ico img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .btn-instalar { height: 38px; padding: 0 12px; font-size: 13.5px; }
}

/* ---------- Código do produto ---------- */
.card .cod { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.pd-head .ref { display: block; font-variant-numeric: tabular-nums; }
.var.achado { background: #FFF5DF; box-shadow: inset 3px 0 0 var(--accent); }

/* ---------- Opções, "a partir de" e ações da seção ---------- */
.opcoes { font-size: 12.5px; color: var(--accent-ink); font-weight: 700; }
.apartir { display: block; width: 100%; font-size: 11.5px; color: var(--muted); font-weight: 600; margin-bottom: -8px; letter-spacing: .2px; }
.row .op-m { display: none; }
.secao-acoes { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.pill:hover { border-color: #D9CFC3; }
.pill svg { width: 17px; height: 17px; color: var(--accent); }
.calc-aviso { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; background: #F8F0E6; border: 1px solid #EEDFCD; border-radius: 14px; padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); margin: 0 0 16px; }
.calc-aviso svg { width: 18px; height: 18px; color: var(--accent-ink); flex: none; }
.calc-aviso span { flex: 1; min-width: 170px; }
.calc-aviso button { border: 0; background: none; font-weight: 700; color: var(--accent-ink); text-decoration: underline; cursor: pointer; padding: 6px 2px; font-size: 13.5px; }
.btn-calc { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; position: relative; flex: none; }
.btn-calc svg { width: 17px; height: 17px; }
.btn-calc.on { border-color: var(--accent); color: var(--accent-ink); background: #FBF4EC; }
.btn-calc.on::after { content: ""; position: absolute; top: 5px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Janelas (produto, informações, calculadora) ---------- */
.sheet-handle { display: none; }
.modal-box.sheet-sm { max-width: 560px; }
.modal-box.sheet-produto { max-width: 780px; }
.sheet-pad { padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.sheet-pad h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 0; line-height: 1.15; padding-right: 44px; }
.info-txt h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--accent-ink); margin: 18px 0 6px; }
.info-txt h3:first-child { margin-top: 4px; }
.info-txt p { margin: 0 0 8px; color: var(--ink-2); }
.info-txt ul { margin: 0 0 4px; padding-left: 20px; color: var(--ink-2); }
.info-txt li { margin-bottom: 5px; }
.info-txt li::marker { color: var(--accent); }

.pd { display: grid; }
.pd.com-foto { grid-template-columns: 1fr 1.15fr; }
.pd-foto .thumb { aspect-ratio: auto; height: 100%; min-height: 340px; background: #fff; }
.pd-foto .thumb img { object-fit: contain; }
.pd-info { padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-head { display: flex; gap: 14px; align-items: flex-start; padding-right: 44px; }
.pd-ico { width: 64px; height: 64px; border-radius: 16px; background: var(--soft); color: #C2B19F; display: grid; place-items: center; flex: none; }
.pd-ico svg { width: 82%; height: auto; }
.pd-head h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.12; margin: 3px 0 3px; }
.pd-head .ref { font-size: 13px; color: var(--muted); }
.pd-preco { margin: 0; padding: 0; }
.pd-preco .price { font-size: 32px; }
.pd .full { color: var(--ink-2); white-space: pre-line; margin: 0; font-size: 15px; }
.pd-faixas { display: flex; flex-direction: column; gap: 8px; position: sticky; top: -1px; z-index: 2; background: var(--surface); padding: 8px 0; margin: -4px 0 -6px; }
.pd-faixas > span { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: var(--muted); }
.seg-f { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.seg-f::-webkit-scrollbar { display: none; }
.seg-f button { flex: none; height: 38px; min-width: 52px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg-f button[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.vars { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.vg { background: #FCFAF7; font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: var(--accent-ink); padding: 11px 16px 9px; border-top: 1px solid var(--line); }
.vars > :first-child { border-top: 0; }
.var { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 16px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; cursor: pointer; min-height: 56px; }
.var.est { cursor: default; }
.var:not(.est):hover, .var.aberta { background: #FCFAF7; }
.v-n { flex: 1; min-width: 0; }
.v-n b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.v-n small { color: var(--muted); font-size: 12.5px; }
.v-p { flex: none; text-align: right; }
.vp { font-family: var(--serif); font-size: 20px; font-weight: 500; white-space: nowrap; letter-spacing: -.2px; }
.vp small { font-family: var(--sans); font-size: 12px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.indisp { color: var(--muted); font-weight: 700; padding: 0 6px; }
.v-chev { width: 18px; height: 18px; color: var(--muted); flex: none; transition: transform .2s; }
.v-chev svg { width: 18px; height: 18px; display: block; }
.var.aberta .v-chev { transform: rotate(180deg); }
.var-faixas { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 6px; padding: 2px 16px 14px; background: #FCFAF7; }
.var-faixas div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; display: flex; flex-direction: column; }
.var-faixas span { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.var-faixas b { font-size: 14px; white-space: nowrap; }
.var-faixas .sel { border-color: var(--ink); }

/* ---------- Calculadora ---------- */
.calc-box { border: 1px solid var(--line); border-radius: 16px; background: #FDFBF8; }
.calc-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 700; font-size: 15px; scroll-margin-top: 12px; }
.calc-toggle > svg { width: 18px; height: 18px; color: var(--muted); flex: none; transition: transform .2s; }
.calc-toggle > svg:first-child { width: 22px; height: 22px; color: var(--accent); }
.calc-box.aberta .calc-toggle > svg:last-child { transform: rotate(180deg); }
.ct-t { flex: 1; }
.ct-t small { display: block; font-weight: 600; font-size: 12.5px; color: var(--muted); }
.calc-body { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 16px; }
.calc-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.aj { display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; }
.aj label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.aj .tipo { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }
.tipo.acrescimo { color: var(--ok); }
.tipo.desconto { color: var(--danger); }
.aj .dica { width: 100%; font-size: 12px; color: var(--muted); font-weight: 500; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); height: 46px; overflow: hidden; }
.stepper button { width: 42px; height: 100%; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--ink-2); cursor: pointer; flex: none; touch-action: manipulation; }
.stepper button:active { background: var(--soft); }
.stepper input { flex: 1; min-width: 0; border: 0; text-align: right; font-size: 16px; font-weight: 700; outline: none; background: none; padding: 0 2px; }
.stepper .un { color: var(--muted); font-weight: 600; padding: 0 4px 0 2px; }
.stepper:focus-within { border-color: #CDB9A4; }
.adic { display: flex; flex-direction: column; gap: 12px; }
.adic-t { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 700; color: var(--muted); }
.adic .switch { font-size: 14px; line-height: 1.35; }
.adic .switch small { color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.calc-acoes { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.calc-resumo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-resumo div { background: var(--soft); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; }
.calc-resumo span { font-size: 12px; color: var(--muted); font-weight: 600; }
.calc-resumo b { font-size: 18px; }
.calc-intro { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.calc-como { font-size: 13.5px; color: var(--muted); }
.calc-como summary { cursor: pointer; font-weight: 700; }
.calc-como p { margin: 6px 0 0; }
.link-info { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--accent-ink); font-weight: 700; font-size: 14px; cursor: pointer; padding: 6px 0; text-align: left; align-self: flex-start; }
.link-info svg { width: 18px; height: 18px; flex: none; }

/* switch (também usado no site, nos opcionais da calculadora) */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 42px; height: 24px; border-radius: 999px; background: #E2D9CE; position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); transition: transform .2s; }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Calculadora compacta: cada item em uma linha (nome | − valor +), sem rolagem */
.aj { flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
.aj label { flex: 1; min-width: 0; }
.aj .stepper { flex: none; width: 140px; height: 42px; }
.stepper button { width: 38px; }
.calc-campos { grid-template-columns: 1fr; gap: 8px; }
.calc-box .calc-campos { grid-template-columns: 1fr; }
.modal-box.sheet-calc { max-width: 820px; overflow-x: hidden; }
.calc-sheet { padding: 24px 26px 22px; gap: 12px; }
.calc-sheet h2 { font-size: 26px; }
.calc-sheet .calc-intro { font-size: 13.5px; color: var(--muted); }
.calc-sheet .calc-campos { grid-template-columns: 1fr 1fr; column-gap: 28px; row-gap: 8px; }
.calc-resumo div { padding: 8px 12px; }
.calc-resumo b { font-size: 17px; }
.calc-acoes .btn { height: 42px; padding: 0 16px; }

@media (max-width: 900px) {
  .row .op-m { display: block; font-size: 12px; color: var(--accent-ink); font-weight: 600; }
}
@media (max-width: 720px) {
  .sheet-handle { display: block; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 5px; border-radius: 99px; background: #DDD3C7; z-index: 3; }
  .pd.com-foto { grid-template-columns: 1fr; }
  .pd-foto .thumb { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .pd-info, .sheet-pad { padding: 26px 16px 30px; }
  .pd-head h2, .sheet-pad h2 { font-size: 24px; }
  .pd-ico { width: 54px; height: 54px; border-radius: 14px; }
  .pd-preco .price { font-size: 28px; }
  .var { padding: 11px 14px; }
  .calc-acoes .btn { flex: 1; }
  .btn-calc { width: 40px; padding: 0; justify-content: center; }
  .btn-calc span { display: none; }
  .card .opcoes { font-size: 11.5px; }
  .card .thumb:not(.has-img) { aspect-ratio: 2 / 1; }
  .card .thumb:not(.has-img) .ph svg { width: 34%; }
  .apartir { font-size: 10.5px; }
  .secao-acoes .pill { flex: 1; justify-content: center; }
}
@media (max-width: 720px) {
  .calc-sheet { padding: 22px 16px calc(16px + env(safe-area-inset-bottom)); gap: 10px; }
  .calc-sheet h2 { font-size: 22px; }
  .calc-sheet .calc-campos { grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 8px; }
  .calc-sheet .aj { flex-direction: column; align-items: stretch; gap: 4px; justify-content: flex-end; }
  .calc-sheet .aj .stepper { width: 100%; height: 38px; }
  .calc-sheet .aj label { font-size: 12.5px; line-height: 1.25; }
  .calc-sheet .aj .dica { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .aj .stepper { width: 132px; height: 40px; }
  .aj label { font-size: 13px; }
  .aj .dica { font-size: 11.5px; }
  .calc-acoes { flex-wrap: nowrap; gap: 6px; }
  .calc-acoes .btn { flex: 1 1 auto; height: 40px; padding: 0 10px; font-size: 13.5px; min-width: 0; }
  .calc-resumo { gap: 8px; }
  .calc-resumo b { font-size: 16px; }
}
@media (max-width: 720px) and (max-height: 700px) {
  .calc-sheet .calc-intro { display: none; }
  .calc-sheet { gap: 8px; padding-top: 20px; }
  .calc-sheet h2 { font-size: 20px; }
}
@media (max-width: 720px) and (max-height: 600px) {
  .modal-box.sheet-calc { max-height: 99dvh; }
  .calc-sheet { gap: 6px; padding: 18px 12px 10px; }
  .calc-sheet .calc-campos { row-gap: 5px; }
  .calc-sheet .aj .stepper { height: 34px; }
  .calc-sheet .calc-resumo div { padding: 6px 10px; }
  .calc-sheet .calc-acoes .btn { height: 36px; }
}
@media (max-width: 360px) {
  .aj .stepper { width: 118px; }
  .stepper button { width: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
