.product-detail-wrap {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 22px #ebc5e515;
    padding: 28px 32px 30px 32px;
    display: flex;
    gap: 39px;
    align-items: flex-start;
    margin: 22px 0 0 0;
}

.product-detail-image {
    width: 100%;
    max-width: 310px;
    border-radius: 12px;
    box-shadow: 0 2px 16px #e9bdf530;
    background: #fff;
}

.badge-sale {
    position: absolute;
    left: -32px;
    top: 12px;
    min-width: 44px;
    padding: 8px 3px;
    background: #ff4647;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    z-index: 9;
    text-align: center;
    line-height: 1.16;
    box-shadow: 0 2px 8px #ce243844;
}

.product-detail-share {
    margin-top: 24px;
    color: #6e6e6e;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.product-detail-share a img {
    border: 1.5px solid #efeaea;
    border-radius: 6px;
    transition: border-color .15s, box-shadow .14s;
    padding: 2px;
    background: #fff;
}

.product-detail-share a:hover img {
    border-color: #ee4d7d;
    box-shadow: 0 2px 10px #febbd8ab;
}

.product-detail-meta {
    flex: 1;
    padding-right: 0;
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #242424;
    margin-top: 3px;
    margin-bottom: 11px;
}

.product-id-row {
    display: flex;
    gap: 18px;
    margin-bottom: 13px;
    font-size: 15px;
}

.product-id-row .sku {
    color: #e94545;
}

.product-id-row .status b {
    color: #43b53c;
}

.product-id-row .brand {
    color: #e34488;
}

.product-price-box {
    background: #f9f6f7;
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 18px;
    display: flex;
    gap: 13px;
    align-items: center;
    font-size: 18px;
}

.price-new {
    color: #e94444;
    font-size: 26px;
    font-weight: 800;
}

.price-old {
    color: #aaa;
    text-decoration: line-through;
    margin-left: 4px;
    font-size: 19px;
}

.badge-price-sale {
    background: #ff554b;
    color: #fff;
    border-radius: 6px;
    padding: 4px 9px;
    margin-left: 7px;
    font-weight: 700;
}

.product-mini-des {
    margin-bottom: 2px;
    font-size: 15px;
}

.icon-fire {
    color: #ff7c27;
}

.progress-sold {
    width: 100%;
    height: 7px;
    border-radius: 7px;
    background: #f9dee3;
    margin: 6px 0 14px 0;
    overflow: hidden;
}

.progress-sold div {
    height: 100%;
    border-radius: 7px;
    background: linear-gradient(90deg, #eb528d 60%, #fd7273 100%);
    width: 0;
    min-width: 8%;
    /* Chỉnh bằng JS hoặc inline style width */
    transition: width .4s;
}

.product-qty-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0 18px 0;
    font-size: 15px;
}

.qty-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.qty-group input[type=number] {
    width: 40px;
    height: 32px;
    text-align: center;
    font-size: 16px;
    border: 1.2px solid #e9b1bf66;
    background: #fff;
    border-radius: 7px;
    outline: none;
}

.qty-group .btn-qty {
    background: none;
    border: 1.2px solid #e9b1bf66;
    border-radius: 7px;
    font-size: 22px;
    width: 33px;
    height: 33px;
    color: #e94484;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .14s;
}

.qty-group .btn-qty:hover {
    background: #fff2f5;
}

.product-buy-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-cart,
.btn-buy {
    flex: 1 1 0;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
    padding: 12px 0;
    cursor: pointer;
    border: 2px solid #e94444;
    background: #fff;
    color: #e94444;
    transition: background .13s, color .14s;
}

.btn-buy {
    background: #e94444;
    color: #fff;
    border: 2px solid #e94444;
}

.btn-cart:hover,
.btn-buy:hover {
    opacity: .93;
    box-shadow: 0 2px 8px #ffb3cb2a;
}

.product-detail-benefit {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    font-size: 15px;
    color: #e8446e;
}

.pd-icon {
    color: #ee4d7d;
    font-size: 18px;
    vertical-align: -2px;
    margin-right: 5px;
}

.product-detail-benefit b {
    color: #222;
}

.product-detail-benefit .brand {
    color: #e34488;
}

/* Voucher group */
.product-voucher-group {
    margin-top: 38px;
    background: #fff2fa;
    border: 1px dashed #e9b1be88;
    border-radius: 13px;
    padding: 16px 18px 9px 18px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.voucher-box {
    background: #fff;
    border-radius: 9px;
    box-shadow: 0 2px 11px #fdc8e819;
    border: 1.4px solid #f5d2dcd8;
    padding: 8px 16px 10px 12px;
    min-width: 160px;
    max-width: 195px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 3px;
}

.voucher-box img {
    margin-bottom: 8px;
}

.voucher-box b {
    color: #f53a2f;
}

.voucher-desc {
    display: block;
    color: #a19aa5;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .product-detail-wrap {
        flex-direction: column;
        gap: 16px;
        padding: 18px 7px 17px 7px;
    }

    .product-detail-gallery {
        margin: 0 auto;
    }

    .product-detail-image {
        max-width: 100%;
    }

    .product-detail-meta {
        padding-right: 0;
        margin-top: 2rem;
    }

    .product-detail-benefit {
        grid-template-columns: 1fr;
    }

    .product-voucher-group {
        flex-direction: column;
        gap: 9px;
    }
}

.product-detail-image {
    width: 100%;
    /* chiếm toàn bộ .product-detail-gallery */
    height: auto;
    background: #fff;
    border-radius: 13px;
    box-shadow: none;
    display: block;
    object-fit: cover;
    /* hoặc contain nếu muốn thấy đủ cả hình */
    aspect-ratio: 1/1.46;
    /* tỉ lệ ảnh, bạn đo đúng theo thực tế hình lớn nhỏ bao nhiêu */
    max-height: 440px;
    /* có thể bỏ nếu muốn full cả chiều dọc luôn */
}

/* SALE BADGE chồng lên góc trái trên ảnh, không bị lệch lề */
.badge-sale {
    position: absolute;
    left: 18px;
    /* cách lề block gallery, không float ngoài */
    top: 28px;
    background: #ff4647;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    border-radius: 9px;
    z-index: 10;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 2px 8px #ce243844;
    min-width: 44px;
    padding: 7px 10px;
}

.product-detail-share {
    margin-top: 23px;
    color: #6e6e6e;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.product-detail-share a img {
    border: 1.5px solid #efeaea;
    border-radius: 7px;
    transition: border-color .15s, box-shadow .14s;
    padding: 2px;
    background: #fff;
}

.product-detail-share a:hover img {
    border-color: #ee4d7d;
    box-shadow: 0 2px 10px #febbd8ab;
}

@media (max-width: 1100px) {
    .product-detail-gallery {
        width: 96vw;
        max-width: 100vw;
    }

    .product-detail-image {
        max-width: 95vw;
    }
}

@media (max-width: 700px) {
    .product-detail-image {
        max-width: 94vw;
    }

    .badge-sale {
        left: 4vw;
        top: 13px;
    }
}

.container {
    max-width: 1300px;
    /* hoặc đúng chỉ số full web */
    margin-left: auto;
    margin-right: auto;
    padding-left: 8px;
    padding-right: 8px;
}

.product-detail-wrap {
    display: flex;
    gap: 38px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 22px #ebc5e515;
    padding: 34px 32px 35px 32px;
    margin: 28px 0 38px 0;
    min-width: 0;
    box-sizing: border-box;
}

