﻿/* ===============================
   Product Detail Page
================================ */
.product-detail-page {
    color: #ffffff;
}

.product-detail-layout {
    display: flex;
    align-items: flex-start;
    gap: 42px;
}

.product-detail-main {
    flex: 1;
    min-width: 0;
}

.product-detail-side {
    width: 360px;
    flex: 0 0 360px;
}

.product-detail-card,
.product-detail-section,
.product-side-card {
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

.product-detail-card {
    padding: 36px 38px;
    margin-bottom: 34px;
}

.product-detail-title {
    margin-bottom: 30px;
}

    .product-detail-title span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        color: #00CFA9;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: .8px;
    }

    .product-detail-title h1 {
        margin: 0;
        color: #ffffff;
        font-size: 2rem;
        line-height: 1.35;
        font-weight: 700;
    }

.product-detail-top {
    display: flex;
    align-items: flex-start;
    gap: 38px;
}

.product-detail-img {
    width: 270px;
    flex: 0 0 270px;
}

.product-detail-img-box {
    position: relative;
    display: block;
    padding: 32px;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
    overflow: hidden;
    cursor: zoom-in;
}

    .product-detail-img-box img {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
        transition: all .35s ease;
    }

    .product-detail-img-box em {
        position: absolute;
        right: 14px;
        bottom: 14px;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
        color: #ffffff;
        font-size: 16px;
        line-height: 38px;
        text-align: center;
        opacity: 0;
        transform: translateY(8px);
        transition: all .3s ease;
    }

    .product-detail-img-box:hover img {
        transform: scale(1.06);
    }

    .product-detail-img-box:hover em {
        opacity: 1;
        transform: translateY(0);
    }

.product-detail-info {
    flex: 1;
    min-width: 0;
}

.product-info-row {
    display: flex;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

    .product-info-row strong {
        width: 155px;
        flex: 0 0 155px;
        color: rgba(255,255,255,.72);
        font-size: 14px;
        font-weight: 600;
    }

        .product-info-row strong i {
            width: 18px;
            margin-right: 8px;
            color: #00CFA9;
            text-align: center;
        }

    .product-info-row span {
        flex: 1;
        min-width: 0;
        color: rgba(255,255,255,.96);
        font-size: 15px;
        line-height: 1.55;
    }

    .product-info-row a {
        color: #00CFA9;
        text-decoration: none;
    }

        .product-info-row a:hover {
            color: #00A4FD;
        }

.product-pdf-link,
.product-pdf-empty {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00CFA9 !important;
    font-style: normal;
    text-decoration: none;
}

    .product-pdf-link i,
    .product-pdf-empty i {
        font-size: 17px;
    }

.product-detail-buy {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    gap: 14px;
}

.product-buy-qty label,
.product-side-buy label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 14px;
}

.productQtyInput {
    width: 110px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    background: #ffffff;
    color: #111111;
    font-size: 15px;
    outline: none;
}

    .productQtyInput:focus {
        border-color: #00CFA9;
        box-shadow: 0 0 0 3px rgba(0,207,169,.15);
    }

.product-rfq-btn,
.product-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}

    .product-rfq-btn i,
    .product-submit-btn i {
        margin-right: 8px;
    }

    .product-submit-btn i {
        margin-right: 0;
        margin-left: 10px;
    }

    .product-rfq-btn:hover,
    .product-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,164,253,.25);
    }

    .product-rfq-btn.disabled,
    .product-submit-btn.disabled {
        opacity: .65;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.product-rfq-btn-full {
    width: 100%;
    margin-top: 14px;
}

/* ===============================
   Product Sections
================================ */
.product-detail-section {
    padding: 32px 34px;
    margin-bottom: 34px;
}

.product-section-title h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.35;
}

    .product-section-title h2 i {
        color: #00CFA9;
        font-size: 26px;
    }

.product-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

    .product-tabs a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 40px;
        padding: 0 22px;
        border-radius: 24px;
        color: #ffffff;
        text-decoration: none;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.16);
        transition: all .25s ease;
    }

        .product-tabs a i {
            color: #00CFA9;
        }

        .product-tabs a.active,
        .product-tabs a:hover {
            border-color: transparent;
            background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
        }

            .product-tabs a.active i,
            .product-tabs a:hover i {
                color: #ffffff;
            }

.product-tab-pane {
    display: none;
}

    .product-tab-pane.active {
        display: block;
    }

.product-spec-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
}

