/* ============================================================
   MAARTORI — Projetos Prontos v2.1
   Override da página de catálogo. Não mexe em components.css.
   Inclui regras compartilháveis (floatnav/drawer/cta-final/footer)
   pra que esta página funcione sem importar home.css.
   ============================================================ */

/* Splash dourado: desligado em mobile pra não aparecer antes do conteúdo */
@media (max-width: 768px) {
  .splash { display: none !important; }
}

/* ---------------- MENU FLUTUANTE (mesma anatomia da home) ---------------- */
.floatnav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 22px;
  background: rgba(15,17,20,0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(15,17,20,0.30), 0 2px 8px rgba(15,17,20,0.15);
  max-width: calc(100vw - 32px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.floatnav-logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-l);
  padding-right: 18px;
  margin-right: 6px;
  position: relative;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.floatnav-logo::after {
  content: '';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.20);
}
.floatnav-links { display: flex; align-items: center; gap: 2px; }
.floatnav-link {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.floatnav-link:hover { background: var(--sage-15); color: var(--white); text-shadow: none; }
.floatnav-link[aria-current="page"] { background: var(--sage-d); color: var(--white); text-shadow: none; }
.floatnav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--sage-d);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(74,85,50,0.40);
}
.floatnav-cta:hover { background: var(--sage); transform: scale(1.05); box-shadow: 0 4px 16px rgba(74,85,50,0.50); }
.floatnav-cta i { font-size: 14px; }
.floatnav-hamburger { display: none; }
.floatnav--on-light {
  background: var(--deep);
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(15,17,20,0.25), 0 2px 8px rgba(15,17,20,0.10);
}
@media (max-width: 960px) {
  .floatnav { padding: 8px 8px 8px 16px; top: 14px; }
  .floatnav-logo { font-size: 15px; padding-right: 12px; }
  .floatnav-logo::after { display: none; }
  .floatnav-links { display: none; }
  .floatnav-cta { display: none; }
  .floatnav-hamburger {
    display: flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--deep); color: var(--white);
    border: none; border-radius: 50%;
    font-size: 18px; cursor: pointer;
  }
}

/* ---------------- CTA FINAL — replica do .home-cta-final ---------------- */
.home-cta-final { padding: var(--space-6) 0; background: var(--deep); }
.home-cta-final .container { position: relative; }
.home-cta-final .cta-band {
  border-radius: 24px;
  background: #1f2024;
  border: 2px solid var(--sage-d);
  color: var(--white);
  padding: var(--space-7) var(--space-6);
  position: relative; overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
  transition: transform 0.4s ease, border-color 0.4s ease, border-width 0.4s ease, box-shadow 0.4s ease;
}
.home-cta-final .cta-band:hover {
  transform: scale(1.02);
  border-color: var(--sage);
  border-width: 3px;
  box-shadow: 0 0 90px 0 rgba(110,123,82,0.65), 0 0 0 1px rgba(110,123,82,0.35);
}
.home-cta-final .cta-band::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
}
.home-cta-final .cta-band .label { margin-bottom: 16px; color: var(--sage-l); }
.home-cta-final .cta-band h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: var(--text-h1);
  line-height: var(--lh-heading);
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 16px;
  text-wrap: balance;
}
.home-cta-final .cta-band p {
  color: var(--on-dark-secondary);
  font-size: 15px;
  max-width: 480px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}
