@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@600;800;900&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  --bg: #f6f7f9;
  --fg: #1d2127;
  --muted: #667080;
  --line: #dfe3e8;
  --card: #fff;
  --graphite: #1a1d22;
  --graphite-2: #262a31;
  --graphite-fg: #eef0f3;
  --graphite-muted: #a3aab5;
  --primary: #ea6a1f;
  --primary-dark: #c9550f;
  --primary-soft: #fdeee4;
  --steel: #3f6e9e;
  --steel-soft: #e6eef7;
  --green: #1fa855;
  --red: #d23b3b;
  --radius: 6px;
  --shadow: 0 1px 0 var(--line), 0 10px 26px -18px rgba(26, 29, 34, 0.45);
  --display: "Archivo", "IBM Plex Sans", system-ui, sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--fg); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.01em; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 600; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.eyebrow { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--primary); }
.mono { font-family: var(--mono); }
.hidden { display: none !important; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: 0.15s; white-space: nowrap; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { filter: brightness(0.93); }
.btn-dark { background: var(--graphite); color: var(--graphite-fg); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--fg); }
.btn-light { background: transparent; border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,0.1); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--steel); text-decoration: underline; cursor: pointer; }

/* Cabeçalho */
.topbar { background: var(--primary); color: #fff; font-size: 0.82rem; text-align: center; padding: 6px 12px; }
.header { position: sticky; top: 0; z-index: 40; background: var(--graphite); color: var(--graphite-fg); }
.header .wrap { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 36px; height: 36px; border-radius: 4px; background: var(--primary); color: #fff; display: grid; place-items: center; font: 900 1.2rem var(--display); }
.logo-name { font: 900 1.25rem var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.nav { display: flex; gap: 20px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--graphite-muted); font-size: 0.92rem; }
.nav a:hover, .nav a.active { color: #fff; }
.search { flex: 1; max-width: 340px; margin-left: auto; display: flex; align-items: center; background: rgba(255,255,255,0.09); border-radius: var(--radius); padding: 0 10px; }
.search input, .search input[type=search] { background: transparent; border: 0; outline: 0; height: 40px; min-height: 40px; width: 100%; color: #fff; padding: 0 6px; box-shadow: none; }
.search input::placeholder { color: var(--graphite-muted); }
.cart-btn { position: relative; margin-left: 4px; }
.cart-count { background: #fff; color: var(--graphite); border-radius: 10px; padding: 0 7px; font: 500 0.75rem var(--mono); }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 4px; }
.mobile-menu { background: var(--graphite-2); padding: 8px 16px 16px; }
.mobile-menu a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); color: #fff; text-decoration: none; }
.mobile-menu .search { max-width: none; margin: 8px 0; }

/* Hero */
.hero { background: var(--graphite); color: var(--graphite-fg); padding: 44px 0 52px; background-image: repeating-linear-gradient(0deg, transparent 0 23px, rgba(255,255,255,0.035) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, rgba(255,255,255,0.035) 23px 24px); }
.hero p.lead { color: var(--graphite-muted); max-width: 620px; font-size: 1.05rem; }
.depts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.dept { display: block; text-decoration: none; padding: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); background: var(--graphite-2); transition: 0.2s; position: relative; overflow: hidden; }
.dept:hover { border-color: var(--primary); transform: translateY(-2px); }
.dept .icon { font-size: 2.2rem; }
.dept h2 { color: #fff; margin: 10px 0 6px; }
.dept p { color: var(--graphite-muted); margin: 0 0 16px; }
.dept .go { color: var(--primary); font-weight: 600; }
.dept.eletro .go { color: #7fb2e5; }

/* Seções */
.section { padding: 40px 0 8px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.benefit b { display: block; font-family: var(--display); margin: 6px 0 4px; }
.cta-band { margin-top: 40px; background: var(--steel); color: #fff; border-radius: 10px; padding: 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band p { margin: 0; opacity: 0.9; }

/* Card de produto */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: 0.15s; }
.card:hover { border-color: var(--primary); transform: translateY(-2px); }
.card .thumb { aspect-ratio: 1; position: relative; background: var(--graphite); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .meta { font: 500 0.68rem var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.card h3 { font-family: var(--sans); font-size: 0.95rem; margin: 0; line-height: 1.3; }
.card .price { margin-top: auto; padding-top: 8px; font-size: 1.15rem; font-weight: 700; }
.card .price small { font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.card.sold { opacity: 0.6; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--graphite-muted); font: 500 0.65rem var(--mono); text-transform: uppercase; letter-spacing: 0.14em; }
.ph span { font-size: 2.4rem; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font: 500 0.7rem var(--mono); }
.thumb .badge { position: absolute; left: 8px; top: 8px; }
.b-orange { background: var(--primary); color: #fff; }
.b-steel { background: var(--steel); color: #fff; }
.b-green { background: var(--green); color: #fff; }
.b-red { background: var(--red); color: #fff; }
.b-gray { background: #5b636f; color: #fff; }
.b-soft { background: var(--steel-soft); color: var(--steel); }

/* Listagem */
.list-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-top: 24px; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; align-self: start; position: sticky; top: 80px; }
.filters h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 14px 0 6px; font-family: var(--mono); }
.filters h3:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 20px; padding: 5px 11px; font-size: 0.85rem; cursor: pointer; }
.chip.on { background: var(--graphite); color: #fff; border-color: var(--graphite); }
.filters-toggle { display: none; }
.empty { padding: 50px 20px; text-align: center; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: 8px; }

/* Produto */
.crumbs { font-size: 0.85rem; color: var(--muted); padding: 16px 0; }
.crumbs a { text-decoration: none; }
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; }
.gallery .main { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--graphite); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { width: 64px; height: 64px; border: 2px solid var(--line); border-radius: 6px; overflow: hidden; padding: 0; cursor: pointer; background: #fff; }
.thumbs button.on { border-color: var(--primary); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp .big-price { font: 800 2rem var(--display); margin: 8px 0 2px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-top: 16px; }
.tiers { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tiers td, .tiers th { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tiers tr.on td { background: var(--primary-soft); font-weight: 600; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.qty button { width: 40px; border: 0; background: #f0f2f5; cursor: pointer; font-size: 1.1rem; }
.qty input { width: 64px; text-align: center; border: 0; outline: 0; }
.buy-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin-top: 12px; }
.buy-row .btn { flex: 1; }
.specs { width: 100%; border-collapse: collapse; }
.specs th { text-align: left; width: 40%; color: var(--muted); font-weight: 500; }
.specs th, .specs td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.notice { background: var(--steel-soft); color: #234; border-radius: 6px; padding: 10px 12px; font-size: 0.88rem; }
.notice.warn { background: #fff4e5; color: #6b3d00; }
.notice.ok { background: #e7f7ee; color: #145c31; }
.notice.err { background: #fdeaea; color: #7a1d1d; }

/* Carrinho / checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding-top: 24px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .t { width: 72px; height: 72px; border-radius: 6px; overflow: hidden; background: var(--graphite); }
.cart-item .t .ph { font-size: 0; } .cart-item .t .ph span { font-size: 1.8rem; }
.cart-item .t img { width: 100%; height: 100%; object-fit: cover; }
.summary { position: sticky; top: 80px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font: 800 1.25rem var(--display); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.ship-opt { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; margin-top: 6px; cursor: pointer; background: #fff; }
.ship-opt.on { border-color: var(--primary); background: var(--primary-soft); }
.ship-opt span:last-child { margin-left: auto; font-weight: 600; white-space: nowrap; }
.form { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.f { display: flex; flex-direction: column; gap: 4px; grid-column: span 6; }
.f.c3 { grid-column: span 3; } .f.c2 { grid-column: span 2; } .f.c4 { grid-column: span 4; }
.f label { font-size: 0.82rem; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], input[type=search], input:not([type]), select, textarea { border: 1px solid #cfd5dc; border-radius: var(--radius); padding: 0 12px; min-height: 44px; background: #fff; width: 100%; outline: 0; }
textarea { padding: 10px 12px; min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }

/* Rodapé e WhatsApp */
.footer { margin-top: 56px; background: var(--graphite); color: var(--graphite-fg); }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 40px 16px; }
.footer a { color: var(--graphite-muted); text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .copy { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 14px; font-size: 0.8rem; color: var(--graphite-muted); }
.pay-tags span { display: inline-block; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; padding: 3px 8px; margin: 0 6px 6px 0; font: 500 0.72rem var(--mono); }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 58px; height: 58px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,0.25); transition: 0.15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--graphite); color: #fff; padding: 12px 18px; border-radius: 8px; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.demo-bar { background: #fff4e5; color: #6b3d00; text-align: center; font-size: 0.8rem; padding: 5px 10px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.loading { padding: 80px 0; text-align: center; color: var(--muted); }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header .search { display: none; }
  .menu-btn { display: block; }
  .cart-btn { margin-left: auto; }
  .list-layout, .cart-layout, .pdp { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters-toggle { display: inline-flex; margin-top: 16px; }
  .filters.closed { display: none; }
  .summary { position: static; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .hide-sm { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .depts { grid-template-columns: 1fr; }
  .dept { padding: 20px; }
  .card .body { padding: 10px; }
  .card h3 { font-size: 0.86rem; }
  .f.c3, .f.c2, .f.c4 { grid-column: span 6; }
  .footer .cols { grid-template-columns: 1fr; }
  .logo-name { font-size: 1.05rem; }
  .cta-band { padding: 20px; }
}
