/* =========================================================
   EXTINPASA — Design tokens
   Paleta: neutros frios + vermelho-chama + amarelo-segurança
   Tipografia: Barlow Condensed (display, industrial/sinalização)
               + Inter (texto)
   Assinatura visual: faixa "hazard stripe" (referência a
   sinalização de segurança) usada como divisor de seção.
   ========================================================= */
:root {
  --bg: #F2F3EF;
  --panel: #FFFFFF;
  --ink: #14181C;
  --ink-soft: #4B535A;
  --muted: #7A828A;
  --line: #E2E4DE;
  --flame: #E14E1D;
  --flame-dark: #B93E15;
  --flame-light: #FCE7DF;
  --yellow: #F5B700;
  --whatsapp: #22A559;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(20, 24, 28, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 24, 28, 0.12);
  --display: 'Barlow Condensed', sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: 72px; /* espaço p/ nav mobile fixa */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); text-transform: uppercase; }
h3 { font-size: 1.35rem; }
p { line-height: 1.6; color: var(--ink-soft); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--flame); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Hazard stripe — elemento assinatura da marca */
.hazard-strip {
  height: 6px;
  background: repeating-linear-gradient(135deg, var(--yellow) 0 18px, var(--ink) 18px 36px);
}

/* ---------- Header ---------- */
.topbar { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo-sm { height: 30px; }
.nav-desktop { display: none; gap: 28px; }
.nav-desktop a {
  font-weight: 600; font-size: 0.95rem; color: #C9CDD1; text-transform: uppercase;
  letter-spacing: 0.03em; padding-bottom: 4px; border-bottom: 2px solid transparent;
}
.nav-desktop a:hover, .nav-desktop a.active { color: #fff; border-color: var(--flame); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.quote-cart-badge {
  position: absolute; top: -4px; right: -4px; background: var(--flame); color: #fff;
  font-size: 0.65rem; font-weight: 700; line-height: 1; min-width: 16px; height: 16px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-flame { background: var(--flame); color: #fff; }
.btn-flame:hover { background: var(--flame-dark); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; display: none; }
.btn-whatsapp:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-icon { padding: 10px; border-radius: 999px; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn-danger { background: #fff; color: #C4331D; border-color: #F0C6BC; }
.btn-danger:hover { background: #FDF0EC; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .btn-whatsapp { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, #1c2329 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('/img/fachada-extinpasa.jpg');
  background-size: 150%; background-position: center 62%; background-repeat: no-repeat;
  opacity: 0.16;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(20,24,28,0.55) 45%, var(--ink) 100%);
  z-index: 0;
}
.hero-inner {
  padding: 56px 20px 64px; display: flex; flex-direction: column; gap: 24px; text-align: center;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; align-self: center;
  background: rgba(225,78,29,0.12); color: var(--flame); border: 1px solid rgba(225,78,29,0.4);
  padding: 6px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.hero h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero h1 .flame-word { color: var(--flame); }
.hero-lead { color: #C9CDD1; font-size: 1.05rem; max-width: 52ch; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center;
}
.hero-stat b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--yellow); }
.hero-stat span { font-size: 0.8rem; color: #9AA1A7; text-transform: uppercase; letter-spacing: 0.04em; }

@media (min-width: 860px) {
  .hero-inner { padding: 84px 20px 90px; max-width: 1180px; margin: 0 auto; }
}

/* ---------- Seções gerais ---------- */
.section { padding: 48px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head p { margin: 0; max-width: 60ch; }
.section-tag {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--flame); display: block; margin-bottom: 6px;
}

/* ---------- Grid de categorias/serviços ---------- */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  transition: box-shadow .15s ease, transform .15s ease;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.service-card-img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; margin-bottom: 2px; }
.service-num { font-family: var(--display); font-size: 0.85rem; color: var(--muted); }
.service-card h3 { margin: 0; font-size: 1.1rem; text-transform: none; font-family: var(--body); font-weight: 700; }
.service-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Cards de produto ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-thumb {
  aspect-ratio: 4/3; background: var(--flame-light); display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb-fallback { color: var(--flame); opacity: 0.55; }
.product-badge {
  position: absolute; top: 8px; left: 8px; background: var(--yellow); color: var(--ink);
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px;
}
.product-card-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-category { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--flame); font-weight: 700; }
.product-body h3 { font-size: 0.98rem; font-family: var(--body); text-transform: none; margin: 0; }
.product-body p { font-size: 0.84rem; margin: 0; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 14px; }
.product-price { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }

.btn-quote-add {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--flame); cursor: pointer; padding: 0;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-quote-add:hover { background: var(--flame-light); border-color: var(--flame); }
.btn-quote-add .icon-added { display: none; }
.btn-quote-add.added { background: var(--flame); border-color: var(--flame); color: #fff; }
.btn-quote-add.added .icon-add { display: none; }
.btn-quote-add.added .icon-added { display: block; }

/* ---------- Filtros do catálogo ---------- */
.filters {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 14px; -ms-overflow-style: none; scrollbar-width: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.search-box { display: flex; gap: 8px; margin-bottom: 8px; }
.search-box input {
  flex: 1; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 0.95rem;
  font-family: var(--body);
}

/* ---------- Página de produto ---------- */
.product-detail { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; gap: 44px; } }
.product-gallery { border-radius: var(--radius); overflow: hidden; background: var(--flame-light); aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; }
.product-gallery img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--flame); font-weight: 600; }

/* ---------- Formulários ---------- */
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--body);
  font-size: 0.95rem; background: #fff; color: var(--ink);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) {
  .field-row.cols-2 { grid-template-columns: 1fr 1fr; }
  .field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.checkbox-row { display: flex; align-items: center; gap: 8px; }
.checkbox-row input { width: auto; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 16px; }
.alert-error { background: #FDECEA; color: #A32A16; border: 1px solid #F4C2B8; }
.alert-success { background: #E9F7EE; color: #1E7A3C; border: 1px solid #BEE6CB; }

/* ---------- Login admin ---------- */
.login-wrap {
  min-height: calc(100vh - 72px); display: flex; align-items: center; justify-content: center; padding: 40px 20px;
  background: var(--ink);
}
.login-card {
  width: 100%; max-width: 380px; background: var(--panel); border-radius: 14px; padding: 32px 28px; box-shadow: var(--shadow-lg);
}
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.login-title { font-family: var(--display); text-transform: uppercase; font-size: 1.6rem; margin-bottom: 4px; }
.login-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }

/* ---------- Painel admin ---------- */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg); }
.admin-sidebar {
  width: 240px; max-width: 80vw; background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 20px 14px;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 80;
  transform: translateX(-100%); transition: transform .2s ease;
}
.admin-sidebar.open { transform: translateX(0); }
.admin-sidebar a {
  padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 600; color: #C9CDD1; margin-bottom: 4px;
}
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 70; }
.admin-sidebar-backdrop.open { display: block; }
@media (min-width: 900px) {
  .admin-sidebar { position: sticky; top: 0; transform: none; transition: none; }
  .admin-sidebar-backdrop { display: none !important; }
}
.admin-main { flex: 1; padding: 24px 18px 90px; max-width: 1100px; }
@media (min-width: 900px) { .admin-main { padding: 32px 40px; } }
.admin-topbar-mobile {
  display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; padding: 14px 18px;
}
.admin-topbar-mobile .brand { flex: 1; }
@media (min-width: 900px) { .admin-topbar-mobile { display: none; } }