.home-cta-final .cta-band-btns { margin-top: 32px; gap: 16px; }
.home-cta-final .cta-band .btn { padding: 16px 30px; font-size: 15px; }
.home-cta-final .cta-band .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.home-cta-final .cta-band .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.05);
}
.home-cta-final .btn-primary {
  animation: btnPulse 1.6s ease-in-out infinite;
  transform: none;
  box-shadow: 0 4px 18px rgba(74,85,50,0.30);
}
.home-cta-final .btn-primary:hover {
  animation: btnPulseFast 0.7s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(74,85,50,0.50);
}
@keyframes btnPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(74,85,50,0.30); }
  50%      { transform: scale(1.03); box-shadow: 0 8px 26px rgba(74,85,50,0.45); }
}
@keyframes btnPulseFast {
  0%, 100% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(74,85,50,0.40); }
  50%      { transform: scale(1.10); box-shadow: 0 12px 36px rgba(74,85,50,0.60); }
}
@media (prefers-reduced-motion: reduce) {
  .home-cta-final .cta-band:hover,
  .home-cta-final .cta-band .btn-outline:hover,
  .home-cta-final .btn-primary,
  .home-cta-final .btn-primary:hover { animation: none; transition: background 0.25s ease, border-color 0.25s ease; transform: none; }
}
@media (max-width: 640px) {
  .home-cta-final { padding: var(--space-5) 0; }
  .home-cta-final .cta-band { padding: 28px 22px !important; border-radius: 20px; border-width: 2px; }
  .home-cta-final .cta-band .label { margin-bottom: 10px !important; font-size: 11px !important; white-space: nowrap; letter-spacing: 0.1em; }
  .home-cta-final .cta-band h2 { font-size: clamp(28px, 8vw, 38px) !important; margin-bottom: 10px !important; line-height: 1.1; }
  .home-cta-final .cta-band p { font-size: 15px !important; max-width: 100% !important; line-height: 1.5; }
  .home-cta-final .cta-band-btns { margin-top: 22px; gap: 10px; flex-direction: column; align-items: stretch; }
  .home-cta-final .cta-band-btns .btn { width: 100%; }
}

/* ---------------- CTA EXCLUSIVO — wrapper que adiciona só o pulse no btn-primary ---------------- */
.cat-cta-band .cta-band-btns .btn-primary {
  animation: btnPulse 1.6s ease-in-out infinite;
  transform: none;
  box-shadow: 0 4px 18px rgba(74,85,50,0.30);
}
.cat-cta-band .cta-band-btns .btn-primary:hover {
  animation: btnPulseFast 0.7s ease-in-out infinite;
  box-shadow: 0 10px 30px rgba(74,85,50,0.50);
}
@keyframes btnPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(74,85,50,0.30); }
  50%      { transform: scale(1.03); box-shadow: 0 8px 26px rgba(74,85,50,0.45); }
}
@keyframes btnPulseFast {
  0%, 100% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(74,85,50,0.40); }
  50%      { transform: scale(1.10); box-shadow: 0 12px 36px rgba(74,85,50,0.60); }
}
@media (prefers-reduced-motion: reduce) {
  .cat-cta-band .cta-band-btns .btn-primary,
  .cat-cta-band .cta-band-btns .btn-primary:hover { animation: none; transform: none; }
}
@media (max-width: 640px) {
  /* Em mobile a animação de pulse no btn-primary chama atenção demais — desliga */
  .cat-cta-band .cta-band-btns .btn-primary,
  .cat-cta-band .cta-band-btns .btn-primary:hover {
    animation: none;
    transform: none;
  }
}
.footer { background: var(--deep); color: var(--on-dark); }
.ft-logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 26px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-l);
  margin-bottom: 14px;
}
.ft-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 14px;
  color: var(--sage-l);
  margin-bottom: 16px;
  line-height: 1.5;
}
.ft-col-title {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.ft-link { transition: color 0.15s, padding-left 0.2s; }
.ft-link:hover { color: var(--sage-l); padding-left: 4px; }

/* ---------------- HERO CATÁLOGO (100vh + foto real + Fraunces) ---------------- */
.cat-hero {
  position: relative;
  background: var(--deep);
  color: var(--on-dark);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.cat-hero-img { position: absolute; inset: 0; z-index: 0; }
.cat-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cat-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(26,28,31,0.82) 0%,
      rgba(26,28,31,0.72) 22%,
      rgba(26,28,31,0.55) 42%,
      rgba(26,28,31,0.40) 60%,
      rgba(26,28,31,0.22) 100%),
    linear-gradient(180deg,
      rgba(26,28,31,0.25) 0%,
      transparent 35%,
      transparent 65%,
      rgba(26,28,31,0.35) 100%);
}
.cat-hero::before {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 0;
  background: linear-gradient(to bottom, transparent, rgba(26,28,31,0.55));
}
.cat-hero > .container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-hero .label { margin-bottom: var(--space-2); }
.cat-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--white);
  max-width: 18ch;
  margin-bottom: var(--space-2);
  text-wrap: balance;
  text-align: center;
}
.cat-hero h1 em { font-style: italic; font-weight: 400; color: var(--sage-l); }
.cat-hero-sub {
  font-family: var(--font);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
  max-width: 56ch;
  margin-bottom: var(--space-4);
  text-wrap: balance;
  text-align: center;
}

