/* ================================
   FONTE GLOBAL DO CATÁLOGO
   ================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

#catalogo-empresas-root {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ================================
   REMOVER HEADER ANTIGO
   ================================ */
.ce-header,
.ce-header-inner,
.ce-header-logo,
.ce-header-title,
.ce-header-subtitle,
.ce-header-lines {
  display: none !important;
}

/* ================================
   ÁREA PRINCIPAL (FUNDO AMARELO)
   ================================ */
.ce-main {
  background: #FFC107;
  padding: 2rem 1.5rem 3rem;
  margin: 0;
}

/* ================================
   GRID – ATÉ 4 COLUNAS
   ================================ */
.ce-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

/* 2 colunas */
@media (min-width: 768px) {
  .ce-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 3 colunas */
@media (min-width: 1024px) {
  .ce-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 4 colunas */
@media (min-width: 1400px) {
  .ce-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ================================
   CARD
   ================================ */
.ce-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.ce-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.15);
}

/* ================================
   ÁREA DA LOGO (FUNDO CLARO ANTIGO)
   ================================ */
.ce-card-logo-area {
  background: linear-gradient(to bottom, #FFEDD5, #FED7AA); /* fundo claro bonito */
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ce-card-logo {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
  border-radius: 14px;
  background: white;
  border: 1px solid #ddd;
  padding: 6px;
}

.ce-card-logo-fallback {
  width: 7rem;
  height: 7rem;
  background: #FBC39C;
  border: 2px solid #F97316;
  color: #7C2D12;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   CORPO DO CARD
   ================================ */
.ce-card-body {
  text-align: center;
  padding: 1.5rem;
}

.ce-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #EA580C;
}

/* ================================
   LOADING
   ================================ */
.ce-loading {
  text-align: center;
  padding: 3rem;
}

.ce-spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid #ddd;
  border-top-color: #F97316;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================
   MODAL CLEAN
   ================================ */
.ce-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  z-index: 9999;
  animation: fadeIn .25s ease-out;
}

.ce-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  padding: 2rem 1.8rem;
  position: relative;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  animation: slideUp .25s ease-out;
}

/* Botão fechar */
.ce-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #EEE;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.ce-close-btn:hover {
  background: #E5E7EB;
}

/* LOGO CENTRALIZADA */
.ce-modal-logo {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.ce-modal-logo img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid #ddd;
}

.ce-modal-logo .ce-fallback {
  width: 110px;
  height: 110px;
  border-radius: 12px;
  background: #fed7aa;
  border: 2px solid #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  color: #7c2d12;
}

/* TÍTULOS E TEXTOS */
.ce-modal h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #EA580C;
  margin-bottom: 0.25rem;
}

.ce-cat {
  font-size: 0.8rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.ce-desc {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  margin: 1rem 0 1.5rem;
}

/* ================================
   BOTÕES
   ================================ */
.ce-modal-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ce-btn {
  padding: .5rem 1.2rem;
  font-weight: 600;
  color: white;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  transition: .15s;
}

.ce-btn-site {
  background: #004AAD;
}

.ce-btn-site:hover {
  background: #003580;
}

.ce-btn-whatsapp {
  background: #22C55E;
}

.ce-btn-whatsapp:hover {
  background: #16A34A;
}

/* ================================
   ANIMAÇÕES
   ================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
