/* =============================================================
   Daicommerce Atacado — visual corporativo
   Azul do logo como cor principal; laranja do logo só como detalhe
   ============================================================= */
:root {
  --azul: #0a3c96;          /* azul do logo */
  --azul-escuro: #072a6b;
  --azul-noite: #0b1b33;    /* textos e fundos escuros */
  --azul-claro: #eef3fb;
  --azul-borda: #d4e0f4;
  --laranja: #f08a3e;       /* laranja do logo, só detalhes */
  --texto: #0b1b33;
  --suave: #5b6779;
  --borda: #e3e7ee;
  --fundo: #f6f8fb;
  --branco: #fff;
  --verde: #12805c;
  --verde-claro: #e7f5ef;
  --whats: #1faf5a;
  --raio: 10px;
  --raio-sm: 8px;
  --sombra: 0 1px 2px rgba(11, 27, 51, .05), 0 4px 16px rgba(11, 27, 51, .06);
  --sombra-forte: 0 12px 40px rgba(11, 27, 51, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.eyebrow { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--azul); margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--raio-sm); padding: 12px 20px;
  font: inherit; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--primario { background: var(--azul); color: #fff; }
.btn--primario:hover { background: var(--azul-escuro); }
.btn--claro { background: #fff; color: var(--azul); }
.btn--claro:hover { background: var(--azul-claro); }
.btn--contorno-claro { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--contorno-claro:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.btn--whats { background: var(--whats); color: #fff; width: 100%; }
.btn--whats:hover { background: #19964c; }
.btn--whats:disabled { background: #c8ced8; cursor: not-allowed; }
.icon-btn { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--suave); padding: 6px; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

/* ---------- Faixa superior ---------- */
.topbar { background: var(--azul-noite); color: #c9d3e3; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; gap: 14px; padding-top: 9px; padding-bottom: 9px; white-space: nowrap; overflow: hidden; }
.topbar__sep { width: 4px; height: 4px; border-radius: 50%; background: #4b5b75; }
.topbar__whats { margin-left: auto; color: #fff; font-weight: 500; text-decoration: none; cursor: pointer; }
.topbar__whats:hover { text-decoration: underline; }
@media (max-width: 860px) { .topbar__opt { display: none; } }
@media (max-width: 560px) { .topbar__inner > span:not(:first-child) { display: none; } .topbar__inner { font-size: 12px; } }

/* ---------- Cabeçalho ---------- */
.header { background: var(--branco); border-bottom: 1px solid var(--borda); position: sticky; top: 0; z-index: 20; }
.header__inner { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.logo__divisor { width: 1px; height: 26px; background: var(--borda); }
.logo__label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); }
.search { flex: 1; position: relative; max-width: 480px; }
.search input {
  width: 100%; padding: 11px 14px 11px 40px; border-radius: var(--raio-sm);
  border: 1px solid var(--borda); background: var(--fundo); font: inherit; font-size: 14px; color: var(--texto);
}
.search input:focus { outline: none; border-color: var(--azul); background: #fff; box-shadow: 0 0 0 3px var(--azul-claro); }
.search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 17px; fill: none; stroke: var(--suave); stroke-width: 2; }
.header__nav { display: flex; gap: 22px; margin-left: auto; }
.header__nav a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--suave); }
.header__nav a:hover { color: var(--azul); }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--azul); color: #fff; border: 0; border-radius: var(--raio-sm);
  padding: 10px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.cart-btn:hover { background: var(--azul-escuro); }
.cart-btn svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn__count { background: #fff; color: var(--azul); font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; padding: 0 6px; }
@media (max-width: 960px) { .header__nav { display: none; } .search { max-width: none; } }
@media (max-width: 680px) {
  .header__inner { flex-wrap: wrap; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 3; flex-basis: 100%; }
  .cart-btn { margin-left: auto; }
  .cart-btn__label, .logo__divisor { display: none; }
  .logo img { height: 34px; }
  .logo__label { font-size: 11px; }
}

/* ---------- Banners ---------- */
.banners { margin-top: 24px; }
.banners__trilho {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border-radius: 14px; scrollbar-width: none;
}
.banners__trilho::-webkit-scrollbar { display: none; }
.banner {
  flex: 0 0 100%; scroll-snap-align: start; min-height: 360px;
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 32px;
  padding: 48px 56px; position: relative; overflow: hidden; border-radius: 14px;
}
.banner--azul { background: radial-gradient(120% 140% at 100% 0%, #1550bd 0%, var(--azul) 45%, var(--azul-escuro) 100%); color: #fff; }
.banner--claro { background: #fff; border: 1px solid var(--borda); grid-template-columns: 1fr; }
.banner--azul-claro { background: var(--azul-claro); border: 1px solid var(--azul-borda); grid-template-columns: 1fr; }
.banner__eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; color: var(--azul); }
.banner--azul .banner__eyebrow { color: #ffc89e; }
.banner__eyebrow::before { content: ""; display: inline-block; width: 18px; height: 2px; background: var(--laranja); vertical-align: middle; margin-right: 8px; }
.banner h1 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; margin-bottom: 14px; }
.banner h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; margin-bottom: 26px; }
.banner p { line-height: 1.6; margin: 0; }
.banner--azul .banner__texto > p { color: #d6e1f5; font-size: 16px; max-width: 520px; }
.banner__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Visual de produtos (banner 1) */
.banner__visual--produtos { position: relative; height: 290px; }
.banner__produto { position: absolute; background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.banner__produto img { width: 100%; height: 100%; object-fit: contain; }
.banner__produto--a { width: 52%; aspect-ratio: 1; left: 0; top: 18px; z-index: 2; }
.banner__produto--b { width: 46%; aspect-ratio: 1; left: 38%; top: 0; z-index: 1; }
.banner__produto--c { width: 40%; aspect-ratio: 1; right: 0; bottom: 0; z-index: 3; }

/* Passos (banner 2) */
.banner__passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.banner__passos li { position: relative; padding: 20px; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--fundo); }
.banner__passos span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--azul); color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.banner__passos b { display: block; margin-bottom: 6px; font-size: 15px; }
.banner__passos p { color: var(--suave); font-size: 14px; line-height: 1.5; }

/* Regras (banner 3) */
.banner__regras { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.banner__regras li { background: #fff; border: 1px solid var(--azul-borda); border-radius: var(--raio); padding: 20px; border-top: 3px solid var(--azul); }
.banner__regras b { display: block; font-size: 20px; color: var(--azul); margin-bottom: 8px; }
.banner__regras span { color: var(--suave); font-size: 14px; line-height: 1.5; }

.banners__controles { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; }
.banners__seta { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--borda); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--texto); }
.banners__seta:hover { border-color: var(--azul); color: var(--azul); }
.banners__seta svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.banners__pontos { display: flex; gap: 8px; }
.banners__pontos button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: #c3ccda; cursor: pointer; transition: width .2s, background .2s; }
.banners__pontos button.is-active { width: 26px; background: var(--azul); }

@media (max-width: 960px) {
  .banner { grid-template-columns: 1fr; padding: 36px 32px; }
  .banner__visual--produtos { display: none; }
  .banner__passos, .banner__regras { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .banner { padding: 26px 20px; min-height: 0; align-items: start; }
  .banner h2 { margin-bottom: 18px; }
  .banner__passos, .banner__regras { gap: 10px; }
  .banner__passos li, .banner__regras li { padding: 14px; }
  .banner__passos span { width: 26px; height: 26px; font-size: 13px; margin-bottom: 10px; }
  .banner__passos b { font-size: 14px; }
  .banner__passos p, .banner__regras span { font-size: 13px; }
  .banner__regras b { font-size: 16px; }
  .banner__cta .btn { width: 100%; }
}

/* ---------- Confiança ---------- */
.confianca { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 28px; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); }
.confianca__item { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.confianca__item + .confianca__item { border-left: 1px solid var(--borda); }
.confianca__item svg { width: 26px; flex-shrink: 0; fill: none; stroke: var(--azul); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.confianca__item b { display: block; font-size: 14px; font-weight: 600; }
.confianca__item span { font-size: 13px; color: var(--suave); }
@media (max-width: 860px) {
  .confianca { grid-template-columns: repeat(2, 1fr); }
  .confianca__item:nth-child(3) { border-left: 0; }
  .confianca__item:nth-child(n+3) { border-top: 1px solid var(--borda); }
}
@media (max-width: 420px) { .confianca__item { padding: 14px; gap: 10px; } .confianca__item span { font-size: 12px; } }

/* ---------- Para quem é ---------- */
.publicos { padding-top: 56px; scroll-margin-top: 80px; }
.publicos__head { margin-bottom: 22px; }
.publicos__head h2, .catalog__head h2, .how h2, .faq h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; }
.publicos__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.publico { background: #fff; border: 1px solid var(--borda); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.publico--destaque { border-color: var(--azul-borda); background: linear-gradient(180deg, var(--azul-claro) 0%, #fff 60%); }
.publico__icone { width: 44px; height: 44px; border-radius: var(--raio-sm); background: var(--azul-claro); display: grid; place-items: center; }
.publico--destaque .publico__icone { background: #fff; border: 1px solid var(--azul-borda); }
.publico__icone svg { width: 24px; fill: none; stroke: var(--azul); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.publico h3 { font-size: 20px; }
.publico > p { margin: 0; color: var(--suave); line-height: 1.55; }
.publico ul { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.publico li { position: relative; padding-left: 26px; line-height: 1.45; font-size: 14px; }
.publico li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--azul) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.publico .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 760px) { .publicos__grid { grid-template-columns: 1fr; } .publico { padding: 22px; } .publico .btn { align-self: stretch; } }

/* ---------- Catálogo ---------- */
.catalog { padding-top: 56px; padding-bottom: 56px; scroll-margin-top: 80px; }
.catalog__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.catalog__empty { text-align: center; color: var(--suave); padding: 40px 0; }
.catalog__empty a { color: var(--azul); font-weight: 600; }
.segmented { display: inline-flex; background: #fff; border: 1px solid var(--borda); border-radius: var(--raio-sm); padding: 3px; }
.segmented[hidden] { display: none; }
.segmented__btn { border: 0; background: none; border-radius: 6px; padding: 8px 18px; font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; color: var(--suave); }
.segmented__btn.is-active { background: var(--azul); color: #fff; }

.filtros { display: flex; flex-direction: column; gap: 12px; margin-bottom: 22px; }
.filtros[hidden] { display: none; }
.marcas { display: flex; gap: 10px; flex-wrap: wrap; }
.marcas[hidden], .chips[hidden] { display: none; }
.marca {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--borda); background: #fff; border-radius: var(--raio-sm);
  padding: 10px 16px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--texto);
}
.marca small { background: var(--fundo); color: var(--suave); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 600; }
.marca:hover { border-color: var(--azul); }
.marca.is-active { border-color: var(--azul); background: var(--azul-claro); color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); }
.marca.is-active small { background: var(--azul); color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 0; background: none; border-radius: 6px; padding: 7px 12px; font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; color: var(--suave); }
.chip:hover { color: var(--azul); background: var(--azul-claro); }
.chip.is-active { color: var(--azul); background: var(--azul-claro); font-weight: 600; }
.busca-info { margin: 0 0 16px; color: var(--suave); }
.busca-info button { background: none; border: 0; padding: 0; font: inherit; color: var(--azul); font-weight: 600; cursor: pointer; text-decoration: underline; }
@media (max-width: 600px) {
  .marcas, .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .marca, .chip { flex-shrink: 0; }
  .marca { padding: 8px 12px; }
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.card { background: #fff; border-radius: var(--raio); border: 1px solid var(--borda); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--sombra); border-color: #d3d9e3; }
.card__img { position: relative; aspect-ratio: 1; background: #fff; padding: 14px; border: 0; border-bottom: 1px solid var(--borda); width: 100%; cursor: zoom-in; display: block; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__img2 { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; background: #fff; opacity: 0; transition: opacity .25s; }
@media (hover: hover) { .card:hover .card__img2 { opacity: 1; } }
.card__noimg { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: var(--fundo); border-radius: 6px; color: var(--suave); font-size: 13px; font-weight: 500; }
.card__noimg svg { width: 38px; fill: none; stroke: #b9c2d0; stroke-width: 1.6; }
.card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__cat { font-size: 12px; font-weight: 600; color: var(--azul); }
.card__name { font-size: 14px; font-weight: 500; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 4.2em; }
.card__name button { all: unset; cursor: pointer; }
.card__name button:hover { color: var(--azul); }
.card__price { display: flex; flex-direction: column; margin-top: auto; gap: 1px; }
.card__price small { color: var(--suave); font-size: 12px; }
.card__price strong { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.card__retail { font-size: 12px; color: var(--suave); }
.card__margem { color: var(--verde); font-weight: 600; }
.card__semmin { align-self: flex-start; border: 1px solid var(--azul-borda); background: var(--azul-claro); color: var(--azul); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; }
.card__buy { display: flex; gap: 8px; align-items: center; margin-top: 4px; }
.card__buy .btn { flex: 1; }
.card__in { margin: 0; font-size: 12px; font-weight: 600; color: var(--verde); }
@media (max-width: 520px) {
  .card__body { padding: 10px; }
  .card__name { font-size: 13px; }
  .card__price strong { font-size: 18px; }
  .card__buy { flex-direction: column; align-items: stretch; }
  .card__buy .qty { justify-content: space-between; }
}

/* Quantidade */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--borda); border-radius: var(--raio-sm); overflow: hidden; background: #fff; }
.qty button { border: 0; background: none; width: 32px; height: 36px; font-size: 17px; font-weight: 500; cursor: pointer; color: var(--texto); }
.qty button:hover { background: var(--azul-claro); color: var(--azul); }
.qty input { width: 40px; border: 0; text-align: center; font: inherit; font-weight: 600; -moz-appearance: textfield; color: var(--texto); }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty--sm button { width: 28px; height: 28px; font-size: 15px; }
.qty--sm span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }

/* ---------- Como funciona ---------- */
.how { background: #fff; border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); padding: 56px 0; scroll-margin-top: 80px; }
.how h2 { margin-bottom: 24px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { border: 1px solid var(--borda); border-radius: var(--raio); padding: 20px; }
.steps span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--suave); font-size: 14px; line-height: 1.5; }
.how__empresa { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-radius: var(--raio); background: var(--azul-claro); border: 1px solid var(--azul-borda); }
.how__empresa b { display: block; font-size: 16px; margin-bottom: 2px; }
.how__empresa span { color: var(--suave); font-size: 14px; }
.how__empresa .btn { flex-shrink: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .how__empresa { flex-direction: column; align-items: stretch; } }

/* ---------- FAQ ---------- */
.faq { padding-top: 56px; padding-bottom: 64px; max-width: 820px; }
.faq h2 { margin-bottom: 20px; }
.faq details { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details[open] summary { color: var(--azul); }
.faq p { color: var(--suave); line-height: 1.6; margin: 10px 0 0; }

/* ---------- Rodapé ---------- */
.footer { background: var(--azul-noite); color: #aab6c9; padding: 48px 0 96px; font-size: 14px; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer__marca p { max-width: 380px; line-height: 1.6; }
.footer__logo { height: 42px; width: auto; background: #fff; border-radius: 6px; padding: 5px 10px; margin-bottom: 12px; }
.footer b { color: #fff; font-weight: 600; display: block; margin-bottom: 10px; }
.footer p { margin: 6px 0; }
.footer a { color: #dbe4f3; cursor: pointer; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__legal { text-align: center; font-size: 12px; color: #7d8aa0; margin: 36px 16px 0; padding-top: 20px; border-top: 1px solid #1d2d48; }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- Barra fixa (mobile) ---------- */
.sticky-order {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25;
  display: none; justify-content: space-between; align-items: center;
  background: var(--azul-noite); color: #fff; border: 0; border-radius: var(--raio);
  padding: 14px 18px; font: inherit; font-weight: 500; box-shadow: var(--sombra-forte); cursor: pointer;
}
.sticky-order b { font-weight: 700; }
@media (max-width: 760px) { .sticky-order:not([hidden]) { display: flex; } }

/* ---------- Carrinho ---------- */
.overlay { position: fixed; inset: 0; background: rgba(11,27,51,.45); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 50;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; box-shadow: var(--sombra-forte);
}
.drawer.is-open { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--borda); }
.drawer__head h3 { font-size: 17px; font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; }
.progress { padding: 14px 20px; background: var(--azul-claro); }
.progress[hidden] { display: none; }
.progress p { margin: 0 0 8px; font-size: 14px; }
.progress__bar { height: 6px; background: #fff; border-radius: 999px; overflow: hidden; }
.progress__bar div { height: 100%; width: 0; background: var(--azul); border-radius: inherit; transition: width .3s; }
.progress.is-ok { background: var(--verde-claro); }
.progress.is-ok p { color: var(--verde); font-weight: 600; }
.progress.is-ok .progress__bar div { background: var(--verde); }
.drawer__items { list-style: none; margin: 0; padding: 8px 20px; }
.drawer__empty { text-align: center; color: var(--suave); padding: 40px 0; line-height: 1.6; }
.item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--borda); align-items: flex-start; }
.item img, .item__noimg { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--borda); border-radius: 6px; flex-shrink: 0; background: #fff; }
.item__noimg { background: var(--fundo); }
.item__info { flex: 1; min-width: 0; }
.item__info p { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item__info small { display: block; color: var(--suave); font-size: 12px; }
.item__row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.item__del { font-size: 14px; }
.drawer__form { border-top: 1px solid var(--borda); padding: 14px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.drawer__form .btn--whats { position: sticky; bottom: 0; box-shadow: 0 -12px 12px #fff; }
.totals { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.totals b { font-size: 22px; font-weight: 700; }
.totals__note { margin: -8px 0 0; font-size: 12px; color: var(--suave); }
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; }
fieldset input:not([type=radio]), fieldset textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--borda); border-radius: var(--raio-sm); font: inherit; font-size: 14px; resize: vertical; color: var(--texto); }
fieldset input:focus, fieldset textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--azul-claro); }
.row { display: flex; gap: 8px; }
.row .uf { width: 70px !important; flex-shrink: 0; text-transform: uppercase; }
.radio-group { display: flex; align-items: center; gap: 6px 16px; font-size: 14px; flex-wrap: wrap; padding: 4px 0; }
.radio-group span { font-weight: 600; }
.radio-group label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.radio-group input { accent-color: var(--azul); width: 16px; height: 16px; }

/* ---------- Janela de detalhes ---------- */
.modal { position: fixed; inset: 0; z-index: 70; background: rgba(11,27,51,.5); display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__caixa { position: relative; background: #fff; border-radius: 14px; width: min(960px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; box-shadow: var(--sombra-forte); }
.modal__fechar { position: sticky; top: 8px; float: right; margin: 8px 8px 0 0; z-index: 2; background: #fff; border-radius: 50%; width: 38px; height: 38px; box-shadow: var(--sombra); }
.detalhe { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 28px; }
.detalhe__foto { position: relative; aspect-ratio: 1; border: 1px solid var(--borda); border-radius: var(--raio); padding: 16px; background: #fff; }
.detalhe__foto img { width: 100%; height: 100%; object-fit: contain; }
.detalhe__miniaturas { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.detalhe__miniaturas button { width: 60px; height: 60px; padding: 4px; border: 1px solid var(--borda); border-radius: 6px; background: #fff; cursor: pointer; }
.detalhe__miniaturas button.is-active { border-color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); }
.detalhe__miniaturas img { width: 100%; height: 100%; object-fit: contain; }
.detalhe__info { display: flex; flex-direction: column; gap: 12px; }
.detalhe__info h2 { font-size: 20px; line-height: 1.35; font-weight: 600; }
.detalhe__info .card__price strong { font-size: 28px; }
.detalhe__info .card__buy .btn { flex: 1; }
.detalhe__desc { border-top: 1px solid var(--borda); padding-top: 14px; margin-top: 4px; }
.detalhe__desc h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.detalhe__desc p { margin: 0 0 6px; font-size: 14px; line-height: 1.6; color: #3d4757; }
@media (max-width: 760px) {
  .modal { padding: 0; align-items: end; }
  .modal__caixa { border-radius: 14px 14px 0 0; max-height: 92vh; }
  .detalhe { grid-template-columns: 1fr; gap: 18px; padding: 16px 16px 24px; }
  .detalhe__foto { max-width: 340px; margin: 0 auto; width: 100%; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; translate: -50% 20px; background: var(--azul-noite); color: #fff; padding: 12px 20px; border-radius: var(--raio-sm); font-weight: 500; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; z-index: 80; }
.toast.is-show { opacity: 1; translate: -50% 0; }

/* Banners vindos do painel */
.banner--sem-visual { grid-template-columns: 1fr; }
.banner__texto--largo .banner__descricao { color: var(--suave); margin: -12px 0 22px; max-width: 720px; }
.banners[hidden], .banners__controles[hidden], .faq[hidden] { display: none; }