/* gallery block: không phá lề */
.product-detail-gallery {
    width: 390px;
    max-width: 440px;
    min-width: 240px;
    background: #fff;
    border-radius: 13px;
    padding: 0px 0 10px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
}

.product-detail-image {
    width: 100%;
    max-width: 370px;
    /* luôn bằng cha/gallery/cần thì 100% */
    aspect-ratio: 1/1.45;
    object-fit: cover;
    border-radius: 13px;
    background: #fff;
    display: block;
    margin: 0 auto;
}

.badge-sale {
    position: absolute;
    top: 23px;
    left: 13px;
    z-index: 3;
    min-width: 48px;
    background: #ff4647;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    padding: 8px 8px 6px 8px;
    text-align: center;
    box-shadow: 0 2px 8px #ce243844;
}

.product-detail-share {
    margin-top: 26px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #6e6e6e;
    font-weight: 500;
}

.product-detail-share a img {
    border: 1.5px solid #efeaea;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
    transition: border-color .15s, box-shadow .13s;
}

.product-detail-share a:hover img {
    border-color: #ee4d7d;
    box-shadow: 0 2px 10px #febbd8ab;
}

.product-detail-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-right: 0;
}

/* Tiếp các css phần meta như trước ... chỉ bổ sung */
.product-detail-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #242424;
    margin-top: 3px;
    margin-bottom: 15px;
    word-break: break-word;
}

.product-id-row {
    display: flex;
    gap: 18px;
    margin-bottom: 13px;
    font-size: 15px;
}

@media (max-width:1100px) {
    .container {
        max-width: 95vw;
    }

    .product-detail-wrap {
        padding: 20px 7px;
        gap: 18px;
    }

    .product-detail-gallery {
        max-width: 90vw;
    }

    .product-detail-image {
        max-width: 90vw;
    }

    .badge-sale {
        left: 6px;
    }
}

@media (max-width:700px) {
    .product-detail-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .product-detail-gallery {
        width: 100%;
        margin: 0 auto;
    }

    .product-detail-image {
        max-width: 100%;
    }

    .badge-sale {
        left: 2vw;
        top: 13px;
    }
}


.product-detail-gallery {
    display: flex;
    gap: 15px;
    background: #fff;
    border-radius: 13px;
    padding: 18px 0 12px 0;
    box-shadow: 0 1.5px 14px #ecd5e11f;
    align-items: flex-start;
    position: relative;
    min-width: 0;
}

.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 68px;
    min-width: 58px;
    align-items: center;
    margin-left: 10px;
}

.thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 2px solid #f1dfed;
    border-radius: 9px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 8px #f9d4e635;
    transition: border-color .13s, box-shadow .14s;
}

.thumb-active,
.thumb:hover {
    border-color: #e94545;
    box-shadow: 0 2px 11px #f4baf273;
}

.main-img-wrap {
    position: relative;
    width: 330px;
    min-width: 220px;
    max-width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1/1.38;
    background: #fff;
    border-radius: 12px;
    object-fit: contain;
    z-index: 1;
    min-height: 300px;
    box-shadow: 0 2px 12px #efbddf50;
}

.badge-sale {
    position: absolute;
    left: 15px;
    top: 22px;
    background: #ff4646;
    color: #fff;
    font-size: 15px;
    min-width: 39px;
    border-radius: 9px;
    padding: 6px 8px 5px 8px;
    font-weight: 700;
    text-align: center;
    z-index: 7;
    line-height: 1.1;
    box-shadow: 0 2px 8px #ffd2d2a3;
}

.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ff4747;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 2.0rem;
    font-weight: 900;
    box-shadow: 0 2px 9px #f5d6e654;
    z-index: 10;
    cursor: pointer;
    opacity: 0.8;
    transition: background .13s, color .14s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.img-nav:active,
.img-nav:hover {
    background: #fee7eb;
    color: #db3535;
}

.img-nav-prev {
    left: 10px;
}

.img-nav-next {
    right: 10px;
}

.img-nav[disabled] {
    opacity: 0.35;
    pointer-events: none;
}

@media (max-width:900px) {
    .product-detail-gallery {
        flex-direction: column;
        align-items: center;
    }

    .thumb-list {
        flex-direction: row;
        width: auto;
        min-width: unset;
        margin-bottom: 9px;
        margin-left: 0;
    }

    .thumb {
        width: 41px;
        height: 41px;
    }

    .main-img-wrap {
        width: 90vw;
        max-width: 95vw;
    }
}

.product-detail-gallery {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border-radius: 13px;
    padding: 18px 0 12px 0;
    box-shadow: 0 1.5px 14px #ecd5e11f;
}

/* Ảnh lớn bên trái, thumb nhỏ dọc bên phải */
.main-img-wrap {
    position: relative;
    width: 330px;
    min-width: 220px;
    max-width: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Thumb list dọc bên phải */
.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 13px;
    /* sát phải ảnh lớn */
    align-items: center;
    min-width: 58px;
}

.thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 2px solid #f1dfed;
    border-radius: 9px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 8px #f9d4e635;
    transition: border-color .13s, box-shadow .14s;
}

.thumb-active,
.thumb:hover {
    border-color: #e94545;
    box-shadow: 0 2px 11px #f4baf273;
}

/* .. giữ nguyên .badge-sale, .img-nav ... */

@media (max-width:900px) {
    .product-detail-gallery {
        flex-direction: column;
        align-items: center;
    }

    .main-img-wrap {
        width: 100%;
        max-width: 100%;
        margin-bottom: 13px;
    }

    .thumb-list {
        flex-direction: row;
        gap: 7px;
        margin-left: 0;
        margin-top: 7px;
    }

    .thumb {
        width: 40px;
        height: 40px;
    }
}

.product-detail-wrap {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 2px 22px #ebc5e515;
    padding: 28px 32px 30px 32px;
    display: flex;
    gap: 39px;
    align-items: flex-start;
    margin: 22px 0 0 0;
}

.product-detail-gallery {
    /* Layout dạng hàng ngang: ảnh lớn + list thumb phải */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 13px;
    background: #fff;
    border-radius: 13px;
    padding: 0;
    position: relative;
}

.main-img-wrap {
    position: relative;
    width: 330px;
    min-width: 220px;
    max-width: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1/1.39;
    background: #fff;
    border-radius: 12px;
    object-fit: contain;
    z-index: 1;
    min-height: 300px;
    max-height: 370px;
    box-shadow: 0 2px 12px #efbddf50;
    display: block;
}

.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 13px;
    align-items: center;
    min-width: 52px;
}

.thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 2px solid #f1dfed;
    border-radius: 9px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 2px 8px #f9d4e635;
    transition: border-color .13s, box-shadow .14s;
}

.thumb-active,
.thumb:hover {
    border-color: #e94545;
    box-shadow: 0 2px 11px #f4baf273;
}

/* Nút chuyển hướng */
.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ff4747;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 2.2rem;
    font-weight: 900;
    box-shadow: 0 2px 9px #f5d6e654;
    z-index: 10;
    cursor: pointer;
    opacity: 0.88;
    transition: background .13s, color .14s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.img-nav:active,
.img-nav:hover {
    background: #fee7eb;
    color: #db3535;
}

.img-nav-prev {
    left: 9px;
}

.img-nav-next {
    right: 9px;
}

.img-nav[disabled] {
    opacity: 0.35;
    pointer-events: none;
}

.badge-sale {
    position: absolute;
    left: 17px;
    top: 22px;
    background: #ff4647;
    color: #fff;
    font-size: 15px;
    min-width: 39px;
    border-radius: 9px;
    padding: 6px 8px 5px 8px;
    font-weight: 700;
    text-align: center;
    z-index: 7;
    line-height: 1.1;
    box-shadow: 0 2px 8px #ffd2d2a3;
}

