.product-detail {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
}

/* Slider nằm 1/2 bên trái */
/*.product-gallery {
    width: calc(50% - 25px);
    min-width: 0;
}*/

/* Main slider */
.product-main {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.product-main .swiper-slide {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fff;
}

.product-main .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    user-select: none;
}

/* Nút phóng to */
.product-zoom-btn {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 0;

    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);
    color: #111;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        background-color 0.25s ease;
}

/* Chỉ hiện trên active slide */
.product-main .swiper-slide-active .product-zoom-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.product-zoom-btn:hover {
    background: #111;
    color: #fff;
}

.product-zoom-btn svg {
    width: 20px;
    height: 20px;
}

/* Navigation */
.product-gallery .swiper-button-prev,
.product-gallery .swiper-button-next {
    width: 32px;
    height: 32px;
    padding: 8px;
    margin-top: -22px;
    border: 1px solid #eee;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    color: #111;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
    position: absolute;
}

.product-gallery .swiper-button-prev {
    left: 0;
}

.product-gallery .swiper-button-next {
    right: 0;
}

.product-gallery .swiper-button-prev::after,
.product-gallery .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

/* Thumbnail slider */
.product-thumbs {
    width: 100%;
    margin-top: 10px;
}

.product-thumbs .swiper-slide {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    opacity: 0.55;
    transition:
        border-color 0.2s ease,
        opacity 0.2s ease;
}

.product-thumbs .swiper-slide:hover {
    opacity: 0.85;
}

.product-thumbs .swiper-slide-thumb-active {
    border-color: #bbb;
    opacity: 1;
}

.product-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: cover;
    user-select: none;
}

/* Modal phóng to */
.product-lightbox {
    width: min(1100px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100vh - 40px);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 15px;
    background: #fff;
}

.product-lightbox::backdrop {
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
}

.product-lightbox__content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(850px, calc(100vh - 40px));
    padding: 30px;
}

.product-lightbox__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-lightbox__close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    padding: 0;

    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991px) {

    .product-gallery {
        width: 100%;
    }

    .product-gallery .swiper-button-prev,
    .product-gallery .swiper-button-next {
        margin-top: -19px;
    }
}

@media (max-width: 575px) {

    .product-zoom-btn {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }

    .product-lightbox {
        width: calc(100% - 20px);
    }

    .product-lightbox__content {
        height: calc(100vh - 80px);
        padding: 15px;
    }

    .product-lightbox__close {
        top: 10px;
        right: 10px;
    }
}