/* ═══════════════════════════════════════════════════════════════
   EmbakefTech — Loja Virtual
   Identidade inspirada na Gocase: fundo branco, tipografia bold
   arredondada, um acento vibrante, chips de categoria, carrosséis.
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --branco:   #ffffff;
  --preto:    #14141a;
  --cinza:    #f5f5f7;
  --cinza-2:  #ececf0;
  --border:   #e8e8ee;
  --text-muted: #757585;

  --accent:      #ff3d6e;   /* coral/pink vibrante — cor de marca */
  --accent-dark: #d92858;
  --accent-soft: #ffe3ec;
  --accent2:     #ffc93c;   /* amarelo, segundo acento pra badges */

  --font-display: 'Poppins', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:    16px;
  --radius-sm: 10px;
  --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--branco);
  color: var(--preto);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.1;
}

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

/* ── Botões ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.96); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(255,61,110,.28); }
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline { background: #fff; border-color: var(--preto); color: var(--preto); }
.btn-outline:hover { background: var(--preto); color: #fff; }

.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1eb857; }

.btn-block { width: 100%; }
.btn-sm { padding: 10px 20px; font-size: .8rem; }

/* ── Badges / chips ─────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .68rem;
  padding: 5px 12px;
  border-radius: 999px;
}
.badge-accent { background: var(--accent); color: #fff; }
.badge-soft   { background: var(--accent-soft); color: var(--accent-dark); }
.badge-dark   { background: var(--preto); color: #fff; }

/* ── Cards de produto ───────────────────────────────────── */
.product-card {
  position: relative;
  background: var(--branco);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(20,20,26,.1); }

.product-card .thumb {
  aspect-ratio: 1 / 1;
  background: var(--cinza);
  position: relative;
  overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.06); }

.product-card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card .cat  { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.product-card .name { font-size: .9rem; font-weight: 600; line-height: 1.35; min-height: 2.4em; }
.product-card .price-row { margin-top: auto; display: flex; align-items: baseline; gap: 8px; padding-top: 6px; }
.product-card .price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--accent-dark); }
.product-card .price-old { font-size: .76rem; color: var(--text-muted); text-decoration: line-through; }

.tag-corner {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: .66rem;
  padding: 5px 11px; border-radius: 999px; background: var(--accent); color: #fff;
}
.tag-esgotado {
  position: absolute; inset: 0; background: rgba(255,255,255,.75);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  color: var(--preto); z-index: 3;
}

/* ── Grid & carrossel ───────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-products { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 980px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

.scroll-row {
  display: flex; gap: 18px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar { height: 6px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--cinza-2); border-radius: 6px; }
.scroll-row > * { scroll-snap-align: start; flex: 0 0 220px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cinza); }
::-webkit-scrollbar-thumb { background: var(--cinza-2); border-radius: 10px; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .btn { padding: 13px 24px; font-size: .84rem; }
  .scroll-row > * { flex-basis: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-parallax] { transform: none !important; }
}

/* Compartilhado entre home e listagem de produtos */
.section-cats { padding: 40px 24px 8px; }
.cat-grid { display: flex; gap: 10px; flex-wrap: wrap; }
