/* Catalogue Carousel CSS */

.catalogue-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.carousel-track-wrapper {
    overflow: hidden;
}
.carousel-card .image-wrapper {
    width: 100%;
    height: 300px; /* fixed height for all items */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff; /* optional, to prevent transparency gaps */
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 0px;
    transition: transform 0.4s ease;
}

.carousel-card {
    flex: 0 0 auto;
    text-align: center;
    padding:0.5rem;
    width: 25%; /* this sets a fixed width for each image in the catalogue carousel display */
}

.carousel-card img {
    display: block;
    margin: 0 auto;
    max-height: 250px;
    object-fit: contain;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 30px;
    font-weight: bold;
    padding-left: 14px;
    line-height: 32px;
    cursor: pointer;
    display: flex;
    z-index: 10;
    transition: background-color 0.2s ease;
    /*align-items: center;*/
    /*justify-content: center;*/
}
.carousel-btn:hover ,
.carousel-btn:focus {
    background: #6c757d;
    border: #6c757d;
    box-shadow: none;
    outline: none;
}

.carousel-card:hover img {
    transform: scale(1.05);
}

.carousel-btn.prev { left: 0.5rem; }
.carousel-btn.next { right: 0.5rem; }

.catalog_carousel_style {
    font-weight: bold;
    color: #000000;
    margin-bottom: 1rem;
}
.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
}

/* Left button (prev) */
.carousel-btn.prev {
    left: -50px; /* move it OUTSIDE the carousel track */
}

/* Right button (next) */
.carousel-btn.next {
    right: -50px;
}

/* Dots container */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Individual dot */
.carousel-dot {
    width: 10px;
    height: 10px;
    background-color: #ccc;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Active dot */
.carousel-dot.active {
    background-color: #000;
}
/* Prevent arrows from overlapping small screens */
@media (max-width: 768px) {
    /* 2 items on tablets and mobile */
    @media (max-width: 768px) {
        .carousel-card {
            flex: 0 0 50%; /* 2 items visible */
        }

        .carousel-btn.prev {
            left: 5px;
        }

        .carousel-btn.next {
            right: 5px;
        }
    }

    /* 1 item on very small phones */
    @media (max-width: 480px) {
        .carousel-card {
            flex: 0 0 100%;
        }
    }

}
@media (max-width: 480px) {
    .carousel-card {
        flex: 0 0 100%;
    }
}