.product-spec-item {
    display: flex;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

    .product-spec-item strong {
        width: 150px;
        flex: 0 0 150px;
        color: rgba(255,255,255,.68);
    }

    .product-spec-item span {
        flex: 1;
        min-width: 0;
        color: rgba(255,255,255,.95);
    }

    .product-spec-item a {
        color: #00CFA9;
        text-decoration: none;
    }

.product-faq h4 {
    margin: 24px 0 10px 0;
    color: #ffffff;
    font-size: 18px;
}

    .product-faq h4:first-child {
        margin-top: 0;
    }

.product-faq p {
    margin: 0 0 14px 0;
    color: rgba(255,255,255,.9);
    font-size: 15px;
    line-height: 1.7;
}

.product-faq a {
    color: #00CFA9;
}

.product-process-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-related-cat,
.product-popular-links,
.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .product-related-cat a,
    .product-popular-links a,
    .product-tags span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 0 16px;
        border-radius: 22px;
        color: rgba(255,255,255,.92);
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.14);
        text-decoration: none;
        transition: all .25s ease;
    }

        .product-related-cat a:hover,
        .product-popular-links a:hover {
            color: #ffffff;
            border-color: transparent;
            background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
        }

    .product-related-cat em {
        color: #00CFA9;
        font-style: normal;
    }

.product-include-table {
    overflow-x: auto;
}

.product-include-head,
.product-include-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.5fr;
    min-width: 760px;
}

    .product-include-head span {
        padding: 13px 14px;
        color: #ffffff;
        font-weight: 700;
        background: rgba(0,164,253,.22);
    }

    .product-include-row a,
    .product-include-row span {
        padding: 13px 14px;
        color: rgba(255,255,255,.9);
        border-bottom: 1px solid rgba(255,255,255,.12);
        text-decoration: none;
    }

        .product-include-row a:hover {
            color: #00CFA9;
        }

/* ===============================
   Right Side
================================ */
.product-side-card {
    padding: 26px 24px;
    margin-bottom: 24px;
}

    .product-side-card h4 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 12px 0;
        color: #ffffff;
        font-size: 22px;
        line-height: 1.35;
    }

        .product-side-card h4 i {
            color: #00CFA9;
        }

.product-stock-card h2 {
    margin: 0;
    color: #00CFA9;
    font-size: 40px;
    line-height: 1.2;
    font-weight: 700;
}

.product-stock-card p {
    margin: 8px 0 22px 0;
    color: rgba(255,255,255,.85);
    font-size: 14px;
    line-height: 1.65;
}

.product-side-buy {
    display: block;
    margin-top: 0;
}

    .product-side-buy .productQtyInput {
        width: 100%;
    }

.product-side-card > p {
    margin: 0 0 20px 0;
    color: rgba(255,255,255,.86);
    font-size: 14px;
    line-height: 1.65;
}

.product-form-row {
    margin-bottom: 15px;
}

    .product-form-row label {
        display: block;
        margin-bottom: 7px;
        color: #ffffff;
        font-size: 14px;
    }

        .product-form-row label em {
            color: #00CFA9;
            font-style: normal;
        }

    .product-form-row input,
    .product-form-row textarea {
        width: 100%;
        box-sizing: border-box;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 6px;
        background: #ffffff;
        color: #111111;
        font-size: 14px;
        outline: none;
    }

    .product-form-row input {
        height: 42px;
        padding: 0 13px;
    }

    .product-form-row textarea {
        height: 105px;
        padding: 12px 13px;
        resize: vertical;
    }

        .product-form-row input:focus,
        .product-form-row textarea:focus {
            border-color: #00CFA9;
            box-shadow: 0 0 0 3px rgba(0,207,169,.15);
        }

.product-submit-btn {
    width: 100%;
}

