:root {
  --red: #F04A3E;
  --red-dark: #D2362B;
  --yellow: #FFD23F;
  --yellow-soft: #FFF1B8;
  --navy: #1B2A5E;
  --sky: #5BB8F5;
  --sky-soft: #E3F3FF;
  --cream: #FFF9EC;
  --white: #fff;
  --muted: #5B6B91;
  --green: #1FA463;
  --line: #1B2A5E;
  --radius: 20px;
  --shadow: 4px 4px 0 var(--navy);
  --shadow-sm: 3px 3px 0 var(--navy);
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main { min-height: 60vh; padding-top: 24px; padding-bottom: 48px; outline: none; }
.hidden { display: none !important; }

/* ---------- topo */
.topbar {
  background: var(--navy); color: var(--yellow); text-align: center;
  font-weight: 800; font-size: 14px; padding: 7px 12px;
}
.header { background: var(--white); border-bottom: 3px solid var(--navy); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand img { height: 74px; width: auto; transition: transform .2s; }
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.search { flex: 1; display: flex; border: 3px solid var(--navy); border-radius: 999px; overflow: hidden; background: var(--white); box-shadow: var(--shadow-sm); }
.search input { flex: 1; border: 0; padding: 11px 18px; outline: none; min-width: 0; background: transparent; }
.search button { border: 0; background: var(--yellow); padding: 0 18px; cursor: pointer; font-size: 18px; border-left: 3px solid var(--navy); }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  background: var(--red); color: var(--white); font-weight: 800; padding: 11px 18px; border-radius: 999px;
  border: 3px solid var(--navy); box-shadow: var(--shadow-sm); white-space: nowrap; transition: transform .1s;
}
.cart-btn:hover { transform: translate(-1px, -1px); }
.badge {
  position: absolute; top: -10px; right: -8px; background: var(--yellow); color: var(--navy);
  border: 2px solid var(--navy); border-radius: 999px; min-width: 26px; height: 26px; font-size: 13px;
  display: grid; place-items: center; padding: 0 6px;
}
.badge[hidden] { display: none; }
.badge.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.35); } }

.nav { background: var(--yellow); border-top: 3px solid var(--navy); }
.nav-row { display: flex; gap: 6px; overflow-x: auto; padding-top: 7px; padding-bottom: 7px; scrollbar-width: none; }
.nav-row::-webkit-scrollbar { display: none; }
.nav-row a {
  text-decoration: none; font-weight: 800; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  border: 2px solid transparent; font-size: 15px;
}
.nav-row a:hover { border-color: var(--navy); background: var(--white); }
.nav-row a.active { background: var(--navy); color: var(--yellow); }
.nav-row a.nav-promo { color: var(--red-dark); }
.nav-row a.nav-promo.active { color: var(--white); background: var(--red); border-color: var(--navy); }

/* ---------- botões e campos */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 3px solid var(--navy); border-radius: 999px; padding: 12px 22px; font-weight: 800;
  background: var(--red); color: var(--white); box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .08s, box-shadow .08s; font-size: 16px;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--navy); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.yellow { background: var(--yellow); color: var(--navy); }
.btn.white { background: var(--white); color: var(--navy); }
.btn.sky { background: var(--sky); color: var(--white); }
.btn.green { background: var(--green); color: var(--white); }
.btn.small { padding: 7px 14px; font-size: 14px; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--red-dark); font-weight: 800; cursor: pointer; text-decoration: underline; padding: 0; }

