﻿img, video {
    /*max-width: 100%;*/
    /*max-height: 100%;*/
    /*display: block;
    margin: auto;*/
}

#item-media-wrapper, #item-something-wrapper {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: 100%;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

#item_media_arrow_wrapper {
    position: relative;
}

#item-medium-media {
    display: flex;
/*    position: relative;*/
    justify-content: center;
    align-items: center;
    user-select: none;  /* Ngăn text selection (màu xanh) */
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;  /* Firefox */
    -ms-user-select: none;  /* IE/Edge */
    width: 100%;
    overflow: hidden;  /* Ngăn nội dung tràn ra ngoài */

    /* Mobile first: chiều cao = chiều rộng màn hình */
    height: 100vw;
}

/* Desktop: chiều cao cố định 600px khi màn hình >= 800px */
@media (min-width: 800px) {
    #item-medium-media {
        height: 600px;
    }
}

#medium_picture {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

#medium_video {
    display: none;
    /*border: 1px solid red;*/
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

#class_medium_video{
    overflow:hidden;
}
/*#item-small-media {
    display: flex;
    width: 100%;
    height: 120px;
}*/
#item-small-media-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    width: 100%;
    /*border: 1px solid rgb(255, 0, 0);*/
    position: relative;

    /* Ẩn scrollbar nhưng vẫn scroll được - FIX UI JUMPING */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Ẩn scrollbar cho Webkit browsers (Chrome, Safari, Edge Chromium) */
#item-small-media-container::-webkit-scrollbar {
    display: none;
}

#item-variation-container {
    display: flex;
    width: 100%;
    padding: 5px;
    align-items: flex-start;
    gap: 5px;
}

.variation-title {
    flex-shrink: 0;
    min-width: 80px;
    padding-top: 8px;
    color: rgba(0, 0, 0, 0.87);
    font-size: 0.875rem;
    font-weight: 500;
}

.variation-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

#item-order {
    display: flex;
    width: 100%;
    padding: 5px;
    flex-wrap: wrap;
    /*border: 1px solid rgb(255, 0, 0);*/
}
/*#item-something-wrapper{
    height: 1000px;
}*/
.small-media {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: top;
    margin: 4px 5px 4px 5px;
    border: 1px solid rgb(228, 228, 222);
    box-sizing: border-box;
    width: 100px;
    height: 100px;
}

.small-media:hover {
    /*border: 1px solid rgb(255, 0, 0);*/
    cursor: pointer;
}

#left_arrow {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
#right_arrow {
    position: absolute;
    right: 0px;
    top: 0px;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    z-index: 1;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Bỏ hover effect của div, chỉ áp dụng cho SVG */
#left_arrow svg,
#right_arrow svg {
    cursor: pointer;
    transition: fill-opacity 0.2s ease;
}

#left_arrow svg:hover,
#right_arrow svg:hover {
    fill-opacity: 0.8 !important; /* Sáng lên khi hover vào mũi tên */
}

h1 {
    display: block;
    font-size: 1em;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    margin-left: 10px;
    margin-right: 10px;
    font-weight: normal;
}

#item-name-h1 {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0.75rem;
    color: #333;
}

#item-price {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    width: 100%;
    /*flex-basis: 625px;*/
    min-height: 1.875rem;
    gap: 8px; /* Dãn ra khoảng cách giữa các phần tử */
    padding: 5px 0; /* Thêm padding trên dưới */
}

#book-cover-price {
    font-size: 1rem; /* Tăng từ 0.8rem lên 1rem */
    font-weight: 600; /* Đậm hơn */
    text-decoration: line-through;
    color: #b8b8b8; /* Mờ hơn (từ #929292 lên #b8b8b8) */
/*    margin-left: 10px;
    margin-right: 10px;*/
    display: flex;
    align-items: center;
    /*margin-right: 10px;*/
    /*text-align:center;*/
}

#price {
    margin-left: 10px;
    margin-right: 5px;
    font-size: 1.5rem; /* Tăng từ 1.2rem lên 1.5rem */
    font-weight: 500;
    color: red;
}

