﻿/* ================================
   PRODUCT NAME + META
================================ */
#divpopuphomeadv {
    display:none;
}
#itemnameclass {
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
    line-height: 1.5;
}

#itemnameclass .initemnameclass {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    width: 100%;
    box-sizing: border-box;

    column-gap: 18px;
    row-gap: 8px;
}


/* ================================
   DESCRIPTION
================================ */

#itemnameclass .product-description {
    /*flex: 1 1 auto;*/
    min-width: 0;
    line-height: 1.5;
}


/* ================================
   META
================================ */

#itemnameclass .product-meta {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 16px;
    white-space: nowrap;
    line-height: 1;
    padding-bottom:6px;
}


/* ================================
   RATING
================================ */

#itemnameclass .product-rating {
    display: inline-flex;
    align-items: center;

    white-space: nowrap;
}

#itemnameclass .product-rating .star {
    margin-right: 4px;

    color: #f5a623;
    font-size: 16px;
}

#itemnameclass .product-rating strong {
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

#itemnameclass .product-rating .rating-count {
    margin-left: 3px;

    color: #888;
    font-size: 13px;
}


/* ================================
   SOLD
================================ */

#itemnameclass .product-sold {
    padding-left: 16px;

    border-left: 1px solid #e5e5e5;

    color: #777;
    font-size: 13px;
}

#itemnameclass .product-sold strong {
    color: #333;
    font-weight: 600;
}


/* ================================
   COMPARE
================================ */

#itemnameclass .product-compare {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    padding-left: 16px;

    border-left: 1px solid #e5e5e5;

    color: #666;

    font-size: 13px;
    text-decoration: none;

    white-space: nowrap;

    transition: color 0.2s ease;
}

#itemnameclass .product-compare:hover {
    color: #fb1e1e;
}

#itemnameclass .product-compare img {
    width: 18px;
    height: 18px;

    object-fit: contain;

    display: block;
}
.product-compare {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    padding-left: 16px;
    border-left: 1px solid #e5e5e5;

    color: #666;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.product-compare:hover {
    color: #2878f0;
}

.compare-plus {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 14px;
    height: 14px;

    border: 1px solid currentColor;
    border-radius: 50%;

    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
}
.product-compare:hover {
    color: #2878f0;
}
.divbuttonsales-row {
display: flex;
width: 100%;
gap: 4px;
}

.divbuttonsales-row .divbuttonsales {
flex: 1;
margin: 0;
}

.divbuttonsales-row .w49pecent {
width: auto;
}

.divbuttonsales-row .indivbuttonsales1 {
width: 100%;
box-sizing: border-box;
}
/*===btn trả góp -hiền ===*/
.divbuttontragop-row {
display: grid;
grid-template-columns: repeat(1, minmax(0, 1fr));
width: 100%;
margin-top:6px;
}

.divbuttontragop-row .divbuttontragop {
flex: 1;
margin: 0;
}

.divbuttontragop-row .w49pecent {
width: auto;
}

.divbuttontragop-row .indivbuttonsales1 {
width: 100%;
box-sizing: border-box;
}
.divbuttontragop .indivbuttonsales3 {
    background-color: #288ad6;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    text-transform: none;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
}
    .divbuttontragop .indivbuttonsales3 span {
        font-weight:normal;
    }
/* =====================================
   PRODUCT TABS
===================================== */

.sanphamlienquantitle {
    border-bottom: 1px solid #e5e5e5;
}

.product-tabs {
    display: flex;
    align-items: center;
    height: 62px;
}

.product-tab {
    position: relative;

    display: flex;
    align-items: center;

    height: 100%;
    padding: 0 24px;

    color: #777;

    font-size: 18px;
    font-weight: 600;

    cursor: pointer;

    transition: color .2s ease;
}

.product-tab:first-child {
    padding-left: 32px;
}

.product-tab:first-child:before {
    content: "";

    position: absolute;
    left: 18px;

    top: 50%;
    transform: translateY(-50%);

    /*width: 3px;
    height: 23px;*/

    background: #e60012;

    border-radius: 2px;
}

.product-tab:hover {
    color: #e60012;
}

.product-tab.active {
    color: #222;
}

.product-tab.active:after {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;

    bottom: -1px;

    height: 3px;

    background: #e60012;

    border-radius: 3px 3px 0 0;
}


/* =====================================
   TAB CONTENT
===================================== */

.product-tab-content {
    display: none;
}

.product-tab-content.active {
    display: block;
}
/* ==========================================
   CAROUSEL - SẢN PHẨM ĐÃ XEM
========================================== */

#producttab-viewed #listiteminpdnchildv2 {
    position: relative;
    width: 100%;
    overflow: hidden;
}


/* Vùng chứa các card */
#producttab-viewed #inlistiteminpdnchildv2 {
   display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    /*gap: 6px;*/
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}


/* Mỗi card */
#producttab-viewed
#inlistiteminpdnchildv2
.detailsiteminpdnchildv1 {
    flex: 0 0 calc((100% - 60px) / 6);
    width: calc((100% - 60px) / 6);
    min-width: 0;
    box-sizing: border-box;
    margin: 0 !important;
}


/* Không cho nội dung bên trong card phá chiều rộng */
#producttab-viewed
.indetailsiteminpdnchildv1 {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}


/* Ảnh không làm card bị tràn */
#producttab-viewed .imageitemviewv1 img {

    max-width: 100%;
    height: auto;

    object-fit: contain;
}