label { font-weight: 800; font-size: 14px; display: block; margin-bottom: 4px; }
.input, input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 11px 14px; border: 2.5px solid var(--navy); border-radius: 14px; background: var(--white);
  outline: none; transition: box-shadow .15s;
}
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(91,184,245,.45); }
textarea { resize: vertical; min-height: 110px; }
.field { margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.hint { font-size: 13px; color: var(--muted); margin-top: 4px; }

.card {
  background: var(--white); border: 3px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px;
}

/* ---------- hero */
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--sky) 0%, #8AD0FF 100%); border: 3px solid var(--navy);
  border-radius: 28px; box-shadow: 6px 6px 0 var(--navy); padding: 36px 40px; color: var(--white);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; border: 18px solid rgba(255,210,63,.75);
  width: 520px; height: 160px; transform: rotate(-12deg); right: -120px; bottom: 30px; pointer-events: none;
}
.hero::after { content: none; }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); text-shadow: 3px 3px 0 var(--navy); margin-bottom: 14px; }
.hero h1 .yatta { color: var(--yellow); }
.hero p { font-size: 19px; font-weight: 700; max-width: 520px; margin: 0 0 22px; color: var(--navy); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-mascot { position: relative; z-index: 1; display: grid; place-items: center; }
.hero-mascot .bubble {
  width: min(330px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--white); border: 4px solid var(--navy);
  box-shadow: 6px 6px 0 var(--navy); display: grid; place-items: center; overflow: hidden;
}
.hero-mascot img { width: 88%; animation: bounce 2.4s ease-in-out infinite; }
.hero-mascot .speech {
  position: absolute; top: 4%; left: -4%; background: var(--yellow); color: var(--navy); font-family: var(--font-head);
  font-weight: 700; font-size: 22px; border: 3px solid var(--navy); border-radius: 18px; padding: 6px 16px;
  box-shadow: var(--shadow-sm); transform: rotate(-8deg);
}
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(2deg); } }