.product-contact-card dl {
    margin: 0 0 16px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

    .product-contact-card dl:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.product-contact-card dt {
    margin-bottom: 8px;
    color: rgba(255,255,255,.78);
    font-size: 14px;
}

    .product-contact-card dt i {
        margin-right: 8px;
        color: #00CFA9;
    }

.product-contact-card dd {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
}

    .product-contact-card dd a {
        color: #00CFA9;
        text-decoration: none;
    }

    .product-contact-card dd img {
        max-width: 130px;
        height: auto;
        border-radius: 8px;
    }

.product-feature-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

    .product-feature-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.product-feature-img {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-feature-img img {
        max-width: 64px;
        max-height: 64px;
    }

.product-feature-item h5 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.35;
}

.product-feature-item p {
    margin: 0 0 8px 0;
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

.product-feature-item a {
    color: #00CFA9;
    text-decoration: none;
}

/* ===============================
   Popup
================================ */
.product-pop-mask,
.product-img-mask {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9998;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,.48);
}

.product-pop,
.product-img-lightbox {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-pop-box {
    position: relative;
    width: 390px;
    max-width: calc(100% - 40px);
    padding: 38px 30px 30px 30px;
    box-sizing: border-box;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 25px 60px rgba(0,0,0,.25);
}

.product-pop-close,
.product-img-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f2f5f8;
    color: #666;
    cursor: pointer;
    z-index: 3;
}

.product-pop-loading {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px auto;
    display: none;
    border: 4px solid #e8f6ff;
    border-top-color: #00A4FD;
    border-right-color: #00CFA9;
    border-radius: 50%;
    animation: productPopLoading .9s linear infinite;
}

@keyframes productPopLoading {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.product-pop-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 20px auto;
    display: none;
    border-radius: 50%;
    line-height: 52px;
    font-size: 25px;
    color: #ffffff;
}

    .product-pop-icon.success {
        display: block;
        background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    }

        .product-pop-icon.success::before {
            content: "✓";
        }

    .product-pop-icon.error {
        display: block;
        background: linear-gradient(90deg, #ff5f6d 0%, #ff9966 100%);
    }

        .product-pop-icon.error::before {
            content: "!";
            font-weight: 700;
        }

.product-pop-title {
    margin-bottom: 10px;
    color: #111111;
    font-size: 21px;
    font-weight: 700;
}

.product-pop-text {
    margin-bottom: 24px;
    color: #555555;
    font-size: 15px;
    line-height: 1.65;
}

.product-pop-actions {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.product-pop-btn,
.product-pop-ok {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 125px;
    height: 42px;
    padding: 0 22px;
    border-radius: 24px;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
}

.product-pop-btn-main,
.product-pop-ok {
    border: 0;
    color: #ffffff !important;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
}

.product-pop-btn-line {
    color: #333333 !important;
    background: #ffffff;
    border: 1px solid #d9e2ea;
}

.product-pop-ok {
    display: none;
    margin: 0 auto;
}

    .product-pop-btn:hover,
    .product-pop-ok:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(0,164,253,.25);
    }

/* Image Lightbox */
.product-img-lightbox-box {
    position: relative;
    max-width: 86%;
    max-height: 86%;
    padding: 30px;
    border-radius: 12px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
}

    .product-img-lightbox-box img {
        display: block;
        max-width: 100%;
        max-height: 70vh;
        margin: 0 auto;
        object-fit: contain;
    }

    .product-img-lightbox-box p {
        margin: 16px 0 0 0;
        color: #111111;
        font-size: 16px;
        font-weight: 600;
    }

/* ===============================
   Mobile
================================ */
@media screen and (max-width: 768px) {
    .product-detail-page {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .product-detail-layout {
        display: block;
    }

    .product-detail-side {
        width: 100%;
    }

    .product-detail-card,
    .product-detail-section,
    .product-side-card {
        padding: 24px 18px;
    }

    .product-detail-title h1,
    .product-section-title h2 {
        font-size: 1.7rem;
        line-height: 1.4;
    }

    .product-detail-top {
        display: block;
    }

    .product-detail-img {
        width: 100%;
        margin-bottom: 24px;
    }

    .product-detail-img-box {
        padding: 24px;
    }

    .product-info-row {
        display: block;
    }

        .product-info-row strong {
            display: block;
            width: auto;
            margin-bottom: 6px;
        }

    .product-detail-buy {
        display: block;
    }

    .productQtyInput {
        width: 100%;
        margin-bottom: 12px;
    }

    .product-rfq-btn {
        width: 100%;
    }

    .product-tabs {
        gap: 10px;
    }

        .product-tabs a {
            min-height: 38px;
            padding: 0 16px;
            font-size: 14px;
        }

    .product-spec-list {
        grid-template-columns: 1fr;
    }

    .product-spec-item {
        display: block;
    }

        .product-spec-item strong {
            display: block;
            width: auto;
            margin-bottom: 6px;
        }

    .product-pop-actions {
        display: none;
        flex-direction: column;
    }

    .product-pop-btn {
        width: 100%;
    }

    .product-img-lightbox-box {
        max-width: calc(100% - 30px);
        padding: 22px;
    }

        .product-img-lightbox-box img {
            max-height: 65vh;
        }
}
