/* ==========================================================================
   Localmed — style.css
   Design system + componentes. Mobile-first.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Cores de marca */
  --blue: #0066FF;
  --blue-600: #0052cc;
  --blue-50: #EAF2FF;
  --ink: #0F172A;
  --ink-700: #1E293B;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --green: #00B67A;
  --green-50: #E6F8F1;
  --amber: #F59E0B;
  --red: #EF4444;

  /* Superfícies (tema claro) */
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --surface: var(--white);
  --surface-2: var(--gray-100);
  --border: var(--gray-200);
  --text: var(--ink);
  --text-soft: var(--gray-500);
  --heading: var(--ink);

  /* Tipografia */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', var(--font-sans);

  /* Raio e sombra */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-full: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08), 0 2px 4px rgba(15, 23, 42, .04);
  --shadow-lg: 0 18px 40px -12px rgba(15, 23, 42, .18);
  --shadow-blue: 0 14px 30px -10px rgba(0, 102, 255, .45);

  /* Layout */
  --container: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Dark Mode ---------- */
html[data-theme="dark"] {
  --bg: #0B1120;
  --bg-alt: #0F172A;
  --surface: #131C2E;
  --surface-2: #1B263B;
  --border: #243049;
  --text: #E2E8F0;
  --text-soft: #94A3B8;
  --heading: #F8FAFC;
  --blue-50: #14213D;
  --shadow-lg: 0 18px 40px -12px rgba(0, 0, 0, .55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .3s var(--ease), color .3s var(--ease);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--heading); line-height: 1.2; font-weight: 700; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(48px, 8vw, 96px); }
.text-center { text-align: center; }
.muted { color: var(--text-soft); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-50);
  padding: 7px 14px; border-radius: var(--r-full);
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-top: 16px; letter-spacing: -.02em; }
.section-head p { color: var(--text-soft); margin-top: 12px; font-size: 1.05rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 14px 24px; border-radius: var(--r-full);
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn-ghost { background: var(--surface-2); color: var(--heading); }
.btn-ghost:hover { background: var(--gray-200); }
html[data-theme="dark"] .btn-ghost:hover { background: #24314c; }
.btn-outline { border: 1.5px solid var(--border); color: var(--heading); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 182, 122, .45); }
.btn-green:hover { filter: brightness(1.05); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-block { width: 100%; }
.btn-lg { padding: 17px 30px; font-size: 1rem; }
.btn-sm { padding: 10px 16px; font-size: .85rem; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-full); font-size: .78rem; font-weight: 600; }
.pill-green { background: var(--green-50); color: var(--green); }
.pill-blue { background: var(--blue-50); color: var(--blue); }
.pill-amber { background: #FEF3C7; color: #B45309; }
.pill-red { background: #FEE2E2; color: #DC2626; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--ink); color: #cbd5e1; font-size: .82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 22px; }
.topbar-left span { display: inline-flex; align-items: center; gap: 7px; }
.topbar-left svg { width: 14px; height: 14px; color: var(--blue); }
.topbar-right { display: flex; gap: 18px; }
.topbar-right a { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.brand { flex-shrink: 0; }
.brand svg, .brand img { height: 38px; width: auto; }
html[data-theme="dark"] .brand .logo-text { fill: #fff; }

.search {
  flex: 1; position: relative; max-width: 560px;
}
.search input {
  width: 100%; height: 48px; padding: 0 48px 0 46px;
  border: 1.5px solid var(--border); border-radius: var(--r-full);
  background: var(--surface-2); transition: border-color .2s, background .2s;
}
.search input:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.search .ic-search { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--gray-400); }
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 30; max-height: 60vh; overflow-y: auto;
}
.search-results a {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  border-bottom: 1px solid var(--border);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--surface-2); }
.search-results img { width: 42px; height: 42px; border-radius: 8px; background: var(--blue-50); object-fit: contain; }
.search-results .sr-name { font-weight: 600; font-size: .9rem; }
.search-results .sr-price { color: var(--blue); font-weight: 700; font-size: .85rem; }
.search-empty { padding: 18px 16px; color: var(--text-soft); font-size: .9rem; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: var(--r-full);
  display: grid; place-items: center; color: var(--heading);
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--blue); }
.icon-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700;
  border-radius: var(--r-full); display: grid; place-items: center; border: 2px solid var(--bg);
}
.badge.wish { background: var(--green); }
.menu-toggle { display: none; }