.cat-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: var(--space-3);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cat-hero-metric { padding: 0; position: relative; }
.cat-hero-metric + .cat-hero-metric { padding-left: var(--space-4); border-left: 1px solid rgba(255,255,255,0.12); }
.cat-hero-metric-val {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.cat-hero-metric-label {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--on-dark-secondary);
  margin-top: 6px;
  line-height: 1.4;
  font-weight: 400;
  display: block;
}

@media (max-width: 640px) {
  .cat-hero { padding: 100px 0 var(--space-5); min-height: 100vh; min-height: 100svh; }
  .cat-hero-metrics { grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
  .cat-hero-metric + .cat-hero-metric { padding-left: 8px; }
  .cat-hero-metric-val { font-size: 22px; }
  .cat-hero-metric-label { font-size: 11px; }
}


/* ---------------- TOOLBAR DE RESULTADOS ---------------- */
.cat-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cat-toolbar-count {
  font-size: 14px;
  color: var(--muted);
  display: flex; align-items: baseline; gap: 6px;
}
.cat-toolbar-count strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: 22px;
  color: var(--deep);
  letter-spacing: -0.01em;
}
.cat-toolbar-sort {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.cat-toolbar-sort .form-select {
  width: auto; display: inline-block; padding: 8px 14px;
  font-size: 13px; font-weight: 500; color: var(--deep);
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* ---------------- GRID DE CATÁLOGO (3 colunas desktop) ---------------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---------------- CARD DE CATÁLOGO VERTICAL ---------------- */
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.cat-card:hover {
  border-color: var(--sage-d);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(74,85,50,0.18);
}

.cat-card-img {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.cat-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.cat-card:hover .cat-card-img img { transform: scale(1.04); }
/* Overlay colorido por tipo */
.cat-card-img::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(74,85,50,0.45));
  opacity: 0.55;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease;
}
.cat-card[data-tipo="comercial"] .cat-card-img::before {
  background: linear-gradient(180deg, transparent 40%, rgba(26,28,31,0.55));
  opacity: 0.6;
}
.cat-card[data-tipo="corporativo"] .cat-card-img::before {
  background: linear-gradient(180deg, transparent 40%, rgba(45,55,30,0.70));
  opacity: 0.65;
}
.cat-card[data-tipo="clinica"] .cat-card-img::before {
  background: linear-gradient(180deg, transparent 40%, rgba(110,123,82,0.55));
  opacity: 0.55;
}
.cat-card:hover .cat-card-img::before { opacity: 0.7; }

/* Tag do tipo no canto SUPERIOR DIREITO da imagem */
.cat-card-tag-overlay {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(26,28,31,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
}
.cat-card-tag-overlay.featured {
  background: var(--sage-d);
  border-color: var(--sage-d);
}

.cat-card-body {
  display: flex; flex-direction: column;
  padding: 22px 24px 24px;
  gap: 12px;
  flex: 1;
}
.cat-card-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--deep);
  line-height: 1.2;
}
.cat-card-metrics {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.cat-card-metrics span {
  display: inline-flex; align-items: center; gap: 5px;
}
.cat-card-metrics i { color: var(--sage-d); font-size: 14px; }
.cat-card-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rodapé 50/50: preço à esquerda, botão à direita */
.cat-card-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}
.cat-card-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.cat-card-price-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: lowercase;
  margin-bottom: 2px;
}
.cat-card-price-val {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 36;
  font-size: 22px;
  color: var(--deep);
  letter-spacing: -0.01em;
}
.cat-card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--sage-d);
  background: transparent;
  border: 1.5px solid var(--sage-d);
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.cat-card-cta i { font-size: 14px; transition: transform 0.25s ease; }
.cat-card:hover .cat-card-cta {
  background: var(--sage-d);
  color: var(--white);
}
.cat-card:hover .cat-card-cta i { transform: translateX(3px); }

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cat-grid { grid-template-columns: 1fr; gap: 20px; }
  .cat-card-body { padding: 18px 18px 20px; }
  .cat-card-body h3 { font-size: 20px; }
  .cat-card-metrics { font-size: 12px; gap: 10px; }
  .cat-card-bottom { gap: 10px; }
  .cat-card-cta { padding: 7px 14px; font-size: 12px; }
}

