/* Carrossel Simples e Responsivo */
* {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
}

.products-carousel {
  width: 100%;
  max-width: 100vw;
  margin: 15rem auto 2rem auto;
  padding: 0 1rem;
  overflow: visible;
  box-sizing: border-box;
  position: relative;
  z-index: 25;
}

.carousel-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 8rem;
  gap: 1.5rem;
  position: relative;
  z-index: -1;
}

.carousel-header h2 {
  font-size: 4rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.carousel-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.carousel-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0;
  box-sizing: border-box;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 1rem;
  width: max-content;
  min-width: 100%;
  position: relative;
  z-index: 50;
}

.carousel-track .card {
  flex: 0 0 auto;
  width: 250px;
  height: 350px;
  border-radius: 0;
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 50%, #000000 100%);
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.6),
    0 5px 15px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  cursor: grab;
  display: flex;
  flex-direction: column;
}

.carousel-track .card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 0;
  background: linear-gradient(135deg, #666666, #333333, #000000);
  z-index: -1;
  transition: background 0.3s ease;
}

/* Sistema de cores igual à index - ATUALIZADO 2025-09-04 */
.carousel-track .card {
  --card-hue: calc(var(--i, 0) * 40);
  --card-chroma: 0.3;
  --card-lightness: 75%;
  font-family: 'Geist', 'SF Pro Text', 'SF Pro Icons', 'AOS Icons',
    'Helvetica Neue', Helvetica, Arial, sans-serif, system-ui;
  z-index: 100;
  position: relative;
}

.carousel-track .card:hover::before {
  background: oklch(
    var(--card-lightness) 
    var(--card-chroma) 
    var(--card-hue)
  ) !important;
}

.carousel-track .card:active {
  cursor: grabbing;
}

.carousel-track .card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.7),
    0 10px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6);
  z-index: 200;
}

.carousel-track .card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.card-details {
  position: relative;
  padding: 2rem;
  color: #fff;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: visible;
}

.card-header {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  word-wrap: break-word;
}

.card-description {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0;
  margin-top: 2rem;
  opacity: 0.9;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.card-call-to-action {
  margin-top: auto;
  flex-shrink: 0;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-decoration: none;
  display: inline-block;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.carousel-footer {
  text-align: center;
  margin-top: 4rem;
}

.carousel-footer p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  margin: 0;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* Responsividade */
@media (max-width: 768px) {
  .products-carousel {
    padding: 0 0.5rem;
    margin: 8rem auto 1.5rem auto;
    max-width: 100vw;
    overflow: hidden;
  }
  
  .carousel-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    margin-bottom: 3rem;
  }
  
  .carousel-header h2 {
    font-size: 3rem;
  }
  
  .carousel-header p {
    font-size: 0.9rem;
  }
  
  .carousel-container {
    max-width: 100%;
    overflow: hidden;
  }
  
  .carousel-track {
    gap: 0.75rem;
  }
  
  .carousel-track .card {
    width: 200px;
    height: 280px;
  }
  
  .card-details {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.3rem;
  }
  
  .card-description {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .products-carousel {
    padding: 0 0.25rem;
    margin: 6rem auto 1rem auto;
    max-width: 100vw;
    overflow: hidden;
  }
  
  .carousel-track .card {
    width: 180px;
    height: 340px;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .card-description {
    font-size: 0.75rem;
  }
  
  .card-details {
    padding: 1.25rem;
  }
}
