﻿
.carousel-wrapper {
    position: relative;
    max-width: 100%;
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 1rem;
    padding: 1rem 2rem;
    margin: 0 auto;
}

    .carousel::-webkit-scrollbar {
        display: none;
    }

.bag-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
}

.bag-item {
    flex: 0 0 auto;
    border-radius: 50%;
    border: 2px solid transparent;
    padding: 0.25rem;
    transition: border-color 0.3s;
    cursor: pointer;
    background: #f5e6ba;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.bag-label {
    margin-top: 0.5rem;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.bag-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.bag-item.selected {
    border-color: #1a1a1a;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    padding: 0.5rem;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
}

    .arrow.left {
        left: 0;
    }

    .arrow.right {
        right: 0;
    }

@media (min-width: 768px) {
    .arrow {
        display: block;
    }

    .bag-item img {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 1024px) {
    .bag-item img {
        width: 70px;
        height: 70px;
    }
}


