
    .s-dproduct__content-price {
    line-height: 26px;
    margin-bottom: 5px;
    list-style-type: none;
}
.s-dproduct__content-price>span:first-child {
    width: 95px;
    display: inline-block;
    color: #333;
    opacity: .8;
    margin-right: 20px;
    font-size: 16px;
}
.s-dproduct__content-price .price-discount {
    font-size: 20px;
    color: #d5290e !important;
    letter-spacing: 0.5px;
}
.s-dproduct__content-price >span.price-market {
    color: #222;
    text-decoration: line-through;
    margin-left: 15px;
    letter-spacing: 0.5px;   
    font-size: 16px;
}
.product-page__content-booking {
    margin-top: 20px;
}
.product-page__content-booking>a {
    background: #f60;
    padding: 6px 10px 6px 20px;
    color: #ffffff;
    text-transform: uppercase;
    margin-left: 10px;
    font-weight: bold;
}
.product-page__content-booking>a>i {
    color: #ffffff;
    font-size: 20px;
    -webkit-transform: translate(-10px, 0);
    transform: translate(-10px, 0);
    padding: 0 0 4px;
}
a+i, i+a, i+span, span+i {
    margin-left: .3em;
}
.skuProduct{
    line-height: 26px;
    margin-bottom: 5px;

}
.skuProduct > span:first-child {
    width: 95px;
    display: inline-block;
    color: #333;
    opacity: .8;
    margin-right: 20px;
}
.skuProduct span:last-child {
    color: #222;
}
/* CSS mới cho video YouTube */
.youtube-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Sử dụng aspect-ratio thay vì padding-bottom */
    overflow: hidden;
    background-color: #000;
}
.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    margin: 0 auto;
}
.b_thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
    min-height: 200px; /* Chiều cao tối thiểu */
    height: auto; /* Cho phép tự động điều chỉnh theo nội dung */
}
.video-thumbnail {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
}
.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.youtube-thumb-item {
    border: 2px solid #f60;
}
.play-icon {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: #f60;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 2;
}
/* Gallery tùy chỉnh */
.product-gallery .b_nav {
    position: relative;
    overflow: hidden;
    padding: 0 25px;
}
.product-gallery .b_nav ul {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform 0.3s ease;
    width: max-content; /* Đảm bảo ul có chiều rộng mở rộng theo nội dung */
}
.product-gallery .b_nav .slider-container {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}
.product-gallery .b_nav ul li {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    margin: 0 5px;
    padding: 2px;
    border: 2px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
}
.product-gallery .b_nav ul li.active {
    border: 2px solid #f60;
}
.product-gallery .b_nav ul li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery .nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    z-index: 10;
    cursor: pointer;
}
.product-gallery .nav-prev {
    left: 0;
}
.product-gallery .nav-next {
    right: 0;
}
.ht-ratio__img {
    position: relative; /* Thay đổi từ absolute sang relative */
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
/* CSS responsive cho thiết bị di động */
@media (max-width: 767px) {
    .b_thumb {
        height: auto !important;
        padding-bottom: 0; /* Xóa padding-bottom cố định */
    }
    .product-gallery .main-img img {
        object-fit: contain;
    }
    .product-gallery .b_nav ul li {
        width: 60px;
        height: 60px;
        margin: 0 3px;
    }
    .product-gallery .b_nav {
        padding: 0 20px;
    }
    .product-gallery .nav-arrow {
        width: 20px;
        height: 20px;
    }
    .fix-product-css{
        width:100%;
    }
    .play-icon {
        font-size: 18px; /* Giảm kích thước biểu tượng play */
    }
}

/* CSS mobile fix cụ thể */
.mobile-gallery-fix .main-img {
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-gallery-fix .main-img img {
    max-width: 100%;
    width: 100%; /* Cố định chiều rộng 100% */
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Đảm bảo ảnh không bị vỡ trên mobile */
@media (max-width: 576px) {
    .mobile-gallery-fix .main-img {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        background-color: #fff;
    }
    
    .mobile-gallery-fix .main-img img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain;
        max-height: none; /* Không giới hạn chiều cao tối đa */
    }
    
    /* Giới hạn tỷ lệ khung hình */
    .b_thumb {
        /* aspect-ratio: 1/1; */
        padding-bottom: 0 !important;
        min-height: auto !important;
        display: flex;
        align-items: center;
    }
    
    /* Đảm bảo YouTube video cũng nằm trong khung vừa đủ */
    .youtube-container {
        width: 100% !important;
        aspect-ratio: 16/9;
    }
}
@media (max-width: 576px) {
    .mobile-gallery-fix .b_thumb {
        padding-bottom: 0 !important; /* Xóa tỷ lệ cố định */
        min-height: 250px; /* Đảm bảo có chiều cao tối thiểu */
    }
    
    .mobile-gallery-fix .b_nav ul li {
        width: 50px;
        height: 50px;
        margin: 0 2px;
    }
    
    .mobile-gallery-fix .b_nav {
        padding: 0 15px;
        margin-bottom: 15px;
    }
}

/* Responsive classes cho các kích thước màn hình khác nhau */
@media (min-width: 577px) and (max-width: 768px) {
    /* Tablet size */
    .mobile-gallery-fix .main-img img {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: 500px;
    }
    
    .b_thumb {
        min-height: auto;
        aspect-ratio: 4/3;
    }
}

@media (min-width: 769px) {
    /* Desktop size */
    .mobile-gallery-fix .main-img img {
        max-width: 100%;
        width: auto;
        max-height: 600px;
        object-fit: contain;
    }
    
    .b_thumb {
        min-height: 150px;
    }
}

/* Fix cho Safari và iOS */
@supports (-webkit-overflow-scrolling: touch) {
    .product-gallery .b_nav .slider-container {
        -webkit-overflow-scrolling: touch;
    }
    .product-gallery .main-img img,
    .youtube-container iframe {
        width: 100% !important;
        height: 100% !important;
    }
}

/* Fallback cho các trình duyệt không hỗ trợ aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .youtube-container {
        height: 0;
        padding-bottom: 56.25%;
    }
}

/* Đảm bảo kích thước ảnh/video phù hợp */
.image-responsive {
    max-width: 100%;
    height: auto;
}
