﻿/* Single product overrides cloned from the local NTPC product detail sample. */

.product-detail-page {
    padding-bottom: 22px;
}

.product-detail-page .pd-info-container {
    align-items: flex-start;
    background: #fff;
    border-radius: 0;
    margin-bottom: 20px;
    padding: 10px 10px 20px;
}

.product-detail-page .pd-name {
    border-bottom: 1px solid #e5eaf1;
    color: #212a36;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    margin: 0 0 10px;
    padding-bottom: 10px;
}

.product-detail-page .pd-left-group,
.product-detail-page .pd-middle-group,
.product-detail-page .pd-right-group {
    flex: 0 0 auto;
}

.product-detail-page .pd-left-group {
    margin-right: 24px;
    width: 374px;
}

.product-detail-page .pd-middle-group {
    margin-right: 24px;
    padding: 0 10px;
    width: 486px;
}

.product-detail-page .pd-right-group {
    width: 272px;
}

.product-detail-page .pd-image-group .item {
    background: #fff;
    display: block;
    margin-bottom: 10px;
    padding-bottom: 100%;
    position: relative;
}

.product-detail-page .pd-image-group .item img {
    border-radius: 0;
    bottom: 0;
    display: block;
    left: 0;
    margin: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

.product-detail-page .pd-image-group .owl-nav .arrow {
    background-size: 5px 9px;
    box-shadow: unset !important;
    height: 32px;
    width: 32px;
}

.product-detail-page .pd-image-group .owl-nav .arrow:hover {
    box-shadow: 0 0 6px 0 rgb(0 0 0 / 20%) !important;
}

.product-detail-page .pd-image-group .owl-nav .owl-prev {
    left: 10px;
}

.product-detail-page .pd-image-group .owl-nav .owl-next {
    right: 10px;
}

.product-detail-page .pd-gallery-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.product-detail-page .pd-gallery-group a {
    margin: 0 4px 4px 0;
    width: calc(100% / 5 - 4px);
}

.product-detail-page .pd-gallery-group a:nth-child(5n) {
    margin-right: 0;
}

.product-detail-page .pd-gallery-group a.active {
    box-shadow: 0 0 0 1px #29324e;
}

.product-detail-page .pd-gallery-group a img {
    border: 0;
    border-radius: 0;
    display: block;
    height: auto;
    max-height: none;
    max-width: 100%;
    width: 100%;
}

.product-detail-page .pd-info-rating {
    line-height: 14px;
    margin-bottom: 12px;
    min-height: 24px;
}

.product-detail-page .pd-info-rating p {
    margin: 0 8px 10px 0;
    padding: 0 8px 0 0;
    position: relative;
}

.product-detail-page .pd-info-rating p::after {
    background: #a3a3a3;
    content: "";
    height: 14px;
    position: absolute;
    right: 0;
    width: 1px;
}

.product-detail-page .pd-info-rating p:last-child {
    margin: 0;
    padding: 0;
}

.product-detail-page .pd-info-rating p:last-child::after {
    content: none;
}

.product-detail-page .pd-info-rating p a,
.product-detail-page .pd-info-rating p span {
    margin-left: 5px;
}

.product-detail-page .pd-summary-group {
    color: #212a36;
    margin: 12px 0;
}

.product-detail-page .pd-summary-group b {
    margin-bottom: 12px;
}

.product-detail-page .pd-summary-list {
    max-height: 278px;
    overflow: hidden;
}

.product-detail-page .pd-summary-list .item p {
    margin: 0;
}

.product-detail-page .pd-price-group {
    border: 1px dashed #ff8125;
    border-radius: 10px;
    margin: 12px 0;
    padding: 10px;
    width: 100%;
}

.product-detail-page .pd-price-group span {
    display: inline-block;
    margin-right: 8px;
}

.product-detail-page .pd-price-group .pd-price,
.product-detail-page .pd-price-group .pd-price ins,
.product-detail-page .pd-price-group .pd-price > .woocommerce-Price-amount {
    color: #004aad;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    text-decoration: none;
}

.product-detail-page .pd-price-group .pd-price del {
    color: #5e5858;
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    margin-left: 8px;
    opacity: 1;
}

.product-detail-page .pd-price-group .pd-price-off {
    color: #fa5252;
    font-size: 14px;
    line-height: 22px;
}

.product-detail-page .pd-price-group .pd-warranty {
    background: #ff2525;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    line-height: 18px;
    margin: 8px 0 0;
    padding: 0 5px;
    width: fit-content;
}

.product-detail-page .pd-offer-group {
    border-radius: 10px;
    box-shadow: 0 0 0 1px #fee8cb;
    margin: 12px 0;
    overflow: hidden;
    width: 100%;
}

.product-detail-page .pd-offer-group .title {
    align-items: center;
    background: linear-gradient(91.56deg, rgb(245 33 148 / 10%) 2.74%, rgb(250 159 44 / 10%) 96.84%);
    color: #fa5252;
    display: flex;
    font-size: 18px;
    font-weight: 600;
    line-height: 40px;
    margin: 0;
    padding: 0 10px;
}

.product-detail-page .pd-offer-group .icon-gift {
    background-position: -113px -97px;
    height: 20px;
    margin-right: 8px;
    width: 20px;
}

.product-detail-page .pd-offer-list {
    padding: 10px;
}

.product-detail-page .pd-offer-list .text-14 {
    display: block;
}

/* Combo configuration: collapsed by default (<details>), compact rows. */
.pd-combo {
    margin: 4px 0 14px;
    border: 1px solid #dbe5f4;
    border-radius: 10px;
    background: #fff;
    text-align: left;
    overflow: hidden;
}

.pd-combo__head {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f5f8fc;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pd-combo__head::-webkit-details-marker {
    display: none;
}

.pd-combo__head:hover {
    background: #eef4fd;
}

.pd-combo__head:focus-visible {
    outline: 2px solid #075bd8;
    outline-offset: -2px;
}

.pd-combo__badge {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #075bd8;
    color: #fff;
    font-size: 15px;
}

.pd-combo__heading {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.pd-combo__heading strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #101828;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.pd-combo__heading em {
    padding: 1px 8px;
    border-radius: 999px;
    background: #e3edfd;
    color: #075bd8;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.pd-combo__heading small {
    overflow: hidden;
    color: #667085;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-combo__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #075bd8;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.pd-combo__toggle-text::before {
    content: attr(data-closed);
}

.pd-combo[open] .pd-combo__toggle-text::before {
    content: attr(data-open);
}

.pd-combo__toggle i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.pd-combo[open] .pd-combo__toggle i {
    transform: rotate(180deg);
}

.pd-combo__list {
    margin: 0;
    padding: 4px 14px;
    list-style: none;
    border-top: 1px solid #e6eaf0;
}

.pd-combo__item {
    display: grid;
    grid-template-columns: 28px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-top: 1px dashed #e6eaf0;
    font-size: 13px;
    line-height: 1.4;
}

.pd-combo__item:first-child {
    border-top: 0;
}

.pd-combo__icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f0f5fd;
    color: #075bd8;
    font-size: 13px;
}

.pd-combo__type {
    color: #344054;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pd-combo__type b {
    color: #075bd8;
}

.pd-combo__name {
    display: -webkit-box;
    overflow: hidden;
    color: #101828;
    font-weight: 500;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.pd-combo__name:hover {
    color: #075bd8;
}

.pd-combo__price,
body.single-product .pd-combo__price .woocommerce-Price-amount,
body.single-product .pd-combo__price .woocommerce-Price-currencySymbol {
    color: #075bd8;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
}

.pd-combo__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    padding: 10px 14px;
    border-top: 1px solid #e6eaf0;
    background: #fafcff;
    color: #667085;
    font-size: 13px;
}

.pd-combo__foot b,
body.single-product .pd-combo__foot b .woocommerce-Price-amount,
body.single-product .pd-combo__foot b .woocommerce-Price-currencySymbol {
    color: #101828;
    font-weight: 800;
}

.pd-combo__saving,
body.single-product .pd-combo__saving .woocommerce-Price-amount,
body.single-product .pd-combo__saving .woocommerce-Price-currencySymbol {
    color: #ef4444;
    font-weight: 800;
}

.product-detail-page .pd-btn-group {
    justify-content: space-between;
    width: 100%;
}

.product-detail-page .pd-btn-group a {
    background: #fa5252;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 12px;
    min-height: 74px;
    padding: 16px 7px;
    text-align: center;
    text-decoration: none;
    width: calc(100% / 2 - 6px);
}

.product-detail-page .pd-btn-group a:first-child {
    width: 100%;
}

.product-detail-page .pd-btn-group a:nth-child(2) {
    background: #ff8125;
    margin-right: 0;
}

.product-detail-page .pd-btn-group a:nth-child(3) {
    background: #004aad;
}

.product-detail-page .pd-btn-group a * {
    display: block;
}

.product-detail-page .pd-btn-group a b {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 4px;
}

.product-detail-page .box-static-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #004aad;
    font-size: 12px;
    line-height: 14px;
    margin-bottom: 10px;
    overflow: hidden;
}

