/* ===== Trang chi tiet san pham (theo mau "trang chi tiet san pham.jpg") =====
   Nap sau catalog-detail.css nen ghi de cac luat .product-* cu. Icon: Lucide SVG
   trong assets/icons/product/. */
.product-page {
    background: linear-gradient(180deg, #eaf5fd 0, #f5fafe 320px, #fff 620px)
}

.product-icon {
    width: 20px;
    height: 20px;
    flex: none;
    vertical-align: middle
}

.product-icon--sm {
    width: 15px;
    height: 15px
}

/* Breadcrumb */
.product-page .product-breadcrumb {
    padding: 18px 0 12px;
    color: #4f6579;
    font-size: 12px
}

.product-breadcrumb a {
    color: inherit
}

.product-breadcrumb i {
    margin: 0 8px;
    color: #7e92a3;
    font-style: normal
}

.product-breadcrumb span {
    color: #063054;
    font-weight: 600
}

/* Khoi dau trang: gallery + thong tin */
.product-page .product-top {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding: 4px 0 30px
}

.product-gallery__main {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    background: linear-gradient(180deg, #f4f6f8, #e9edf1);
    overflow: hidden
}

.product-gallery__link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in
}

.product-gallery__main img#productMainImg {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
    object-fit: contain
}

.product-zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(6, 48, 84, .18);
    cursor: pointer
}

.product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px
}

.product-thumb {
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    background: linear-gradient(180deg, #f4f6f8, #e9edf1);
    overflow: hidden;
    cursor: pointer
}

.product-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.product-thumb.is-active {
    border-color: #ff7827
}

.product-brand {
    display: inline-block;
    margin-bottom: 8px
}

.product-brand img {
    display: block;
    height: 38px;
    width: auto
}

.product-brand__name {
    color: #0a5ca8;
    font: 700 34px/1 Georgia, 'Times New Roman', serif;
    letter-spacing: -.5px
}

.product-page .product-summary h1 {
    margin: 8px 0 14px;
    color: #063054;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    margin: 0 0 14px;
    color: #4f6579;
    font-size: 15px
}

.product-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px
}

.product-meta span+span {
    margin-left: 28px;
    padding-left: 28px;
    border-left: 1px solid #cdd9e2
}

.product-meta a {
    color: #ff7827;
    font-weight: 600;
    text-decoration: underline
}

.product-meta .product-icon {
    margin-left: 4px
}

.product-lead {
    max-width: 92%;
    margin: 0 0 22px;
    color: #4f6579;
    font-size: 17px;
    line-height: 1.55
}

.product-actions {
    display: grid;
    gap: 12px;
    justify-items: start
}

.product-actions__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%
}

.pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 24px;
    border: 2px solid transparent;
    border-radius: 3px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer
}

.pbtn--orange {
    background: #f47920;
    color: #fff
}

.pbtn--wide {
    width: 58%
}

.pbtn--outline {
    border-color: #063054;
    background: #fff;
    color: #063054
}

.pbtn--navy {
    min-width: 48%;
    background: #0b2f5b;
    color: #fff
}

.pbtn--navy span {
    margin-right: auto;
    margin-left: 4px
}

.pbtn--ghost {
    border-color: #fff;
    background: transparent;
    color: #fff
}

.pbtn--block {
    width: 100%
}

/* Noi dung + sidebar */
.product-page .product-body {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, .9fr);
    gap: 26px;
    align-items: start;
    padding: 6px 0 44px;
    border-top: 0
}

.product-toc {
    margin-bottom: 20px;
    border-radius: 4px;
    background: #eaf5fd
}

.product-page .product-body .product-toc__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 20px;
    border: 0;
    background: transparent;
    color: #063054;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    cursor: pointer
}

.product-toc__chev {
    margin-left: auto;
    transition: transform .2s
}

.product-toc.is-open .product-toc__chev {
    transform: rotate(180deg)
}

.product-toc ol {
    margin: 0;
    padding: 2px 20px 16px 44px;
    color: #3f566b;
    font-size: 15px;
    line-height: 1.9
}