/* SHARE ICON giữ nguyên ... */

.product-detail-share {
    margin-top: 26px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #6e6e6e;
    font-weight: 500;
}

.product-detail-share a img {
    border: 1.5px solid #efeaea;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
    transition: border-color .15s, box-shadow .13s;
}

.product-detail-share a:hover img {
    border-color: #ee4d7d;
    box-shadow: 0 2px 10px #febbd8ab;
}

@media (max-width:900px) {
    .product-detail-wrap {
        flex-direction: column;
        gap: 16px;
        padding: 18px 7px 17px 7px;
    }

    .product-detail-gallery {
        flex-direction: column;
        align-items: center;
    }

    .main-img-wrap {
        width: 95vw;
        max-width: 98vw;
    }

    .thumb-list {
        flex-direction: row;
        gap: 9px;
        margin-left: 0;
        margin-top: 10px;
    }

    .thumb {
        width: 42px;
        height: 42px;
    }
}





.product-detail-gallery {
    display: flex;
    flex-direction: row;
    gap: 18px;
    align-items: flex-start;
    background: #fff;
    border-radius: 14px;
    padding: 0 0 24px 0;
    min-width: 0;
    margin: 0;
    box-shadow: 0 2px 16px #e9bdf530;
}

.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: center;
    min-width: 62px;
}

.thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 2px solid #eee3eb;
    border-radius: 9px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 1.5px 7px #f9d4e635;
    transition: border-color .13s, box-shadow .14s;
}

.thumb-active,
.thumb:hover {
    border-color: #e94545;
    box-shadow: 0 2px 11px #f4baf273;
}

/* Cột ảnh lớn + nav + badge */
.main-img-wrap {
    position: relative;
    width: 335px;
    min-width: 225px;
    max-width: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ảnh lớn */
.product-detail-image {
    width: 100%;
    aspect-ratio: 1/1.4;
    min-height: 331px;
    background: #fff;
    border-radius: 12px;
    object-fit: contain;
    z-index: 1;
    box-shadow: 0 2px 12px #efbddf50;
    display: block;
}

/* BADGE SALE trên ảnh lớn */
.badge-sale {
    position: absolute;
    left: 11px;
    top: 16px;
    background: #ff4647;
    color: #fff;
    font-size: 15px;
    min-width: 39px;
    border-radius: 9px;
    padding: 6px 8px 5px 8px;
    font-weight: 700;
    z-index: 7;
    line-height: 1.1;
    box-shadow: 0 2px 8px #ffd2d2a3;
    text-align: center;
}

/* Nút chuyển nằm trên ảnh lớn, sát trong */
.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ff4747;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 2.05rem;
    font-weight: 900;
    box-shadow: 0 2px 9px #f5d6e654;
    z-index: 22;
    cursor: pointer;
    opacity: 0.88;
    transition: background .13s, color .14s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.img-nav-prev {
    left: 5px;
}

.img-nav-next {
    right: 5px;
}

.img-nav:active,
.img-nav:hover {
    background: #fee7eb;
    color: #db3535;
}

.img-nav[disabled] {
    opacity: 0.34;
    pointer-events: none;
}

/* SHARE ICON giữ nguyên */
.product-detail-share {
    margin-top: 22px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #6e6e6e;
    font-weight: 500;
}

.product-detail-share a img {
    border: 1.5px solid #efeaea;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
    transition: border-color .15s, box-shadow .13s;
}

.product-detail-share a:hover img {
    border-color: #ee4d7d;
    box-shadow: 0 2px 10px #febbd8ab;
}

@media (max-width:900px) {
    .product-detail-wrap {
        flex-direction: column;
        gap: 16px;
        padding: 18px 7px 17px 7px;
    }

    .product-detail-gallery {
        flex-direction: column;
        align-items: center;
    }

    .main-img-wrap {
        width: 95vw;
        max-width: 99vw;
    }

    .thumb-list {
        flex-direction: row;
        gap: 9px;
        margin-top: 10px;
    }

    .thumb {
        width: 42px;
        height: 42px;
    }
}


.product-detail-gallery {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
    background: #fff;
    border-radius: 14px;
    min-width: 0;
    box-shadow: 0 2px 16px #e9bdf530;
    padding: 0 0 24px 0;
}

.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: center;
    min-width: 57px;
    margin-top: 6px;
}

.main-img-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* để share + ảnh lớn căn giữa với nhau */
}

.product-detail-share {
    margin-bottom: 14px;
    font-size: 15px;
    color: #6e6e6e;
    font-weight: 500;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
}

.main-img-wrap {
    position: relative;
    width: 335px;
    min-width: 220px;
    max-width: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1/1.39;
    min-height: 300px;
    max-height: 370px;
    background: #fff;
    border-radius: 12px;
    object-fit: contain;
    box-shadow: 0 2px 12px #efbddf50;
    display: block;
    z-index: 1;
}

.badge-sale {
    position: absolute;
    left: 11px;
    top: 14px;
    background: #ff4647;
    color: #fff;
    font-size: 15px;
    min-width: 39px;
    border-radius: 9px;
    padding: 6px 8px 5px 8px;
    font-weight: 700;
    z-index: 7;
    text-align: center;
    box-shadow: 0 1px 6px #ffd2d2a3;
    line-height: 1.1;
}

.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ff4747;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 2.05rem;
    font-weight: 900;
    box-shadow: 0 2px 9px #f5d6e654;
    z-index: 10;
    cursor: pointer;
    opacity: 0.88;
    transition: background .13s, color .14s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.img-nav-prev {
    left: 8px;
}

.img-nav-next {
    right: 8px;
}

.img-nav:active,
.img-nav:hover {
    background: #fee7eb;
    color: #db3535;
}

.img-nav[disabled] {
    opacity: 0.34;
    pointer-events: none;
}

.thumb {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border: 2px solid #eee3eb;
    border-radius: 9px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 1.5px 7px #f9d4e635;
    transition: border-color .13s, box-shadow .14s;
}

.thumb-active,
.thumb:hover {
    border-color: #e94545;
    box-shadow: 0 2px 11px #f4baf273;
}

.product-detail-share a img {
    border: 1.5px solid #efeaea;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
    transition: border-color .15s, box-shadow .13s;
}

.product-detail-share a:hover img {
    border-color: #ee4d7d;
    box-shadow: 0 2px 10px #febbd8ab;
}

@media (max-width:900px) {
    .product-detail-wrap {
        flex-direction: column;
        gap: 16px;
        padding: 18px 7px 17px 7px;
    }

    .product-detail-gallery {
        flex-direction: column;
        align-items: center;
    }

    .main-img-column {
        width: 98vw;
        max-width: 99vw;
    }

    .main-img-wrap {
        width: 93vw;
        max-width: 99vw;
    }

    .thumb-list {
        flex-direction: row;
        margin-bottom: 9px;
        margin-left: 0;
        margin-top: 12px;
    }

    .thumb {
        width: 40px;
        height: 40px;
    }
}


.product-detail-gallery {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 0 0 18px 0;
    min-width: 0;
    box-shadow: 0 2px 16px #e9bdf530;
}

.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    align-items: center;
    min-width: 58px;
    margin-top: 10px;
}

.thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border: 2px solid #eee3eb;
    border-radius: 9px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 1.5px 7px #f9d4e635;
    transition: border-color .13s, box-shadow .14s;
}

