/* ===== Mega Cards — Design System =====
   Paleta:
   --black  fundo header/footer
   --white  fundo predominante do site
   --red    carta esquerda do logo / destaque
   --blue   carta direita do logo / destaque
*/
:root {
  --black: #0d0d0f;
  --black-2: #17171b;
  --white: #ffffff;
  --paper: #f6f7f9;      /* leve off-white para separar seções */
  --ink: #16181d;        /* texto principal */
  --ink-soft: #5b616e;   /* texto secundário */
  --line: #e6e8ec;       /* bordas */
  --red: #e4322b;
  --red-dark: #c0241e;
  --blue: #1f5fd6;
  --blue-dark: #1748a8;
  --yellow: #ffcb2e;     /* usado só em selo de preço/desconto, com parcimônia */
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 24px rgba(16, 20, 30, .08);
  --shadow-hover: 0 14px 38px rgba(16, 20, 30, .16);
  --maxw: 1240px;
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Announcement bar ===== */
.announce {
  background: var(--black);
  color: #e9eaee;
  font-size: 13px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  flex-wrap: wrap;
}
.announce strong { color: var(--yellow); }
.announce .sep { color: #4a4d57; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  color: var(--white);
  box-shadow: 0 2px 0 rgba(255,255,255,.04);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 16px 20px;
}

/* Logo */
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 54px; width: auto; display: block; }
.logo-img--footer { height: 62px; margin-bottom: 10px; }

