/* --- CSS RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body,
html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background-color: #1a1a1a;
  color: white;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slides-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease-in-out,
    visibility 0.8s;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Gradiente para garantir leitura do texto sobre a imagem */
.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
}

.slide-info {
  position: relative;
  z-index: 3;
  padding: 4% 6%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.product-name {
  font-size: 5vw;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 60%;
}

.price-container {
  background-color: #e74c3c;
  padding: 1rem 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.price-label {
  display: block;
  font-size: 3vw;
  font-weight: 700;
  font-style: italic;
  transform: translate(0rem);
  text-transform: uppercase;
  opacity: 1;
}

.price-value {
  font-size: 6vw;
  font-weight: 900;
  line-height: 1;
}

.price-unit {
  font-size: 2vw;
  font-weight: 400;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: #f1c40f;
  width: 0%;
  z-index: 4;
  transition: width linear;
}

@media (max-width: 768px) {
  .slide-info {
    flex-direction: column;
    align-items: flex-start;
    padding: 10%;
  }
  .product-name {
    font-size: 8vw;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .price-container {
    width: 100%;
    text-align: center;
  }
  .price-value {
    font-size: 12vw;
  }
  .price-label {
    font-size: 4vw;
  }
  .price-unit {
    font-size: 5vw;
  }
}
