:root {
  --blue: #0b5ed7;
  --blue-dk: #0a3f94;
  --teal: #14b8a6;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f8fc;
  --card: #ffffff;
  --wa: #25d366;
  --wa-dk: #128c4a;
  --danger: #dc2626;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
[hidden] { display: none !important; }

/* ---------- topo ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar b { color: #fff; font-weight: 600; }
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 14px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { filter: drop-shadow(0 4px 8px rgba(11, 94, 215, .25)); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; background: #eef3f9; border: 1.5px solid transparent; border-radius: 999px; padding: 0 16px; height: 46px; min-width: 0; transition: border-color .2s, background .2s; }
.search:focus-within { background: #fff; border-color: var(--blue); }
.search svg { width: 20px; height: 20px; fill: var(--muted); flex-shrink: 0; }
.search input { border: 0; background: none; outline: none; width: 100%; min-width: 0; font-size: 15px; }
.icon-btn { position: relative; display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--ink); padding: 8px 10px; border-radius: 12px; font-weight: 600; font-size: 14px; }
.icon-btn:hover { background: #eef3f9; }
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; }
.cart-btn { background: var(--blue); color: #fff; padding: 10px 16px; }
.cart-btn:hover { background: var(--blue-dk); }
.badge { position: absolute; top: -4px; right: -4px; background: #f59e0b; color: #111; font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; padding: 0 6px; border: 2px solid #fff; }
.badge.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- carrossel ---------- */
.hero { margin-top: 20px; }
.carousel { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); outline: none; touch-action: pan-y; }
.slides { display: flex; transition: transform .6s cubic-bezier(.22, .8, .25, 1); will-change: transform; }
.slide { flex: 0 0 100%; min-height: 340px; position: relative; display: flex; align-items: center; color: #fff; overflow: hidden; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide-bg.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 6, 23, .72) 0%, rgba(2, 6, 23, .35) 55%, rgba(2, 6, 23, 0) 100%); }
.slide-content { position: relative; z-index: 1; max-width: 600px; padding: 48px 56px; }
.slide h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.1; margin: 0 0 12px; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.slide p { font-size: clamp(15px, 1.6vw, 18px); margin: 0 0 24px; opacity: .92; max-width: 480px; }
.slide .btn { background: #fff; color: var(--ink); }
.slide .btn:hover { transform: translateY(-2px); }
.slide-art { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 14px; z-index: 0; }
.slide-art img { width: 150px; height: 150px; border-radius: 28px; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); transform: rotate(-4deg) translateY(30px); }
.slide-art img:nth-child(2) { width: 190px; height: 190px; transform: rotate(3deg) translateY(-20px); }
.bubble { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.car-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 28px; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; z-index: 2; }
.carousel:hover .car-nav, .carousel:focus-within .car-nav { opacity: 1; }
.car-nav.prev { left: 14px; } .car-nav.next { right: 14px; }
.dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.dots button { width: 10px; height: 10px; border-radius: 5px; border: 0; background: rgba(255, 255, 255, .5); padding: 0; transition: width .3s, background .3s; }
.dots button[aria-selected="true"] { width: 30px; background: #fff; }

/* ---------- vantagens ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.perks div { background: var(--card); border-radius: var(--radius); padding: 16px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; box-shadow: var(--shadow); }
.perks span { grid-row: span 2; font-size: 26px; width: 40px; height: 40px; display: grid; place-items: center; background: #eef6ff; border-radius: 12px; }
.perks b { font-size: 14px; } .perks small { color: var(--muted); font-size: 12.5px; }

/* ---------- catálogo ---------- */
.section-head { margin: 44px 0 16px; }
.section-head h2 { font-size: 28px; margin: 0 0 4px; letter-spacing: -.03em; }
.section-head p { margin: 0; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; position: sticky; top: 72px; z-index: 5; background: var(--bg); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; color: var(--ink); transition: all .15s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; animation: rise .4s both; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(15, 23, 42, .12); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card-img { aspect-ratio: 1; background: #f1f5f9; position: relative; cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag { position: absolute; top: 10px; left: 10px; background: #f59e0b; color: #111; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.card-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 15.5px; line-height: 1.3; }
.card-body .brandname { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.size[aria-pressed="true"] { border-color: var(--blue); background: #eaf2ff; color: var(--blue-dk); }
.price { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.price.quote { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.card-foot { margin-top: auto; display: flex; gap: 8px; align-items: center; }
.qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.qty button { width: 32px; height: 38px; border: 0; background: #f8fafc; font-size: 18px; font-weight: 700; color: var(--ink); }
.qty button:hover { background: #eef3f9; }
.qty input { width: 38px; text-align: center; border: 0; outline: none; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 700; font-size: 15px; text-decoration: none; background: var(--blue); color: #fff; transition: transform .15s, background .15s, opacity .15s; }
.btn:hover { background: var(--blue-dk); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-add { flex: 1; padding: 10px 12px; font-size: 14px; }
.btn-ghost { background: #eef3f9; color: var(--ink); }
.btn-ghost:hover { background: #e2e8f0; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dk); }
.btn-block { width: 100%; padding: 14px; font-size: 16px; }
.link { background: none; border: 0; color: var(--blue); font-weight: 600; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- como funciona / entregas ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.steps span { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }
.delivery { margin-top: 44px; }
.delivery-card { background: linear-gradient(120deg, #0a3f94, #0b5ed7 50%, #14b8a6); color: #fff; border-radius: 24px; padding: 36px 40px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.delivery-card h2 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; }
.delivery-card p { margin: 0 0 12px; opacity: .92; max-width: 640px; }
.delivery-card ul { margin: 0; padding-left: 18px; opacity: .95; }
.delivery-card li { margin: 3px 0; }
.delivery-card .btn { flex-shrink: 0; padding: 14px 22px; }

/* ---------- rodapé ---------- */
.footer { margin-top: 56px; background: var(--ink); color: #cbd5e1; padding: 40px 0 20px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer h3 { color: #fff; font-size: 15px; margin: 0 0 8px; }
.footer p { margin: 0; font-size: 14px; }
.footer a { color: #e2e8f0; }
.brand-foot { color: #fff; margin-bottom: 10px; }
.brand-foot small { color: #94a3b8; }
.copy { border-top: 1px solid #1e293b; margin-top: 28px; padding-top: 16px; font-size: 13px; color: #64748b; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); z-index: 30; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- gaveta ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 50; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 51; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.22, .8, .25, 1); box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; }
.close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f1f5f9; font-size: 24px; line-height: 1; color: var(--ink); }
.close:hover { background: #e2e8f0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.line img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.line b { display: block; font-size: 14.5px; line-height: 1.25; }
.line small { color: var(--muted); }
.line-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line .qty button { height: 30px; width: 28px; } .line .qty input { width: 32px; font-size: 14px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 12.5px; padding: 0; }
.remove:hover { color: var(--danger); }
.total-row { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty div { font-size: 48px; }

/* ---------- formulários / modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .55); animation: fade .2s; overflow-y: auto; }
.modal-box { background: #fff; border-radius: 22px; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .25s cubic-bezier(.22, .8, .25, 1); position: relative; }
.modal-box.wide { width: min(820px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-pad { padding: 26px 26px 24px; }
.modal-box > .close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.modal h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.modal .sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.tabs { display: flex; background: #f1f5f9; border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: #334155; }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fff; outline: none; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 70px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 94, 215, .12); }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg label { flex: 1; min-width: 110px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s; }
.seg input:checked + span { border-color: var(--blue); background: #eaf2ff; color: var(--blue-dk); }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(11, 94, 215, .2); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.foot-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 14px; flex-wrap: wrap; }

.pd { display: grid; grid-template-columns: 1fr 1fr; }
.pd-img { background: #f1f5f9; aspect-ratio: 1; }
.pd-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px 0 0 22px; }
.pd-info { padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.pd-info h2 { font-size: 24px; margin: 0; }
.pd-info p { margin: 0; color: #475569; }
.pd-info .card-foot { margin-top: 8px; }

.success { text-align: center; padding: 34px 26px 28px; }
.success .check { width: 72px; height: 72px; border-radius: 50%; background: #dcfce7; color: #16a34a; display: grid; place-items: center; font-size: 38px; margin: 0 auto 14px; animation: pop .4s; }
.orders { display: flex; flex-direction: column; gap: 10px; }
.order { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.order-head { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 4px; }
.status { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #e0f2fe; color: #075985; text-transform: capitalize; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 14px; z-index: 70; box-shadow: var(--shadow-lg); animation: pop .25s; max-width: calc(100vw - 32px); }

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .perks { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .slide-art { opacity: .35; right: -40px; }
}
@media (max-width: 720px) {
  .topbar-hours { display: none; }
  .header-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
  .brand { flex: 1; }
  .brand small { display: none; }
  .search { order: 3; flex-basis: 100%; height: 42px; }
  .icon-label { display: none; }
  .cart-btn { padding: 9px 12px; }
  .chips { top: 118px; }
  html { scroll-padding-top: 130px; }
  .hero { margin-top: 12px; padding: 0; }
  .carousel { border-radius: 0; }
  .slide { min-height: 300px; }
  .slide-art { display: none; }
  .slide-content { padding: 32px 22px 52px; }
  .car-nav { display: none; }
  .perks { gap: 8px; }
  .perks div { grid-template-columns: 1fr; padding: 12px; text-align: left; }
  .perks span { grid-row: auto; margin-bottom: 6px; width: 34px; height: 34px; font-size: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; gap: 6px; }
  .card-body h3 { font-size: 14px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .qty { justify-content: space-between; }
  .card-foot .qty input { flex: 1; }
  .size { padding: 4px 8px; font-size: 12px; }
  .steps { grid-template-columns: 1fr; }
  .delivery-card { flex-direction: column; align-items: flex-start; padding: 26px 22px; border-radius: 0; }
  .delivery { padding: 0; }
  .footer-in { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .pd { grid-template-columns: 1fr; }
  .pd-img img { border-radius: 22px 22px 0 0; }
  .modal { padding: 0; align-items: end; }
  .modal-box { border-radius: 22px 22px 0 0; max-height: 94dvh; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
