/* ===================================================
   SIMULANDO NEGÓCIOS — Design System
   =================================================== */

/* ---------- Reset & Variables ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:       #1b6ca8;
  --primary-dark:  #134e7e;
  --primary-light: #e8f1fb;
  --accent:        #f97316;
  --accent-dark:   #ea6200;
  --success:       #16a34a;
  --warning:       #ca8a04;
  --danger:        #dc2626;
  --bg:            #f4f7fb;
  --bg-card:       #ffffff;
  --text:          #1e293b;
  --text-muted:    #64748b;
  --border:        #e2e8f0;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.13);
  --radius:        12px;
  --radius-sm:     6px;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --transition:    .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

.text-muted  { color: var(--text-muted); }
.text-small  { font-size: .85rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-bold   { font-weight: 700; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-accent  { color: var(--accent); }
.text-primary { color: var(--primary); }

/* ---------- Layout Utilities ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.main-content {
  flex: 1;
  padding: 2rem 0 3rem;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap    { flex-wrap: wrap; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ---------- Header ---------- */
.site-header {
  background: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.3px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; color: #fff; }

.logo-icon {
  background: var(--accent);
  color: #fff;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.logo-sub {
  font-size: .7rem;
  font-weight: 400;
  opacity: .8;
  display: block;
  line-height: 1;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.main-nav a {
  color: rgba(255,255,255,.85);
  padding: .45rem .85rem;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-weight: 500;
  transition: var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
  background: rgba(255,255,255,.15);
  color: #fff;
  text-decoration: none;
}

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: .45rem 1.1rem !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary-light);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.card-subtitle {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-dark); color: #fff; }

.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { background: #15803d; color: #fff; }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { background: var(--border); color: var(--text); }

.btn-sm { padding: .4rem .85rem; font-size: .82rem; }
.btn-lg { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Form Elements ---------- */
.form-group { margin-bottom: 1rem; }

label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .92rem;
  font-family: var(--font);
  color: var(--text);
  background: #fff;
  transition: border-color var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,108,168,.12);
}

input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.input-group {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
}
.input-group .form-group { flex: 1; margin-bottom: 0; }

.input-prefix {
  position: relative;
}
.input-prefix span {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .9rem;
}
.input-prefix input { padding-left: 2.25rem; }

/* ---------- Summary Box ---------- */
.summary-box {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.summary-box h4 { color: rgba(255,255,255,.8); font-size: .85rem; font-weight: 500; }
.summary-box .amount {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.1;
}
.summary-box .sub { font-size: .82rem; opacity: .75; margin-top: .25rem; }

.result-green { background: linear-gradient(135deg, #065f46, var(--success)); }
.result-orange { background: linear-gradient(135deg, #92400e, var(--accent)); }
.result-red    { background: linear-gradient(135deg, #7f1d1d, var(--danger)); }

/* ---------- Item Lists (inside cards) ---------- */
.item-list { display: flex; flex-direction: column; gap: .5rem; }

.item-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.item-row:hover { border-color: var(--primary); background: var(--primary-light); }

.item-name { flex: 1; font-size: .92rem; font-weight: 500; }
.item-value { font-weight: 700; color: var(--primary); min-width: 100px; text-align: right; }
.item-detail { font-size: .78rem; color: var(--text-muted); }

.item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: .2rem .4rem;
  border-radius: 4px;
  transition: var(--transition);
  font-size: .9rem;
}
.item-remove:hover { color: var(--danger); background: #fef2f2; }

/* ---------- Tax Breakdown ---------- */
.tax-breakdown {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: .85rem;
  margin-top: .5rem;
}

.tax-line {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding: .2rem 0;
  border-bottom: 1px dashed #fde68a;
}
.tax-line:last-child { border-bottom: none; font-weight: 700; color: var(--danger); }

/* ---------- Progress / Gauge ---------- */
.progress-bar {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .4rem;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .5s ease;
  background: var(--primary);
}
.progress-fill.success { background: var(--success); }
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger  { background: var(--danger); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-warning { background: #fef9c3; color: var(--warning); }
.badge-danger  { background: #fee2e2; color: var(--danger); }
.badge-accent  { background: #fff7ed; color: var(--accent); }

/* ---------- Tip Box ---------- */
.tip-box {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
}
.tip-box.warning { border-color: var(--warning); background: #fefce8; }
.tip-box.success { border-color: var(--success); background: #f0fdf4; }
.tip-box.danger  { border-color: var(--danger);  background: #fef2f2; }

.tip-box strong { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }

/* ---------- Section Divider ---------- */
.section-header {
  margin-bottom: 2rem;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: .5rem;
}
.section-header.centered h2::after { margin: .5rem auto 0; }

/* ---------- Hero (Home) ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #1e90d5 100%);
  color: #fff;
  padding: 4rem 1.25rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 50px;
  background: var(--bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}
.hero-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.hero-title span { color: #ffd580; }
.hero-subtitle { font-size: 1.15rem; opacity: .9; margin-bottom: 1.75rem; line-height: 1.6; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ---------- Feature Blocks (Home) ---------- */
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: auto;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-brand h3 { color: #fff; margin-bottom: .5rem; font-size: 1.1rem; }
.footer-brand p  { font-size: .85rem; line-height: 1.65; }

.footer-col h4 { color: #fff; margin-bottom: .85rem; font-size: .92rem; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .85rem; transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: .5rem;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 2.5rem 1.25rem;
  text-align: center;
}
.page-hero h1 { margin-bottom: .5rem; }
.page-hero p  { opacity: .85; font-size: 1rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--text-muted);
  padding: .75rem 0;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span:last-child { color: var(--text); font-weight: 600; }

/* ---------- Sidebar Layout ---------- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.sidebar-ad {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ---------- Steps (Como Funciona) ---------- */
.steps { counter-reset: step; }
.step-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.step-num {
  counter-increment: step;
  width: 44px; height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.step-num::after { content: counter(step); }
.step-body h4 { margin-bottom: .4rem; }

/* ---------- Accordion (Glossário, FAQ) ---------- */
.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  overflow: hidden;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  background: #fff;
  user-select: none;
  transition: background var(--transition);
}
.accordion-header:hover { background: var(--primary-light); }
.accordion-icon { transition: transform var(--transition); font-size: .85rem; color: var(--text-muted); }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 1.25rem;
  background: #fafafa;
}
.accordion-item.open .accordion-body {
  max-height: 600px;
  padding: 1rem 1.25rem;
}

/* ---------- Stats Row ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-card .value { font-size: 1.7rem; font-weight: 800; line-height: 1; color: var(--primary); }
.stat-card .label { font-size: .8rem; color: var(--text-muted); margin-top: .35rem; }

/* ---------- Tags (Dicas) ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tag:hover, .tag.active { background: var(--primary); color: #fff; }

/* ---------- Article Card (Dicas) ---------- */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-body { padding: 1.25rem; }
.article-category {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .5rem;
}
.article-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.35; }
.article-excerpt { font-size: .85rem; color: var(--text-muted); line-height: 1.55; }
.article-meta { font-size: .78rem; color: var(--text-muted); margin-top: .75rem; display: flex; gap: 1rem; }

/* ---------- Results Panel ---------- */
.result-panel {
  background: #f8fafc;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.result-panel.has-result {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ---------- Sticky Calc Bar ---------- */
.sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 2px solid var(--border);
  padding: .65rem 1.25rem;
  z-index: 50;
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  display: none;
}
.sticky-bar.visible { display: flex; }
.sticky-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.sticky-metric { text-align: center; }
.sticky-metric .label { font-size: .7rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.sticky-metric .val   { font-size: 1.1rem; font-weight: 800; color: var(--primary); }

/* ---------- Simulator Tabs ---------- */
.sim-tabs {
  display: flex;
  gap: .25rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
}
.sim-tab {
  background: none;
  border: none;
  padding: .65rem 1.1rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.sim-tab:hover { color: var(--primary); }
.sim-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar-ad { position: static; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--primary-dark);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: .25rem; }
  .main-nav a { display: block; }
  .header-inner { position: relative; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .hero { padding: 3rem 1.25rem 4rem; }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .sidebar-ad { grid-template-columns: 1fr; }
  .input-group { flex-direction: column; align-items: stretch; }
  .input-group .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .affiliate-ads-widget, .sticky-bar, .hamburger { display: none !important; }
  .main-content { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; }
}

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .4s ease forwards; }

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .6; } }
.pulse { animation: pulse 1.8s infinite; }

/* ---------- Seletor de tipo de produto ---------- */
.product-type-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
  text-align: center;
  user-select: none;
}
.product-type-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27,108,168,.1);
}
.product-type-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(27,108,168,.15);
}
.product-type-card .type-icon { font-size: 2rem; margin-bottom: .4rem; }
.product-type-card strong    { display: block; font-size: 1rem; margin-bottom: .3rem; }
.product-type-card p         { margin: 0; line-height: 1.4; }