.product-detail-page .box-static-item .box-title {
    background: #004aad;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 38px;
    margin: 0;
    padding: 0 10px;
}

.product-detail-page .static-text {
    padding: 16px;
}

.product-detail-page .box-address-list b {
    display: block;
    margin-bottom: 8px;
}

.product-detail-page .box-address-list a {
    color: #fa5252;
    display: block;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.product-detail-page .box-address-list a::before {
    background: url("../images/sprite.png") no-repeat;
    background-position: -248px -57px;
    background-size: 260px 315px;
    content: "";
    height: 16px;
    left: 0;
    position: absolute;
    top: 1px;
    width: 16px;
}

.product-detail-page .static-hotline-list p,
.product-detail-page .static-hotline-list .text {
    margin: 0;
}

.product-detail-page .static-hotline-list .item {
    align-items: flex-start;
    display: flex;
    line-height: 16px;
    margin-bottom: 17px;
}

.product-detail-page .static-hotline-list .item:last-child {
    margin: 0;
}

.product-detail-page .static-hotline-list .icon-phone {
    background-position: -149px -104px;
    background-size: 180px 216px;
    height: 16px;
    margin-right: 8px;
    width: 16px;
}

.product-detail-page .product-detail-row {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px 20px;
}

.product-detail-page .product-detail-row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

@media (min-width: 769px) {
    .product-detail-page .product-detail-row > .col-12.col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
        width: 66.666667%;
    }

    .product-detail-page .product-detail-row > .col-12.col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
        width: 33.333333%;
    }
}

