/* ==========================================================================
   Suprema Bombas - Loja
   Statico, sem framework. Tokens alinhados a marca (marca.py).
   ========================================================================== */

:root {
  --navy: #003366;
  --blue: #0A4D8C;
  --cyan: #00A3E0;
  --water: #4FC3F7;
  --green: #25D366;
  --amber: #FFC107;
  --red: #D32F2F;
  --light: #F4F7FB;
  --grey: #5A6B7B;
  --white: #FFFFFF;

  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 28px rgba(0, 0, 0, .14);
  --max: 1180px;
  --font: "Segoe UI", system-ui, -apple-system, Tahoma, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--light);
  color: #333;
  line-height: 1.6;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.visualmente-oculto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* skip link: acessibilidade de teclado */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------------ header */
.topo {
  background: var(--navy);
  color: #fff;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.topo__bar { display: flex; align-items: center; gap: 16px; }
.topo__logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.topo__logo:hover { text-decoration: none; }
.topo__logo img { height: 40px; width: auto; }
.topo__logo strong { font-size: 1.15rem; letter-spacing: .3px; }
.topo__nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topo__nav a {
  color: #fff; padding: 9px 14px; border-radius: 8px;
  font-size: .95rem; font-weight: 500;
}
.topo__nav a:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.topo__nav a[aria-current="page"] { background: rgba(255, 255, 255, .2); }

.carrinho-btn {
  position: relative; background: var(--green); color: #fff !important;
  font-weight: 700; border-radius: 999px; padding: 9px 18px;
}
.carrinho-btn:hover { background: #1eb455; }
.carrinho-btn__n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; margin-left: 8px;
  background: #fff; color: var(--navy); border-radius: 999px;
  font-size: .8rem; font-weight: 800;
}

/* -------------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 55%, var(--cyan) 100%);
  color: #fff; padding: 56px 0; text-align: center;
}
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: 14px; }
.hero p { max-width: 60ch; margin: 0 auto; font-size: 1.05rem; opacity: .95; }
.hero__acoes { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: .98rem; cursor: pointer;
  border: 2px solid transparent; transition: transform .12s, box-shadow .12s, background .12s;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--whatsapp { background: var(--green); color: #fff; }
.btn--whatsapp:hover { background: #1eb455; }
.btn--primario { background: var(--navy); color: #fff; }
.btn--primario:hover { background: var(--blue); }
.btn--contorno { background: transparent; color: #fff; border-color: #fff; }
.btn--contorno:hover { background: rgba(255, 255, 255, .14); }
.btn--bloco { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ----------------------------------------------------------------- secoes */
.secao { padding: 52px 0; }
.secao--branca { background: var(--white); }
.secao__titulo { text-align: center; margin-bottom: 34px; }
.secao__titulo h2 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--navy); margin-bottom: 8px; }
.secao__titulo p { color: var(--grey); max-width: 62ch; margin: 0 auto; }