/* ---------------- EMPTY STATE ---------------- */
.cat-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--gray-300);
}
.cat-empty i { font-size: 48px; color: var(--sage-30); }
.cat-empty p {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 18px;
  color: var(--muted);
}
.cat-empty .link-inline { font-style: normal; font-family: var(--font); font-weight: 500; }

/* ---------------- LOAD MORE ---------------- */
.cat-load-more-wrap { text-align: center; margin-top: 56px; }
.cat-load-more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid var(--gray-300);
  border-radius: 999px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--deep);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.cat-load-more:hover {
  border-color: var(--sage-d);
  color: var(--sage-d);
  background: var(--sage-15);
}
.cat-load-more i { font-size: 16px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 960px) {
  .cat-grid { grid-template-columns: 1fr; gap: 20px; }
  .cat-card { grid-template-columns: 1fr; min-height: auto; }
  .cat-card-img { aspect-ratio: 16/9; }
}

@media (max-width: 640px) {
  .cat-filters-bar { padding: 16px 0; }
  .cat-toolbar { padding: 16px 0; flex-direction: column; align-items: flex-start; }
  .cat-toolbar-count strong { font-size: 18px; }
  .cat-card-body { padding: 18px 20px; }
  .cat-card-body h3 { font-size: 20px; }
  .cat-card-metrics { gap: 8px; font-size: 12px; }
  .cat-load-more-wrap { margin-top: 40px; }
}

/* ---------------- SECTION HEADER (eyebrow + h2 Fraunces) ---------------- */
.cat-section-header {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 720px;
}
.cat-section-header .eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 14px;
  color: var(--sage-d);
  margin-bottom: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.cat-section-header .eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px; height: 1px;
  background: currentColor;
}
.cat-section-header h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--deep);
  margin: 0;
  text-wrap: balance;
}
.cat-section-header p {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}


/* ---------------- TABS DE FILTRO (Macro) ---------------- */
.cat-filters-wrapper {
  max-width: 100%;
}
.cat-filters-tabs {
  display: flex;
  width: 100%;
  gap: 0;
  margin-bottom: 0; 
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-filters-tabs::-webkit-scrollbar { display: none; }
.cat-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px 10px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: -1px;
  white-space: nowrap;
}
.cat-tab:last-child { margin-right: 0; }
.cat-tab i { font-size: 20px; opacity: 0.6; }
.cat-tab:hover { background: #f1f3f5; }
.cat-tab.ativo {
  background: var(--white);
  color: var(--sage-d);
  font-weight: 600;
  position: relative;
  z-index: 2;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.02);
}
.cat-tab.ativo::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--white);
  z-index: 3;
}
.cat-tab.ativo i { color: var(--sage-d); opacity: 1; }

.cat-filters-panel {
  display: none;
  animation: fadeInPanel 0.3s ease;
}
.cat-filters-panel.ativo {
  display: block;
}
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.cat-filters-head {
  margin-bottom: 24px;
}
.cat-filters-eyebrow {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-d);
  margin-bottom: 8px;
}
.cat-filters-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--deep);
  margin: 0 0 20px 0;
}

.cat-filters-box {
  background: var(--white);
  border: 1px solid #e9ecef;
  border-radius: 0 16px 16px 16px;
  padding: 36px 40px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.05);
  position: relative;
  z-index: 1;
}

