.btn.btn-primary {
    background-color: #f60;
    border-color: #f60
}

.btn.btn-primary:hover {
    background: #e55b00;
    border-color: rgba(0, 0, 0, 0);
    text-decoration: none
}

.btn-primary:not(:disabled):not(.disabled).active,
.btn-primary:not(:disabled):not(.disabled):active,
.show>.btn-primary.dropdown-toggle {
    background: #e55b00;
    border-color: rgba(0, 0, 0, 0);
    text-decoration: none
}

@media(min-width:769px) {
    .container-detail {
        max-width: 1440px;
        min-width: 1180px;
        padding: 0 40px;
    }
}

.detail-product-comment {
    display: flex;
    font-size: 12px;
    height: 34px;
}

.detail-separator::after {
    content: "·";
    margin: 0px 4px;
}

.product-detail__title h1 {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    color: #222;
    display: -webkit-box;
    font-size: 20px;
    font-weight: 600;
}

.product-company {
    align-items: center;
    background-color: #f8f8f8;
    background-size: 100% 100%;
    border-radius: 4px;
    display: flex;
    font-size: 14px;
    height: 40px;
    margin-bottom: 24px;
}

.product-company .company-logo {
    background-color: #fff;
    border: .5px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    height: 28px;
    margin: 0 4px;
    width: 28px;
}

.product-company .product-company-info {
    align-items: center;
    display: flex;
    height: 22px;
    margin-left: 4px;
    overflow: hidden;
}

.detail-product .detail-product-image {
    position: relative;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    height: 486px;
}

.detail-product-image .image-slider {
    position: relative;
    width: 88%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f8f8f8;
}

.detail-product-image .image-slider-item {
    height: 486px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-product-image .image-slider-item img {
    max-width: 100%;
    max-height: 100%;
    height: 100%;
}

.thumb-slider {
    width: 70px;
    overflow: hidden;
}

.gallery-thumbs .swiper-slide {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px !important;
    width: 70px;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.gallery-thumbs .swiper-slide:hover,
.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    border: 2px solid #222;
}

.product-price {
    border-bottom: 1px solid #e6e7eb;
    padding-bottom: 24px;
}

.product-price .price-list .price-item {
    margin-bottom: 10px;
}

.price-list .price-item .quality {
    color: #666;
    display: flex;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 4px;
    white-space: nowrap;
}

.product-price .price-list .price-item .price {
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}


.form-rfq h3{
    color: #222;
    font-size: 18px;
    font-weight: 600;
}
.product-option h3,
.product-logictic h3,
.product-shipping h3,
.product-info-company h3,
.product-description h3 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    margin-bottom: 10px;
    margin-top: 20px;
}

.product-option .sku-option {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-between;
    margin-top: 8px;
    width: 100%;
    font-size: 16px;
}

.product-option .sku-option .item-left {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-option .sku-option .item-right>a {
    color: #222;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    text-decoration: underline;
    white-space: nowrap;
}

.product-option .sku-info h4 {
    color: #222;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
    margin-bottom: 12px;
    margin-top: 16px;
    position: relative;
}

.product-option .sku-info .info-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 44px;
    overflow: hidden;
}

.product-option .sku-info .info-item a.image {
    border-radius: 4px;
    display: inline-block;
    height: 44px;
    width: 44px;
    position: relative;
}

.product-option .sku-info .info-item a.image:before {
    background-color: rgba(0, 0, 0, .04);
    border-radius: 4px;
    content: "";
    display: block;
    height: 44px;
    left: 0;
    position: absolute;
    top: 0;
    width: 44px;
}

