/* Banner layout */
.banner {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 2em 3em;
  gap: 50px;
  margin-top: 4em;
}

.banner-content {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  /* adjust spacing between carousel and card */
}

/* Left side text alignment */
.left_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 30px;
  max-width: 700px;
}

.banner_name h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
  font-family: 'Poppins', sans-serif;
}

.banner_name h3 {
  color: #555;
  font-family: 'Poppins', sans-serif;
}

/* ---------------------------------------------------- */
/* Right side product box and New Release Sticker */
/* ---------------------------------------------------- */

.right_container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.banner_image_product {
  margin-top: 70px;
  position: relative;
  width: 320px;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* ADD THIS LINE: Set a background color that matches your body or is transparent */
  background-color: #FFF6EA;
  /* Or 'transparent', or match your overall page background */
  /* OR, if your image has transparency and you want a specific background behind it: */
  /* background-color: #f0f0f0; */
}

.banner_image_product:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.banner_image_product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensure image also takes up full space, sometimes it needs display: block */
  display: block;
}

/* Shop Now button overlay on image */

/* 1. Define a custom animation that INCLUDES the centering logic */
@keyframes centeredPulse {
  0% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.05);
    /* Pulse Big */
  }

  100% {
    transform: translateX(-50%) scale(1);
  }
}

.shop-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  /* Changed from 30% to 50% to better center it with translateX(-50%) */
  transform: translateX(-50%);
  background: #ffb400;
  color: #000;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;

  animation-name: centeredPulse;

  animation-duration: 1.5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  animation-delay: 0.5s;
  transition: none;
}

.shop-btn:hover {
  background: #c49706;
  transform: translateX(-50%) scale(1.05);
}

/* Hand-drawn style for the "New Release" sticker */
.new-release {
  position: absolute;
  /* ADJUSTED: Moved from -120px to -80px to bring it lower */
  top: -5px;
  right: 280px;
  left: auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;

  /* Remove box styling for the hand-drawn look */
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;

  /* Apply rotation and animation settings */

  z-index: 20;

  /* Settings for animate__heartBeat */
  animation-duration: 5s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  transition: none;
}

.new-release:hover {
  /* Subtle hover effect for the rotated element */
  transform: rotate(5deg) scale(1.02);
  box-shadow: none;
}

/* Style for the text */
.new-release p {
  /* Use 'Permanent Marker' for a hand-drawn text look (must be linked in HTML head) */
  font-family: 'Alexturners', sans-serif;
  font-weight: 200;
  color: #000;
  font-size: 50px;
  margin: 0;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  transform: rotate(5deg);
}

/* Style for the arrow image */
.new-release img {
  width: 50px;
  height: 50px;
  /* Rotate to point down-right */
  transform: rotate(5deg);
  margin-top: 5px;
  /* Offset to center the arrow tip on the image corner */
  margin-right: -25px;
}

/* ---------------------------------------------------- */
/* Carousel styling */
/* ---------------------------------------------------- */

.video-carousel {
  position: relative;
  width: 650px;
  margin: 0 auto;
  height: 340px;
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Each video card */
.carousel-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: 80%;
  height: 100%;
  transform-origin: center center;
  transition: transform 0.7s ease, opacity 0.7s ease;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
}

.carousel-item iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.carousel-item.active {
  opacity: 1;
  pointer-events: auto;
}

/* Navigation buttons */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  padding: 10px 12px;
  cursor: pointer;
  z-index: 20;
  transition: background 0.3s;
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev-btn {
  left: -30px;
}

.next-btn {
  right: -30px;
}

.prev-btn:disabled,
.next-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}