/* Estilos da Vitrine - Sistema independente do catálogo */

.vitrine-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Removido .vitrine-header e .vitrine-titulo pois não há mais título */

/* Erro e estados vazios */
.vitrine-erro,
.vitrine-vazia {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  color: #856404;
}

.vitrine-erro strong {
  color: #721c24;
}

/* Carrossel da vitrine */
.vitrine-carrossel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.vitrine-track-container {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
}

.vitrine-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  gap: 20px;
}

/* Cards agora retangulares verticais com !important para forçar aplicação */
.vitrine-item {
  flex: 0 0 280px !important; /* Largura fixa menor */
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 420px !important; /* Altura fixa maior para orientação vertical */
  display: flex !important;
  flex-direction: column !important;
}

.vitrine-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border-color: #3498db;
}

/* Máscara quadrada para imagem centralizada com !important */
.vitrine-item-imagem {
  position: relative;
  width: 100% !important;
  height: 280px !important; /* Altura igual à largura do card para formato quadrado */
  overflow: hidden;
  background: #f8f9fa;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.vitrine-item-imagem img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.3s ease;
}

.vitrine-item:hover .vitrine-item-imagem img {
  transform: scale(1.05);
}

.vitrine-item-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.vitrine-item:hover .vitrine-item-overlay {
  opacity: 1;
}

.vitrine-btn-detalhes {
  background: #3498db;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vitrine-btn-detalhes:hover {
  background: #2980b9;
  transform: scale(1.05);
}

/* Informações do item com flex-grow para ocupar espaço restante */
.vitrine-item-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vitrine-item-nome {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.vitrine-item-preco {
  font-size: 20px;
  font-weight: 700;
  color: #27ae60;
  margin: 0 0 15px 0;
}

.vitrine-periodo {
  font-size: 12px;
  font-weight: 400;
  color: #7f8c8d;
}

.vitrine-item-acoes {
  display: flex;
  gap: 10px;
}

.vitrine-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.vitrine-btn-interesse {
  background: #e74c3c;
  color: white;
}

.vitrine-btn-interesse:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

/* Navegação do carrossel */
.vitrine-nav {
  background: #34495e;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vitrine-nav:hover {
  background: #2c3e50;
  transform: scale(1.1);
}

.vitrine-nav:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
}

/* Indicadores */
.vitrine-indicadores {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.vitrine-indicador {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bdc3c7;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vitrine-indicador.active,
.vitrine-indicador:hover {
  background: #3498db;
  transform: scale(1.2);
}

/* Modal da vitrine */
.vitrine-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vitrine-modal-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: vitrine-modal-appear 0.3s ease;
  position: relative;
}

@keyframes vitrine-modal-appear {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Removido .vitrine-modal-header e simplificado layout */
.vitrine-modal-fechar {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 24px;
  color: #95a5a6;
  cursor: pointer;
  padding: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
}

.vitrine-modal-fechar:hover {
  background: rgba(236, 240, 241, 0.95);
  color: #2c3e50;
  transform: scale(1.1);
}

/* Layout simplificado em coluna única */
.vitrine-modal-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Modal com imagem quadrada centralizada com !important */
.vitrine-modal-imagem {
  width: 320px !important;
  height: 320px !important;
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.vitrine-modal-imagem img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

/* Informações abaixo da imagem */
.vitrine-modal-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}

.vitrine-modal-categoria {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.vitrine-badge {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.vitrine-modal-info h4 {
  margin: 0;
  font-size: 24px;
  color: #2c3e50;
  font-weight: 700;
}

.vitrine-modal-info p {
  margin: 0;
  color: #7f8c8d;
  line-height: 1.6;
}

.vitrine-modal-preco {
  display: flex;
  align-items: baseline;
  gap: 5px;
  justify-content: center;
}

.vitrine-preco-valor {
  font-size: 28px;
  font-weight: 700;
  color: #27ae60;
}

.vitrine-preco-periodo {
  font-size: 16px;
  color: #7f8c8d;
}

.vitrine-modal-acoes {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  justify-content: center;
}

.vitrine-btn-principal {
  background: #27ae60;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vitrine-btn-principal:hover {
  background: #219a52;
  transform: translateY(-2px);
}

.vitrine-btn-secundario {
  background: #ecf0f1;
  color: #2c3e50;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vitrine-btn-secundario:hover {
  background: #d5dbdb;
}

/* Responsividade */
@media (max-width: 768px) {
  .vitrine-container {
    padding: 15px;
  }

  /* Cards menores mas mantendo proporção vertical */
  .vitrine-item {
    flex: 0 0 240px !important;
    height: 360px !important;
  }

  .vitrine-item-imagem {
    height: 240px !important;
  }

  .vitrine-carrossel {
    gap: 10px;
  }

  .vitrine-track {
    gap: 15px;
  }

  /* Imagem modal menor em mobile */
  .vitrine-modal-imagem {
    width: 280px !important;
    height: 280px !important;
  }

  .vitrine-modal-acoes {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  /* Cards ainda menores mantendo proporção */
  .vitrine-item {
    flex: 0 0 200px !important;
    height: 320px !important;
  }

  .vitrine-item-imagem {
    height: 200px !important;
  }

  .vitrine-carrossel {
    gap: 10px;
  }

  .vitrine-track {
    gap: 15px;
  }

  /* Imagem modal ainda menor */
  .vitrine-modal-imagem {
    width: 240px !important;
    height: 240px !important;
  }
}
