/* ============================================= */
/* ESTILOS DO MODAL E CARROSSEL - VERSÃO MÁGICA  */
/* ============================================= */

/* ===== BACKDROP E ANIMAÇÃO DO MODAL ===== */


.modal-carrossel::backdrop {
  backdrop-filter: blur(8px) saturate(120%);
}

.modal-carrossel {
  width: 90%;
  max-width: 1300px;
  background-color: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: auto;
  overflow: visible;
}

.modal-carrossel[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: slideUpFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== CABEÇALHO ELEGANTE ===== */
.modal-header {
  width: 100%;
  text-align: center;
  margin-bottom: 2.5rem; /* Mais espaço para respirar */
}

.modal-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px; /* Leve espaçamento */
}

/* ===== BOTÃO DE FECHAR FLUTUANTE E ESTILIZADO ===== */
.modal-fechar {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1050;
  background: rgba(0, 0, 0, 0.3); /* Fundo semitransparente */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px); /* Efeito de vidro */
}

.modal-fechar:hover {
  transform: scale(1.1) rotate(90deg); /* Gira ao passar o mouse */
  background: rgba(255, 0, 0, 0.7); /* Cor de destaque no hover */
  color: #fff;
}

/* ===== CONTAINER E EFEITOS DO CARROSSEL ===== */
.carrossel-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  
}

.carrossel-wrapper {
  overflow: hidden;
  width: 100%;
  border-radius: 12px;
  
}

.carrossel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1); /* Transição mais suave */
}

/* ===== CARD COM DESIGN PREMIUM ===== */
.carrossel-item {
  flex-shrink: 0;
  width: calc(33.333% - 13.34px); /* Largura para 3 itens com 20px de gap */
  background: linear-gradient(145deg, #ffffff, #f7f7f7);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item-imagem img {
  width: 100%;
  display: block;
  aspect-ratio: 17/13;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.carrossel-item:hover .item-imagem img {
  transform: scale(1.10); /* Zoom sutil na imagem */
}

.item-info {
  padding: 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.item-marca {
  font-size: 1rem;
  font-weight: 700;
  color: #c0a068; /* Cor de destaque (dourado) */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}

.item-modelo {
  font-size: 1rem;
  color: #555;
  margin: 0 0 1rem 0;
}

.item-nome {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  line-height: 1.3;
  flex-grow: 1;
}

.item-codigo {
  margin-top: auto;
  padding-top: 8px;
  font-size: 1rem;
  color: #999;
  border-top: 1px solid #eee;
}

/* ===== BOTÕES DE NAVEGAÇÃO MODERNOS ===== */
.carrossel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 50px;  
  height: 50px;
  font-size: 1.8rem;
  color: #333;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.carrossel-btn:hover {
  background-color: #c0a068; /* Cor de destaque */
  color: #fff;
  box-shadow: 0 6px 20px rgba(192, 160, 104, 0.4);
}

.carrossel-btn.prev {
  left: -25px; /* Levemente afastado */
}

.carrossel-btn.next {
  right: -25px;
}

/* ===== PAGINAÇÃO INTERATIVA E VISUAL ===== */
.carrossel-paginacao {
  display: flex;
  justify-content: center;
  gap: 17px; 
  margin-top: 3rem; 
  padding-bottom: 1rem;
}

.paginacao-dot {
  width: 17px;
  height: 17px;
  cursor: pointer;
  background-color: rgba(119, 119, 119, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  padding: 0;
  transition: all 0.4s ease;
  transform: scale(1);
}

.paginacao-dot:hover {
  background-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.paginacao-dot._active {
  background-color: #c0a068; /* Dourado para indicar o ativo */
  border-color: #c0a068;
  transform: scale(1.5);
  box-shadow: 0 0 10px rgba(192, 160, 104, 0.7);
}

.paginacao-dot:focus-visible {
  outline: 3px solid #c0a068;
  outline-offset: 3px;
}