:root {
  --primary-color: #b8e2e8;
  --secondary-color: #19405a;
  --accent-color: #88423a;
  --success-color: #65aa82;
  --warning-color: #cda666;
  --light-gray: #ecf0f1;
  --dark-gray: #7f8c8d;
}

/* Layout Geral */
body {
  background: #e8f1ff;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* Navbar */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar {
  background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
  color: #fff !important;
}
.navbar-magnifico {
  background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
}
.navbar-magnifico .navbar-brand,
.navbar-magnifico .nav-link {
  color: white;
}
.navbar-magnifico .nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #fff !important;
}

.navbar .nav-link:hover {
  color: #ffd700 !important;
}

.empresa-logo {
  background: linear-gradient(135deg, #2c3e50 0%, #4ca1af 100%);
  box-shadow: 0 4px 24px rgba(106, 17, 203, 0.2);
}

.carousel-inner .carousel-item img {
  filter: brightness(0.85);
}

/* Carrossel overlay mais sóbrio */
.carousel-caption {
  background: rgba(20, 20, 20, 0.55);
  backdrop-filter: blur(2px);
  border-radius: 16px;
  color: #f8f9fa;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Overlay de gradiente azul no carrossel - mais escuro */
.carousel-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  border-radius: 16px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(20, 30, 60, 0.92) 0%,
    rgba(10, 20, 40, 0.98) 100%
  );
}

.carousel-caption {
  position: absolute;
  z-index: 2;
}

/* Cards de Produto */
.produto-card {
  border: none;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(37, 117, 252, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.produto-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(37, 117, 252, 0.18);
}

.produto-card .card-img-top {
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.produto-card:hover .card-img-top {
  transform: scale(1.05);
}

/* Badge de Destaque */
.produto-destaque {
  position: relative;
}

.produto-destaque::before {
  content: '⭐ Destaque';
  position: absolute;
  top: 15px;
  right: 15px;
  background: linear-gradient(45deg, var(--warning-color), #e67e22);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

/* Preços */
.preco {
  color: #6a11cb;
  font-size: 1.3rem;
  font-weight: bold;
}

.preco-consulte {
  color: var(--dark-gray);
  font-style: italic;
}

/* Botões */
.btn {
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary,
.btn-outline-primary {
  background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
  border: none;
  color: #fff;
  font-weight: 600;
  transition: background 0.2s;
}

.btn-primary:hover,
.btn-outline-primary:hover {
  background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
  color: #fff;
}

/* Botão hover mais suave */
.btn-primary,
.btn-outline-primary {
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover,
.btn-outline-primary:hover {
  transform: translateY(-2px) scale(1.04);
}

/* Filtros */
.filtros-sidebar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  padding: 1.5rem;
}

.filtro-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--light-gray);
}

.filtro-item:last-child {
  border-bottom: none;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .produto-card {
    margin-bottom: 1rem;
  }

  .filtros-sidebar {
    margin-bottom: 2rem;
  }
}

/* Dashboard Admin */
.dashboard-card {
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Forçar layout de 3 colunas para produtos */
#lista-produtos {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

#lista-produtos > .col {
  flex: 0 0 auto !important;
  padding: 0 !important;
}

/* Breakpoints específicos */
@media (min-width: 992px) {
  #lista-produtos > .col {
    width: calc(33.333333% - 0.67rem) !important;
    max-width: calc(33.333333% - 0.67rem) !important;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  #lista-produtos > .col {
    width: calc(50% - 0.5rem) !important;
    max-width: calc(50% - 0.5rem) !important;
  }
}

@media (max-width: 767.98px) {
  #lista-produtos > .col {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Melhorar aparência dos cards */
.produto-card {
  transition: all 0.2s ease !important;
  border: 1px solid #dee2e6 !important;
  border-radius: 8px !important;
}

.produto-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.produto-card .card-header {
  border-bottom: 1px solid #dee2e6 !important;
}

.produto-card .badge {
  font-size: 0.7rem !important;
}

/* Debug - remover após teste */
#lista-produtos {
  border: 2px solid red !important;
}

#lista-produtos > .col {
  border: 1px solid blue !important;
}

/* Garantir altura uniforme dos cards */
#lista-produtos .produto-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#lista-produtos .produto-card .card-body {
  flex: 1;
}

/* Espaçamento entre colunas */
#lista-produtos {
  --bs-gutter-x: 1rem;
  --bs-gutter-y: 1rem;
}

/*Card de Total de Produtos*/
.total_produtos {
  background: linear-gradient(45deg, #1e3a8a, #4b0764);
}

.produtos_ativos {
  background: linear-gradient(45deg, #173820, #9cffb6);
}

.destaque {
  background: linear-gradient(45deg, #bea420, #8a1e1e);
}

.imagens {
  background: linear-gradient(45deg, #a4fffc, #711833);
}

/* Toast Notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  padding: 15px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease-out;
}

.toast-success {
  background-color: #28a745;
}

.toast-error {
  background-color: #dc3545;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin-left: auto;
}

.produto-integrado {
  border: 2px solid #28a745 !important;
  background-color: #f8f9fa;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Container para toasts */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}

/* Estilos para imagens dos produtos */
.card-img-container {
  border-bottom: 1px solid #dee2e6;
}

.card-img-top {
  transition: transform 0.2s ease;
}

.produto-card:hover .card-img-top {
  transform: scale(1.05);
}

.img-placeholder {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Melhorar aparência do modal de detalhes */
.img-container {
  background: #fff;
  border: 1px solid #dee2e6;
}

/* Loading state para imagens */
.card-img-top[src=''] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}
/* Estilos para produtos */
.produto-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.produto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.produto-imagem-container {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.produto-imagem {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.produto-imagem:hover {
  transform: scale(1.05);
}

/* Seção Sobre mais destacada */
.sobre-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px rgba(37, 117, 252, 0.08);
  padding: 2.5rem 2rem;
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.sobre-icone {
  font-size: 3.5rem;
  color: #6a11cb;
  margin-bottom: 1rem;
}

/* Cards de produto: limitar descrição */
.produto-card .card-text.flex-grow-1 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  max-height: 2.8em;
}

/* Placeholder de imagem menor e centralizado */
.placeholder-imagem {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b0b0b0;
  font-size: 2rem;
}

.preco {
  font-size: 1.2em;
  font-weight: bold;
  color: #28a745;
}

.preco-consulte {
  font-size: 1.1em;
  font-weight: bold;
  color: #6c757d;
}

/* Carrinho flutuante */
.carrinho-flutuante {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: #fff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(37, 117, 252, 0.18);
  z-index: 1000;
  transition: transform 0.2s;
}

.carrinho-flutuante:hover {
  transform: scale(1.1);
}

.carrinho-flutuante .badge {
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Footer sempre visível */
footer,
.footer {
  background: #22223b;
  color: #fff !important;
  padding: 2rem 0 1rem 0;
  font-size: 1rem;
}
footer .container,
.footer .container {
  color: #fff !important;
}

.badge.bg-warning {
  font-size: 0.95em;
  padding: 0.5em 0.8em;
  border-radius: 1em;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.12);
}