.cat-filters-group {
  display: flex;
  flex-direction: column;
}
.cat-filters-group-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  color: var(--deep);
}
.cat-filters-group-label i { font-size: 17px; color: var(--sage-d); }

/* Os chips */
.cat-filters-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cat-filters-chips.in-one-line {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}
.cat-filters-chips.is-circles {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
}
.cat-filters-chips.is-circles .chip {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--gray-100);
  flex-shrink: 0;
  width: auto;
}
.cat-filters-chips .chip {
  padding: 9px 18px;
  font-size: 14px;
  border: 1px solid var(--gray-100);
  border-radius: 30px;
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  line-height: 1.2;
}
.cat-filters-chips .chip:hover { border-color: var(--gray-300); color: var(--deep); }
.cat-filters-chips .chip[aria-pressed="true"] {
  background: var(--sage-d);
  color: var(--white);
  border-color: var(--sage-d);
  font-weight: 500;
}

/* Área corporativo: balanceado para nunca ter viúva */
.corp-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.corp-area-chips .chip {
  padding: 8px 14px;
  font-size: 13px;
}
@media (max-width: 1100px) and (min-width: 641px) {
  .corp-area-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .corp-area-chips .chip {
    text-align: center;
    justify-content: center;
    width: 100%;
    padding: 8px 10px;
  }
}
@media (max-width: 640px) {
  .corp-area-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .corp-area-chips .chip {
    text-align: center;
    justify-content: center;
    width: 100%;
    padding: 8px 6px;
    font-size: 12px;
  }
}

/* Ambientes especialidades: exatamente 2 linhas balanceadas com largura natural */
.cat-filters-chips.amb-chips-2rows {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 680px;
}
.cat-filters-chips.amb-chips-2rows .chip {
  width: auto;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

/* Pavimentos em 2 linhas com largura natural */
.cat-filters-chips.pav-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 250px;
}
.cat-filters-chips.pav-chips .chip {
  width: auto;
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

/* Terreno em 2 linhas compactas sem viúva */
.cat-filters-chips.terreno-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 330px;
}
.cat-filters-chips.terreno-chips .chip {
  width: auto;
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.cat-filters-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 24px 0;
}

/* Grid das linhas */
.cat-filters-row {
  display: grid;
  gap: 24px;
  align-items: start;
}
.cat-filters-row.four-cols {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.cat-filters-row.three-cols {
  grid-template-columns: 1fr 1.35fr 0.8fr;
  gap: 24px;
  align-items: start;
}
.cat-filters-row.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.cat-filters-row.single-col {
  grid-template-columns: 1fr;
}
.cat-filters-row.has-clear {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.cat-filters-row.has-clear .cat-filters-group {
  flex: 1;
}

.cat-filters-group.full-width {
  width: 100%;
}

.cat-filters-clear {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 30px;
  border: 1px dotted var(--gray-300);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}
.cat-filters-clear:hover { background: var(--gray-100); color: var(--deep); border-style: solid; }

@media (max-width: 1024px) {
  .cat-filters-row.four-cols { grid-template-columns: repeat(2, 1fr); }
  .cat-filters-row.three-cols { grid-template-columns: repeat(2, 1fr); }
  .cat-filters-chips.in-one-line { flex-wrap: wrap; }
  .cat-filters-row.has-clear { flex-direction: column; align-items: stretch; }
  .cat-filters-clear { align-self: flex-start; }
}
@media (max-width: 640px) {
  .cat-filters-box { border-top-left-radius: 24px !important; padding: 20px; }
  .cat-filters-tabs { margin-bottom: 16px; gap: 8px; }
  .cat-tab { border-radius: 12px; background: var(--white); border: 1px solid var(--gray-100); padding: 10px 16px; }
  .cat-tab.ativo { border-color: var(--sage-d); box-shadow: none; }
  .cat-tab.ativo::after { display: none; }
  .cat-filters-row.four-cols,
  .cat-filters-row.three-cols,
  .cat-filters-row.two-cols { grid-template-columns: 1fr; }
  .cat-filters-chips.is-circles { flex-wrap: wrap; }
}
