:root {
  --primary: #090a0d;
  --primary-light: #16181f;
  --accent: #18181b;
  --accent-hover: #27272a;
  --silver: #e2e8f0;
  --silver-muted: #94a3b8;
  --highlight: #f8fafc;
  --whatsapp: #25d366;
  --whatsapp-hover: #1ebe5d;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #18181b;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); line-height: 1.5; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }

/* Faixa Superior */
.top-bar {
  background: #050608;
  color: #cbd5e1;
  font-size: 0.78rem;
  padding: 0.48rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.top-bar-contacts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.top-bar-sep {
  color: rgba(255, 255, 255, 0.2);
  user-select: none;
}
.top-bar-link,
.top-bar-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.top-bar-link:hover,
.top-bar-social-link:hover {
  color: #ffffff;
}
.top-bar-link svg,
.top-bar-social-link svg {
  color: #e2e8f0;
  flex-shrink: 0;
}
.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .top-bar-sep { display: none; }
  .top-bar-inner { justify-content: center; text-align: center; }
}

/* Header Principal */
.main-header {
  background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.22);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 0.85rem 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: #fff; flex-shrink: 0; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid rgba(226, 232, 240, 0.45);
  box-shadow: 0 2px 10px rgba(0,0,0,0.45);
  background: #000; flex-shrink: 0;
}
.brand-name {
  font-size: 1.38rem; font-weight: 800; line-height: 1.05; letter-spacing: 0.04em;
  text-transform: uppercase; color: #f8fafc;
}
.brand-sub {
  font-size: 0.7rem; color: #cbd5e1; text-transform: uppercase;
  letter-spacing: 0.12em; margin-top: 2px;
}