/* --------------------------------------------------------------- catalogo */
.grade-produtos {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.produto {
  background: var(--white); border: 1px solid #E3EAF2;
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.produto:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--cyan); }
.produto__midia {
  background: linear-gradient(135deg, var(--light), #E8F1FA);
  padding: 20px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid #E3EAF2;
}
.produto__midia img { height: 96px; width: auto; }
.produto__corpo { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.produto__tag {
  align-self: flex-start; background: #E3F2FD; color: var(--blue);
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.produto h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 8px; }
.produto p { font-size: .92rem; color: var(--grey); flex: 1; margin-bottom: 16px; }
.produto__pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.produto__preco { font-size: .88rem; color: var(--navy); font-weight: 700; }
.produto__preco span { display: block; font-weight: 400; color: var(--grey); font-size: .78rem; }

/* ------------------------------------------------------------------ marcas */
.marcas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.marcas img {
  height: 52px; width: auto; padding: 10px 16px;
  background: var(--white); border: 1px solid #E3EAF2; border-radius: 10px;
  transition: border-color .15s, transform .15s;
}
.marcas img:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* -------------------------------------------------------------------- faq */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid #E3EAF2;
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  padding: 16px 20px; font-weight: 600; color: var(--navy);
  cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--cyan); line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid #E3EAF2; }
.faq__resposta { padding: 16px 20px; font-size: .95rem; color: #444; }

/* ---------------------------------------------------------------- carrinho */
.carrinho-grade { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 880px) { .carrinho-grade { grid-template-columns: 1fr; } }

.carrinho-vazio {
  text-align: center; padding: 60px 20px; color: var(--grey);
  background: var(--white); border: 2px dashed #D3DEE9; border-radius: var(--radius);
}
.carrinho-vazio h2 { color: var(--navy); margin-bottom: 10px; }

.linha-carrinho {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 16px;
  align-items: center; padding: 16px; background: var(--white);
  border: 1px solid #E3EAF2; border-radius: var(--radius); margin-bottom: 12px;
}
.linha-carrinho img { height: 56px; width: auto; }
.linha-carrinho h3 { font-size: .98rem; color: var(--navy); margin-bottom: 4px; }
.linha-carrinho p { font-size: .85rem; color: var(--grey); }
.linha-carrinho__acoes { display: flex; align-items: center; gap: 8px; }

.qtd {
  width: 46px; height: 38px; text-align: center; font-size: 1rem;
  border: 1px solid #C8D4E0; border-radius: 8px; font-family: var(--font);
}

.btn-icone {
  width: 38px; height: 38px; border: 1px solid #C8D4E0; background: var(--white);
  border-radius: 8px; cursor: pointer; font-size: 1.1rem; color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-icone:hover { background: var(--light); border-color: var(--navy); }
.btn-icone--remover:hover { background: #FDECEC; border-color: var(--red); color: var(--red); }

.resumo {
  background: var(--white); border: 1px solid #E3EAF2;
  border-radius: var(--radius); padding: 22px; position: sticky; top: 84px;
}
.resumo h2 { font-size: 1.15rem; color: var(--navy); margin-bottom: 16px; }
.resumo__linha {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; font-size: .93rem; border-bottom: 1px solid #EEF3F8;
}
.resumo__linha:last-of-type { border-bottom: none; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.resumo__aviso {
  background: #FFF8E1; border-left: 4px solid var(--amber);
  padding: 12px 14px; border-radius: 8px; font-size: .85rem;
  color: #7A5B00; margin: 16px 0;
}
.resumo__acoes { display: grid; gap: 10px; }

.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
.campo input, .campo textarea, .campo select {
  width: 100%; padding: 11px 13px; font-size: .95rem; font-family: var(--font);
  border: 1px solid #C8D4E0; border-radius: 8px; background: var(--white); color: #333;
}
.campo input:focus, .campo textarea:focus, .campo select:focus {
  outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan);
}
.campo textarea { min-height: 96px; resize: vertical; }
.campo--erro input, .campo--erro textarea { border-color: var(--red); }
.campo__erro { color: var(--red); font-size: .8rem; margin-top: 4px; display: none; }
.campo--erro .campo__erro { display: block; }

/* ------------------------------------------------------------------- toast */
.toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  background: var(--navy); color: #fff; padding: 14px 20px;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  font-size: .92rem; max-width: 320px;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast--visivel { opacity: 1; transform: translateY(0); }
.toast--erro { background: var(--red); }

/* ------------------------------------------------------------------ footer */
.rodape { background: var(--navy); color: #C9D8E8; padding: 44px 0 0; margin-top: 0; }
.rodape__grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; }
.rodape h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.rodape a { color: #C9D8E8; }
.rodape a:hover { color: #fff; }
.rodape ul { list-style: none; }
.rodape li { margin-bottom: 8px; font-size: .9rem; }
.rodape__fundo {
  border-top: 1px solid rgba(255, 255, 255, .13);
  margin-top: 34px; padding: 18px 0; text-align: center;
  font-size: .85rem; display: flex; gap: 12px;
  justify-content: center; flex-wrap: wrap;
}
.rodape__fundo img { height: 28px; width: auto; opacity: .9; }

/* ------------------------------------------------------------------ mobile */
@media (max-width: 720px) {
  .topo__nav { gap: 2px; }
  .topo__nav a { padding: 8px 10px; font-size: .87rem; }
  .topo__logo strong { font-size: 1rem; }
  .secao { padding: 38px 0; }
  .linha-carrinho { grid-template-columns: 1fr; text-align: center; }
  .linha-carrinho__acoes { justify-content: center; }
  .resumo { position: static; }
}

@media print {
  .topo, .rodape, .carrinho-btn, .btn, .toast { display: none !important; }
  body { background: #fff; }
}
