/* Product Carousel */
.product-carousel {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    margin: 3rem auto;
    padding: 0;
    box-sizing: border-box;
    font-family: "Raleway", sans-serif;
    border: 1px solid #006726;
    border-radius: 10px;
}

.product-wrapper {
    display: flex;
    overflow: hidden;
    width: 85%;
    position: relative;
    margin: auto;
    transition: transform 0.3s ease-in-out;
}

.product-slide {
    display: flex;
    flex: 0 0 100%;
    transition: transform 0.5s ease-in-out;
    justify-content: space-between;
    padding: 20px;
    background-color: #d5ffe1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateX(0%);
    width: 100%;
    box-sizing: border-box;
}

.image-carousel {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    margin-right: 20px;
}

.image-wrapper {
    width: 300px;
    height: 300px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    /*background-color: #f0f0f0; */
    border-radius: 10px;
}

.image-wrapper img {
    width: 95%;
    height: auto;
    object-fit: cover;
}

#current-image {
    transition: opacity 0.3s ease-in-out;
}

#details {
    flex: 1;
    text-align: left;
    align-content: center;
}

#details h1 {
    color: #000;
    font-size: 24px;
    margin-bottom: 10px;
}

#details p {
    margin-bottom: 10px;
    color: #000;
}

.price {
    display: flex;
    font-weight: bold;
    font-size: smaller;
    align-items: center;
}

#product-price {
    font-weight: 400;
    color: #f00;
    font-style: normal;
    font-family: "Ubuntu", sans-serif;
    font-size: large;
}

#get-button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 5px 0 #999;
    font-weight: bold;
}

#get-button:hover {
    background-color: green;
    color: #fff;
}

/* Carousel Navigation Buttons */
#prev-product, #next-product {
    color: #000;
    font-size: 33px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    opacity: 0.6;
    background: transparent;
    padding: 0;
    position: absolute;
    z-index: 20;
}

#prev-product:hover, #next-product:hover {
    color: #f00;
    background: #000;
    opacity: 1;
}

#prev-product:disabled, #next-product:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#prev-product {left:10px;}
#next-product {right:10px;}

#prev-btn, #next-btn {
    background: transparent;
    color: #000;
    opacity: 0.4;
    font-size: 22px;
    height: 40px;
    width: 40px;
    border-radius: 50%;
    padding: 0;
    box-shadow: none;
    border: none;
    transition: box-shadow 0.3s ease;
}

#prev-btn:hover, #next-btn:hover {
    opacity: 1;
    box-shadow: 0 0 5px #000;
}

/* Smooth transitions */
@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slide-in-right {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-left {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-in-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fade-in 0.5s ease-in-out;
}

.slide-in-right {
    animation: slide-in-right 0.5s ease-in-out;
}

.slide-in-left {
    animation: slide-in-left 0.5s ease-in-out;
}

.slide-in-up {
    animation: slide-in-up 0.5s ease-in-out;
}

.slide-in-down {
    animation: slide-in-down 0.5s ease-in-out;
}


/* Mobile Display Styles */
@media (max-width: 991.98px) {
    .product-carousel {
        flex-wrap: wrap;
        transition: height 0.4s ease;
    }
    .product-slide {
        flex-wrap: wrap;
        padding: 0;
    }
    .image-carousel {
        margin-right: 0;
        max-width: 100%;
        flex-direction: row;
        margin-top: 12px;
    }
    .image-wrapper {
        max-width: 100%;
    }
    .image-wrapper img {
        width: 100%;
        height: 100%;
    }
    
    #details h1 {
        margin-top: 0.5rem;
        padding: 0 10px;
    }
    
    #prev-product, #next-product {
        font-size: 22px;
        background: #000;
        width: 30px;
        height: 40px;
        color: #fff;
        top: 19.2rem;
        border-radius: 0;
    }
    #prev-product {
        left: -0.3rem;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }
    #next-product {
        right: -0.3rem;
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }
    
    #prev-btn, #next-btn {
        font-size: 16px;
        width: 30px;
        height: 30px;
        position: fixed;
        background: darkgray;
        transform: rotate(-90deg);
    }
    #prev-btn {
        left: 5px;
    }
    #next-btn {
        right: 5px;
    }
    
    #get-button {
        margin-bottom: 1.5rem;
        margin-left: 0.2rem;
    }

}