/* Barra de Busca no Header */
.header-search {
  flex: 1; max-width: 540px; display: flex; background: #fff; border-radius: 99px; overflow: hidden;
  border: 2px solid transparent; transition: border-color 0.2s;
}
.header-search:focus-within { border-color: #38bdf8; }
.header-search input {
  flex: 1; border: none; padding: 0.65rem 1.15rem; font-size: 0.92rem; color: var(--text); outline: none;
}
.header-search button {
  background: #f1f5f9; border: none; padding: 0 1.1rem; cursor: pointer; font-size: 1rem; transition: 0.2s;
}
.header-search button:hover { background: #e2e8f0; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.btn-header-wa {
  color: #e2e8f0; text-decoration: none; font-size: 0.88rem; font-weight: 600;
  padding: 0.55rem 0.9rem; border-radius: 8px; border: 1px solid rgba(255,255,255,0.18); transition: 0.2s;
}
.btn-header-wa:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-header-cart {
  background: #f8fafc; color: #090a0d; border: none; padding: 0.6rem 1.05rem; border-radius: 99px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; transition: 0.2s;
}
.btn-header-cart:hover { background: #e2e8f0; }
.cart-badge {
  background: #090a0d; color: #fff; font-size: 0.78rem; font-weight: 800;
  padding: 0.1rem 0.5rem; border-radius: 99px;
}

/* Barra Horizontal de Categorias */
.category-nav {
  background: #ffffff; border-bottom: 1px solid var(--border); overflow-x: auto;
}
.category-nav-inner {
  display: flex; align-items: center; gap: 0.4rem; padding-top: 0.55rem; padding-bottom: 0.55rem;
  white-space: nowrap;
}
.cat-pill {
  background: transparent; border: none; color: #475569; font-weight: 600; font-size: 0.86rem;
  padding: 0.45rem 0.9rem; border-radius: 99px; cursor: pointer; transition: 0.2s;
}
.cat-pill:hover { background: #f1f5f9; color: var(--primary); }
.cat-pill.active { background: var(--primary); color: #fff; }

/* Banner Hero com Carrossel */
.hero-banner {
  background: #07080a;
  color: #fff;
  padding: 4.25rem 0 4.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1s ease-in-out, transform 6.5s ease-out;
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    95deg,
    rgba(7, 8, 10, 0.92) 0%,
    rgba(13, 15, 20, 0.78) 52%,
    rgba(7, 8, 10, 0.48) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-tag {
  display: inline-block;
  width: fit-content;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: #e2e8f0;
  border: 1px solid rgba(226, 232, 240, 0.32);
  padding: 0.25rem 0.85rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-content h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.hero-content p {
  color: #e2e8f0;
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  display: flex;
  gap: 0.85rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* Setas e indicadores do carrossel */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(9, 10, 13, 0.55);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.hero-arrow.prev { left: 16px; }
.hero-arrow.next { right: 16px; }

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 26px;
  background: #ffffff;
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 2.3rem 0 2.9rem;
  }
  .hero-arrow {
    display: none;
  }
}

/* Botões Gerais */
.btn {
  padding: 0.65rem 1.2rem; border: none; border-radius: 8px; font-weight: 600;
  cursor: pointer; transition: 0.2s; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-accent { background: var(--highlight); color: #0f172a; font-weight: 700; }
.btn-accent:hover { background: #d97706; color: #fff; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; width: 100%; font-size: 1rem; padding: 0.85rem; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline-light { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn-outline-light:hover { background: rgba(255,255,255,0.2); }
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-sm { padding: 0.35rem 0.7rem; font-size: 0.8rem; }

/* Faixa de Pilares */
.trust-strip { background: #fff; border-bottom: 1px solid var(--border); padding: 1.35rem 0; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.trust-item { display: flex; align-items: center; gap: 0.85rem; }
.trust-icon {
  width: 44px; height: 44px; border-radius: 10px; background: #eff6ff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.trust-item strong { display: block; font-size: 0.92rem; color: var(--primary); }
.trust-item span { font-size: 0.8rem; color: var(--muted); }

/* Seção do Catálogo */
.catalog-section { padding-top: 2.25rem; padding-bottom: 3.5rem; }
.catalog-toolbar {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.75rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.section-title { font-size: 1.55rem; font-weight: 800; color: var(--primary); }
.results-count { font-size: 0.85rem; color: var(--muted); }
.toolbar-controls select {
  padding: 0.55rem 0.9rem; border: 1px solid var(--border); border-radius: 8px;
  background: #fff; font-size: 0.88rem; color: var(--text); cursor: pointer;
}

/* Grid & Cards Estilo Célo Brindes */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08); border-color: #cbd5e1; }

.card-img-wrap {
  position: relative; width: 100%; height: 230px; background: #ffffff;
  border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: center;
  overflow: hidden; cursor: pointer; padding: 12px;
}
.card-img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.card:hover .card-img { transform: scale(1.05); }

.sku-badge {
  position: absolute; top: 10px; left: 10px; background: #f1f5f9; color: #334155;
  font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.55rem; border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.qv-btn {
  position: absolute; bottom: 10px; right: 10px; background: rgba(15, 23, 42, 0.85); color: #fff;
  border: none; border-radius: 6px; padding: 0.32rem 0.65rem; font-size: 0.75rem; font-weight: 600;
  cursor: pointer; opacity: 0; transition: opacity 0.2s;
}
.card:hover .qv-btn { opacity: 1; }

.card-body { padding: 1.15rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.card-cat { font-size: 0.74rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.card-title {
  font-size: 1.02rem; font-weight: 700; color: var(--primary); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta-pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.15rem; }
.meta-pill {
  font-size: 0.76rem; color: #475569; background: #f8fafc; border: 1px solid var(--border);
  padding: 0.2rem 0.5rem; border-radius: 6px;
}

.card-controls { margin-top: auto; padding-top: 0.85rem; border-top: 1px solid #f1f5f9; display: flex; flex-direction: column; gap: 0.6rem; }
.row-inputs { display: flex; gap: 0.5rem; }
.row-inputs select, .row-inputs input {
  padding: 0.48rem; border: 1px solid var(--border); border-radius: 7px; font-size: 0.84rem; width: 50%; background: #fff;
}
.btn-add-quote {
  background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 0.68rem;
  font-weight: 700; font-size: 0.84rem; letter-spacing: 0.03em; text-transform: uppercase;
  cursor: pointer; transition: 0.2s; width: 100%;
}
.btn-add-quote:hover { background: var(--accent); }

/* Como Funciona */
.steps-section { background: #fff; border-top: 1px solid var(--border); padding: 3.5rem 0; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.step-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem;
}
.step-num {
  display: inline-block; font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 0.5rem;
}
.step-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--primary); }
.step-card p { font-size: 0.9rem; color: var(--muted); }

/* Rodapé */
.site-footer { background: var(--primary); color: #fff; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; padding-bottom: 2.5rem; }
.site-footer h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.9rem; color: #e2e8f0; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.88rem; color: #94a3b8; }
.footer-links a { color: #94a3b8; text-decoration: none; transition: 0.2s; }
.footer-links a:hover { color: #38bdf8; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding: 1.1rem 0; font-size: 0.82rem; color: #64748b; text-align: center;
}

/* Botão Flutuante WhatsApp */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  height: 50px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
  z-index: 150;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.floating-wa:hover {
  transform: translateY(-3px);
  background: #1ebe5d;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.48);
}

.floating-wa svg {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .floating-wa {
    bottom: 16px;
    right: 16px;
    height: 46px;
    padding: 0 16px 0 14px;
    font-size: 0.88rem;
  }
}

/* Modal Olhada Rápida */
.qv-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(2px);
  display: none; align-items: center; justify-content: center; z-index: 300; padding: 1rem;
}
.qv-overlay.open { display: flex; }
.qv-box {
  background: #fff; border-radius: 16px; max-width: 720px; width: 100%; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr; box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
@media (max-width: 680px) {
  .qv-box { grid-template-columns: 1fr; max-height: 90vh; overflow-y: auto; }
  .header-inner { flex-wrap: wrap; }
  .header-search { order: 3; max-width: 100%; width: 100%; }
  .hero-content h1 { font-size: 1.75rem; }
}
.qv-img-side { background: #fff; padding: 1.5rem; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--border); }
.qv-img-side img { max-width: 100%; max-height: 300px; object-fit: contain; }
.qv-info-side { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.85rem; }

/* Gaveta do Carrinho de Orçamento */
.drawer-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); display: none; z-index: 200; }
.drawer-overlay.open { display: block; }
.drawer {
  position: fixed; top: 0; right: -440px; width: 100%; max-width: 420px; height: 100vh;
  background: var(--card); z-index: 201; transition: right 0.3s ease;
  display: flex; flex-direction: column; box-shadow: -5px 0 25px rgba(0,0,0,0.15);
}
.drawer.open { right: 0; }
.drawer-header { padding: 1.25rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.drawer-body { padding: 1.25rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; }
.cart-item { border: 1px solid var(--border); border-radius: 8px; padding: 0.85rem; display: flex; flex-direction: column; gap: 0.4rem; }
.cart-item-top { display: flex; justify-content: space-between; font-weight: 600; }
.cart-item input { padding: 0.4rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.85rem; }
.drawer-footer { padding: 1.25rem; border-top: 1px solid var(--border); background: #f8fafc; display: flex; flex-direction: column; gap: 0.75rem; }
.drawer-footer input { padding: 0.65rem; border: 1px solid var(--border); border-radius: 8px; width: 100%; }

/* Admin (mantido intacto para compatibilidade com admin.html) */
header:not(.main-header) {
  background: var(--primary); color: #fff; padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 100;
}
.login-box { max-width: 400px; margin: 5rem auto; background: var(--card); padding: 2rem; border-radius: 12px; border: 1px solid var(--border); }
.form-group { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; }
.form-group input, .form-group select { padding: 0.6rem; border: 1px solid var(--border); border-radius: 8px; }
.admin-grid { display: grid; grid-template-columns: 360px 1fr; gap: 2rem; align-items: start; margin-top: 2rem; }
@media (max-width: 850px) { .admin-grid { grid-template-columns: 1fr; } }
.panel { background: var(--card); padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: #e2e8f0; }
.badge { padding: 0.2rem 0.5rem; border-radius: 99px; font-size: 0.75rem; font-weight: 700; }
.badge-on { background: #dcfce7; color: #166534; }
.badge-off { background: #f1f5f9; color: #475569; 
/* Miniatura no Carrinho de Orçamento */
.cart-item-main {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.cart-item-thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 4px;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
/* Ajustes de identidade Suzuki (Prata & Grafite) */
.btn-accent { background: #f8fafc; color: #090a0d; font-weight: 700; }
.btn-accent:hover { background: #cbd5e1; color: #090a0d; }
.trust-icon, .cat-tag, .pdp-cat-pill { background: #f1f5f9 !important; color: #0f172a !important; }
.color-chip.selected { background: #f1f5f9 !important; color: #090a0d !important; border-color: #090a0d !important; }
.card-cat { color: #475569; }
.footer-links a:hover { color: #ffffff; }
/* =========================================================
   OTIMIZAÇÕES EXCLUSIVAS PARA CELULAR (NÃO AFETA DESKTOP)
   ========================================================= */
@media (max-width: 768px) {
  /* 1. Correção definitiva do Carrinho + Teclado Virtual */
  #cart-drawer,
  .drawer {
    top: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  #cart-drawer .drawer-header,
  .drawer-header {
    position: sticky;
    top: 0;
    background: #ffffff;
    z-index: 10;
    flex-shrink: 0;
    padding: 0.9rem 1rem;
  }

  #cart-drawer .drawer-body,
  .drawer-body {
    flex: 1 0 auto !important;
    overflow: visible !important;
    padding: 0.9rem 1rem;
  }

  #cart-drawer .drawer-footer,
  .drawer-footer {
    flex-shrink: 0 !important;
    padding: 0.9rem 1rem calc(2.25rem + env(safe-area-inset-bottom)) !important;
    background: #f8fafc;
    border-top: 1px solid var(--border);
  }

  /* Evita corte lateral sem travar o cabeçalho fixo */
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  /* 2. Cabeçalho e Barra de Pesquisa ajustados para celular */
  .top-bar {
    padding: 0.35rem 0;
    font-size: 0.7rem;
  }
  .top-bar-inner {
    justify-content: center;
    gap: 0.3rem 0.75rem;
  }
  .top-bar-contacts {
    justify-content: center;
    gap: 0.35rem 0.75rem;
  }
  .top-bar-sep {
    display: none;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0.6rem 0.85rem;
    gap: 0.55rem;
    width: 100%;
    max-width: 100%;
  }
  .brand {
    gap: 0.5rem;
    min-width: 0;
  }
  .brand-logo {
    width: 34px;
    height: 34px;
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .brand-sub {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .header-actions {
    margin-left: auto;
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .btn-header-wa {
    padding: 0.4rem 0.6rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .btn-header-cart {
    padding: 0.4rem 0.65rem;
    font-size: 0.75rem;
    gap: 0.35rem;
    white-space: nowrap;
  }
  .cart-badge {
    font-size: 0.7rem;
    padding: 0.08rem 0.42rem;
  }

  /* Correção da Barra de Pesquisa para caber 100% na tela */
  .header-search {
    order: 3;
    display: flex !important;
    align-items: stretch;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    margin: 0 !important;
  }
  .header-search input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 16px !important;
  }
  .header-search button {
    flex-shrink: 0 !important;
    padding: 0 0.9rem !important;
  }

  /* Barra de categorias com deslize horizontal suave no dedo */
  .category-nav-inner {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
  }
  .category-nav-inner::-webkit-scrollbar {
    display: none;
  }
  .cat-pill {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.4rem 0.85rem;
  }

  /* 3. Banner e Vitrine no celular */
  .hero-banner {
    padding: 2.1rem 0;
  }
  .hero-content h1 {
    font-size: 1.55rem;
  }
  .hero-content p {
    font-size: 0.92rem;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .card-img-wrap {
    height: 155px;
    padding: 0.65rem;
  }
  .card-body {
    padding: 0.75rem;
  }
  .card-title {
    font-size: 0.9rem;
  }
  .meta-pills {
    gap: 0.3rem;
  }
  .meta-pill {
    font-size: 0.7rem;
    padding: 0.15rem 0.45rem;
  }
  .row-inputs {
    flex-direction: column;
    gap: 0.4rem;
  }
  .row-inputs select,
  .row-inputs input {
    width: 100% !important;
  }
  .btn-add-quote {
    font-size: 0.8rem;
    padding: 0.6rem 0.5rem;
  }

  /* 4. Página individual do produto no celular */
  .pdp-title {
    font-size: 1.35rem;
  }
  .pdp-seals {
    grid-template-columns: 1fr;
  }
  .pdp-details-card {
    padding: 1.25rem;
  }
  .specs-table td {
    display: block;
    width: 100% !important;
    padding: 0.55rem 0.75rem;
  }
  .specs-table td:first-child {
    border-bottom: none;
    padding-bottom: 0.2rem;
  }
}

@media (max-width: 360px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CORREÇÃO DEFINITIVA CABEÇALHO MOBILE (NÃO ALTERA DESKTOP)
   ========================================================= */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: clip !important;
    max-width: 100% !important;
  }

  /* Faixa superior de contatos compacta */
  .top-bar {
    padding: 0.35rem 0 !important;
    font-size: 0.72rem !important;
  }
  .top-bar-inner {
    justify-content: center !important;
    gap: 0.35rem 0.75rem !important;
  }
  .top-bar-contacts {
    justify-content: center !important;
    gap: 0.35rem 0.75rem !important;
  }
  .top-bar-sep {
    display: none !important;
  }

  /* Linha 1: Logo à esquerda + Botões à direita */
  .header-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.6rem 0.85rem !important;
    gap: 0.55rem 0.4rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .brand {
    order: 1 !important;
    gap: 0.45rem !important;
    min-width: 0 !important;
    flex-shrink: 1 !important;
  }
  .brand-logo {
    width: 34px !important;
    height: 34px !important;
  }
  .brand-name {
    font-size: 1rem !important;
  }
  .brand-sub {
    font-size: 0.56rem !important;
    letter-spacing: 0.06em !important;
  }

  .header-actions {
    order: 2 !important;
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    flex-shrink: 0 !important;
  }
  .btn-header-wa {
    padding: 0.42rem 0.6rem !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
  }
  .btn-header-cart {
    padding: 0.42rem 0.65rem !important;
    font-size: 0.74rem !important;
    gap: 0.35rem !important;
    white-space: nowrap !important;
  }
  .cart-badge {
    font-size: 0.7rem !important;
    padding: 0.08rem 0.42rem !important;
  }

  /* Linha 2: Barra de pesquisa ocupando 100% da largura da tela */
  .header-search {
    order: 3 !important;
    display: flex !important;
    align-items: stretch !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .header-search input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0.55rem 0.75rem !important;
    font-size: 16px !important;
  }
  .header-search button {
    flex-shrink: 0 !important;
    padding: 0 0.95rem !important;
  }
}

/* =========================================================
   CORREÇÃO DEFINITIVA DO CARRINHO NO TABLET E CELULAR
   (NÃO ALTERA A VERSÃO DE COMPUTADOR)
   ========================================================= */
@media (pointer: coarse), (hover: none) {
  #cart-drawer,
  .drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: auto !important;
    height: 100vh;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    overscroll-behavior: contain;
  }

  #cart-drawer .drawer-header,
  .drawer-header {
    flex-shrink: 0 !important;
    background: #ffffff;
    z-index: 10;
  }

  /* A lista de itens rola no meio, mantendo o rodapé sempre visível */
  #cart-drawer .drawer-body,
  .drawer-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  /* O formulário e o botão verde ficam sempre ancorados na base visível */
  #cart-drawer .drawer-footer,
  .drawer-footer {
    flex-shrink: 0 !important;
    background: #f8fafc;
    border-top: 1px solid var(--border);
    padding: 0.85rem 1rem calc(1.1rem + env(safe-area-inset-bottom)) !important;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  #cart-drawer input,
  .drawer-footer input {
    font-size: 16px !important;
    margin: 0 !important;
  }

  .drawer-footer .btn-whatsapp {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    justify-content: center;
    margin: 0 !important;
  }
}

/* Em tablets (largura a partir de 540px), coloca Nome e Empresa lado a lado */
@media (pointer: coarse) and (min-width: 540px), (hover: none) and (min-width: 540px) {
  #cart-drawer .drawer-footer,
  .drawer-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }

  #cart-drawer .drawer-footer .btn-whatsapp,
  .drawer-footer .btn-whatsapp {
    grid-column: 1 / -1;
  }
}