.thumb-active,
.thumb:hover {
    border-color: #e94545;
    box-shadow: 0 2px 11px #f4baf273;
}

/* Cột chính: ảnh lớn, nav, badge, share */
.main-img-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* share luôn ở chính giữa theo ảnh */
}

.main-img-wrap {
    position: relative;
    width: 335px;
    min-width: 220px;
    max-width: 370px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1/1.4;
    min-height: 300px;
    max-height: 370px;
    background: #fff;
    border-radius: 12px;
    object-fit: contain;
    z-index: 1;
    box-shadow: 0 2px 12px #efbddf50;
    display: block;
}

.badge-sale {
    position: absolute;
    left: 11px;
    top: 14px;
    background: #ff4647;
    color: #fff;
    font-size: 15px;
    min-width: 39px;
    border-radius: 9px;
    padding: 6px 8px 5px 8px;
    font-weight: 700;
    text-align: center;
    z-index: 7;
    line-height: 1.1;
    box-shadow: 0 1px 6px #ffd2d2a3;
}

.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ff4747;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 2.05rem;
    font-weight: 900;
    box-shadow: 0 2px 9px #f5d6e654;
    z-index: 10;
    cursor: pointer;
    opacity: 0.88;
    transition: background .13s, color .14s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.img-nav-prev {
    left: 8px;
}

.img-nav-next {
    right: 8px;
}

.img-nav:active,
.img-nav:hover {
    background: #fee7eb;
    color: #db3535;
}

.img-nav[disabled] {
    opacity: 0.34;
    pointer-events: none;
}

.product-detail-share {
    margin: 23px 0 0 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #6e6e6e;
    font-size: 15px;
    font-weight: 500;
}

.product-detail-share a img {
    border: 1.5px solid #efeaea;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
    transition: border-color .15s, box-shadow .13s;
}

.product-detail-share a:hover img {
    border-color: #ee4d7d;
    box-shadow: 0 2px 10px #febbd8ab;
}

@media (max-width:900px) {
    .product-detail-wrap {
        flex-direction: column;
        gap: 15px;
        padding: 17px 7px;
    }

    .product-detail-gallery,
    .main-img-column {
        flex-direction: column;
        align-items: center;
    }

    .main-img-wrap {
        width: 92vw;
        max-width: 99vw;
    }

    .thumb-list {
        flex-direction: row;
        margin-top: 12px;
        min-width: 0;
    }

    .thumb {
        width: 42px;
        height: 42px;
    }

    .product-detail-share {
        margin: 17px 0 0 0;
    }
}

/* Gallery layout ngang */
.product-detail-gallery {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 17px;
    background: #fff;
    border-radius: 14px;
    padding: 27px 22px 24px 16px;
    box-shadow: 0 2px 16px #e9bdf530;
    width: 100%;
    max-width: 520px;
    min-width: 0;
    box-sizing: border-box;
}

.thumb-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
    align-items: center;
    min-width: 68px;
    max-width: 68px;
}

.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #eee3eb;
    border-radius: 9px;
    cursor: pointer;
    background: #fff;
    box-shadow: 0 1.5px 7px #f9d4e635;
    transition: border-color .13s, box-shadow .14s;
}

.thumb-active,
.thumb:hover {
    border-color: #e94545;
    box-shadow: 0 2px 11px #f4baf273;
}

.main-img-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
}

.main-img-wrap {
    position: relative;
    width: 340px;
    /* bạn có thể tăng lên nếu muốn rộng hơn nữa */
    min-width: 220px;
    max-width: 370px;
}

.product-detail-image {
    width: 100%;
    aspect-ratio: 1/1.33;
    min-height: 320px;
    max-height: 416px;
    background: #fff;
    border-radius: 12px;
    object-fit: contain;
    z-index: 1;
    box-shadow: 0 2px 12px #efbddf50;
    display: block;
}

.badge-sale {
    position: absolute;
    left: 13px;
    top: 15px;
    background: #ff4647;
    color: #fff;
    font-size: 16px;
    min-width: 40px;
    border-radius: 8px;
    padding: 7px 8px 6px 8px;
    font-weight: 700;
    z-index: 10;
    text-align: center;
    line-height: 1.1;
    box-shadow: 0 1px 6px #ffd2d2a3;
}

.img-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ff4747;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 2.2rem;
    font-weight: 900;
    box-shadow: 0 2px 9px #f5d6e654;
    z-index: 10;
    cursor: pointer;
    opacity: 0.88;
    transition: background .13s, color .12s;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.img-nav-prev {
    left: 8px;
}

.img-nav-next {
    right: 8px;
}

.img-nav:active,
.img-nav:hover {
    background: #fee7eb;
    color: #db3535;
}

.img-nav[disabled] {
    opacity: 0.34;
    pointer-events: none;
}

.product-detail-share {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #6e6e6e;
    font-weight: 500;
    width: 100%;
}

.product-detail-share a img {
    border: 1.5px solid #efeaea;
    border-radius: 7px;
    background: #fff;
    padding: 2px;
    transition: border-color .15s, box-shadow .13s;
}

.product-detail-share a:hover img {
    border-color: #ee4d7d;
    box-shadow: 0 2px 10px #febbd8ab;
}

/* RESPONSIVE */
@media (max-width:1050px) {
    .product-detail-gallery {
        max-width: 98vw;
        padding: 15px 4vw;
    }

    .main-img-wrap {
        width: 85vw;
        max-width: 98vw;
    }
}

@media (max-width:900px) {
    .product-detail-wrap {
        flex-direction: column;
        gap: 15px;
        padding: 18px 7px;
    }

    .product-detail-gallery {
        flex-direction: column;
        align-items: center;
    }

    .main-img-column,
    .main-img-wrap {
        width: 98vw;
        max-width: 99vw;
    }

    .thumb-list {
        flex-direction: row;
        min-width: 0;
        margin-bottom: 6px;
    }

    .thumb {
        width: 42px;
        height: 42px;
    }

    .product-detail-share {
        margin: 17px 0 0 0;
    }
}


.product-voucher-group {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
}

.voucher-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 9px #edc9de26;
    border: 1.5px dashed #ffe3ef;
    min-height: 84px;
    position: relative;
    overflow: visible;
    padding: 10px 22px 8px 14px;
}

.voucher-item:before,
.voucher-item:after {
    content: '';
    display: block;
    width: 16px;
    height: 22px;
    background: #fff;
    box-shadow: 0 1px 11px #ffd4ef1e;
    position: absolute;
    border-radius: 9px;
    top: 50%;
    transform: translateY(-50%);
}

.voucher-item:before {
    left: -8px;
}

.voucher-item:after {
    right: -8px;
}

.voucher-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    margin-right: 17px;
    flex-shrink: 0;
}

.voucher-content {
    display: grid;
    grid-template-columns: 1.75fr 0.95fr;
    width: 100%;
    align-items: stretch;
    gap: 0 10px;
}

.voucher-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 15px;
    color: #23272b;
    justify-content: center;
}

.voucher-info b {
    font-size: 15.5px;
    color: #f53a2f;
    margin-bottom: 1px;
}

.voucher-code {
    background: #eaf7f3;
    color: #d34b32;
    font-weight: 700;
    border-radius: 4px;
    padding: 0 6px 0 2px;
    margin-left: 2px;
}

.voucher-hsd {
    color: #aaa;
    font-size: 12px;
}