#discount {
    display: flex;
    justify-content: center; /* Căn giữa theo chiều ngang */
    align-items: center; /* Căn giữa theo chiều dọc */
/*    margin-left: 5px;*/
    font-size: 0.875rem; /* Tăng từ 0.75rem lên 0.875rem */
    color: red;

}

.variation-button {
    overflow: visible;
    cursor: pointer;
    min-width: 5rem;
    min-height: 2.5rem;
    box-sizing: border-box;
    padding: 0.5rem;
/*    padding-left: 2.5rem;*/
    margin: 8px 8px 0 0;
    color: rgba(0,0,0,.8);
    text-align: left;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,.09);
    position: relative;
    background: #fff;
    outline: 0;
    word-break: break-word;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Out-of-stock state - sản phẩm hết hàng (vẫn click được để xem thông tin) */
.variation-button.out-of-stock {
    opacity: 0.4;
    background-color: #f5f5f5;
    color: rgba(0,0,0,.3);
    position: relative;
}

/* Gạch chéo cho variation hết hàng (giống Shopee) */
.variation-button.out-of-stock::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(0,0,0,.3);
    transform: translateY(-50%);
}

/*.variation-button:hover {
    border: 1px solid rgb(255, 0, 0);
}*/
.variation-image {
    width: 1.5rem;
    height: 1.5rem;
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

#check-container {
    position: absolute;
    display: block;
    width: 0.9375rem;
    height: 0.9375rem;
    overflow: hidden;
    right: 0;
    bottom: 0;
}

#check-container::before {
    border: 0.9375rem solid transparent;
    border-bottom: 0.9375rem solid rgb(255, 0, 0);
    content: "";
    position: absolute;
    right: -0.9375rem;
    bottom: 0;
}

.icon-tick-bold {
    color: #fff;
    font-size: 8px;
    position: absolute;
    right: 0;
    bottom: 0;
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.flex-items-center {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.shopee-input-quantity {
    background: #fff;
    display: flex;
    align-items: center;
}

/* Disabled state khi sản phẩm hết hàng */
.shopee-input-quantity.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.shopee-input-quantity .xNxl-t:disabled {
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: rgba(0,0,0,.26);
}

.shopee-input-quantity .VWjjde:disabled {
    cursor: not-allowed;
    background-color: #f5f5f5;
    color: rgba(0,0,0,.4);
}

.xNxl-t {
    outline: none;
    /*cursor: pointer;
    border: 0;
    font-size: .875rem;*/
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .1s cubic-bezier(.4,0,.6,1);
    border: 1px solid rgba(0,0,0,.09);
    border-radius: 2px;
    background: transparent;
    color: rgba(0,0,0,.8);
    width: 32px;
    height: 32px;
    font-size: 10px;
    flex-shrink: 0;
}
/*.xNxl-t:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}*/

.shopee-svg-icon {
    font-size: 10px;
    width: 10px;
    height: 10px;
    flex-shrink: 0
}

.VWjjde {
    width: 50px;
    height: 32px;
    border-left: 0;
    border-right: 0;
    font-size: 16px;
    font-weight: 400;
    box-sizing: border-box;
    text-align: center;
    cursor: text;
    border-radius: 0;
    -webkit-appearance: none;
    outline: none;
    line-height: 1;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .1s cubic-bezier(.4,0,.6,1);
    border: 1px solid rgba(0,0,0,.09);
    background: transparent;
    color: rgba(0,0,0,.8);
}

.I-H1Co {
    /*margin: 15px 0 0 110px;*/
    padding: 5px;
    color: #ff424f;
    display: none;
    /*border: 1px solid #73AD21;*/
}

.p-UZsF {
    padding: 5px;
    display: flex;
    /*padding-left: 0.9375rem;*/
    /*border: 1px solid #73AD21;*/
}

.psinpachgwl90 {
    padding: 5px;
    display: flex;
}

.btn-add-to-cart {
    position: relative;
    overflow: visible;
    outline: 0;
    background: rgba(208,1,27,.08);
    color: #d0011b;
    border: 1px solid #d0011b;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.03);
    height: 48px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    flex-direction: row;
    cursor: pointer;
    margin-right: 0.9375rem;
    min-width: 8.25rem;
}

    .btn-add-to-cart:hover {
        background: rgba(208,1,27,.05);
    }

    .btn-add-to-cart:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: #f5f5f5;
        color: rgba(0,0,0,.4);
        border-color: rgba(0,0,0,.09);
    }

    .btn-add-to-cart:disabled:hover {
        background-color: #f5f5f5;
    }

.btn-buy-now {
    position: relative;
    overflow: visible;
    outline: 0;
    background: #d0011b;
    color: #fff;
    height: 48px;
    padding: 0 20px;
    text-overflow: ellipsis;
    flex-direction: column;
    box-sizing: border-box;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.09);
    border-radius: 2px;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    max-width: 250px;
    margin-right: 0.9375rem;
    min-width: 8.25rem;
    /*font-size: .875rem;*/
}

    .btn-buy-now:hover {
        background: #ff424f;
    }

    .btn-buy-now:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        background-color: #ccc;
        color: rgba(0,0,0,.4);
    }

    .btn-buy-now:disabled:hover {
        background-color: #ccc;
    }

