/* BLOCK CHUNG */
.product-detail {
    position: relative;
    background: radial-gradient(circle at 10% 0, #0f8c43 0, #02592b 55%, #01411f 100%);
    color: var(--ts-white);
}

.product-detail__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 88, 37, 0.4) 0%, #005825 80%);
    background-size: cover;
    background-position: center;
}

.product-detail__container {
    position: relative;
}

.product-detail__row {
}

/* ========== GALLERY BÊN TRÁI ========== */

.product-detail__gallery {
    margin-bottom: 2rem;
}

/* Bọc gallery (thumb + hình to) */
.product-gallery {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Bọc thumb + nút */
.product-gallery__thumbs-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position:relative;
    height:55vh;
}

/* Container cho thumb Swiper bên trái */
.product-gallery__thumbs {
    flex: 1 1 auto;
    width: 100%;
    overflow: hidden;
}

/* Mỗi thumb là 1 slide */
.product-gallery__thumb {
    cursor: pointer;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
    height: 90px;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff0a;
    backdrop-filter: blur(4px);
}
.product-gallery__thumb.swiper-slide-thumb-active{
    border:1px solid #fff;
}

.product-gallery__thumb img {
    display: block;
    width: auto;
    height: 80px;
}

/* Nút mũi tên */
.product-gallery__thumbs-btn {
  background: #FFFFFF1A;
    backdrop-filter: blur(4px);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, opacity 0.2s ease;
    position:absolute;
    z-index:2;
}
.product-gallery__thumbs-btn--prev{
    top:-12px;
}
.product-gallery__thumbs-btn--next{
    bottom:-12px;
}

.product-gallery__thumbs-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.product-gallery__thumbs-btn.swiper-button-disabled {
    cursor: default;
    transform: none;
}

.product-gallery__thumbs-icon svg {
    display: block;
}

/* Hình lớn bên phải */
.product-gallery__main {
    flex: 1 1 auto;
    overflow: hidden;
}

.product-gallery__image img {
    display: block;
    width: auto;
}

/* Thumb đang active */
.product-gallery__thumb.swiper-slide-thumb-active {
}

/* ========== CONTENT BÊN PHẢI ========== */

.product-detail__content {
    padding: 40px;
    background: #ffffff1a;
    backdrop-filter: blur(6px);
}

.product-detail__title {
    font-size: 40px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.product-detail__description {
    font-weight: 300;
    color: var(--ts-text-light);
}

.product-detail__subtitle {
    font-size: 16px;
    font-weight: 700;
    margin: 16px 0 6px;
    text-transform: uppercase;
}

.product-detail__description p {
    margin-bottom: 20px;
}

.product-detail__list {
    padding-left: 18px;
    margin: 0 0 10px;
}

.product-detail__list li + li {
    margin-top: 4px;
}
@media (min-width:992px){
    .product-detail__description {
    font-size: 18px;
    line-height: 24px;
}
    .product-detail {
    padding-top:25vh;
}
.product-gallery__image img {
    height: 55vh;
        object-fit: contain;
}
.product-detail__content {
    height:75vh;
    overflow:auto;
    scrollbar-width: thin;
    scrollbar-color: var(--ts-green) rgba(255, 255, 255, 0.08);
}
/* Chrome, Edge, Safari */
.product-detail__content::-webkit-scrollbar {
    width: 6px;
}

.product-detail__content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.product-detail__content::-webkit-scrollbar-thumb {
    background: var(--ts-green);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.product-detail__content::-webkit-scrollbar-thumb:hover {
    background: #0f9a46; /* sáng hơn 1 chút, hoặc dùng lighten(var(--ts-green)) nếu có SASS */
}
}

/* ========== RESPONSIVE ========== */
@media (max-width:1500px){
    .product-detail__title{
        font-size:32px;
        line-height:48px;
        margin-bottom:2rem;
    }
    .product-detail__content{
        padding:20px;
    }
    .product-gallery__image img{
        margin:0 auto;
    }
}

@media (max-width: 991px) {
     .product-gallery {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-gallery__main {
        max-width: 100%;
    }

    .product-gallery__thumbs-wrap {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        order:2;
    }

    .product-gallery__thumbs {
        flex: 1 1 auto;
    }
    .product-detail{
       padding-top: 140px;
        padding-bottom: 80px;
    }
    .product-gallery__thumbs-btn{
        display:none;
    }
}
@media (min-width:768px){
    .product-related__header{
        display: flex;
    align-items: center;
    justify-content: space-between;
}
}
@media (max-width: 767px) {
  .product-related .section__title{
       margin-bottom:1rem !important;
   }
       .product-detail__description {
    font-size: 14px;
    line-height: 20px;
}
.product-related__header{
    text-align:center;
}
.product-related .section__title{
    text-align:left;
}

}
@media (max-width:575px){
    .section__title{
        margin-bottom:1rem;
    }
}

.section__title{
    min-width:200px;
}
.product-related__header{
    margin-bottom:40px;
}