.voucher-ext {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.voucher-help {
    color: #b3b3b3;
    font-size: 22px;
    margin: 2px 0 19px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width:1100px) {
    .product-voucher-group {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .voucher-item {
        padding: 10px 8px 8px 8px;
    }
}


.product-voucher-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 26px;
    background: #fff2fa;
    border-radius: 15px;
    padding: 14px 8px;
}

.voucher-item {
    position: relative;
    background: #fff;
    border: 1.5px dashed #eeb6d2;
    border-radius: 14px;
    min-height: 114px;
    display: flex;
    align-items: center;
    padding: 15px 16px 15px 13px;
    gap: 15px;
    box-shadow: 0 2px 8px #ecbac44a;
    /* giữ width đều đẹp */
    min-width: 300px;
    max-width: 99%;
    overflow: hidden;
}

.voucher-item:before,
.voucher-item:after {
    content: "";
    display: block;
    width: 14px;
    height: 22px;
    background: #fff;
    position: absolute;
    border-radius: 8px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 1px 11px #ffd4ef1e;
}

.voucher-item:before {
    left: -8px;
}

.voucher-item:after {
    right: -8px;
}

/* Icon voucher trái */
.voucher-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 10px;
}

/* dấu hỏi help */
.voucher-help {
    position: absolute;
    right: 15px;
    top: 11px;
    color: #bbb;
    font-size: 21px;
    z-index: 3;
    transition: color .13s;
    cursor: pointer;
}

.voucher-help:hover {
    color: #ff5b91;
}

/* Thông tin mô tả */
.voucher-desc-group {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    gap: 3px;
    /* Ko margin/padding lớn */
}

.voucher-name {
    font-size: 17px;
    color: #e94444;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 1px;
    line-height: 1.2;
}

.voucher-cond {
    font-size: 15px;
    color: #23272b;
    font-weight: 500;
    margin-top: 0;
    white-space: nowrap;
}

.voucher-code-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    margin-bottom: 0;
}

.voucher-label {
    color: #666;
    font-size: 15px;
}

.voucher-code {
    font-weight: 800;
    color: #db4b32;
    background: #eaf7f3;
    border-radius: 5px;
    padding: 1px 7px 1px 5px;
    font-size: 14.5px;
    white-space: nowrap;
    margin-left: 2px;
}

.voucher-hsd {
    font-size: 12.2px;
    color: #aaa;
    margin-top: 1px;
    margin-bottom: 2px;
    line-height: 1.2;
    white-space: nowrap;
}


@media (max-width:950px) {
    .product-voucher-group {
        grid-template-columns: 1fr;
    }

    .voucher-item {
        min-width: 0;
        width: auto;
    }
}

.voucher-item {
    display: flex;
    align-items: stretch;
    position: relative;
    background: #fff;
    border: 1.5px dashed #eeb6d2;
    border-radius: 16px;
    min-height: 114px;
    padding: 12px 18px 12px 11px;
    gap: 15px;
    box-shadow: 0 2px 8px #ecbac44a;
}

.voucher-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 10px;
}

.voucher-content {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 17px;
    align-items: stretch;
    width: 100%;
}

.voucher-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
    justify-content: center;
}

.voucher-info b {
    font-size: 17px;
    color: #e94444;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 1px;
}

.voucher-code-row,
.voucher-hsd {
    white-space: nowrap;
    margin-bottom: 1px;
}

.voucher-label {
    color: #666;
}

.voucher-code {
    background: #eaf7f3;
    color: #d34b32;
    font-weight: 700;
    border-radius: 4px;
    padding: 0 7px 0 2px;
    font-size: 14.5px;
    margin-left: 2px;
    white-space: nowrap;
}

.voucher-hsd {
    font-size: 12.2px;
    color: #aaa;
    margin-bottom: 1px;
    line-height: 1.1;
}

.voucher-ext {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    min-width: 92px;
}

.voucher-help {
    color: #bbb;
    font-size: 21px;
    margin-bottom: 14px;
    margin-top: 2px;
    cursor: pointer;
    align-self: flex-end;
}


.product-voucher-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 26px;
    background: #fff2fa;
    border-radius: 14px;
    padding: 18px 8px;
}

/* Structure từng voucher */
.voucher-item {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.7px dashed #eeb6d2;
    border-radius: 13px;
    box-shadow: 0 2px 8px #ecbac44a;
    min-height: 116px;
    overflow: hidden;
    padding: 14px 12px 14px 10px;
    gap: 16px;
}

.voucher-item:before,
.voucher-item:after {
    content: '';
    display: block;
    width: 14px;
    height: 22px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 11px #ffd4ef1e;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.voucher-item:before {
    left: -7px;
}

.voucher-item:after {
    right: -7px;
}

.voucher-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.voucher-content {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    padding-right: 0 !important;
}

.voucher-help {
    position: absolute;
    right: 4px;
    top: 2px;
    color: #bbb;
    font-size: 22px;
    z-index: 3;
    cursor: pointer;
    transition: color .13s;
}

.voucher-help:hover {
    color: #ff5b91;
}

/* Nội dung text chiếm 1 dòng/ô */
.voucher-desc-box {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    margin: 0;
    min-width: 0;
    padding-right: 0;
}

.voucher-title {
    font-size: 16px;
    color: #e94444;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.1;
}

.voucher-cond {
    font-size: 15px;
    color: #23272b;
    font-weight: 500;
    white-space: nowrap;
}

.voucher-info-row {
    display: flex;
    align-items: center;
    font-size: 15px;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}

.voucher-label {
    color: #555;
}

.voucher-code {
    background: #eaf7f3;
    color: #d34b32;
    font-weight: 700;
    border-radius: 4px;
    padding: 0 7px 0 3px;
    margin-left: 2px;
    font-size: 15px;
    white-space: nowrap;
}

.voucher-hsd {
    font-size: 12.2px;
    color: #aaa;
    margin: 0 0 3px 0;
    white-space: nowrap;
    line-height: 1.2;
}



@media (max-width:950px) {
    .product-voucher-group {
        grid-template-columns: 1fr;
    }

    .voucher-item {
        min-width: 0;
        width: auto;
    }

    .voucher-content {
        padding-right: 0;
    }
}


.voucher-item {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px dashed #eeb6d2;
    border-radius: 13px;
    min-height: 126px;
    overflow: hidden;
    padding: 14px 12px 14px 10px;
    gap: 16px;
}

.voucher-img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
}

.voucher-content {
    flex: 1;
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.voucher-help {
    position: absolute;
    right: 3px;
    top: 3px;
    color: #bbb;
    font-size: 22px;
    z-index: 3;
    cursor: pointer;
    transition: color .13s;
}

.voucher-help:hover {
    color: #ff5b91;
}

.voucher-desc-box {
    display: flex;
    flex-direction: column;
    min-height: 90px;
    min-width: 0;
}

.voucher-title {
    font-size: 17px;
    color: #e94444;
    font-weight: 800;
    white-space: nowrap;
    line-height: 1.12;
    margin-bottom: 1px;
}

.voucher-cond {
    font-size: 15px;
    color: #23272b;
    font-weight: 500;
    margin-top: 0;
    white-space: nowrap;
}

.voucher-info-row {
    display: flex;
    align-items: center;
    font-size: 15px;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}

.voucher-label {
    color: #555;
}

.voucher-code {
    background: #eaf7f3;
    color: #d34b32;
    font-weight: 700;
    border-radius: 4px;
    padding: 0 7px 0 3px;
    font-size: 15px;
    white-space: nowrap;
}

.voucher-hsd {
    font-size: 12.2px;
    color: #aaa;
    margin-top: 2px;
    margin-bottom: 6px;
    white-space: nowrap;
    line-height: 1.1;
}



/* Responsive: 1 cột */
@media (max-width:950px) {
    .product-voucher-group {
        grid-template-columns: 1fr;
    }

    .voucher-item {
        min-width: 0;
        width: auto;
    }
}

.voucher-hsd {
    /* ... */
    margin-bottom: 8px;
    /* tăng khoảng cách với button */
}



.product-voucher-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 17px 15px;
    /* giảm gap cho thoáng hơn */
    background: #fff2fa;
    border-radius: 12px;
    padding: 14px 4px;
    /* giảm lề hai bên */
}