/* ==========================================
   NÚT LEFT / RIGHT
========================================== */

#producttab-viewed .btnleftlistitemhomev1,
#producttab-viewed .btnrightlistitemhomev1 {

  z-index: 100 !important;

    cursor: pointer;
}
#producttab-viewed #listiteminpdnchildv2 {
    position: relative;
}

#producttab-viewed .btnleftlistitemhomev1,
#producttab-viewed .btnrightlistitemhomev1 {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999 !important;

    cursor: pointer !important;
    pointer-events: auto !important;
}

#producttab-viewed .btnleftlistitemhomev1 {
    left: 0;
}

#producttab-viewed .btnrightlistitemhomev1 {
    right: 0;
}

#producttab-viewed .btnleftlistitemhomev1 img,
#producttab-viewed .btnrightlistitemhomev1 img {
    pointer-events: none !important;
}
/*1003 1409*/
#producttab-viewed #listiteminpdnchildv2 {
    position: relative;
}

#producttab-viewed .btnleftlistitemhomev1,
#producttab-viewed .btnrightlistitemhomev1 {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%) !important;
    z-index: 9999 !important;
    cursor: pointer;
    
    /* Không để CSS transition tác động vào nút */
    transition: none !important;
    
    /* Giữ kích thước ổn định */
    width: 40px;
    height: 40px;
    
    display: flex;
    align-items: center;
    justify-content: center;
}

#producttab-viewed .btnleftlistitemhomev1 {
    left: 0;
}

#producttab-viewed .btnrightlistitemhomev1 {
    right: 0;
}

#producttab-viewed .btnleftlistitemhomev1 img,
#producttab-viewed .btnrightlistitemhomev1 img {
    pointer-events: none;
    display: block;
}

/* Responsive */
@media (max-width: 1200px) {

    #producttab-viewed
    #inlistiteminpdnchildv2
    .detailsiteminpdnchildv1 {

        flex: 0 0 calc((100% - 48px) / 5);
        width: calc((100% - 48px) / 5);

    }
}


@media (max-width: 992px) {

    #producttab-viewed
    #inlistiteminpdnchildv2
    .detailsiteminpdnchildv1 {

        flex: 0 0 calc((100% - 36px) / 4);
        width: calc((100% - 36px) / 4);

    }
}


@media (max-width: 768px) {

    #producttab-viewed
    #inlistiteminpdnchildv2
    .detailsiteminpdnchildv1 {

        flex: 0 0 calc((100% - 12px) / 2);
        width: calc((100% - 12px) / 2);

    }
}


@media (max-width: 480px) {

    #producttab-viewed
    #inlistiteminpdnchildv2
    .detailsiteminpdnchildv1 {

        flex: 0 0 100%;
        width: 100%;

    }
}


/* Mobile */
@media (max-width: 480px) {
.divbuttonsales-row {
gap: 5px;
}
.divbuttonsales-row .indivbuttonsales1 {
    padding-left: 5px;
    padding-right: 5px;
}
}

/* ================================
   TABLET
================================ */

@media (max-width: 768px) {

    #itemnameclass .initemnameclass {
        align-items: flex-start;

        column-gap: 12px;
        row-gap: 8px;
    }

    #itemnameclass .product-meta {
        gap: 12px;
    }

}


/* ================================
   MOBILE
================================ */

@media (max-width: 480px) {

    #itemnameclass .initemnameclass {
        display: block;
    }

    #itemnameclass .product-description {
        width: 100%;
        margin-bottom: 8px;
    }

    #itemnameclass .product-meta {
        display: flex;
        flex-wrap: wrap;

        gap: 10px 14px;

        width: 100%;
    }

    #itemnameclass .product-sold,
    #itemnameclass .product-compare {
        padding-left: 12px;
    }

}
.divattributeitemdetailstop {
    font-size: 14px;
    line-height: 1.8;
    color: #333;
}

.divattributeitemdetailstop .attribute-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 5px;
}

.divattributeitemdetailstop .attribute-row .br {
    content: "✓";
    color: #e53935;
    font-weight: bold;
    font-size: 15px;
    flex-shrink: 0;
}

.divattributeitemdetailstop .attribute-label {
    font-weight: 600;
    color: #222;
}

/* Khối tổng hợp thông số sản phẩm */
.pro-info-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0 10px;
    padding: 15px;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

/* Từng dòng thông số */
.pro-info-summary .item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow-wrap: anywhere;
}

/* Icon dấu tích */
.pro-info-summary .item i {
    flex-shrink: 0;
    margin-top: 4px;
    color: #16a34a;
    font-size: 14px;
}

/* Ẩn các thông số mở rộng */
.pro-info-summary .item.hide {
    display: none;
}

/* Khu vực nút xem thêm */
.pro-info-summary + p {
    margin: 8px 0 15px;
    padding: 0;
}

/* Nút xem thêm */
#js-viewmore-summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d71920;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
}

#js-viewmore-summary:hover {
    color: #a80f15;
    text-decoration: underline;
}

/* Giao diện điện thoại */
@media (max-width: 576px) {
    .pro-info-summary {
        padding: 12px;
        gap: 9px;
        font-size: 13px;
        border-radius: 6px;
    }

    .pro-info-summary .item i {
        font-size: 13px;
    }

    #js-viewmore-summary {
        font-size: 13px;
    }
}
