/* ========================================
   HERO SLIDER STYLES
   ======================================== */

/* Hero slider full width container */
.hero-slider-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0;
}

/* Hero slider base styles */
#heroSlider {
    border-radius: 0 !important;
    box-shadow: none !important;
    overflow: hidden;
}

#heroSlider .carousel-inner {
    border-radius: 0 !important;
    box-shadow: none !important;
}

#heroSlider .carousel-item {
    height: 500px;
    position: relative;
    border-radius: 0 !important;
    box-shadow: none !important;
}

#heroSlider .carousel-item img {
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Hero slider gradient overlay */
#heroSlider .carousel-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(to top, rgb(238 242 245) 0% 0%, rgb(255 255 255 / 30%) 50% 50%, #ffffff00 100% 100%);
    pointer-events: none;
}

/* Hero slider navigation */
#heroSlider .slider-navigation {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.nav-button {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slider-dots {
    display: flex;
    gap: 8px;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border: none;
    background: rgba(255,255,255,0.4);
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dot-indicator.active {
    width: 24px;
    background: #fff;
}

/* ========================================
   GENERAL CAROUSEL STYLES
   ======================================== */

/* Base carousel styles */
.carousel {
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* General carousel styles (excluding heroSlider) */
.carousel:not(#heroSlider) {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-item {
    height: auto;
}

.carousel-fade .carousel-item {
    transition: opacity 0.75s ease-in-out;
}

/* Carousel captions */
.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    text-align: right;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.carousel-caption .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

/* Carousel indicators */
.carousel-indicators {
    margin-bottom: 2rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: none;
    margin: 0 3px;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* ========================================
   PRODUCT IMAGE CAROUSEL
   ======================================== */

#productImageCarousel .carousel-item {
    background-color: #f8f9fa;
}

#productImageCarousel .carousel-item img {
    height: 100%;
    object-fit: contain;
}

#productImageCarousel .carousel-indicators {
    margin-top: 10px;
}

#productImageCarousel .carousel-control-prev,
#productImageCarousel .carousel-control-next {
    background-color: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Tablet styles */
@media (max-width: 992px) {
    .slide-content {
        right: 5%;
        left: 5%;
        bottom: 10%;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    #heroSlider .carousel-item {
        height: auto;
    }
    
    #heroSlider .carousel-item img {
        height: 100%;
        object-fit: cover;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 150% !important;
        justify-self: center;
    }
    
    .carousel-item img {
        height: auto !important;
    }
    
    #productImageCarousel .carousel-item {
        height: 390px !important;
    }
}

@media (max-width: 767.98px) {
    .carousel-item {
        height: 240px;
    }
    
    .carousel-caption {
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
}