.voucher-item {
    position: relative;
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1.5px dashed #eeb6d2;
    border-radius: 13px;
    min-height: 116px;
    padding: 14px 12px 12px 10px;
    /* padding trái/phải nhỏ lại */
    gap: 12px;
    box-shadow: 0 2px 8px #ecbac44a;
    overflow: hidden;
}

.voucher-item:before,
.voucher-item:after {
    content: '';
    display: block;
    width: 13px;
    height: 22px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 11px #ffd4ef1e;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.voucher-item:before {
    left: -8px;
}

.voucher-item:after {
    right: -8px;
}

.voucher-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    margin-right: 5px;
}

.voucher-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.voucher-help {
    position: absolute;
    right: 7px;
    top: 2px;
    color: #bbb;
    font-size: 19px;
    z-index: 4;
    cursor: pointer;
    transition: color .13s;
}

.voucher-help:hover {
    color: #ff5b91;
}

.voucher-desc-box {
    display: flex;
    flex-direction: column;
    min-width: 0;
    justify-content: flex-start;
}

.voucher-title {
    font-size: 16px;
    color: #e94444;
    font-weight: bold;
    white-space: nowrap;
    line-height: 1.11;
    margin-bottom: 2px;
}

.voucher-cond {
    font-size: 15px;
    color: #23272b;
    font-weight: 500;
    white-space: nowrap;
    margin-bottom: 0;
}

.voucher-info-row {
    display: flex;
    align-items: center;
    font-size: 15px;
    gap: 4px;
    margin: 0;
    white-space: nowrap;
}

.voucher-label {
    color: #666;
}

.voucher-code {
    background: #eaf7f3;
    color: #d34b32;
    font-weight: 700;
    border-radius: 4px;
    padding: 0 7px 0 3px;
    font-size: 15px;
    margin-left: 2px;
    white-space: nowrap;
}

.voucher-hsd {
    font-size: 12.2px;
    color: #aaa;
    margin: 2px 0 11px 0;
    /* tăng khoảng cách với button */
    line-height: 1.1;
    white-space: nowrap;
}

.voucher-btn:hover {
    background: #eb528d;
    color: #fff;
}

@media (max-width:900px) {
    .product-voucher-group {
        grid-template-columns: 1fr;
    }

    .voucher-item {
        padding: 10px 6px 11px 6px;
        min-width: unset;
    }

    .voucher-btn {
        width: 100%;
    }
}


.voucher-item {
    display: flex;
    align-items: center;
    position: relative;
    background: #fff;
    border: 1.5px dashed #eeb6d2;
    border-radius: 13px;
    min-height: 124px;
    padding: 14px 12px 14px 10px;
    gap: 12px;
    box-shadow: 0 2px 8px #ecbac44a;
}

.voucher-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
}