/* ---------- Nav + Mega menu ---------- */
.main-nav { border-top: 1px solid var(--border); background: var(--bg); }
.main-nav .container { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 15px 16px; font-weight: 600; font-size: .92rem; color: var(--heading);
  position: relative;
}
.nav-link svg { width: 16px; height: 16px; }
.nav-link::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); border-radius: 2px; }
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 90;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.2fr; gap: 8px 28px; padding: 32px 0 36px; }
.mega-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); margin-bottom: 12px; }
.mega-col a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: .92rem; color: var(--text); transition: background .15s, color .15s; }
.mega-col a:hover { background: var(--blue-50); color: var(--blue); }
.mega-col a .mi { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.mega-col a .mi svg { width: 18px; height: 18px; }
.mega-promo { background: linear-gradient(150deg, var(--blue), var(--ink)); color: #fff; border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; justify-content: space-between; }
.mega-promo h4 { color: #fff; font-size: 1.15rem; }
.mega-promo p { font-size: .86rem; color: #cdddff; margin: 8px 0 16px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 84px); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1100px 480px at 80% -10%, var(--blue-50), transparent 60%); z-index: -1; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-content .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.03em; }
.hero h1 .hl { color: var(--blue); }
.hero-content p { font-size: clamp(1rem, 2vw, 1.18rem); color: var(--text-soft); margin: 22px 0 32px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats { display: flex; gap: 34px; margin-top: 44px; flex-wrap: wrap; }
.hero-stats .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--heading); }
.hero-stats .lbl { font-size: .85rem; color: var(--text-soft); }
.hero-media { position: relative; }
.hero-media img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.hero-badge {
  position: absolute; background: var(--surface); box-shadow: var(--shadow-lg);
  border-radius: var(--r-md); padding: 13px 16px; display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--border);
}
.hero-badge .hb-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.hero-badge strong { display: block; font-size: .92rem; }
.hero-badge span { font-size: .76rem; color: var(--text-soft); }
.hero-badge.b1 { top: 24px; left: -14px; }
.hero-badge.b2 { bottom: 28px; right: -10px; }

/* Faixa de confiança */
.trust-strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.trust-strip .container { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 12px; padding-block: 26px; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item .ti-ic { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.trust-item .ti-ic svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: .94rem; }
.trust-item span { font-size: .8rem; color: var(--text-soft); }

/* ==========================================================================
   CATEGORIAS
   ========================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cat-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; overflow: hidden;
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card .cat-ic { width: 56px; height: 56px; border-radius: var(--r-md); background: linear-gradient(140deg, var(--blue), var(--ink)); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.cat-card .cat-ic svg { width: 28px; height: 28px; }
.cat-card h3 { font-size: 1.05rem; }
.cat-card p { font-size: .85rem; color: var(--text-soft); margin-top: 6px; }
.cat-card .cat-count { margin-top: 14px; font-size: .82rem; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 6px; }
.cat-card .cat-count svg { width: 15px; height: 15px; transition: transform .2s; }
.cat-card:hover .cat-count svg { transform: translateX(4px); }

/* ==========================================================================
   PRODUTOS
   ========================================================================== */
.products-grid { display: grid; grid-template-columns: repeat(1, 1fr); gap: 22px; }

.product-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pc-media { position: relative; aspect-ratio: 1/1; background: var(--blue-50); overflow: hidden; }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.05); }
.pc-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.pc-wish {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: var(--r-full);
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: var(--gray-500); box-shadow: var(--shadow-sm);
  transition: color .2s, transform .2s;
}
.pc-wish svg { width: 20px; height: 20px; }
.pc-wish:hover { transform: scale(1.1); color: var(--green); }
.pc-wish.active { color: var(--green); }
.pc-wish.active svg { fill: var(--green); }
.pc-quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  transform: translateY(120%); opacity: 0; transition: transform .3s var(--ease), opacity .3s;
}
.product-card:hover .pc-quick { transform: translateY(0); opacity: 1; }
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pc-brand { font-size: .76rem; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: .05em; }
.pc-title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin: 6px 0 8px; line-height: 1.35; }
.pc-title a:hover { color: var(--blue); }
.pc-rating { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-soft); margin-bottom: 12px; }
.pc-rating .stars { color: var(--amber); letter-spacing: 1px; }
.pc-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.pc-price .now { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--heading); }
.pc-price .was { font-size: .85rem; color: var(--text-soft); text-decoration: line-through; margin-left: 6px; }
.pc-stock { font-size: .76rem; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.pc-stock.in { color: var(--green); }
.pc-stock.low { color: var(--amber); }
.pc-stock.out { color: var(--red); }
.pc-stock .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pc-add { margin-top: 14px; }

.cards-cta { margin-top: 44px; text-align: center; }

/* ---------- Marcas ---------- */
.brands { background: var(--bg-alt); border-block: 1px solid var(--border); }
.brands-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.brand-chip {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em;
  color: var(--gray-400); padding: 10px 16px; transition: color .2s, transform .2s; display: inline-flex; align-items: center; gap: 8px;
}
.brand-chip svg { width: 22px; height: 22px; }
.brand-chip:hover { color: var(--blue); transform: translateY(-2px); }

/* ---------- Banner institucional ---------- */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--blue), var(--ink)); color: #fff; padding: clamp(36px, 6vw, 72px); }
.cta-banner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cta-banner::before { content: ""; position: absolute; left: -60px; bottom: -100px; width: 260px; height: 260px; border-radius: 50%; background: rgba(0, 182, 122, .18); }
.cta-banner-inner { position: relative; z-index: 1; max-width: 640px; }
.cta-banner h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.cta-banner p { color: #d6e4ff; margin: 16px 0 28px; font-size: 1.08rem; }
.cta-banner .hero-cta .btn-outline { border-color: rgba(255,255,255,.4); color: #fff; }
.cta-banner .hero-cta .btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Benefícios ---------- */
.benefits-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.benefit { display: flex; gap: 16px; padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: transform .25s var(--ease), box-shadow .25s; }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.benefit .b-ic { width: 50px; height: 50px; flex-shrink: 0; border-radius: var(--r-md); background: var(--green-50); color: var(--green); display: grid; place-items: center; }
.benefit .b-ic svg { width: 26px; height: 26px; }
.benefit h3 { font-size: 1.08rem; }
.benefit p { font-size: .9rem; color: var(--text-soft); margin-top: 6px; }

/* ---------- Depoimentos ---------- */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.testi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.testi .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 14px; }
.testi blockquote { font-size: 1.02rem; line-height: 1.7; }
.testi-author { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.testi-author .av { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--ink)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.testi-author strong { display: block; font-size: .94rem; }
.testi-author span { font-size: .8rem; color: var(--text-soft); }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--bg-alt); border-block: 1px solid var(--border); }
.newsletter-card { display: grid; gap: 24px; align-items: center; }
.newsletter h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.newsletter p { color: var(--text-soft); margin-top: 10px; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; height: 52px; padding: 0 18px; border: 1.5px solid var(--border); border-radius: var(--r-full); background: var(--surface); }
.newsletter input:focus { outline: none; border-color: var(--blue); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: #94a3b8; padding-top: 64px; }
html[data-theme="dark"] .site-footer { background: #060b16; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo-text { fill: #fff; }
.footer-brand p { margin: 18px 0; font-size: .9rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--r-full); background: rgba(255,255,255,.07); display: grid; place-items: center; color: #cbd5e1; transition: background .2s, color .2s, transform .2s; }
.footer-social a:hover { background: var(--blue); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; }
.footer-col a { display: block; padding: 7px 0; font-size: .9rem; transition: color .2s, padding .2s; }
.footer-col a:hover { color: #fff; padding-left: 5px; }
.footer-contact li { display: flex; gap: 10px; padding: 7px 0; font-size: .9rem; }
.footer-contact svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: .84rem; }
.footer-bottom .pays { display: flex; gap: 8px; }
.footer-bottom .pays span { padding: 5px 10px; background: rgba(255,255,255,.07); border-radius: 6px; font-size: .72rem; font-weight: 600; color: #cbd5e1; }

/* ==========================================================================
   PÁGINAS INTERNAS — estruturas comuns
   ========================================================================== */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding-block: 40px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--text-soft); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { color: var(--gray-400); }
.page-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.page-head p { color: var(--text-soft); margin-top: 8px; }

/* ---------- Catálogo (layout filtros + grid) ---------- */
.catalog { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.filters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.filters h3 { font-size: 1.05rem; margin-bottom: 4px; }
.filter-group { padding-block: 18px; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; }
.filter-group h4 { font-size: .9rem; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); cursor: pointer; }
.check .count { margin-left: auto; font-size: .78rem; color: var(--text-soft); }
.price-range { display: flex; align-items: center; gap: 10px; }
.price-range input[type=number] { width: 100%; height: 42px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); }
.range-slider { width: 100%; accent-color: var(--blue); margin-top: 14px; }
.filters-actions { margin-top: 18px; }

.catalog-main { min-width: 0; }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.catalog-toolbar .count-info { font-size: .9rem; color: var(--text-soft); }
.catalog-toolbar .count-info strong { color: var(--heading); }
.toolbar-right { display: flex; gap: 10px; align-items: center; }
.select { position: relative; }
.select select { height: 46px; padding: 0 40px 0 16px; border: 1.5px solid var(--border); border-radius: var(--r-full); background: var(--surface); appearance: none; font-weight: 600; font-size: .88rem; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--gray-500); border-bottom: 2px solid var(--gray-500); transform: translateY(-65%) rotate(45deg); pointer-events: none; }
.filter-toggle { display: none; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination button { width: 44px; height: 44px; border-radius: var(--r-md); border: 1.5px solid var(--border); font-weight: 600; transition: all .2s; }
.pagination button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pagination button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state svg { width: 64px; height: 64px; color: var(--gray-300); margin: 0 auto 18px; }
.empty-state h3 { font-size: 1.3rem; }
.empty-state p { color: var(--text-soft); margin: 8px 0 22px; }

/* ---------- Página do produto ---------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.gallery .gallery-main { background: var(--blue-50); border: 1px solid var(--border); border-radius: var(--r-lg); aspect-ratio: 1/1; overflow: hidden; }
.gallery .gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 14px; }
.gallery-thumbs button { width: 78px; height: 78px; border-radius: var(--r-md); border: 2px solid var(--border); overflow: hidden; background: var(--blue-50); transition: border-color .2s; }
.gallery-thumbs button.active { border-color: var(--blue); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd-info .pd-brand { font-weight: 600; color: var(--blue); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.pd-info h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 8px 0 14px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: .88rem; color: var(--text-soft); padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.pd-meta .stars { color: var(--amber); }
.pd-price { display: flex; align-items: baseline; gap: 14px; margin: 22px 0; }
.pd-price .now { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--heading); }
.pd-price .was { font-size: 1.1rem; color: var(--text-soft); text-decoration: line-through; }
.pd-desc { color: var(--text-soft); margin-bottom: 24px; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--r-full); overflow: hidden; }
.qty button { width: 46px; height: 50px; font-size: 1.3rem; color: var(--heading); transition: background .15s; }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 54px; height: 50px; text-align: center; border: none; background: transparent; font-weight: 700; }
.pd-actions-row { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pd-trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.pd-trust .t { display: flex; gap: 11px; align-items: center; font-size: .85rem; }
.pd-trust .t svg { width: 22px; height: 22px; color: var(--blue); flex-shrink: 0; }

.tabs { margin-top: 56px; }
.tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tab-nav button { padding: 14px 20px; font-weight: 600; color: var(--text-soft); position: relative; white-space: nowrap; }
.tab-nav button.active { color: var(--blue); }
.tab-nav button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--blue); }
.tab-panel { padding-top: 28px; max-width: 820px; }
.tab-panel.hidden { display: none; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table th { text-align: left; padding: 14px 0; width: 40%; color: var(--text-soft); font-weight: 600; font-size: .9rem; }
.spec-table td { padding: 14px 0; font-weight: 500; }

/* ---------- Carrinho ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); align-items: center; }
.cart-item img { width: 90px; height: 90px; border-radius: var(--r-md); background: var(--blue-50); object-fit: cover; }
.ci-info h3 { font-size: 1rem; }
.ci-info .ci-sku { font-size: .78rem; color: var(--text-soft); }
.ci-controls { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.ci-price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.ci-remove { color: var(--text-soft); font-size: .82rem; display: inline-flex; align-items: center; gap: 5px; }
.ci-remove:hover { color: var(--red); }
.ci-remove svg { width: 15px; height: 15px; }

.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { font-size: 1.2rem; margin-bottom: 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; font-size: .94rem; }
.summary-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 18px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.summary-row .free { color: var(--green); font-weight: 600; }
.coupon { display: flex; gap: 8px; margin: 16px 0; }
.coupon input { flex: 1; height: 46px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); text-transform: uppercase; }
.coupon input:focus { outline: none; border-color: var(--blue); }
.shipping-calc { display: flex; gap: 8px; margin: 16px 0; }
.shipping-calc input { flex: 1; height: 46px; padding: 0 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); }

/* ---------- Checkout (stepper) ---------- */
.stepper { display: flex; justify-content: space-between; max-width: 720px; margin: 0 auto 44px; position: relative; }
.stepper::before { content: ""; position: absolute; top: 19px; left: 8%; right: 8%; height: 2px; background: var(--border); z-index: 0; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; flex: 1; }
.step .dot { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); display: grid; place-items: center; font-weight: 700; color: var(--text-soft); transition: all .3s; }
.step .lbl { font-size: .78rem; font-weight: 600; color: var(--text-soft); }
.step.active .dot { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 5px var(--blue-50); }
.step.active .lbl { color: var(--blue); }
.step.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.checkout-step { display: none; }
.checkout-step.active { display: block; animation: fadeUp .4s var(--ease); }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.form-card h3 { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.col-2 { grid-column: span 1; }
.field label { font-size: .85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  height: 50px; padding: 0 16px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  background: var(--surface-2); transition: border-color .2s, background .2s;
}
.field textarea { height: auto; padding: 14px 16px; min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--surface); }
.field .err { color: var(--red); font-size: .78rem; display: none; }
.field.invalid input, .field.invalid select { border-color: var(--red); }
.field.invalid .err { display: block; }
.pay-methods { display: grid; gap: 12px; }
.pay-option { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--r-md); cursor: pointer; transition: border-color .2s, background .2s; }
.pay-option:hover { border-color: var(--blue); }
.pay-option input { accent-color: var(--blue); width: 20px; height: 20px; }
.pay-option.selected { border-color: var(--blue); background: var(--blue-50); }
.pay-option .pm-ic { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; color: var(--blue); }
.checkout-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