.product-option .sku-info .info-item a.image>img {
    border-radius: 4px;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.product-option .sku-info .info-item a.image.selected {
    border: 2px solid #222;
    padding: 1px;
}

.product-option .sku-info .info-item a.text {
    border: 2px solid #fff;
    border-radius: 8px;
    display: grid;
    text-align: center;
    text-decoration: none;
}

.product-option .sku-info .info-item a.text>span {
    background-color: #f4f4f4;
    border-radius: 8px;
    color: #222;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    padding: 8px 12px;
}

.product-logictic .logistic-item {
    font-size: 16px;
    line-height: 22px;
    min-height: 22px;
}

.product-button {
    background-color: #fff;
    margin-bottom: 20px;
    margin-top: 20px;
}

.product-button>.button-item {
    font-size: 14px;
    font-weight: 600;
    line-height: 30px;
}

.product-button .click_order {
    background-color: rgb(214, 64, 0);
    border-color: rgb(214, 64, 0);
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.product-button .click_order:hover {
    background-color: rgb(231, 71, 3);
    border-color: rgb(214, 64, 0);
    color: #fff;
}

.product-button .btn-outline-dark {
    background: #f0f0f0;
    background-color: #fff;
    border: 1px solid #d0d5dd;
    border-color: #d0d5dd;
    color: #111;
    font-weight: 500;
    font-size: 14px;
}

.product-button .btn-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    background: #f0f0f0;
    background-color: #ff5100;
    border: 1px solid #ff5100;
    border-color: #ff5100;
    color: #fff;
    font-weight: 500;
}

.product-order {
    color: #222;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    margin-bottom: 20px;
    margin-top: 16px;
}

.product-shipping {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.product-shipping .shipping-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-shipping .shipping-item h4 {
    display: flex;
    flex-wrap: nowrap;
    font-size: 14px;
    font-weight: 600;
    gap: 4px;
    line-height: 22px;
}

.product-shipping .shipping-item>div {
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
    margin-left: 26px;
}
.product-description{
    font-size: 16px;
}
/******fdffdfd**/

.product-list-recommend h2,
.product-list-popular h2 {
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
}

.product-attribute .attribute-list {
    border-collapse: collapse;
    display: table;
}

.product-attribute .attribute-list .attribute-item {
    border: 1px solid #ddd;
    display: table-row;
}

.product-attribute .attribute-list .attribute-item>div {
    border: 1px solid #ddd;
    color: #222;
    display: table-cell;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    padding: 12px;
}

.product-attribute .attribute-list .attribute-item>div.left {
    background: #f4f4f4;
    width: 320px;
}

.product-attribute .attribute-list .attribute-item>div.right {
    width: 420px;
}

.product-attribute h3 {
    color: #222;
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
    margin-top: 10px;
}

.product-attribute .attribute-info h4 {
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 20px;
}

.product-info-company .card {
    background-color: #f4f4f4;
    border-radius: 8px;
}

.product-info-company .card-header .media>a {
    align-items: center;
    background: #fff;
    border: .5px solid #ddd;
    border-radius: 8px;
    display: flex;
    height: 48px;
    overflow: hidden;
    width: 48px;
}

.product-info-company .card-header .media>a>img {
    max-height: 48px;
    max-width: 48px;
}

.product-info-company .header-info {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

.product-info-company .company-body {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.product-info-company .company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 30%;
}

.product-info-company .company-body .company-info .info-title {
    font-size: 16px;
}

.product-info-company .company-body .company-info .info-intro {
    font-size: 20px;
    font-weight: 600;
}

.product-info-company .company-action {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    width: 100%;
}

.description-info h3 {
    border-bottom-style: solid;
    border-bottom-color: #000000;
    font-size: 24px;
    color: #000000;
    font-style: normal;
    border-bottom-width: 2px;
    padding-top: 8px;
    padding-bottom: 4px;
}
.description-info img{
        max-width: 100%;
        height: auto;
        }
/**product recommend**/

.product-recommend {
    background-color: #fff;
    border-top: 1px solid #ddd;
    margin-top: 32px;
    padding-top: 32px;
}
/*detail-seller*/

.detail-seller {
    z-index: 10;
}

.detail-seller.fixed {
    width: 435px;
    /* max-width: 435px; */
    position: fixed;
    top: 140px;
}

.detail-seller.fixed .card {
    position: relative;
}

.detail-seller.fixed .card-body {
    max-height: calc(100vh - 170px);
    overflow: scroll;
    padding-bottom: 155px;
}

.detail-seller.fixed .product-button {
    border-radius: 0 0 8px 8px;
    bottom: 0;
    box-shadow: 0 2px 15px 0 hsla(0, 0%, 69%, .5);
    left: 0;
    margin: 0;
    padding: 12px 20px 20px;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.modal-dialog__detail-seller {
    transition: all .2s;
    /* height: 100vh; */
    animation: slide-in-right ease .3s;
    background-color: #fff;
    top: 135px;
    bottom: 0;
    position: fixed;
    right: -100%;
    bottom: 0;
    transform: translateX(100%);
    width: var(--detail-seller-popup-width, 600px);
    max-width: 100%;
    z-index: 10;
}

.modal-dialog__detail-seller.visible {
    right: 0;
    transform: translateX(0);
}

.modal-dialog__detail-seller .modal-content {
    height: 100%;
}

.modal-dialog__detail-seller .modal-content {
    border-radius: 16px;
}

.modal-dialog__detail-seller .modal-header .close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: .65;
    transition: background .15s ease, opacity .15s ease, transform .15s ease;
}
.modal-dialog__detail-seller .modal-header .close:hover {
    opacity: 1;
    background: rgba(0,0,0,.06);
    transform: translateY(-1px);
}

.rfq-modal__header {
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 5;
}
.rfq-modal__body {
    padding: 18px 20px 98px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(250,250,250,.55) 100%);
}
.rfq-modal__product {
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}
.rfq-modal__product-title {
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
    color: #111;
    margin-bottom: 10px;
    letter-spacing: -.2px;
}
.rfq-modal__prices {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rfq-modal__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
}
.rfq-modal__price-label {
    font-size: 12px;
    color: #666;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
}
.rfq-modal__price-value {
    font-size: 16px;
    font-weight: 800;
    color: #111;
}

.rfq-modal__form .input-group {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.12);
    background: #fff;
}
.rfq-modal__form .input-group .input-group-text {
    border: 0;
    background: #f5f5f5;
}
.rfq-modal__form .input-group .form-control {
    border: 0;
}
.rfq-modal__form .input-group:focus-within {
    border-color: rgba(255,8,0,.35);
    box-shadow: 0 0 0 .2rem rgba(255,8,0,.10);
}

.rfq-modal__form .form-control {
    border-radius: 12px;
    box-shadow: none;
}
.rfq-modal__form .form-control:focus {
    border-color: rgba(255,8,0,.35);
    box-shadow: 0 0 0 .2rem rgba(255,8,0,.10);
}
.rfq-modal__field {
    margin-bottom: 12px;
}
.rfq-modal__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 800;
    color: #222;
    margin-bottom: 6px;
}
.rfq-modal__req {
    color: #ff0800;
    font-weight: 900;
}
.rfq-modal__shipping {
    margin-top: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    background: linear-gradient(90deg, rgba(255,8,0,.07) 0%, rgba(255,8,0,.02) 45%, #fff 100%);
    border: 1px solid rgba(255,8,0,.14);
}
.rfq-modal__shipping-title {
    font-size: 13px;
    font-weight: 900;
    color: #111;
    margin-bottom: 6px;
}
.rfq-modal__shipping-item {
    font-size: 13px;
    color: #444;
    line-height: 1.45;
}
.rfq-modal__actions .button-item {
    height: 46px;
    font-weight: 900;
    background: linear-gradient(90deg, #ff0800 0%, #ff0800 100%);
    border: 0;
    box-shadow: 0 12px 26px rgba(255,8,0,.22);
}
.rfq-modal__actions .button-item:hover {
    filter: brightness(.98);
}

.modal-dialog__detail-seller .modal-content .product-button {
    background-color: #fff;
    bottom: 0;
    box-shadow: 0 -10px 10px -10px hsla(0, 0%, 69%, .5);
    left: 0;
    padding: 16px 20px 6px;
    position: absolute;
    width: 100%;
    z-index: 3;
}

@media (max-width: 768px) {
    .modal-dialog__detail-seller {
        top: 116px;
    }
    .rfq-modal__body {
        padding: 16px 16px 96px;
    }
}

/* ===== Login modal inside product detail page ===== */
.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    z-index: 10000;
    padding: 24px 16px;
    overflow: auto;
}
.login-modal__dialog {
    width: 100%;
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    position: relative;
    overflow: hidden;
}
.login-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 0;
    background: rgba(0,0,0,.06);
    color: #111;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.login-modal__close:hover {
    background: rgba(0,0,0,.10);
}
.login-modal__content {
    padding: 20px 18px 18px;
}
.login-modal__head {
    padding-right: 42px;
    margin-bottom: 14px;
}
.login-modal__title {
    font-size: 20px;
    font-weight: 900;
    color: #111;
    line-height: 1.25;
    margin-bottom: 4px;
}
.login-modal__subtitle {
    font-size: 13px;
    color: #666;
    line-height: 1.45;
}
.login-modal__form .form-control {
    border-radius: 12px;
}
.login-modal__btn-primary {
    border: 0;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff0800 0%, #ff0800 100%);
    box-shadow: 0 12px 26px rgba(255,8,0,.22);
    color: #fff;
}
.login-modal__btn-primary:hover {
    filter: brightness(.98);
    color: #fff;
}
.login-modal__btn-google {
    border-radius: 999px;
    background: #e24a33;
    border: 0;
    font-weight: 800;
    color: #fff;
}
.login-modal__btn-google:hover {
    filter: brightness(.98);
    color: #fff;
}
.login-modal__divider {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #777;
    font-size: 13px;
    margin: 14px 0 10px;
}
.login-modal__divider::before,
.login-modal__divider::after {
    content: "";
    height: 1px;
    background: rgba(0,0,0,.10);
    flex: 1 1 auto;
}
.login-modal__btn-register {
    border-radius: 999px;
    font-weight: 900;
    background: #111;
    border: 0;
    color: #fff;
}
.login-modal__btn-register:hover {
    filter: brightness(1.05);
    color: #fff;
}

