.other-products-bar {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 8px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #bbb #f5f5f5;
}

.other-products-bar::-webkit-scrollbar {
    height: 8px;
}

.other-products-bar::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

.other-products-bar::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.product-bar-card {
    cursor: pointer;
    min-width: 140px;
    max-width: 160px;
    flex: 0 0 auto;
    transition: border 0.2s, background 0.2s;
    border: 1px solid #eee;
    background: #fff;
    height: 170px; /* Đặt chiều cao cố định cho card */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.product-bar-card.active,
.product-bar-card.selected {
    border: 2px solid #007bff;
    background: #f0f8ff;
}

.product-bar-card .card-img-top {
    height: 80px;
    object-fit: cover;
    width: 100%;
}

.product-bar-card .card-body {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
}

@media (min-width: 1200px) {
    .other-products-bar .product-bar-card {
        min-width: 15%;
        max-width: 16.5%;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .other-products-bar .product-bar-card {
        min-width: 20%;
        max-width: 22%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .other-products-bar .product-bar-card {
        min-width: 25%;
        max-width: 28%;
    }
}

@media (max-width: 767.98px) {
    .other-products-bar .product-bar-card {
        min-width: 40%;
        max-width: 45%;
    }
}