/* =========================================================
PRODUCT DETAIL PAGE
========================================================= */

/* Banner */
#detail-page-banner{
    padding:140px 0 70px;
    background:#fff;
}

#detail-page-banner .container,
#product-detail-modern .container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.detail-auto-slider{
    position:relative;
    width:calc(100% + 80px);
    height:560px;
    margin-left:-40px;
    overflow:hidden;
    border-radius:14px;
    background:#111;
    box-shadow:0 20px 60px rgba(0,0,0,.14);
}

.detail-banner-slide{
    position:absolute;
    inset:0;
    opacity:0;
    visibility:hidden;
    z-index:1;
    transition:opacity .65s ease, visibility .65s ease;
}

.detail-banner-slide.active{
    opacity:1;
    visibility:visible;
    z-index:3;
}

.detail-banner-slide img{
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    object-fit:cover !important;
    object-position:center center;
    display:block;
}

.detail-slider-btn{
    position:absolute;
    top:50%;
    z-index:5;
    padding:0 16px;
    border:none;
    background:transparent !important;
    color:#fff;
    font-size:58px;
    font-weight:300;
    line-height:1;
    cursor:pointer;
    text-shadow:0 4px 14px rgba(0,0,0,.45);
    transform:translateY(-50%);
    transition:.25s;
}

.detail-slider-btn:hover{
    color:#ff7a00;
    transform:translateY(-50%) scale(1.12);
}

.detail-slider-btn.prev{
    left:24px;
}

.detail-slider-btn.next{
    right:24px;
}

.detail-slider-dots{
    position:absolute;
    left:50%;
    bottom:24px;
    z-index:5;
    display:flex;
    gap:10px;
    transform:translateX(-50%);
}

.detail-slider-dots button{
    width:10px;
    height:10px;
    border:none;
    border-radius:20px;
    background:rgba(255,255,255,.55);
    cursor:pointer;
    transition:.25s;
}

.detail-slider-dots button.active{
    width:28px;
    background:#fff;
}


/* Layout chính */
#product-detail-modern{
    padding:0 0 80px;
    background:#fff;
}

.product-breadcrumb,
.product-detail-sidebar,
.product-status-line,
.product-short-box,
.product-consult-box,
.product-detail-actions,
.product-intro-box .product-meta-line:nth-of-type(2){
    display:none !important;
}

.product-detail-layout{
    display:block !important;
    max-width:1180px !important;
    margin:0 auto !important;
}

.product-detail-main{
    width:100% !important;
    min-width:0;
}

.product-detail-top{
    display:grid !important;
    grid-template-columns:460px minmax(0, 1fr) !important;
    gap:58px !important;
    align-items:start;
}


/* Gallery ảnh sản phẩm */
.product-gallery-box{
    width:100%;
}

.product-image-slider{
    position:relative;
    width:100% !important;
    height:540px !important;
    display:block !important;
    overflow:hidden;
    border:1px solid #e5e7eb;
    background:#fff;
}

.product-image-slide{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    padding:0 !important;
    display:block !important;
    opacity:0;
    visibility:hidden;
    transition:.55s ease;
}

.product-image-slide.active{
    opacity:1;
    visibility:visible;
    z-index:2;
}

.product-image-slide img{
    width:100% !important;
    height:100% !important;
    max-width:none !important;
    max-height:none !important;
    object-fit:cover !important;
    object-position:center center !important;
    display:block !important;
}

.product-image-btn{
    position:absolute;
    top:50%;
    z-index:5;
    padding:0 12px;
    border:0;
    background:transparent;
    color:#ff7a00;
    font-size:46px;
    line-height:1;
    cursor:pointer;
    text-shadow:0 3px 10px rgba(255,255,255,.9);
    transform:translateY(-50%);
}

.product-image-btn.prev{
    left:6px;
}

.product-image-btn.next{
    right:6px;
}

.product-thumb-list{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:10px;
    margin-top:18px;
}

.product-thumb{
    width:58px !important;
    height:78px !important;
    padding:0 !important;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
    overflow:hidden;
}

.product-thumb.active{
    border-color:#ff7a00;
}

.product-thumb img{
    width:100% !important;
    height:100% !important;
    object-fit:cover !important;
    object-position:center center !important;
}


/* Thông tin sản phẩm */
.product-intro-box{
    max-width:620px;
    min-width:0;
    padding-top:8px;
}

.product-intro-box h1{
    margin-bottom:18px !important;
    color:#3b1d10;
    font-size:clamp(1.4rem, 2vw, 2rem) !important;
    line-height:1.2 !important;
    font-weight:800;
}

.product-meta-line{
    margin-bottom:18px;
    color:#4b5563;
    font-size:16px;
}

.product-meta-line span{
    color:#c40000;
    font-weight:800;
}

.product-quick-info{
    margin:18px 0 22px !important;
    padding:16px 18px !important;
    border-left:4px solid #ff7a00 !important;
    border-radius:12px !important;
    background:#fff8ef;
}

.product-quick-info h3{
    margin-bottom:8px !important;
    color:#3b1d10;
    font-size:1rem !important;
    font-weight:800;
}

.product-quick-info-content{
    color:#374151;
    font-size:14.5px !important;
    line-height:1.65 !important;
    font-weight:500 !important;
}

.product-quick-info-content strong,
.product-quick-info-content b{
    color:#c40000;
    font-weight:800;
}


/* Mô tả bên dưới */
.product-description-section{
    max-width:100% !important;
    margin-top:60px !important;
    color:#111;
}

.product-description-section h2{
    margin-bottom:18px;
    color:#3b1d10;
    font-size:1.7rem;
    font-weight:800;
}

.product-description-content{
    color:#111;
    font-size:13px;
    line-height:1.5;
}

.product-description-content img{
    max-width:100% !important;
    height:auto !important;
    display:block;
}


/* Sản phẩm liên quan bên dưới */
#related-products-modern{
    padding:70px 0 80px !important;
    background:var(--bg-section);
}


/* Responsive */
@media(max-width:1200px){

    .detail-auto-slider{
        width:100%;
        margin-left:0;
    }

}

@media(max-width:900px){

    .product-detail-top{
        grid-template-columns:1fr !important;
        gap:32px !important;
    }

    .product-gallery-box{
        max-width:440px;
        margin:0 auto;
    }

    .product-intro-box{
        max-width:100%;
    }

}

@media(max-width:768px){

    #detail-page-banner{
        padding-top:110px;
        padding-bottom:45px;
    }

    .detail-auto-slider{
        height:500px;
    }

    .detail-slider-btn{
        display:none;
    }

    .detail-slider-dots{
        bottom:20px;
    }

    .product-gallery-box{
        max-width:100%;
    }

    .product-image-slider{
        height:460px !important;
    }

    .product-intro-box h1{
        font-size:2rem !important;
    }

    .product-quick-info-content{
        font-size:14px !important;
    }

}