@media (max-width: 576px) {
    .login-modal__dialog {
        margin: 18px auto;
    }
    .login-modal__content {
        padding: 18px 14px 14px;
    }
}

/* ===== Report modal (simpleModal) inside product detail page ===== */
.report-modal {
    background: rgba(15, 23, 42, .55) !important;
    position: fixed;
    inset: 0;
    /* Trên header (.header-v2 z-index 9999) và mega panel (z-index 99999999) */
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
    /* Bootstrap .modal dùng pointer-events:none → click xám đi xuyên qua, không bắt được để đóng */
    pointer-events: auto !important;
}
.report-modal__dialog {
    max-width: 520px;
    width: calc(100vw - 32px);
    margin: 0 auto;
    /* Không dùng opacity:0 / translateY(-50%) mặc định: menu ngữ cảnh gọi openReportModal()
       chỉ set display:block — dialog sẽ vô hình. Bootstrap modal-dialog-centered đã căn giữa. */
    opacity: 1;
    transform: none;
    position: relative;
    z-index: 1;
}
.report-modal__content {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    background: #fff;
}
.report-modal__header {
    background: linear-gradient(90deg, #ff0800 0%, #ff0800 100%);
    color: #fff;
    border-bottom: 0;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.report-modal__title {
    margin: 0;
    font-weight: 900;
    letter-spacing: -.2px;
}
.report-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 0;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.report-modal__close:hover {
    background: rgba(255,255,255,.28);
}
.report-modal__body {
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(250,250,250,.6) 100%);
}
.report-modal__label {
    font-size: 13px;
    font-weight: 900;
    color: #222;
    margin-bottom: 6px;
    display: block;
}
.report-modal__control {
    border-radius: 12px;
    box-shadow: none;
}
.report-modal__control:focus {
    border-color: rgba(255,8,0,.35);
    box-shadow: 0 0 0 .2rem rgba(255,8,0,.10);
}
.report-modal__textarea {
    resize: none;
}
.report-modal__hint {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}
.report-modal__footer {
    border-top: 1px solid rgba(0,0,0,.06);
    padding: 14px 18px 18px;
    display: flex;
    gap: 10px;
}
.report-modal__btn {
    border-radius: 999px;
    font-weight: 900;
    padding: 10px 16px;
    min-width: 120px;
}
.report-modal__btn-danger {
    border: 0;
    background: linear-gradient(90deg, #ff0800 0%, #ff0800 100%);
    box-shadow: 0 12px 26px rgba(255,8,0,.22);
}
.report-modal__btn-danger:hover {
    filter: brightness(.98);
}


@keyframes slide-in-right {
    0% {
        right: -100%
    }
    to {
        right: 0
    }
}


.product-grid .popular-products {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(6, 1fr);
}


.product-item .thumb-img a{
    display: block;
    line-height: 0;
    overflow: hidden;
    position: relative;
}
.product-item .thumb-img a::before{
    background: rgba(0, 0, 0, 0.04);
    border-radius: 16px;
    content: "";
    inset: 0;
    position: absolute;
}
.product-item .thumb-img a>img{
    border-radius: 16px;
    }
.btn-outline-dark:hover{
    background-color: #fff;
    color:#000;
    }
 @media(max-width:768px) {
        .product-company{
            display: none;
        }
        .detail-product .detail-product-image, .detail-product-image .image-slider-item{
        height:auto
        }
        .detail-product-image .image-slider{
        width:100%;
        } 
        .thumb-slider {
        display: none;
        }
      
        .product-grid .popular-products {
        gap: 16px;
        grid-template-columns: repeat(2, 1fr);
        }
        .product-price{
            border: 0;
            padding-bottom: 10px;
        }
        .product-price .price-list{
            scrollbar-width: none;
            -ms-overflow-style: none;
            overflow-x: auto;
            overflow-y: hidden;
            flex-wrap: nowrap;
            display: flex;
            gap: 16px;
        }
        .product-price .price-list .price-item{
            margin-right: 8px;
        }
        .product-price .price-list .price-item .price {
            color: #222;
            font-size: 18px;
            font-weight: 700;
            text-wrap: nowrap;
        }
        .product-detail__title h1{
            font-weight: normal;
        }
        .product-button>.button-item{
            height: 40px;
        }
        .modal-dialog__detail-seller{
            width: 100%;
        }
}