.icon-add-to-cart {
    display: inline-block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    position: relative;
    margin-right: 10px;
    color: #764ba2;
    stroke: #764ba2;
    font-size: 1.25rem;
}

.product-detail {
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.05);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
    padding-top: 0.625rem;
    display: block;
}

.U9rGd1 {
    /*padding: 0.9375rem 0.9375rem 0;*/
    display: block;
}

.Iv7FJp {
/*    background: rgba(0,0,0,.02);
    color: rgba(0,0,0,.87);*/
    font-size: 1.125rem;
    font-weight: 400;
    margin: 0;
    padding: 0.875rem;
    text-transform: capitalize;
    display: block;
    /*font-size: 1.5em;*/
    /*margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;*/
    /*font-weight: bold;*/
}

h2 {
    display: block;
    /*font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;*/
}

.MCCLkq {
    margin: 0rem 0.9375rem 0.9375rem;
    display: block;
}

.dR8kXc {
    display: flex;
    margin-bottom: 0.75rem;
}

.zquA4o {
    color: rgba(0,0,0,.4);
    font-size: .875rem;
    box-sizing: border-box;
    width: 8.75rem;
    padding-right: 0.75rem;
}

.GvvZVe {
    color: #05a;
}

.f7AU53 {
    white-space: pre-wrap;
    color: rgba(0,0,0,.8);
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.7;
    display: block;
    padding: 0px;
}

.irIKAp {
    margin: 0;
}

.shopee-svg-icon-sfxb {
    height: 30px;
    width: 97px;
    fill: #fff;
    background-color: #EE4D2D;
}

/* Style cho ảnh trong mô tả sản phẩm */
.product-detail-image {
    margin: 1.5rem 0;
    text-align: center;
}

.product-detail-image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-detail-image figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
    line-height: 1.4;
}

/* ========== Thông Tin Chi Tiết ========== */
.product-specifications {
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.05);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
    padding-top: 0.625rem;
    display: block;
}

.specifications-table {
    margin: 0rem 0.9375rem 0.9375rem;
    display: block;
}

.spec-row {
    display: flex;
    border-bottom: 1px solid rgba(0,0,0,.05);
    padding: 0.75rem 0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    color: rgba(0,0,0,.4);
    font-size: .875rem;
    box-sizing: border-box;
    width: 10rem;
    padding-right: 0.75rem;
    flex-shrink: 0;
    font-weight: 500;
}

.spec-value {
    color: rgba(0,0,0,.8);
    font-size: .875rem;
    line-height: 1.6;
    flex: 1;
    word-break: break-word;
}

.spec-link {
    color: #05a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.spec-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Zebra striping - alternating row colors */
.spec-row:nth-child(even) {
    background-color: rgba(0,0,0,.01);
}

/* ========== Other Products ========== */
.other-product {
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.05);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 10px;
    padding: 0.9375rem;
    display: none;
}

/* PhotoSwipe customization */
.pswp__button--zoom {
    display: none !important;
}

img.logo-ecommerce-tl {
    max-width: 100%;
    max-height: 100%;
}