.product-toc ol a {
    color: inherit
}

.product-page .product-content h2 {
    margin: 26px 0 10px;
    padding: 0;
    border: 0;
    color: #063054;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25
}

.product-content>h2:first-child {
    margin-top: 6px
}

.product-content h3,
.product-content h4 {
    margin: 20px 0 6px;
    color: #063054;
    line-height: 1.25
}

.product-content h3 {
    font-size: 20px
}

.product-content h4 {
    font-size: 17px
}

.product-page .product-content,
.product-page .product-content p,
.product-page .product-content li {
    color: #3f566b;
    font-size: 16px;
    line-height: 1.65
}

.product-content p {
    margin: 0 0 14px
}

.product-content ul,
.product-content ol {
    margin: 0 0 16px;
    padding-left: 22px
}

.product-content li {
    margin: 3px 0
}

.product-content li::marker {
    color: #ff7827
}

.product-content a {
    color: #ff7827;
    text-decoration: underline
}

.product-content img {
    max-width: 100%;
    height: auto
}

.product-content table {
    width: 100%;
    margin: 6px 0 20px;
    border: 1px solid #dbe7ee;
    border-collapse: collapse;
    font-size: 15px
}

.product-content td,
.product-content th {
    padding: 11px 14px;
    border: 1px solid #e3edf3;
    color: #3f566b;
    text-align: left;
    vertical-align: top
}

.product-content td:first-child,
.product-content th {
    width: 36%;
    background: #eef7fc;
    color: #063054;
    font-weight: 700
}

.product-more {
    margin-top: 14px
}

.product-page .product-body .product-more button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 11px 22px;
    border: 2px solid #063054;
    border-radius: 3px;
    background: #fff;
    color: #063054;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer
}

.product-page .product-body aside.product-side {
    height: auto;
    padding: 0;
    background: none;
    color: inherit
}

.product-consult {
    padding: 24px 22px;
    border-radius: 4px;
    background: #0b2f5b;
    color: #fff
}

.product-page .product-body .product-consult h2 {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2
}

.product-page .product-body .product-consult>p {
    margin: 0 0 18px;
    color: #e1ecf6;
    font-size: 15px;
    line-height: 1.5
}

.product-consult form {
    display: grid;
    gap: 12px
}

.product-consult .field {
    position: relative;
    display: block
}

.product-page .product-body .product-consult input,
.product-page .product-body .product-consult textarea {
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: 3px;
    background: #fff;
    color: #063054;
    font: inherit;
    font-size: 15px
}

.product-page .product-body .product-consult textarea {
    height: 92px;
    resize: vertical
}

.product-consult .field span {
    position: absolute;
    top: 12px;
    left: 14px;
    color: #7f93a4;
    font-size: 14px;
    pointer-events: none
}

.product-consult .field i {
    color: #e53935;
    font-style: normal
}

.product-consult .field input:not(:placeholder-shown)+span,
.product-consult .field textarea:not(:placeholder-shown)+span,
.product-consult .field input:focus+span,
.product-consult .field textarea:focus+span {
    display: none
}

.product-consult .captcha-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 10px;
    align-items: center
}

.product-page .product-body .product-consult .pbtn {
    width: 100%;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 700
}

.product-page .product-body .product-consult .pbtn--orange {
    background: #f47920;
    color: #fff
}

.product-tech {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding: 22px;
    border-radius: 4px;
    background: #eaf5fd
}

.product-tech__icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #d9eaf8
}

.product-tech__icon .product-icon {
    width: 28px;
    height: 28px
}

.product-page .product-body .product-tech h2 {
    margin: 2px 0 6px;
    padding: 0;
    border: 0;
    color: #063054;
    font-size: 20px;
    font-weight: 800
}

.product-page .product-body .product-tech p {
    margin: 0 0 12px;
    color: #4f6579;
    font-size: 14px;
    line-height: 1.5
}

