
/* 1. Wrapper tổng */
/* ———————————————————————————————— */
/* 1. Toàn cục: Dialog rộng 50vw, căn giữa */
/* ———————————————————————————————— */
#productQuickView.modal {
    z-index: 2000 !important;
    /* cao hơn header */
}

#productQuickView .modal-backdrop {
    z-index: 1990 !important;
}

#productQuickView .modal-dialog {
    margin: 80px auto 40px;
    max-width: 50vw;
    width: 50vw;
    margin: 2.5rem auto;
    /* căn giữa, có margin trên/dưới */
}

/* ———————————————————————————————— */
/* 2. Nội dung modal */
#productQuickView .modal-content {
    margin-top: 150px;
    border-radius: 6px;
    overflow: hidden;
}

/* ———————————————————————————————— */
/* 3. Row chứa thumbnails/carousel/info flex chính */
#productQuickView .modal-body .row.no-gutters {
    display: flex;
    flex-wrap: nowrap;
}

/* ———————————————————————————————— */
/* 4. Thumbnails */
#thumb-list {
    flex: 0 0 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 12px;
}

#thumb-list img {
    width: 80px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

#thumb-list img.active-thumb,
#thumb-list img:hover {
    border-color: #28a745;
    transform: scale(1.05);
}

/* ———————————————————————————————— */
/* 5. Carousel chính */
#productCarousel {
    flex: 1 1 auto;
    max-width: calc(100% - 60px - 12px);
}

#productCarousel .carousel-item img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    transition: box-shadow .3s ease;
}

#productCarousel .carousel-item:hover img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ———————————————————————————————— */
/* 6. Info bên phải */
#productQuickView .modal-body .col-md-4 {
    flex: 0 0 28%;
    max-width: 28%;
    padding-left: 12px;
}

/* ———————————————————————————————— */
/* 7. Custom arrows */
.wrap-slick3-arrows {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.wrap-slick3-arrows button {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, .4);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.wrap-slick3-arrows button:hover {
    background: rgba(0, 0, 0, .6);
}

.wrap-slick3-arrows .prev:before {
    content: "\f053";
    font-family: "FontAwesome";
}

.wrap-slick3-arrows .next:before {
    content: "\f054";
    font-family: "FontAwesome";
}

/* ———————————————————————————————— */
/* 8. Responsive: Mobile (<768px) */
/*    - Modal full width, stack thành cột */
/*    - Thumbnails ngang, carousel / info full */
/* ———————————————————————————————— */
@media (max-width: 767.98px) {
    #productQuickView .modal-dialog {
        margin: 60px auto 20px;
        max-width: 90vw;
        width: 90vw;
    }

    #productQuickView .modal-body .row.no-gutters {
        flex-wrap: wrap;
    }

    /* Thumbnails chuyển thành hàng ngang */
    #thumb-list {
        flex-direction: row;
        flex: 0 0 30px;
        /* width 50px */
        gap: 6px;
        margin-right: 8px;
        justify-content: center;
    }

    #thumb-list img {
        width: 40px;
        margin: 0 6px;
    }

    /* Carousel full */
    #productCarousel {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 12px;
    }

    /* Info full */
    #productQuickView .modal-body .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 0;
    }

    .wrap-slick3-arrows {
        display: none;
    }

    #productQuickView .modal-content {
        margin-top: 80px;
        border-radius: 6px;
        overflow: hidden;
    }

    /* ẩn arrows trên mobile */
}