.product-detail-page .js-static-container .js-static-content {
    max-height: 760px;
    overflow: hidden;
    position: relative;
}

.product-detail-page .js-static-container.is-expanded .js-static-content {
    max-height: none;
}

.product-detail-page .btn-html-content {
    border-top: 1px solid #edf1f7;
    padding-top: 12px;
    text-align: center;
}

.product-detail-page .content-button {
    color: #004aad;
    font-weight: 700;
    text-decoration: none;
}

.product-detail-page .js-showless-button,
.product-detail-page .js-static-container.is-expanded .js-showmore-button {
    display: none;
}

.product-detail-page .js-static-container.is-expanded .js-showless-button {
    display: inline-block;
}

.product-detail-page .pd-spec-holder {
    color: #212a36;
    line-height: 18px;
    margin: 20px 0;
}

.product-detail-page .pd-spec-holder .tlqcontent {
    padding: 0;
}

.product-detail-page .pd-spec-holder .tlqcontent table {
    border-collapse: inherit;
    width: 100%;
}

.product-detail-page .pd-spec-holder .tlqcontent tr {
    background: #fff;
}

.product-detail-page .pd-spec-holder .tlqcontent tr:nth-child(odd) {
    background: #f5f8fd;
}

.product-detail-page .pd-spec-holder .tlqcontent td {
    border: 0;
    font-size: 13px;
    line-height: 18px;
    max-width: 300px;
    padding: 16px 8px;
    text-align: left;
    vertical-align: top;
}

.product-detail-page .pd-spec-holder .tlqcontent td:first-child {
    color: #212a36;
    font-weight: 700;
    width: 38%;
}

.product-detail-page .mobile-tabs {
    display: none;
}

@media (min-width: 1201px) {
    .product-detail-page .pd-left-group {
        margin-right: 24px;
        width: 374px;
    }

    .product-detail-page .pd-middle-group {
        margin-right: 24px;
        width: 486px;
    }

    .product-detail-page .pd-right-group {
        width: 272px;
    }
}

@media (min-width: 1624px) {
    .product-detail-page .pd-left-group {
        margin-right: 30px;
        width: 500px;
    }

    .product-detail-page .pd-middle-group {
        margin-right: 30px;
        width: 600px;
    }

    .product-detail-page .pd-right-group {
        width: 420px;
    }

    .product-detail-page .product-detail-row > .col-12.col-md-8 {
        flex-basis: 66.666667%;
        max-width: 66.666667%;
        width: 66.666667%;
    }

    .product-detail-page .product-detail-row > .col-12.col-md-4 {
        flex-basis: 33.333333%;
        max-width: 33.333333%;
        width: 33.333333%;
    }
}

@media (max-width: 1200px) {
    .product-detail-page .pd-left-group,
    .product-detail-page .pd-middle-group,
    .product-detail-page .pd-right-group {
        flex: 1 1 100%;
        margin-right: 0;
        width: 100%;
    }

    .product-detail-page .pd-middle-group,
    .product-detail-page .pd-right-group {
        margin-top: 16px;
    }
}

@media (min-width: 769px) {
    .product-detail-page .product-detail-row {
        column-gap: 24px;
        display: grid;
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        margin: 0 0 20px;
    }

    .product-detail-page .product-detail-row > .col-12.col-md-8,
    .product-detail-page .product-detail-row > .col-12.col-md-4 {
        box-sizing: border-box;
        flex: none;
        max-width: none;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
        width: auto;
    }
}

@media (max-width: 768px) {
    .product-detail-page .pd-info-container {
        padding: 10px;
    }

    .product-detail-page .desktop-only,
    .product-detail-page .product-detail-row {
        display: none !important;
    }

    .product-detail-page .mobile-tabs {
        background: #fff;
        border-radius: 8px;
        display: block;
        margin-bottom: 20px;
        padding: 10px;
    }

    .product-detail-page .mobile-tab-nav {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-detail-page .mobile-tab-nav button {
        background: #f1f5fb;
        border: 1px solid #d9e1ec;
        border-radius: 6px;
        color: #212a36;
        cursor: pointer;
        font-weight: 700;
        min-height: 38px;
    }

    .product-detail-page .mobile-tab-nav button.active {
        background: #004aad;
        border-color: #004aad;
        color: #fff;
    }

    .product-detail-page .mobile-tab-content {
        padding-top: 12px;
    }

    .pd-combo__item {
        grid-template-columns: 28px minmax(0, 1fr) auto;
        row-gap: 2px;
    }

    .pd-combo__icon {
        grid-row: span 2;
    }

    .pd-combo__name {
        grid-column: 2 / -1;
    }

    .pd-combo__toggle-text {
        display: none;
    }
}