.voucher-content {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.voucher-help {
    position: absolute;
    right: 6px;
    top: 2px;
    color: #bbb;
    font-size: 22px;
    z-index: 2;
    cursor: pointer;
    transition: color .13s;
}

/* Mô tả, Mã, HSD */
.voucher-desc-box {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}

.voucher-title {
    font-size: 16px;
    color: #e94444;
    font-weight: 800;
    white-space: nowrap;
}

.voucher-cond,
.voucher-hsd,
.voucher-info-row {
    white-space: nowrap;
    font-size: 15px;
}

.voucher-info-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

.voucher-label {
    color: #666;
}

.voucher-code {
    background: #eaf7f3;
    color: #d34b32;
    font-weight: 700;
    border-radius: 4px;
    padding: 0 7px 0 2px;
    font-size: 15px;
    margin-left: 2px;
    white-space: nowrap;
}

.voucher-hsd {
    font-size: 12.2px;
    color: #aaa;
    margin: 0 0 10px 0;
    line-height: 1.1;
}


.voucher-btn {
    align-self: flex-end;
    background: #fff0fa;
    border: 1.4px solid #eb528d;
    color: #eb528d;
    font-weight: 700;
    font-size: 18px;
    border-radius: 7px;
    padding: 9px 18px;
    cursor: pointer;
    margin-top: 0;
    white-space: nowrap;
    box-shadow: 0 2px 7px #f6c8ee22;
    margin-left: auto;
    min-width: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .11s, color .13s;
}

.voucher-btn:hover {
    background: #eb528d;
    color: #fff;
}

.voucher-btn ion-icon {
    font-size: 23px;
    pointer-events: none;
}


.suggest-title {
    font-size: 21px;
    font-weight: 700;
    margin: 34px 0 18px 0;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.suggestion-scroll-list {
    display: flex;
    overflow-x: auto;
    gap: 22px;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    margin-bottom: 7px;
    background: transparent;
}

.suggestion-card {
    flex: 0 0 225px;
    min-width: 210px;
    max-width: 245px;
    background: #fff;
    border-radius: 13px;
    box-shadow: 0 1px 12px #efceeb2c;
    border: 1.3px solid #f8e0ed;
    padding: 13px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
}

.suggest-img {
    width: 105px;
    max-height: 118px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    margin-bottom: 10px;
    background: #fbf8f9;
}

.suggestion-name {
    font-size: 15.5px;
    font-weight: 600;
    color: #232323;
    margin: 12px 0 5px 0;
    min-height: 38px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.24;
}

.suggest-variant {
    display: inline-block;
    padding: 4px 11px;
    border: 1.1px solid #e6d9dd;
    border-radius: 11px;
    font-size: 13px;
    color: #5a5454;
    background: #faf8fb;
    margin-bottom: 0;
}

.suggestion-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.suggest-cart {
    background: #fff7fa;
    color: #ea427a;
    border: 1.3px solid #eee1ed;
    font-size: 19px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 6px #f6b6d044;
    transition: border .12s, color .13s, background .13s;
}

.suggest-cart:hover {
    background: #eb528d;
    border-color: #eb528d;
    color: #fff;
}

.suggest-meta {
    font-size: 13.5px;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 7px 0 2px 0;
}

.suggest-rating .stars {
    color: #fab818;
    letter-spacing: 0.5px;
    margin-left: 1px;
}

.suggest-sold {
    font-size: 13px;
    color: #726e6d;
}

.suggest-price-group {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 1.5px;
    margin-top: 4px;
}

.suggest-price {
    color: #e94444;
    font-size: 17px;
    font-weight: 700;
}

.suggest-oldprice {
    color: #999;
    font-size: 13.5px;
    text-decoration: line-through;
}

.suggest-discount {
    color: #ee4d7d;
    font-size: 13px;
    font-weight: 800;
    background: #fff3f7;
    padding: 2.5px 7px 2.5px 7px;
    border-radius: 7px;
}

.suggestion-scroll-list::-webkit-scrollbar {
    height: 7px;
    background: #f6eefe;
}

.suggestion-scroll-list::-webkit-scrollbar-thumb {
    background: #efcbe8;
    border-radius: 7px;
}

@media (max-width: 800px) {
    .suggest-title {
        font-size: 18.5px;
    }

    .suggestion-card {
        min-width: 68vw;
        max-width: 76vw;
    }
}

@media (max-width: 500px) {
    .suggestion-scroll-list {
        gap: 7px;
    }

    .suggestion-card {
        min-width: 94vw;
        max-width: 97vw;
    }
}

.product-detail-tabs {
    margin-top: 38px;
    background: #fff;
    padding: 32px 30px;
}

.tabs-header {
    display: flex;
    border-bottom: 2px solid #e4d7e1;
    gap: 0;
    margin-bottom: 28px;
    padding-bottom: 1.5px;
    background: transparent;
}

.tab-btn {
    background: none;
    border: none;
    outline: none;
    font-weight: 600;
    font-size: 17px;
    color: #222;
    padding: 10px 32px 13px 32px;
    margin: 0;
    border-radius: 7px 7px 0 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: color .16s, background .16s;
}

.tab-btn:not(.active):hover {
    background: #fbe9f8;
    color: #ea427a;
}

.tab-btn.active {
    color: #eb4d84;
    background: #fff;
    border-bottom: 3px solid #eb4d84;
    font-weight: 700;
}

.tab-pane {
    display: none;
    padding: 22px 0 0 0;
}

.tab-pane.active {
    display: block;
}

.tab-title {
    font-size: 1.22rem;
    font-weight: 700;
    color: #23262d;
    margin: 0 0 13px 0;
}



.product-detail-tabs li {
    margin-bottom: 7px;
    line-height: 1.7;
}



.product-detail-tabs p {
    margin: 7px 0;
    line-height: 1.8;
}

@media (max-width: 700px) {
    .product-detail-tabs {
        padding: 15px 4vw;
    }

    .tabs-header {
        gap: 0;
    }

    .tab-btn {
        padding: 10px 10px;
    }
}

.product-review-section {
    margin-top: 45px;
    background: #fff;
    padding: 32px 24px 26px 24px;
    border-radius: 16px;
    box-shadow: 0 1.5px 13px #e9bdf513;
  }
  .review-title {
    font-size: 25px;
    font-weight: 800;
    color: #232323;
    margin-bottom: 0;
  }
  .review-divider {
    margin: 12px 0 25px 0;
    height: 4px;
    width: 190px;
    background: linear-gradient(90deg, #29a19c 77%, #13c1b8 100%);
    border-radius: 8px;
  }
  .review-grid {
    display: flex;
    align-items: flex-start;
    gap: 38px;
  }
  .review-left {
    min-width: 160px;
    max-width: 190px;
    text-align: center;
    border-right: 1px solid #e7e3e9;
    padding-right: 22px;
    flex-shrink: 0;
  }
  .review-score {
    font-size: 32px;
    font-weight: 700;
    color: #23262d;
    margin-bottom: 7px;
  }
  .five { font-size: 21px; font-weight: 500; color: #232323; margin-left: 3px;}
  .review-stars {font-size: 22px; letter-spacing:1.2px; color: #fab818;}
  .review-stars-large {margin: 3px 0 6px 0;}
  .review-stars .star {
    color: #fab818;
    margin-right: 1.2px;
    text-shadow: 0 2px 8px #fad1820c;
  }
  .review-stars .star:not(.full) { color: #ffe7a8;  }
  .review-count {
    color: #aaa; font-size: 14px; margin-top: 3px; font-weight: 500;
  }
  .review-detail {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 24px;
  }
  .review-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    min-height: 27px;
  }
  .review-row .review-stars {
    font-size: 15px;
    min-width: 90px; flex-shrink:0; text-align:right;
  }
  .review-bar {
    flex: 1;
    height: 10px;
    background: #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 7px;
    margin-left: 0;
    display: flex;
    align-items: center;
  }
  .review-bar div {
    height: 100%;
    background: linear-gradient(90deg,#29a19c 70%,#16b8b1 100%);
    border-radius: 6px;
    transition: width .18s;
  }
  .review-num {
    min-width: 18px;
    font-size: 15.7px;
    text-align: right;
    color: #22212a;
  }
  
  @media (max-width:900px){
    .product-review-section {padding: 24px 4vw;}
    .review-divider { width: 120px; }
    .review-grid { flex-direction: column; gap: 16px;}
    .review-left{border-right:none;padding-right:0; margin-bottom: 13px;}
    .review-detail{padding-left:0;}
  }

  /* Đảm bảo section review đúng width full - dùng trong .container */
.product-review-section {
    width: 100%;
    box-sizing: border-box;
    margin-top: 45px;
    background: #fff;
    padding: 32px 24px 26px 24px;
    border-radius: 16px;
    box-shadow: 0 1.5px 13px #e9bdf513;
    min-width: 0;
  }
  
  /* Dưới 900px hoặc bất kỳ width nào, đảm bảo kéo ngang */
  @media (max-width: 900px){
    .product-review-section {
      width: 100vw;
      max-width: 100vw;
      margin-left: -4vw;
      padding-left: 9vw;
      padding-right: 9vw;
    }
    .review-grid {
      width: 100%;
      min-width: 0;
      flex-direction: column;
      gap: 16px;
    }
    .review-detail {
      padding-left: 0;
      width: 100%;
      min-width: 0;
    }
    .review-left {
      border-right: none;
      margin-bottom: 13px;
      padding-right: 0;
      width: 100%;
      max-width: none;
      min-width: 0;
    }
  }

  .add-to-cart-toast {
    position: fixed;
    top: 28px; right: 40px;
    background: #fff0fa;
    color: #eb528d;
    padding: 13px 32px 13px 22px;
    border-radius: 18px;
    box-shadow: 0 2px 13px #d772aa22;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    gap: 11px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-30px) scale(0.96);
    transition: opacity .4s cubic-bezier(.32,1.56,.62,1), transform .36s cubic-bezier(.32,1.56,.62,1);
    z-index: 1302;
  }
  .add-to-cart-toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
  }
  .add-to-cart-toast ion-icon {
    color: #28b97c;
    font-size: 23px;
  }
  @media (max-width:640px){
    .add-to-cart-toast { right: 10px; top: 11px; padding: 10px 21px;}
  }

/* Nội dung richtext trong tab: chỉ bằng chiều rộng div cha */
.tab-content-limit{
  width: 100%;
  max-width: 100%;
  margin: 0;                 /* bỏ căn giữa auto */
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

/* Chặn các phần tử richtext (ảnh, bảng, iframe...) tràn ngang */
.tab-content-limit img,
.tab-content-limit table,
.tab-content-limit iframe,
.tab-content-limit video{
  max-width: 100%;
  height: auto;
}

/* Nếu CKEditor sinh figure có width cố định */
.tab-content-limit figure{
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.tab-content-limit table{
  width: 100% !important;
  display: block;        /* cho phép scroll nếu bảng quá rộng */
  overflow-x: auto;
}

/* Mỗi benefit: icon + text luôn cùng 1 hàng (PC & SP) */
.product-detail-benefit > div{
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Icon không bị co lại và không rớt xuống dòng */
.product-detail-benefit .pd-icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

/* Nếu text quá dài thì cho phép wrap nhưng vẫn giữ icon ở dòng đầu */
.product-detail-benefit > div{
  flex-wrap: wrap;             /* cho text xuống dòng nếu cần */
}

.product-detail-benefit > div > :not(.pd-icon){
  min-width: 0;
  flex: 1 1 auto;
}

/* Bảo vệ trường hợp b tag/ion-icon gây lệch baseline */
.product-detail-benefit ion-icon{
  display: block;
}

.img-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}

.img-viewer-modal.open {
  display: block;
}

.img-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.img-viewer-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  height: min(90vh, 720px);
  margin: 4vh auto 0 auto;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-viewer-dialog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.img-viewer-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: rgba(255,255,255,0.9);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 42px;
  cursor: pointer;
  z-index: 2;
}


/* =========================================================
   SIMPLE THEME OVERRIDE (trắng + xám + 1 accent nhẹ)
   ĐẶT CUỐI FILE để override các rule cũ/lặp.
   ========================================================= */
:root{
  --simple-text: #111827;        /* gần đen */
  --simple-muted: #6b7280;       /* xám text phụ */
  --simple-border: #e5e7eb;      /* viền nhạt */
  --simple-bg: #ffffff;          /* nền */
  --simple-soft: #f9fafb;        /* nền nhạt */
  --simple-accent: #111827;      /* accent: dùng đen cho đơn giản */
  --simple-accent-soft: #f3f4f6; /* accent nhạt */
  --simple-success: #16a34a;     /* xanh trạng thái */
  --simple-danger: #ef4444;      /* đỏ cho sale (ít dùng) */
}

/* Tổng quan chữ */
.product-detail-wrap,
.product-detail-meta,
.product-detail-tabs,
.product-review-section{
  color: var(--simple-text);
}

/* Row meta phụ (mã SP / brand / status) */
.product-id-row{
  color: var(--simple-muted);
}
.product-id-row .sku,
.product-id-row .brand{
  color: var(--simple-text);
  font-weight: 700;
}
.product-id-row .status b{
  color: var(--simple-success);
}

/* Box giá: bỏ hồng, dùng nền xám nhạt */
.product-price-box{
  background: var(--simple-soft);
  border: 1px solid var(--simple-border);
}
.price-new{
  color: var(--simple-text);
}
.price-old{
  color: #9ca3af;
}

/* Badge giảm giá: đơn giản */
.badge-price-sale{
  background: var(--simple-accent-soft);
  color: var(--simple-text);
  border: 1px solid var(--simple-border);
}

/* Badge sale trên ảnh: nếu vẫn muốn nổi bật thì đỏ, còn không thì comment lại */
.badge-sale{
  background: var(--simple-danger);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* Progress bar: bỏ gradient hồng */
.progress-sold{
  background: #eef2f7;
}
.progress-sold div{
  background: #111827;
}

/* Nút: kiểu đơn giản giống ecommerce clean */
.btn-cart,
.btn-buy{
  border-color: var(--simple-text);
  box-shadow: none;
}
.btn-cart{
  color: var(--simple-text);
  background: #fff;
}
.btn-buy{
  background: var(--simple-text);
  color: #fff;
}
.btn-cart:hover{
  background: var(--simple-accent-soft);
}
.btn-buy:hover{
  opacity: .92;
}

/* Benefit: text đen, icon xám (nhẹ) */
.product-detail-benefit{
  color: var(--simple-text);
}
.pd-icon{
  color: #9ca3af;
}
.product-detail-benefit b{
  color: var(--simple-text);
  font-weight: 800;
}

/* Voucher: clean, bỏ nền hồng */
.product-voucher-group{
  background: var(--simple-soft);
  border: 1px solid var(--simple-border);
}
.voucher-item{
  border: 1px solid var(--simple-border);
  box-shadow: none;
}
.voucher-title,
.voucher-cond,
.voucher-label{
  color: var(--simple-text);
}
.voucher-hsd{
  color: var(--simple-muted);
}
.voucher-code{
  background: var(--simple-accent-soft);
  color: var(--simple-text);
  border: 1px solid var(--simple-border);
}

/* Button copy: clean */
.voucher-btn{
  background: #fff;
  border: 1px solid var(--simple-border);
  color: var(--simple-text);
}
.voucher-btn:hover{
  background: var(--simple-accent-soft);
}

/* Tabs: active dùng underline đen thay vì hồng */
.tab-btn.active{
  color: var(--simple-text);
  border-bottom: 3px solid var(--simple-text);
}
.tab-btn:not(.active):hover{
  background: var(--simple-accent-soft);
  color: var(--simple-text);
}

/* Suggest card: giảm màu hồng */
.suggest-price{
  color: var(--simple-text);
}
.suggest-discount{
  background: var(--simple-accent-soft);
  color: var(--simple-text);
  border: 1px solid var(--simple-border);
}
.suggest-cart{
  background: #fff;
  color: var(--simple-text);
  border: 1px solid var(--simple-border);
  box-shadow: none;
}
.suggest-cart:hover{
  background: var(--simple-accent-soft);
  border-color: var(--simple-border);
  color: var(--simple-text);
}

/* =========================
   REVIEW FORM (rating + comment)
   ========================= */
.product-review-section .review-form{
  margin-top: 16px;
}

.product-review-section .review-form form{
  background: #f9fafb;                 /* nền nhạt */
  border: 1px solid #e5e7eb;           /* viền */
  border-radius: 14px;
  padding: 16px 16px 14px 16px;
}

/* Dòng chọn sao */
.review-stars-input{
  display: flex;
  align-items: center;
  gap: 4px;
  user-select: none;
}

/* Nút sao */
.review-stars-input .star-btn{
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0 2px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #d1d5db;                      /* sao off */
  transition: transform .08s ease, color .12s ease;
}

.review-stars-input .star-btn:hover{
  transform: scale(1.06);
}

/* Sao được chọn */
.review-stars-input .star-btn.is-on{
  color: #f59e0b;                      /* vàng */
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.15);
}

/* Text 5/5 */
#rating-text{
  margin-left: 8px;
  font-weight: 700;
  color: #111827;
  font-size: 14px;
}

/* Ô nhập content */
.product-review-section .review-form textarea{
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 12px 12px;
  font-size: 15px;
  line-height: 1.5;
  outline: none;
  resize: vertical;
  min-height: 110px;
}

.product-review-section .review-form textarea:focus{
  border-color: #111827;
  box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.10);
}

/* Nút submit (vì bạn đang dùng class btn btn-primary của bootstrap,
   nên chỉ cần override nhẹ nếu muốn đồng bộ) */
.product-review-section .review-form .btn.btn-primary{
  background: #111827;
  border-color: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
}

.product-review-section .review-form .btn.btn-primary:hover{
  opacity: .92;
}

/* Responsive */
@media (max-width: 900px){
  .product-review-section .review-form form{
    padding: 14px 12px;
  }
  .review-stars-input .star-btn{
    font-size: 26px;
  }
}

/* Alert login-required (không cần Bootstrap) */
.product-review-section .alert{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #fde68a;       /* vàng nhạt */
  background: #fffbeb;             /* nền vàng very light */
  color: #92400e;                  /* chữ nâu */
  font-size: 14.5px;
  line-height: 1.45;
}

.product-review-section .alert a{
  color: #111827;                  /* link đen */
  font-weight: 700;
  text-decoration: underline;
}

.product-review-section .alert a:hover{
  opacity: .85;
}

/* Nếu class mb-0 của Bootstrap không có thì tự định nghĩa */
.mb-0{ margin-bottom: 0 !important; }

/* Nếu bạn muốn đúng màu "warning" kiểu Bootstrap hơn */
.alert-warning{
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

/* ===== TURN OFF DEBUG OUTLINES (red/blue/green borders) ===== */
.product-detail-tabs,
.product-detail-tabs *,
.product-review-section,
.product-review-section *{
  outline: none !important;
}

/* nếu viền nằm ở wrapper ngoài (hay gặp) */
.product-detail-wrap,
.product-detail-wrap *{
  outline: none !important;
}
