.carousel-container {
    padding: 2%;
    /*background-color: #00000029;*/
    background-color:white;
    /*background-image: url('../images/theme/bg-slider.png');*/
    overflow: hidden;
    position: relative; /* Add position relative */
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    /* Ensure enough space for 5 product items */
    margin-left: -20px; /* Compensate for right margin */
    touch-action: pan-y; /* Allow vertical scrolling */
}

.carousel-title{
    padding: 0% 0% 2% 0%;
    color: #ab7904;
}

.product {
    flex: 0 0 calc(20% - 20px);
    margin-right: 20px;
    padding: 0.5%;
    /* background-color: #edf4f7; */
    background-color: #fff;
    /* border: 1px solid gray; */
    box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
    cursor: pointer;
    border-radius: 1px;
    padding: 8px;
    background-color: #fff;
    display: inline-block;
}

/* Additional styling for product image and name */
.product img {
    width: 100%;
    height: auto;
}

figcaption h3 {
    text-align: center;
    color: #312e2e;
    padding: 4% 0;
}



/* Styles for navigation buttons */
.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(171 121 4 / 76%);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 20px 10px;
    z-index: 1; /* Ensure buttons stay above carousel */
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Media queries for tablet and mobile */
@media (max-width: 1024px) {
    .product {
        flex: 0 0 calc(25% - 20px); /* 4 items visible on tablet */
    }
}

@media (max-width: 600px) {
    .carousel {
        justify-content: center; /* Center products */
        overflow-x: auto; /* Enable horizontal scrolling */
        -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
    }

    .product {
        flex: 0 0 calc(50% - 20px); /* 2 items visible on mobile */
        margin: 0 0.5%; /* 0.5% padding from left and right */
    }
    .prev-btn,
    .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(171 121 4 / 76%);
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 4px;
    z-index: 1; /* Ensure buttons stay above carousel */
}
}