.admin-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat-card b { display: block; font-family: var(--display); font-size: 1.8rem; }
.stat-card span { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; }

.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: #F7F8F5; font-size: 0.75rem; text-transform: uppercase; color: var(--muted); letter-spacing: 0.03em; }
tr:last-child td { border-bottom: none; }
.table-thumb { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; background: var(--flame-light); }
.table-actions { display: flex; gap: 6px; }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.badge-yellow { background: #FDF0CC; color: #8A6200; }
.badge-gray { background: #EFF0EC; color: var(--muted); }
.badge-green { background: #DFF5E7; color: #1B7A3E; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }

.current-image { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.current-image img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Mobile bottom nav (estilo app) ---------- */
.mobile-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.mobile-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.62rem; color: var(--muted);
  font-weight: 600; padding: 4px 0;
}
.mobile-nav a.active { color: var(--flame); }
.mobile-nav-cta {
  background: var(--whatsapp); color: #fff !important; border-radius: 14px; margin: 0 2px; padding: 6px 0 !important;
}
@media (min-width: 900px) { .mobile-nav { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9CDD1; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 40px 20px; }
@media (min-width: 720px) { .footer-inner { grid-template-columns: 2fr 1fr 1fr; } }
.footer-col h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.footer-col p { color: #9AA1A7; font-size: 0.88rem; margin: 0 0 6px; }
.footer-col a:hover { color: #fff; }
.footer-desc { max-width: 40ch; }
.footer-bottom { padding: 16px 20px 28px; font-size: 0.78rem; color: #6E767D; }

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.empty-icon { opacity: 0.35; margin-bottom: 12px; }

/* ---------- Orçamento (carrinho para WhatsApp) ---------- */
.quote-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.quote-modal[hidden] { display: none; }
.quote-modal-backdrop { position: absolute; inset: 0; background: rgba(20,24,28,0.55); }
.quote-modal-card {
  position: relative; background: var(--panel); border-radius: 14px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px; max-height: 84vh; overflow-y: auto; padding: 22px;
}
.quote-modal-card-sm { max-width: 380px; }
.quote-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quote-modal-x { background: none; border: none; cursor: pointer; color: var(--muted); padding: 4px; }
.quote-modal-x:hover { color: var(--ink); }
.quote-modal-empty { font-size: 0.9rem; color: var(--muted); }
.quote-modal-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.quote-modal-item {
  background: var(--bg); border-radius: 8px; padding: 10px; font-size: 0.88rem;
}
.quote-modal-item-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.quote-modal-item-name { font-weight: 600; }
.quote-modal-remove {
  background: none; border: none; cursor: pointer; color: var(--muted); font-size: 1.1rem; line-height: 1;
  flex-shrink: 0; padding: 0 4px;
}
.quote-modal-remove:hover { color: var(--flame); }
.quote-modal-item-fields { display: flex; align-items: center; gap: 8px; }
.quote-qty-label {
  display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); flex-shrink: 0;
}
.quote-qty-input {
  width: 52px; padding: 6px 4px; text-align: center; border: 1px solid var(--line); border-radius: 6px; font-size: 0.85rem;
}
.quote-note-input {
  flex: 1; min-width: 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 0.85rem;
}
.quote-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

.quote-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px;
  font-size: 0.85rem; box-shadow: var(--shadow-lg); z-index: 210;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.quote-toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 899px) { .quote-toast { bottom: 84px; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }

/* ---------- Flama (assistente de IA) ---------- */
.flama-bubble {
  position: fixed; right: 20px; bottom: 90px; z-index: 150;
  width: 62px; height: 62px; border-radius: 50%;
  background: #fff; border: 3px solid var(--flame); box-shadow: var(--shadow-lg); cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden;
}
.flama-bubble[hidden] { display: none; }
.flama-bubble-icon { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.flama-panel {
  position: fixed; right: 20px; bottom: 90px; z-index: 150;
  width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: 70vh;
  background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.flama-panel[hidden] { display: none; }
.flama-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: linear-gradient(135deg, var(--flame) 0%, var(--flame-dark) 100%); color: #fff; flex-shrink: 0;
}
.flama-avatar {
  width: 42px; height: 42px; object-fit: cover; border-radius: 50%; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.7); background: #fff;
}
.flama-head-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; }
.flama-head-text span { font-size: 0.75rem; opacity: 0.85; }
.flama-x { background: none; border: none; color: #fff; opacity: 0.85; cursor: pointer; padding: 4px; }
.flama-x:hover { opacity: 1; }
.flama-messages { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.flama-msg { max-width: 85%; padding: 8px 12px; border-radius: var(--radius); font-size: 0.88rem; line-height: 1.4; white-space: pre-wrap; }
.flama-msg-assistant { background: var(--flame-light); align-self: flex-start; }
.flama-msg-user { background: var(--ink); color: #fff; align-self: flex-end; }
.flama-typing { opacity: 0.6; font-style: italic; }
.flama-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; flex-shrink: 0; }
.flama-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px;
  font-size: 0.8rem; cursor: pointer; color: var(--ink);
}
.flama-chip:hover { border-color: var(--flame); color: var(--flame); }
.flama-input-row { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); flex-shrink: 0; }
.flama-input-row input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; font-size: 0.88rem; }
.flama-products { display: flex; flex-direction: column; gap: 6px; align-self: flex-start; max-width: 85%; }
.flama-product-card {
  display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px; text-decoration: none; color: var(--ink); background: #fff; font-size: 0.85rem;
}
.flama-product-card:hover { border-color: var(--flame); }
.flama-product-card span { color: var(--muted); font-size: 0.78rem; }
@media (max-width: 899px) {
  .flama-bubble, .flama-panel { bottom: 84px; }
}
@media (max-width: 480px) {
  .flama-panel { right: 8px; left: 8px; width: auto; height: 70vh; }
  .flama-bubble { right: 16px; }
}