.product-tech__tel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #063054;
    text-decoration: none
}

.product-tech__tel b {
    font-size: 26px;
    font-weight: 800
}

/* San pham cung nhom (carousel) */
.product-related {
    padding: 34px 0 42px;
    background: #eaf5fd
}

.product-related__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px
}

.product-page .product-related h2 {
    margin: 0;
    padding: 0;
    border: 0;
    color: #063054;
    font-size: 30px;
    font-weight: 800
}

.product-related__tools {
    display: flex;
    align-items: center;
    gap: 12px
}

.product-related__all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
    color: #ff7827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline
}

.product-related__tools button {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #cfdde8;
    border-radius: 50%;
    background: #fff;
    cursor: pointer
}

.product-related__tools button:disabled {
    opacity: .45;
    cursor: default
}

.product-related__track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none
}

.product-related__track::-webkit-scrollbar {
    display: none
}

.rel-card {
    flex: 0 0 calc((100% - 48px) / 4);
    padding: 14px 16px 18px;
    border-radius: 4px;
    background: #fff;
    scroll-snap-align: start
}

.rel-card__img {
    display: grid;
    place-items: center;
    height: 140px
}

.rel-card__img img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain
}

.rel-card__brand {
    display: block;
    margin-top: 8px;
    color: #0a5ca8;
    font: 700 15px/1.2 Georgia, 'Times New Roman', serif
}

.rel-card h3 {
    margin: 4px 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25
}

.rel-card h3 a {
    color: #063054
}

.rel-card p {
    min-height: 18px;
    margin: 0 0 12px;
    color: #52687b;
    font-size: 13px
}

.rel-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ff7827;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline
}

/* Popup xem anh */
.pj-lb-open {
    overflow: hidden
}

.pj-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 20, 35, .92)
}

.pj-lightbox[hidden] {
    display: none
}

.pj-lightbox figure {
    display: flex;
    max-width: min(92vw, 1100px);
    margin: 0
}

.pj-lb-img {
    display: block;
    min-width: min(70vw, 640px);
    max-width: 100%;
    max-height: 84vh;
    border-radius: 3px;
    background: #fff;
    object-fit: contain
}

.pj-lightbox button {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #063054;
    font-size: 26px;
    line-height: 1;
    cursor: pointer
}

.pj-lightbox button img {
    width: 22px;
    height: 22px
}

.pj-lb-close {
    top: 18px;
    right: 18px
}

.pj-lb-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%)
}

.pj-lb-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%)
}

.pj-lb-count {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    color: #cfe0ee;
    font-size: 13px;
    text-align: center
}

@media(max-width:991px) {

    .product-page .product-top,
    .product-page .product-body {
        grid-template-columns: 1fr
    }

    .rel-card {
        flex-basis: calc((100% - 16px) / 2)
    }

    .pbtn--wide {
        width: 100%
    }
}

@media(max-width:575px) {
    .product-actions__row {
        grid-template-columns: 1fr
    }

    .pbtn--navy {
        width: 100%
    }

    .rel-card {
        flex-basis: 82%
    }

    .product-page .product-summary h1 {
        font-size: 26px
    }

    .product-related__head {
        flex-wrap: wrap
    }
}

/* Mau chu cua nut: thang luat mau lien ket (a) cua theme */
.product-page a.pbtn,
.product-page button.pbtn {
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none
}

.product-page a.pbtn--orange,
.product-page button.pbtn--orange {
    background: #f47920;
    color: #fff
}

.product-page a.pbtn--outline {
    border-color: #063054;
    background: #fff;
    color: #063054
}

.product-page a.pbtn--navy {
    background: #0b2f5b;
    color: #fff
}

.product-page a.pbtn--ghost {
    border-color: #fff;
    background: transparent;
    color: #fff
}

@media(max-width:575px) {
    .product-meta span+span {
        margin-left: 0;
        padding-left: 0;
        border-left: 0
    }

    .product-meta {
        flex-direction: column;
        align-items: flex-start
    }
}
