.hero-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
}
.hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.glide__slides {
  list-style: none;
  padding: 0;
  margin: 0;
}


.slide {
  position: relative;
  width: 100%;
  height: 15vh; /* Force full height on mobile */
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

@media (min-width: 640px) {
  .slide { height: 50vh; } /* was 80vh */
}
@media (min-width: 768px) {
  .slide { height: 55vh; } /* was 85vh */
}
@media (min-width: 1024px) {
  .slide { height: 60vh; } /* was 90vh */
}

.slide img {
  position: absolute; /* Key fix */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}


.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent, rgba(0, 0, 0, 0.1));
  z-index: 10;
}

.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 20;
}

.slider-controls button {
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 10px;
  margin: 0 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: background 0.3s ease;
}

.slider-controls button:hover {
  background: white;
}

.slider-pagination {
  position: absolute;
  bottom: 10px; /* Adjust as needed */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px; /* Space between bullets */
  z-index: 20;
}

/* Default bullet styles */
.slider-pagination .glide__bullet {
  background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
  width: 12px; /* Increased size for better visibility */
  height: 12px; /* Increased size */
  border-radius: 50%; /* Circular shape */
  border: 2px solid rgba(255, 255, 255, 0.8); /* White border */
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease; /* Smooth transitions */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Hover state */
.slider-pagination .glide__bullet:hover {
  background-color: rgba(255, 255, 255, 0.8); /* Lighter on hover */
  transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Active bullet style - THIS IS THE KEY ADDITION/MODIFICATION */
/* Glide.js adds glide__bullet--active class automatically */
.slider-pagination .glide__bullet--active {
    background-color: #EF4444; /* Your desired active color, e.g., Red-600 */
    border-color: #EF4444; /* Match border to active color */
    transform: scale(1.2); /* Make active bullet slightly larger */
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.4); /* More prominent shadow for active */
}

/* Ensure the carousel wrapper uses relative positioning */
.carousel {
  position: relative;
}

/* Style the prev/next buttons */
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
  z-index: 10; /* Ensure buttons are above the products */
}

.carousel__arrow--left {
  left: 1rem;
}

.carousel__arrow--right {
  right: 1rem;
}

/* Adjust spacing for smaller screens */
@media (max-width: 768px) {
  .carousel__arrow {
    padding: 0.3rem;
  }
}
/* Shared Elements */
.discount-badge {
    clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%);
    z-index: 10;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-fade-in {
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

    [x-cloak] { display: none !important; }
        .scrollbar-hide::-webkit-scrollbar { display: none; }

        /* Smooth dropdown transitions */
        .dropdown-transition {
            transition: opacity 0.15s ease, transform 0.15s ease;
        }
        .dropdown-enter {
            opacity: 0;
            transform: translateY(-5px);
        }
        .dropdown-enter-to {
            opacity: 1;
            transform: translateY(0);
        }
        .dropdown-leave {
            opacity: 1;
            transform: translateY(0);
        }
        .dropdown-leave-to {
            opacity: 0;
            transform: translateY(-5px);
        }

        /* Dropdown container that stays open when hovered */
        .dropdown-container:hover .dropdown-panel {
            display: block;
        }


        /* Style for wishlisted items */
.wishlisted .wishlist-btn i {
    color: #ef4444 !important; /* red-500 */
}

/* Style for items in cart */
.in-cart {
    opacity: 0.8;
}
.in-cart .add-to-cart {
    background-color: #10b981 !important; /* emerald-500 */
    color: white !important;
}
 .discount-badge {
          position: absolute;
          top: 0;
          left: 0;
          background-color: #dc2626; /* Tailwind's red-600 */
          color: white;
          font-weight: bold;
          font-size: 0.75rem; /* text-xs */
          padding: 0.25rem 0.75rem; /* px-3 py-1 */
          clip-path: polygon(0 0, 100% 0, 90% 50%, 100% 100%, 0 100%);
          z-index: 30;
          transform: translateY(-10%) rotate(-5deg);
          box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
          border-top-right-radius: 0.25rem;
        }

        .discount-badge::after {
          content: '';
          position: absolute;
          bottom: -6px;
          left: 0;
          width: 0;
          height: 0;
          border-left: 8px solid #991b1b; /* darker red "shadow" tab */
          border-top: 8px solid transparent;
        } box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}