/* ---------- Auth (login/register) ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-aside { display: none; background: linear-gradient(150deg, var(--blue), var(--ink)); color: #fff; padding: 56px; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); }
.auth-aside h2 { color: #fff; font-size: 2rem; position: relative; }
.auth-aside p { color: #d6e4ff; margin-top: 16px; position: relative; }
.auth-aside ul { margin-top: 28px; display: grid; gap: 14px; position: relative; }
.auth-aside li { display: flex; gap: 12px; align-items: center; }
.auth-aside li svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }
.auth-form-side { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.8rem; }
.auth-card > p { color: var(--text-soft); margin: 8px 0 28px; }
.auth-card .form-grid { gap: 16px; }
.divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--text-soft); font-size: .85rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-btns { display: grid; gap: 10px; }
.auth-foot { text-align: center; margin-top: 24px; font-size: .9rem; color: var(--text-soft); }
.auth-foot a { color: var(--blue); font-weight: 600; }
.remember-row { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.remember-row label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.remember-row a { color: var(--blue); font-weight: 600; }

/* ---------- Área do cliente ---------- */
.account-layout { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.account-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.account-user { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--border); }
.account-user .av { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--ink)); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); }
.account-user strong { display: block; }
.account-user span { font-size: .82rem; color: var(--text-soft); }
.account-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); font-weight: 600; font-size: .92rem; color: var(--text); transition: background .15s, color .15s; }
.account-nav a svg { width: 19px; height: 19px; }
.account-nav a:hover { background: var(--surface-2); }
.account-nav a.active { background: var(--blue); color: #fff; }
.account-panel { display: none; }
.account-panel.active { display: block; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.stat-card .sc-ic { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.stat-card .num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; }
.stat-card .lbl { font-size: .82rem; color: var(--text-soft); }
.order-row { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 14px; }
.order-row .or-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 14px; }
.order-row .or-id { font-weight: 700; font-family: var(--font-display); }
.order-row .or-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: .85rem; }
.order-row .or-meta span { color: var(--text-soft); }
.order-row .or-meta strong { display: block; }

