:root {
  --navy: #0b1b36;
  --navy-2: #102a52;
  --blue: #1663f3;
  --blue-2: #0f4fd1;
  --blue-soft: #e8f0ff;
  --cyan: #38bdf8;
  --text: #0f1b2d;
  --muted: #5d6b82;
  --line: #e3e9f2;
  --bg: #f5f8fc;
  --card: #fff;
  --ok: #0f9d58;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 42, 82, .06), 0 8px 24px rgba(16, 42, 82, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.55; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; }
.ok { color: var(--ok); }
.mt { margin-top: 40px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
[hidden] { display: none !important; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-2); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-lg { padding: 13px 22px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.icon-btn { background: none; border: 0; padding: 6px; cursor: pointer; color: inherit; border-radius: 8px; }
.icon-btn:hover { background: rgba(0,0,0,.05); }

/* Header */
.topbar { background: var(--blue); color: #fff; text-align: center; font-size: .85rem; padding: 6px 16px; font-weight: 500; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo img { height: 38px; width: auto; }
.search { flex: 1; display: flex; max-width: 560px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.search input { flex: 1; border: 0; background: transparent; padding: 11px 14px; font: inherit; outline: none; min-width: 0; }
.search button { border: 0; background: transparent; padding: 0 14px; color: var(--muted); cursor: pointer; }
.header-actions { display: flex; gap: 6px; margin-left: auto; }
.header-link { display: flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; padding: 8px 10px; border-radius: 10px; position: relative; }
.header-link:hover { background: var(--bg); text-decoration: none; }
.cart-count { position: absolute; top: 2px; left: 22px; background: var(--blue); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.cart-count:empty { display: none; }
.menu-toggle { display: none; }
.cat-nav { background: var(--navy); }
.cat-nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-nav-row::-webkit-scrollbar { display: none; }
.cat-nav a { color: #dbe6ff; padding: 11px 12px; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.cat-nav a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.06); }
.cat-nav-ext { margin-left: auto; color: var(--cyan) !important; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(22,99,243,.45), transparent 60%), linear-gradient(160deg, var(--navy) 0%, #0d2348 100%); color: #fff; padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); color: #fff; }
.hero h1 span { color: var(--cyan); }
.hero p { color: #c3d2ee; font-size: 1.08rem; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: #cfe0ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.2); }
.hero-card { background: #fff; color: var(--text); border-radius: 18px; padding: 22px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.hero-card-head { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 12px; background: var(--bg); margin-top: 10px; border-left: 3px solid var(--blue); }
.hero-card li span { color: var(--muted); font-size: .88rem; }
.strip { background: #091631; color: #c3d2ee; font-size: .88rem; font-weight: 500; }
.strip-row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 16px; overflow-x: auto; white-space: nowrap; }

/* Seções */
.section { padding: 56px 0; }
.section.pt-0 { padding-top: 0; }
.section.pt-sm { padding-top: 24px; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 24px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.eyebrow-sm { display: block; color: var(--blue); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.eyebrow-sm.light { color: var(--cyan); }
.link-arrow { font-weight: 600; }
.page-head { padding: 32px 0 20px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--muted); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-tile:hover { border-color: var(--blue); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.cat-tile span { color: var(--blue); font-size: .88rem; font-weight: 600; }
.cat-tile:first-child { background: linear-gradient(140deg, var(--blue) 0%, var(--navy-2) 100%); color: #fff; border: 0; }
.cat-tile:first-child span { color: #cfe0ff; }

/* Produtos */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.product-card:hover { box-shadow: var(--shadow); border-color: #cfdcf0; }
.product-card-img { position: relative; aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.product-card-img img { max-height: 100%; object-fit: contain; }
.product-card.is-out .product-card-img img { opacity: .5; }
.badge { position: absolute; top: 10px; left: 10px; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.badge-promo { background: #16a34a; color: #fff; }
.badge-out { background: #475569; color: #fff; }
.product-card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card-cat { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.product-card h3 { font-size: .95rem; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.product-card h3 a { color: var(--text); }
.product-card form, .product-card .btn-ghost { margin-top: auto; }
.price { display: flex; flex-direction: column; }
.price s { color: var(--muted); font-size: .85rem; }
.price strong { font-size: 1.3rem; font-weight: 800; color: var(--navy); }
.price small { color: var(--muted); font-size: .78rem; }
.price-lg strong { font-size: 2rem; }

.catalog { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.filters { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 140px; align-self: start; }
.filters h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filters a { color: var(--text); padding: 7px 10px; border-radius: 8px; display: flex; justify-content: space-between; }
.filters a small { color: var(--muted); }
.filters a.active, .filters a:hover { background: var(--blue-soft); color: var(--blue); text-decoration: none; }
.toolbar { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); font: inherit; background: #fff; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.pagination a { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.pagination a.active { background: var(--blue); color: #fff; border-color: var(--blue); }
.empty { text-align: center; padding: 48px 16px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: start; }
.gallery-main { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 24px; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery-thumbs button { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 6px; cursor: pointer; flex: none; }
.gallery-thumbs button:hover { border-color: var(--blue); }
.buy-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 140px; }
.buy-box h1 { font-size: 1.5rem; }
.buy-form { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 16px 0; }
.buy-form .btn-ghost { grid-column: 1 / -1; }
.stock-ok { color: var(--ok); font-weight: 600; margin: 12px 0 0; }
.stock-out { color: var(--danger); font-weight: 600; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; height: 46px; }
.qty button { width: 38px; border: 0; background: var(--bg); font-size: 1.1rem; cursor: pointer; }
.qty input { width: 48px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.perks { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.perks li { padding: 3px 0; }
.ship-calc { background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: .9rem; }
.ship-calc label { font-weight: 600; }
.ship-calc p { margin: 4px 0 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.description { margin-top: 32px; }
.rich { max-width: 820px; }
.rich img { height: auto; }
.rich table { border-collapse: collapse; }
.rich td, .rich th { border: 1px solid var(--line); padding: 6px 10px; }

/* Carrinho / Checkout */
.cart-layout, .checkout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto 110px auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 10px; padding: 4px; }
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-info a { color: var(--text); font-weight: 600; }
.cart-item-total { text-align: right; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; }
.summary { position: sticky; top: 140px; }
.summary-row, .summary-item { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.summary-item span { color: var(--muted); font-size: .9rem; }
.summary-row.total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.summary .btn { margin-top: 14px; }
.notice { padding: 14px 18px; }
fieldset.card { border: 1px solid var(--line); }
legend { font-weight: 700; font-size: 1.05rem; padding: 0; margin-bottom: 14px; float: left; width: 100%; display: flex; align-items: center; gap: 10px; }
legend + * { clear: both; }
.step { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-grid; place-items: center; font-size: .85rem; }
label { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; font-weight: 600; color: #33415a; margin-bottom: 12px; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); padding: 10px 12px; border: 1px solid #d3dce9; border-radius: 10px; background: #fff; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.span-2 { grid-column: span 2; }
.shipping-options { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.ship-opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 0; font-weight: 500; }
.ship-opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.ship-opt input { width: auto; }
.ship-opt small { color: var(--muted); display: block; font-weight: 400; }
.ship-opt b { font-size: 1rem; }
.pay-box { display: flex; gap: 16px; align-items: center; background: var(--bg); border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.pay-box img { height: 28px; width: auto; }
.pay-box p { margin: 0; font-size: .92rem; }

.order-head { text-align: center; }
.timeline { list-style: none; display: flex; justify-content: space-between; padding: 0; margin: 24px 0 8px; counter-reset: s; }
.timeline li { flex: 1; position: relative; font-size: .8rem; color: var(--muted); padding-top: 34px; }
.timeline li::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--muted); display: grid; place-items: center; font-weight: 700; }
.timeline li.done { color: var(--text); font-weight: 600; }
.timeline li.done::before { background: var(--ok); color: #fff; content: "✓"; }

.auth-box { max-width: 420px; }
.account { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table td, .table th { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tag-pago, .tag-concluido, .tag-entregue { background: #dcfce7; color: #166534; }
.tag-aguardando_pagamento { background: #fef3c7; color: #92400e; }
.tag-separacao, .tag-enviado { background: var(--blue-soft); color: var(--blue-2); }
.tag-cancelado { background: #fee2e2; color: #991b1b; }

.flashes { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 8px; font-weight: 500; border: 1px solid; }
.flash-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.flash-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.flash-info { background: var(--blue-soft); color: var(--blue-2); border-color: #c7d8ff; }

.cta-dark { background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.cta-dark h2 { color: #fff; }
.cta-dark p { color: #c3d2ee; margin: 0; }
.cta-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }

.site-footer { background: #081430; color: #b5c3dd; padding: 48px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-grid h4 { color: #fff; font-size: .95rem; }
.footer-grid a, .footer-grid span { display: block; color: #b5c3dd; margin-bottom: 6px; }
.footer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-bottom { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 32px; padding: 18px 16px 22px; font-size: .82rem; }
.footer-bottom a { color: #fff; font-weight: 600; }
.footer-bottom .heart { color: #f43f5e; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(0,0,0,.2); z-index: 60; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); z-index: 70; font-weight: 500; }

@media (max-width: 960px) {
  .hero-grid, .product-detail, .cart-layout, .checkout, .account { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; flex-direction: row; overflow-x: auto; gap: 6px; }
  .filters h4 { display: none; }
  .filters a { white-space: nowrap; border: 1px solid var(--line); background: #fff; }
  .buy-box, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-row { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .menu-toggle { display: block; }
  .logo img { height: 32px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .header-link span:not(.cart-count) { display: none; }
  .cat-nav { display: none; }
  .cat-nav.open { display: block; }
  .cat-nav-row { flex-direction: column; }
  .cat-nav-ext { margin-left: 0; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 40px 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card-body { padding: 10px; }
  .product-card .btn { padding: 9px 8px; font-size: .82rem; white-space: normal; }
  .price strong { font-size: 1.1rem; }
  .cart-item { grid-template-columns: 56px 1fr auto; }
  .cart-item img { width: 56px; height: 56px; }
  .cart-item .qty { grid-column: 2; }
  .cart-item-total { grid-column: 3; grid-row: 2; }
  .cart-item .icon-btn { grid-column: 3; grid-row: 1; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 22px; }
  .footer-logo { margin: 0 auto 12px; }
  .site-footer { padding-top: 36px; }
  .footer-bottom { padding-bottom: 92px; } /* espaço para o botão do WhatsApp não cobrir o texto */
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .timeline li { font-size: .7rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-tile { padding: 14px; }
  .cat-tile b { font-size: .92rem; }
  .cat-tile span { font-size: .8rem; }
  .cat-tile:first-child { grid-column: 1 / -1; }
  .section-head h2 { font-size: 1.3rem; }
  .search input { padding: 9px 12px; }
}