/* Search */
.search {
  flex: 1;
  display: flex;
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  max-width: 620px;
}
.search input {
  flex: 1;
  border: 0;
  padding: 13px 20px;
  font-size: 15px;
  outline: none;
  color: var(--ink);
}
.search button {
  border: 0;
  background: var(--red);
  color: #fff;
  width: 54px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .15s;
}
.search button:hover { background: var(--red-dark); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.action {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e9eaee;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.25;
  position: relative;
  transition: background .15s;
}
.action:hover { background: rgba(255,255,255,.08); }
.action b { font-size: 13px; color: #fff; }
.action.icon-only { padding: 8px; }
.action.cart .cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: grid; place-items: center;
  padding: 0 4px;
}

/* Category nav */
.catnav { background: var(--black-2); border-top: 1px solid rgba(255,255,255,.06); }
.catnav ul {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 12px;
  list-style: none;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.catnav a {
  display: block;
  padding: 13px 16px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .6px;
  color: #d6d8df;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.catnav a:hover { color: #fff; }
.catnav a.active { color: #fff; border-bottom-color: var(--red); }
.catnav a.muted { color: #8b8f9b; }

/* ===== Hero ===== */
.hero { max-width: var(--maxw); margin: 22px auto 0; padding: 0 20px; position: relative; }
.hero-slides {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  box-shadow: var(--shadow);
}
.slide {
  display: none;
  min-height: 320px;
  padding: 48px 56px;
  align-items: center;
  color: #fff;
}
.slide.is-active { display: flex; animation: fade .5s ease; }
@keyframes fade { from { opacity: .3; } to { opacity: 1; } }
.slide-1 { background: radial-gradient(120% 120% at 100% 0%, #e4322b 0%, #7d130f 60%, #400a08 100%); }
.slide-2 { background: radial-gradient(120% 120% at 100% 0%, #2f74ee 0%, #143b86 60%, #0b1f47 100%); }
.slide-3 { background: linear-gradient(120deg, #17171b 0%, #2a2b33 100%); }
.slide-content { max-width: 520px; }
.eyebrow {
  font-family: var(--font-head);
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  opacity: .9;
  background: rgba(255,255,255,.15);
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-block;
}
.slide h2 {
  font-family: var(--font-head);
  font-size: 46px;
  font-weight: 800;
  margin: 14px 0 8px;
  line-height: 1.02;
}
.slide p { font-size: 16px; opacity: .92; margin: 0 0 22px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.hero-dots button {
  width: 9px; height: 9px; border-radius: 999px; border: 0;
  background: #c9ccd4; cursor: pointer; padding: 0;
}
.hero-dots button.is-active { background: var(--ink); width: 26px; }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 16px;
  padding: 12px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-dark { background: #fff; color: var(--ink); }

/* ===== Trust ===== */
.trust {
  max-width: var(--maxw);
  margin: 26px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.trust-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}
.trust-item b { font-size: 15px; }
.trust-item span { font-size: 13px; color: var(--ink-soft); }

/* ===== Product rails ===== */
.rail { max-width: var(--maxw); margin: 40px auto 0; padding: 0 20px; }
.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}
.rail-head h3 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  letter-spacing: .3px;
  display: flex; align-items: center; gap: 10px;
}
.rail-head h3::before {
  content: "";
  width: 6px; height: 26px;
  border-radius: 3px;
  background: var(--red);
}
.rail.accent-blue .rail-head h3::before { background: var(--blue); }
.rail.accent-dark .rail-head h3::before { background: var(--ink); }
.rail-head a { color: var(--red); font-weight: 600; font-size: 14px; }
.rail.accent-blue .rail-head a { color: var(--blue); }

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(196px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.rail-track::-webkit-scrollbar { height: 8px; }
.rail-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }

/* ===== Product card ===== */
.card-prod {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.card-prod:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: #d7dae0; }

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 18px;
}
.card-media .thumb {
  width: 100%; height: 100%;
  border-radius: 10px;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: rgba(255,255,255,.92);
  font-size: 15px;
  padding: 12px;
  line-height: 1.15;
}
.badge-discount {
  position: absolute; top: 10px; left: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 7px;
}
.badge-lang {
  position: absolute; top: 10px; right: 10px;
  background: rgba(13,13,15,.82);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  padding: 4px 7px;
  border-radius: 6px;
}
.badge-foil {
  position: absolute; bottom: 10px; left: 10px;
  background: linear-gradient(90deg,#8a63d2,#5b8def,#3fd1c7);
  color: #fff; font-size: 10.5px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  letter-spacing: .5px;
}
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.stock { font-size: 11.5px; color: var(--ink-soft); }
.stock b { color: #1a9d55; }
.stock.low b { color: var(--red); }
.card-name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
}
.price-wrap { margin-top: auto; }
.price-old { font-size: 12px; color: var(--ink-soft); text-decoration: line-through; }
.price { font-size: 20px; font-weight: 800; font-family: var(--font-head); color: var(--ink); }
.installment { font-size: 11.5px; color: var(--ink-soft); }
.add-cart {
  margin-top: 10px;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .15s;
}
.add-cart:hover { background: var(--red); }

/* ===== Newsletter ===== */
.newsletter {
  margin: 56px auto 0;
  max-width: var(--maxw);
  padding: 0 20px;
}
.newsletter-inner {
  background: linear-gradient(120deg, var(--black) 0%, #24242c 100%);
  border-radius: 18px;
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  color: #fff;
}
.newsletter h3 { font-family: var(--font-head); font-size: 30px; margin: 0 0 6px; }
.newsletter p { margin: 0; color: #c9ccd4; }
.newsletter strong { color: var(--yellow); }
.newsletter form { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 460px; }
.newsletter input {
  flex: 1; border: 0; border-radius: 999px; padding: 13px 20px; font-size: 15px; outline: none;
}

/* ===== Footer ===== */
.footer { background: var(--black); color: #c9ccd4; margin-top: 56px; }
.footer-cols {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 46px 20px 30px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-cols a { display: block; padding: 6px 0; font-size: 14px; color: #b7bac3; }
.footer-cols a:hover { color: #fff; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; margin-top: 4px; max-width: 300px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #8b8f9b;
}
.footer-legal { max-width: 560px; }

/* ===== Floating WhatsApp ===== */
.whatsapp {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 58px; height: 58px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  z-index: 60;
  transition: transform .15s;
}
.whatsapp:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .header-inner { flex-wrap: wrap; gap: 14px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .slide { padding: 36px 30px; }
  .slide h2 { font-size: 34px; }
  .action span { display: none; }
}
@media (max-width: 560px) {
  .logo-img { height: 44px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .newsletter-inner { padding: 26px; }
}

/* =========================================================
   FASE 2 — páginas internas (categoria, produto, carrinho)
   ========================================================= */

.card-name:hover { color: var(--red); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-hover);
  opacity: 0; pointer-events: none; transition: .25s; z-index: 80;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Container de página + breadcrumb + título */
.page { max-width: var(--maxw); margin: 0 auto; padding: 22px 20px 0; }
.breadcrumb { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { opacity: .5; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title { font-family: var(--font-head); font-size: 32px; font-weight: 800; margin: 0; display: flex; align-items: center; gap: 12px; }
.page-title::before { content: ""; width: 6px; height: 30px; border-radius: 3px; background: var(--red); }

.section-title { font-family: var(--font-head); font-size: 26px; font-weight: 800; margin: 44px 0 16px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--red); }

/* Layout categoria: filtros + grid */
.cat-layout { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; padding-bottom: 20px; }
.filters { position: sticky; top: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-group h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--ink-soft); margin: 0 0 10px; }
.filter-opt { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.filter-opt input { width: 16px; height: 16px; accent-color: var(--red); }
.filters-clear { margin-top: 14px; width: 100%; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 9px; font-size: 13px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.filters-clear:hover { color: var(--red); border-color: var(--red); }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { font-size: 14px; color: var(--ink-soft); }
.toolbar .count b { color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.sort select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 14px; background: #fff; color: var(--ink); font-family: inherit; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.empty h3 { font-family: var(--font-head); font-size: 24px; color: var(--ink); margin: 0 0 8px; }
.empty p { margin: 0 0 18px; }

/* Página de produto */
.product-detail { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 34px; padding-bottom: 6px; }
.pd-media { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1/1; display: grid; place-items: center; padding: 30px; }
.pd-media .thumb { width: 100%; height: 100%; border-radius: 12px; display: grid; place-items: center; text-align: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 22px; padding: 24px; line-height: 1.15; }
.pd-info h1 { font-family: var(--font-head); font-size: 30px; font-weight: 800; margin: 8px 0 4px; line-height: 1.1; }
.pd-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .5px; padding: 4px 9px; border-radius: 6px; }
.tag-lang { background: var(--ink); color: #fff; }
.tag-foil { background: linear-gradient(90deg,#8a63d2,#5b8def,#3fd1c7); color: #fff; }
.tag-type { background: #eef0f4; color: var(--ink-soft); }
.tag-promo { background: var(--red); color: #fff; }
.pd-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 2px; }
.pd-price .now { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: var(--ink); }
.pd-price .old { font-size: 16px; color: var(--ink-soft); text-decoration: line-through; }
.pd-price .off { background: var(--red); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 8px; border-radius: 6px; align-self: center; }
.pd-install { color: var(--ink-soft); font-size: 14px; margin-bottom: 16px; }
.pd-stock { font-size: 14px; margin-bottom: 18px; }
.pd-stock b { color: #1a9d55; } .pd-stock.low b { color: var(--red); }
.pd-buy { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 40px; height: 46px; border: 0; background: var(--paper); font-size: 20px; cursor: pointer; color: var(--ink); }
.qty button:hover { background: #e9ebef; }
.qty input { width: 48px; height: 46px; border: 0; text-align: center; font-size: 16px; font-weight: 600; font-family: inherit; }
.qty.sm button { width: 32px; height: 36px; font-size: 16px; }
.qty.sm input { width: 38px; height: 36px; font-size: 14px; }
.btn-buy { background: var(--red); color: #fff; }
.btn-buy:hover { background: var(--red-dark); }
.btn-cart2 { background: var(--ink); color: #fff; }
.btn-cart2:hover { background: #000; }
.pd-specs { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.pd-specs div { display: flex; justify-content: space-between; padding: 11px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.pd-specs div:last-child { border-bottom: 0; }
.pd-specs span:first-child { color: var(--ink-soft); }
.pd-specs span:last-child { font-weight: 600; }
.pd-desc h3 { font-family: var(--font-head); font-size: 20px; margin: 0 0 8px; }
.pd-desc p { color: #3d4250; line-height: 1.7; margin: 0; }

/* Carrinho */
.cart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; padding-bottom: 20px; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.cart-thumb { width: 84px; height: 84px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 11px; text-align: center; padding: 8px; line-height: 1.1; }
.cart-info { min-width: 0; }
.cart-info a { font-weight: 600; font-size: 15px; color: var(--ink); display: block; margin-bottom: 4px; }
.cart-info a:hover { color: var(--red); }
.cart-info .meta { font-size: 12.5px; color: var(--ink-soft); }
.cart-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-line-total { font-family: var(--font-head); font-weight: 800; font-size: 18px; }
.cart-remove { background: none; border: 0; color: var(--ink-soft); font-size: 13px; cursor: pointer; }
.cart-remove:hover { color: var(--red); }
.cart-summary { position: sticky; top: 150px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cart-summary h3 { font-family: var(--font-head); font-size: 20px; margin: 0 0 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--ink-soft); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 20px; color: var(--ink); font-weight: 800; font-family: var(--font-head); }
.cart-summary .btn { display: block; width: 100%; text-align: center; margin-top: 14px; }
.cart-summary .note { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 10px; }

@media (max-width: 880px) {
  .cat-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 22px; }
  .cart-wrap { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .page-title { font-size: 26px; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