/* ---------- Contato / Sobre ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
.contact-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; display: flex; gap: 14px; }
.contact-info-card .ci-ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.contact-info-card h4 { font-size: 1rem; }
.contact-info-card p { font-size: .9rem; color: var(--text-soft); margin-top: 4px; }
.map-embed { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16/7; background: var(--bg-alt); display: grid; place-items: center; color: var(--text-soft); }

.about-hero { display: grid; gap: 36px; align-items: center; }
.about-img img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.values-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.value-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; }
.value-card .v-ic { width: 50px; height: 50px; border-radius: var(--r-md); background: var(--green-50); color: var(--green); display: grid; place-items: center; margin-bottom: 16px; }
.stats-band { background: linear-gradient(135deg, var(--blue), var(--ink)); border-radius: var(--r-xl); color: #fff; padding: clamp(36px, 6vw, 64px); }
.stats-band-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; text-align: center; }
.stats-band .num { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; }
.stats-band .lbl { color: #cdddff; font-size: .9rem; margin-top: 4px; }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 12px; max-width: calc(100vw - 32px); }
.toast {
  display: flex; align-items: center; gap: 13px; min-width: 280px; max-width: 380px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--blue);
  border-radius: var(--r-md); padding: 14px 16px; box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease);
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.leaving { animation: toastOut .3s var(--ease) forwards; }
.toast .t-ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.toast.success .t-ic { background: var(--green-50); color: var(--green); }
.toast.error .t-ic { background: #FEE2E2; color: var(--red); }
.toast .t-ic { background: var(--blue-50); color: var(--blue); }
.toast strong { font-size: .92rem; display: block; }
.toast p { font-size: .82rem; color: var(--text-soft); }
.toast .t-close { margin-left: auto; color: var(--gray-400); }
.toast svg { width: 20px; height: 20px; }

/* ---------- Mobile drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); backdrop-filter: blur(2px); z-index: 200; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(86vw, 360px); background: var(--bg); z-index: 201; transform: translateX(-100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.drawer-nav { padding: 12px; overflow-y: auto; flex: 1; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); font-weight: 600; }
.drawer-nav a:hover { background: var(--surface-2); color: var(--blue); }
.drawer-nav a svg { width: 19px; height: 19px; }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border); display: grid; gap: 10px; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; bottom: 24px; left: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-blue); z-index: 90; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--blue-600); }

/* ---------- Skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--gray-200) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-md); }
