/* Product Slider Container */
.product-slider-container {
    position: relative;
    width: 100%;
    max-width: 1120px;
    margin: auto;
    overflow: hidden;
    padding-top: 10px;
}

/* Product Slider Wrapper */
.product-slider {
    display: flex;
    transition: transform 0.5s ease;
}

/* Product Slide - contains items */
.product-slide {
    display: flex;
    min-width: 100%;
    justify-content: space-around;
}

/* Individual Product Item */
.product-item {
    text-align: center;
    width: 240px;
    box-sizing: border-box;
    padding: 10px;
}

/* Image within Product Item */
.product-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

/* Product Title */
.product-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* View Details Link */
.product-item a {
    font-size: 14px;
    color: rgb(82, 82, 82);
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
}

/* Arrows for Navigation */
.product-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
}

.product-arrow-left {
    left: 0;
}

.product-arrow-right {
    right: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .product-item {
        width: 200px; /* Slightly smaller items on tablets and small desktops */
    }
}

@media (max-width: 768px) {
    .product-slider-container {
        max-width: 100%; /* Full width on tablets and below */
    }

    .product-item {
        width: 180px; /* Smaller product items for smaller screens */
    }
}

@media (max-width: 600px) {
    .product-slide {
        flex-wrap: wrap; /* Allows items to wrap for extra small screens */
        justify-content: center;
    }

    .product-item {
        width: 45%; /* Two items per row on small mobile screens */
    }
}

@media (max-width: 480px) {
    .product-item {
        width: 100%; /* Single item per row on extra small screens */
    }

    .product-item h3 {
        font-size: 14px; /* Adjusted text size for small screens */
    }

    .product-item a {
        font-size: 12px;
    }

    .product-arrow {
        padding: 8px; /* Smaller arrow buttons on extra small screens */
        font-size: 16px;
    }
}
