/* ==== HERO CAROUSEL STYLING ==== */
.heroCarousel {
  height: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.heroCarousel .carousel-inner,
.heroCarousel .carousel-item {
  height: 100%;
  width: 100%;
  position: relative;
  min-height: 800px;
  transition: opacity 1s ease-in-out;
}

.heroCarousel .carousel-item .hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #000;
  display: block;
  opacity: 0;
  transition: opacity 1s ease, transform 1.2s ease;
  transform: scale(1);
}

.heroCarousel .carousel-item.active .hero-img.loaded {
  opacity: 1;
  transform: scale(1.02);
}

.heroCarousel .carousel-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.6);
  padding: 25px 35px;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  z-index: 10;
  max-width: 80%;
}

.heroCarousel .carousel-caption h1,
.heroCarousel .carousel-caption p {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.heroCarousel .carousel-caption h1 {
  animation-delay: 0.1s;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.heroCarousel .carousel-caption p {
  animation-delay: 0.4s;
  font-size: 1.5rem;
  font-weight: 400;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-60%, -40%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.heroCarousel .carousel-control-prev,
.heroCarousel .carousel-control-next {
  display: none !important;
}

/* ==== PRODUCT IMAGE CARD WRAPPER ==== */
.product-image-wrapper {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* ==== FOOTER STYLING ==== */
.modern-footer {
  background-color: #13182d !important;
  color: #eee;
  padding: 20px 0;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 30px;
  padding: 0 20px;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h4 {
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
  padding-left: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ddd;
  text-decoration: none;
}

.footer-column p {
  margin-bottom: 10px;
}

.social-icons i {
  margin-right: 10px;
  font-size: 20px;
}

/* ==== NAVBAR & SEARCH BOX ==== */
.navbar-collapse {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.search-container {
  position: relative;
}

#searchProduct {
  display: none;
  width: 0;
  opacity: 0;
  transition: all 0.3s ease;
}

#searchProduct.expanded {
  display: block;
  width: 200px;
  opacity: 1;
}

#search-icon {
  font-size: 20px;
  color: white;
  transition: all 0.3s ease;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

#search-results {
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ==== RESPONSIVE FIXES ==== */
@media (max-width: 992px) {
  .heroCarousel {
    height: 600px;
  }
  .heroCarousel .carousel-inner,
  .heroCarousel .carousel-item {
    height: 600px;
    min-height: 600px;
  }
  .heroCarousel .carousel-caption {
    padding: 15px 25px;
    max-width: 90%;
  }
  .heroCarousel .carousel-caption h1 {
    font-size: 2.2rem;
  }
  .heroCarousel .carousel-caption p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .heroCarousel {
    height: 480px;
  }
  .heroCarousel .carousel-inner,
  .heroCarousel .carousel-item {
    height: 480px;
    min-height: 480px;
  }
  .heroCarousel .carousel-caption {
    padding: 12px 20px;
    max-width: 95%;
  }
  .heroCarousel .carousel-caption h1 {
    font-size: 1.6rem;
  }
  .heroCarousel .carousel-caption p {
    font-size: 0.95rem;
  }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 0 15px;
  }
  .navbar-collapse {
    flex-direction: column;
    align-items: flex-start;
  }
  #searchProduct.expanded {
    width: 100%;
  }
  #search-icon {
    top: 10px;
    right: 10px;
  }
}