/* ---------- seções */
.section { margin: 38px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 30px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 .tag { background: var(--red); color: var(--white); font-size: 14px; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--navy); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.cat {
  text-decoration: none; background: var(--white); border: 3px solid var(--navy); border-radius: 20px; padding: 18px 10px;
  text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 17px; box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.cat:hover { transform: translateY(-4px) rotate(-1deg); }
.cat:nth-child(5n+1) { background: #FFE3E1; } .cat:nth-child(5n+2) { background: var(--yellow-soft); }
.cat:nth-child(5n+3) { background: var(--sky-soft); } .cat:nth-child(5n+4) { background: #E6F8EC; }
.cat:nth-child(5n+5) { background: #F1E8FF; }

.promo-banner {
  display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap;
  background: var(--red); color: var(--white); border: 3px solid var(--navy); border-radius: 24px; padding: 22px 28px;
  box-shadow: 6px 6px 0 var(--navy);
}
.promo-banner h2 { font-size: 32px; margin: 0; text-shadow: 2px 2px 0 var(--navy); }
.promo-banner p { margin: 4px 0 0; font-weight: 700; }

/* ---------- produtos */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.product {
  background: var(--white); border: 3px solid var(--navy); border-radius: 22px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; position: relative;
}
.product:hover { transform: translateY(-4px); box-shadow: 6px 7px 0 var(--navy); }
.product .thumb { display: block; aspect-ratio: 1; background: var(--sky-soft); border-bottom: 3px solid var(--navy); overflow: hidden; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product:hover .thumb img { transform: scale(1.05); }
.product .info { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product .cat-name { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.product .name { font-family: var(--font-head); font-weight: 600; font-size: 17px; text-decoration: none; line-height: 1.25; }
.product .prices { margin-top: auto; padding-top: 6px; }
.price-old { text-decoration: line-through; color: var(--muted); font-size: 14px; font-weight: 600; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--red-dark); }
.price-pix { font-size: 13px; color: var(--green); font-weight: 800; }
.product .btn { margin-top: 10px; }
.discount-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--yellow); border: 2.5px solid var(--navy);
  border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 14px; transform: rotate(-6deg); box-shadow: 2px 2px 0 var(--navy);
}
.soldout-tag { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--navy); color: var(--white); border-radius: 999px; padding: 3px 10px; font-weight: 800; font-size: 13px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar h1 { margin: 0; font-size: 34px; }
.toolbar select { width: auto; }
.empty { text-align: center; padding: 50px 20px; }
.empty img { width: 160px; margin: 0 auto 10px; mix-blend-mode: multiply; }

/* ---------- página do produto */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.gallery .main-img { border: 3px solid var(--navy); border-radius: 24px; overflow: hidden; background: var(--white); aspect-ratio: 1; box-shadow: var(--shadow); }
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.thumbs button { width: 74px; height: 74px; border: 2.5px solid var(--navy); border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer; background: var(--white); opacity: .6; }
.thumbs button.on { opacity: 1; box-shadow: var(--shadow-sm); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: 36px; }
.pdp .price { font-size: 40px; }
.pix-box { background: #E6F8EC; border: 2.5px dashed var(--green); border-radius: 16px; padding: 10px 14px; margin: 12px 0; font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 3px solid var(--navy); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button { border: 0; background: var(--yellow); width: 40px; height: 42px; font-size: 20px; font-weight: 800; cursor: pointer; }
.qty span { min-width: 44px; text-align: center; font-weight: 800; }
.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.desc { white-space: pre-line; }
.ship-calc { display: flex; gap: 8px; margin-top: 8px; }
.ship-calc input { max-width: 170px; }
.ship-result { margin-top: 8px; font-weight: 700; color: var(--green); }
.breadcrumb { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- carrinho */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 2px dashed rgba(27,42,94,.25); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 90px; height: 90px; object-fit: cover; border-radius: 14px; border: 2.5px solid var(--navy); }
.cart-item .nm { font-family: var(--font-head); font-weight: 600; font-size: 17px; text-decoration: none; }
.summary-row { display: flex; justify-content: space-between; margin: 8px 0; font-weight: 700; }
.summary-row.total { font-size: 22px; font-family: var(--font-head); border-top: 3px solid var(--navy); padding-top: 12px; margin-top: 12px; }
.summary-row .green { color: var(--green); }
.sticky { position: sticky; top: 170px; }

/* ---------- checkout */
.steps { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.steps span { padding: 6px 14px; border-radius: 999px; border: 2px solid var(--navy); font-weight: 800; font-size: 14px; background: var(--white); }
.steps span.on { background: var(--navy); color: var(--yellow); }
.checkout h2 { font-size: 22px; display: flex; align-items: center; gap: 8px; }
.checkout h2 .n { background: var(--red); color: var(--white); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; border: 2px solid var(--navy); }
.checkout .card + .card { margin-top: 20px; }
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pay-tab {
  border: 3px solid var(--navy); border-radius: 18px; padding: 14px; background: var(--white); cursor: pointer; text-align: left;
  transition: transform .1s;
}
.pay-tab b { font-family: var(--font-head); font-size: 18px; display: block; }
.pay-tab small { color: var(--muted); font-weight: 700; }
.pay-tab.on { background: var(--yellow-soft); box-shadow: var(--shadow-sm); transform: translate(-1px,-1px); }
.pay-tab .off { color: var(--green); }
.demo-note { background: var(--yellow-soft); border: 2.5px dashed var(--navy); border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.card-visual {
  background: linear-gradient(135deg, var(--navy), #33498F); color: var(--white); border-radius: 18px; padding: 18px; margin-bottom: 16px;
  font-family: monospace; font-size: 18px; letter-spacing: 2px; aspect-ratio: 1.75; max-width: 330px; display: flex; flex-direction: column; justify-content: space-between;
  border: 3px solid var(--navy); box-shadow: var(--shadow-sm);
}
.card-visual .chip { width: 40px; height: 30px; border-radius: 6px; background: var(--yellow); }
.card-visual .meta { display: flex; justify-content: space-between; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.err { background: #FFE3E1; border: 2.5px solid var(--red); color: var(--red-dark); border-radius: 14px; padding: 10px 14px; font-weight: 700; margin: 12px 0; }
.ok { background: #E6F8EC; border: 2.5px solid var(--green); color: #12663D; border-radius: 14px; padding: 10px 14px; font-weight: 700; margin: 12px 0; }
.mini-items .mi { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.mini-items img { width: 46px; height: 46px; border-radius: 10px; border: 2px solid var(--navy); object-fit: cover; }
.mini-items .mi span:last-child { margin-left: auto; white-space: nowrap; }

/* ---------- pedido */
.order-hero { text-align: center; }
.order-hero img { width: 150px; margin: 0 auto; mix-blend-mode: multiply; }
.status-pill { display: inline-block; padding: 6px 16px; border-radius: 999px; font-weight: 800; border: 2.5px solid var(--navy); }
.st-aguardando_pagamento { background: var(--yellow); }
.st-pago { background: #BFF0D4; }
.st-enviado { background: var(--sky-soft); }
.st-entregue { background: var(--green); color: var(--white); }
.st-cancelado, .st-recusado { background: #FFD0CC; }
.pix-pay { text-align: center; }
.pix-pay img.qr { width: 230px; height: 230px; margin: 10px auto; border: 3px solid var(--navy); border-radius: 16px; background: var(--white); }
.copy-row { display: flex; gap: 8px; }
.copy-row input { font-family: monospace; font-size: 13px; }
.timeline { display: flex; justify-content: space-between; margin: 24px 0 8px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 18px; left: 8%; right: 8%; height: 4px; background: #D5DCEF; }
.timeline .t { position: relative; text-align: center; flex: 1; font-size: 13px; font-weight: 800; color: var(--muted); }
.timeline .t i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 6px; background: #E6EAF5; border: 3px solid #C4CCE3; font-style: normal; font-size: 18px; }
.timeline .t.on { color: var(--navy); }
.timeline .t.on i { background: var(--yellow); border-color: var(--navy); }

/* ---------- rodapé e toast */
.footer { background: var(--navy); color: #DDE4FA; margin-top: 40px; padding: 36px 0 18px; }
.footer-row { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 26px; }
.footer h4 { color: var(--yellow); font-size: 20px; }
.footer p { margin: 4px 0; }
.footer-logo { width: 150px; background: var(--white); border-radius: 50%; padding: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.18); margin-top: 24px; padding-top: 14px; font-size: 14px; }
.footer a { color: var(--yellow); }
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 140%); background: var(--navy); color: var(--white);
  border: 3px solid var(--yellow); border-radius: 999px; padding: 12px 22px; font-weight: 800; z-index: 50;
  transition: transform .25s, opacity .25s, visibility 0s .25s; opacity: 0; visibility: hidden; pointer-events: none;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; pointer-events: auto; transition: transform .25s, opacity .25s; }
.loading { text-align: center; padding: 60px 0; font-weight: 800; color: var(--muted); }
.loading::before { content: "⭐"; display: block; font-size: 40px; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- responsivo */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-mascot .bubble { width: 220px; }
  .pdp, .cart-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .footer-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .header-row { flex-wrap: wrap; gap: 10px; }
  .brand img { height: 56px; }
  .search { order: 3; flex-basis: 100%; }
  .cart-btn { margin-left: auto; }
  .cart-label { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product .name { font-size: 15px; }
  .price { font-size: 20px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 64px; }
  .cart-item > :last-child { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .pay-tabs { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 24px; }
  .timeline .t { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- ajuda (botão ? e manual) */
.help-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--yellow); color: var(--navy); border: 3px solid var(--navy); box-shadow: 4px 4px 0 var(--navy);
  font-family: var(--font-head); font-size: 34px; font-weight: 700; cursor: pointer; display: grid; place-items: center;
  transition: transform .15s;
}
.help-fab:hover { transform: rotate(-8deg) scale(1.06); }
.help-open .help-fab { background: var(--navy); color: var(--yellow); }
.help-tip {
  position: fixed; right: 92px; bottom: 34px; z-index: 60; background: var(--white); border: 3px solid var(--navy);
  border-radius: 16px; padding: 8px 14px; font-weight: 800; box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(10px);
  transition: opacity .3s, transform .3s; pointer-events: none;
}
.help-tip.show { opacity: 1; transform: none; }
.help-shade { position: fixed; inset: 0; background: rgba(27,42,94,.35); z-index: 55; opacity: 0; pointer-events: none; transition: opacity .2s; }
.help-open .help-shade { opacity: 1; pointer-events: auto; }
.help-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 58; width: min(400px, 100%); background: var(--cream);
  border-left: 3px solid var(--navy); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .25s ease;
}
.help-open .help-panel { transform: none; }
.help-head { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--sky); border-bottom: 3px solid var(--navy); }
.help-head img { width: 58px; height: 58px; border-radius: 50%; background: var(--white); border: 3px solid var(--navy); object-fit: cover; }
.help-head b { font-family: var(--font-head); font-size: 20px; display: block; color: var(--white); text-shadow: 2px 2px 0 var(--navy); }
.help-head small { font-weight: 800; color: var(--navy); }
.help-close { margin-left: auto; border: 3px solid var(--navy); background: var(--white); border-radius: 50%; width: 38px; height: 38px; cursor: pointer; font-weight: 800; flex-shrink: 0; }
.help-search { padding: 12px 16px 4px; }
.help-list { overflow-y: auto; padding: 8px 16px 110px; flex: 1; }
.help-item { background: var(--white); border: 2.5px solid var(--navy); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.help-item summary { cursor: pointer; padding: 12px 14px; font-weight: 800; display: flex; align-items: center; gap: 10px; list-style: none; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.help-item[open] summary { background: var(--yellow-soft); }
.help-item[open] summary::after { content: "−"; }
.help-item .hi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-soft); flex-shrink: 0; }
.help-item em { font-style: normal; font-size: 11px; background: var(--red); color: var(--white); border-radius: 999px; padding: 2px 8px; }
.help-item ol { margin: 0; padding: 12px 16px 14px 36px; }
.help-item li { margin-bottom: 6px; }
.help-item li::marker { font-weight: 800; color: var(--red); }
.help-empty { text-align: center; font-weight: 700; color: var(--muted); padding: 30px 0; }
.help-foot { padding: 0 16px; }
.help-foot:empty { display: none; }
body.help-open { overflow: hidden; }

/* ---------- loja: passos, filtros, avisos */
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 26px 0 34px; counter-reset: step; }
.howto .step { position: relative; background: var(--white); border: 3px solid var(--navy); border-radius: 18px; padding: 16px 14px 14px; box-shadow: var(--shadow-sm); }
.howto .step::before {
  counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: var(--white); border: 2.5px solid var(--navy); display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.howto .ico { font-size: 30px; }
.howto b { display: block; font-family: var(--font-head); font-size: 17px; margin-top: 4px; }
.howto span { font-size: 14px; color: var(--muted); font-weight: 600; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { border: 2.5px solid var(--navy); background: var(--white); border-radius: 999px; padding: 7px 14px; font-weight: 800; cursor: pointer; font-size: 15px; }
.chip.on { background: var(--navy); color: var(--yellow); }
.chip small { opacity: .7; }
.cart-total { font-size: 13px; opacity: .9; }
.toast .toast-act { margin-left: 12px; background: var(--yellow); color: var(--navy); border: 2px solid var(--yellow); border-radius: 999px; padding: 4px 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.toast { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.field .msg { font-size: 13px; font-weight: 700; margin-top: 4px; min-height: 0; }
.field.bad input { border-color: var(--red); background: #FFF5F4; }
.field.bad .msg { color: var(--red-dark); }
.field.good input { border-color: var(--green); }
.field.good label::after { content: " ✓"; color: var(--green); }
.opt { font-weight: 600; color: var(--muted); font-size: 13px; }
.product .info .btn, .product .info a.name { position: relative; z-index: 2; }

@media (max-width: 900px) { .howto { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .help-fab { width: 54px; height: 54px; font-size: 28px; right: 14px; bottom: 14px; }
  .help-tip { right: 76px; bottom: 24px; }
  .howto { gap: 18px 12px; }
  .howto span { font-size: 13px; }
}

.back-admin { color: var(--white); background: var(--red); border-radius: 999px; padding: 2px 12px; text-decoration: none; white-space: nowrap; }
.back-admin:hover { background: var(--red-dark); }
.admin-link { font-weight: 800; letter-spacing: .04em; font-size: 12px; }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.footer-note { font-size: 12px; opacity: .75; margin-top: 6px; }
.policy h2 { font-size: 20px; margin-top: 22px; }
.policy li { margin-bottom: 6px; }
.policy table td, .policy table th { font-size: 14px; }

/* ---- ajuda: assistente que responde perguntas */
.help-answer { padding: 6px 16px 0; }
.ha-bubble { background: var(--yellow-soft); border: 2.5px solid var(--navy); border-radius: 18px 18px 18px 4px; padding: 12px 14px; box-shadow: 3px 3px 0 var(--navy); }
.ha-bubble > b { font-family: var(--font-head); font-size: 17px; display: block; margin-bottom: 4px; }
.ha-bubble ol { margin: 6px 0 0; padding-left: 20px; }
.ha-bubble li { margin-bottom: 5px; }
.ha-bubble li::marker { font-weight: 800; color: var(--red); }
.ha-bubble p { margin: 8px 0 0; }
.ha-more { font-size: 13px; color: var(--muted); }
.ha-chip { font: inherit; font-size: 13px; font-weight: 800; border: 2px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 999px; padding: 3px 10px; margin: 4px 2px 0 0; cursor: pointer; }
.ha-chip:hover { background: var(--sky-soft); }
.ha-typing { display: inline-flex; gap: 5px; padding: 12px 16px; }
.ha-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--navy); opacity: .3; animation: haDot 1s infinite; }
.ha-typing span:nth-child(2) { animation-delay: .15s; } .ha-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes haDot { 50% { opacity: 1; transform: translateY(-3px); } }
.help-sub { margin: 12px 16px 0; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.help-search input { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2.5px solid var(--navy); border-radius: 14px; background: var(--white); color: var(--navy); }
.help-search input:focus { outline: 3px solid var(--yellow); outline-offset: 1px; }
/* ---- vitrine: botão do Mercado Livre e favorito */
.ml-btn { justify-content: center; text-align: center; line-height: 1.2; letter-spacing: .02em; }
.product .ml-btn { flex: 1; min-width: 0; font-size: 13px; padding-left: 10px; padding-right: 10px; }
.card-actions { display: flex; gap: 6px; align-items: stretch; }
@media (max-width: 640px) {
  /* celular: o cartão é estreito — o botão do ML ganha a linha toda e o coração vai embaixo */
  .card-actions { flex-wrap: wrap; }
  .product .card-actions .ml-btn { flex: 1 1 100%; font-size: 12px; padding: 9px 10px; }
  .product .card-actions .fav-btn { flex: 1 1 100%; margin-top: 0; min-height: 38px; font-size: 20px; }
}
@media (max-width: 380px) {
  /* celular pequeno: o texto pode ir para 3 linhas — cantos menos redondos para não cortar as letras */
  .product .card-actions .ml-btn { font-size: 11.5px; letter-spacing: 0; padding: 8px 6px; border-radius: 18px; }
}
.btn.fav-btn, .btn.small.fav-btn { flex-shrink: 0; font-size: 22px; color: var(--navy); font-weight: 400; line-height: 1; padding: 0 14px; min-width: 48px; justify-content: center; }
.fav-btn[aria-pressed="true"] { background: var(--yellow-soft); }
.fav-btn:focus-visible, .ml-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---- Mercado Livre: passos de conexão */
.ml-steps { padding-left: 22px; margin: 8px 0 0; }
.ml-steps > li { margin-bottom: 14px; }
.ml-steps > li::marker { font-weight: 800; color: var(--red); }

/* ---- IA do Lojista */
.ai-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .ai-wrap { grid-template-columns: 1fr; } }
.ai-chat { display: flex; flex-direction: column; min-height: 70vh; }
.ai-log { flex: 1; overflow-y: auto; max-height: 60vh; padding: 6px 2px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { display: flex; flex-direction: column; max-width: 86%; }
.ai-msg.me { align-self: flex-end; align-items: flex-end; }
.ai-msg.bot { align-self: flex-start; }
.ai-bubble { padding: 10px 14px; border-radius: 18px; border: 2.5px solid var(--navy); line-height: 1.45; word-break: break-word; }
.ai-msg.me .ai-bubble { background: var(--sky-soft); border-radius: 18px 18px 4px 18px; }
.ai-msg.bot .ai-bubble { background: var(--white); border-radius: 18px 18px 18px 4px; }
.ai-thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ai-thumbs img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 2px solid var(--navy); }
.ai-action { background: var(--yellow-soft); border: 2.5px solid var(--navy); border-radius: 16px; padding: 12px 14px; box-shadow: 3px 3px 0 var(--navy); }
.ai-action.done { box-shadow: none; opacity: .85; }
.ai-secret code { font-size: 16px; background: var(--white); padding: 4px 8px; border-radius: 8px; border: 2px solid var(--navy); }
.ai-sugs { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 4px; }
.ai-att { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-chip { position: relative; }
.ai-chip img { width: 54px; height: 54px; object-fit: cover; border-radius: 10px; border: 2px solid var(--navy); }
.ai-chip button { position: absolute; top: -6px; right: -6px; border: 2px solid var(--navy); background: var(--white); border-radius: 50%; width: 22px; height: 22px; cursor: pointer; font-weight: 800; line-height: 1; }
.ai-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.ai-form textarea { flex: 1; resize: vertical; min-height: 48px; }
.ai-clip { cursor: pointer; font-size: 20px; }
.ai-side .card { margin-bottom: 14px; }
.ai-tasks { list-style: none; margin: 0; padding: 0; }
.ai-tasks li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed #D5DCEF; }
.ai-tasks li.done span { text-decoration: line-through; opacity: .6; }
.ai-tasks label { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 0; }
.ai-tasks small.late { color: var(--red-dark); font-weight: 800; }
.ai-x { border: 0; background: none; cursor: pointer; }
.ai-task-form { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ai-task-form input[type=text] { flex: 1 1 140px; }
.ai-task-form input[type=datetime-local] { flex: 1 1 160px; font: inherit; padding: 6px; border: 2.5px solid var(--navy); border-radius: 12px; }

.paste-box { margin-top: 8px; padding: 12px; border: 2.5px dashed var(--navy); border-radius: 14px; text-align: center; font-weight: 700; color: var(--muted); cursor: context-menu; background: var(--white); caret-color: transparent; outline: none; }
.paste-box:focus { border-color: var(--sky); background: var(--sky-soft); }

/* ---- pop-up: receber promoções por e-mail (só na vitrine online) */
.news-bg { position: fixed; inset: 0; background: rgba(27, 42, 94, .55); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.news-box { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow: auto; background: var(--white); border: 3px solid var(--navy);
  border-radius: 22px; box-shadow: var(--shadow); padding: 26px 22px 20px; text-align: center; }
.news-box h2 { font-family: "Fredoka", sans-serif; margin: 6px 0 8px; font-size: 24px; }
.news-box img.news-masc { width: 86px; height: auto; }
.news-box form { text-align: left; margin-top: 12px; }
.news-box input[type=email], .news-box input[type=text] { width: 100%; }
.news-box .news-small { font-size: 12.5px; line-height: 1.45; opacity: .85; margin-top: 10px; }
.news-x { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 999px; border: 3px solid var(--navy); background: var(--yellow);
  color: var(--navy); font-size: 18px; font-weight: 800; cursor: pointer; line-height: 1; box-shadow: var(--shadow-sm); }
.news-x:hover { background: var(--white); }
.news-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.news-box .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 14px; cursor: pointer; }
.news-box .check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--red); }
