﻿/* ==============================
   Product Detail Page
   Main Color: #004ac5
   Accent Color: #e27a1f
============================== */

.product-detail-page,
.product-detail-page * {
    box-sizing: border-box;
}

.product-detail-page {
    background: #f5f7fb;
    color: #20232a;
    font-family: Arial, Helvetica, sans-serif;
}

.product-detail-page a {
    transition: all .25s ease;
}

.product-detail-page img {
    max-width: 100%;
}

/* ==============================
   Inner Banner / Breadcrumb
============================== */

.about-inner-banner {
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-inner-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,74,197,.90) 0%, rgba(0,74,197,.64) 42%, rgba(255,255,255,.15) 100%);
    z-index: 1;
}

.about-inner-banner .container {
    position: relative;
    z-index: 2;
}

.about-inner-banner-text {
    max-width: 720px;
    padding-top: 35px;
}

.about-inner-banner-text b {
    display: block;
    color: #fff;
    font-size: 48px;
    line-height: 58px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.about-inner-banner-text p {
    max-width: 650px;
    margin: 18px 0 0;
    color: rgba(255,255,255,.92);
    font-size: 17px;
    line-height: 30px;
}

.about-breadcrumb {
    background: #fff;
    border-bottom: 1px solid #e8edf7;
}

.about-breadcrumb .container {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7a8497;
    font-size: 14px;
}

.about-breadcrumb a {
    color: #667085;
    text-decoration: none;
}

.about-breadcrumb a:hover {
    color: #e27a1f;
}

.about-breadcrumb span {
    color: #a5adbc;
}

/* ==============================
   Main Layout
============================== */

.pd-main {
    padding: 54px 0 86px;
}

.pd-hero {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 34px;
}

.pd-gallery,
.pd-info,
.pd-contact-card,
.pd-section,
.pd-inquiry-card {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(0, 74, 197, .08);
}

/* ==============================
   Product Gallery
============================== */

.pd-gallery {
    padding: 24px;
}

.pd-image-box {
    position: relative;
    width: 100%;
    height: 330px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfcff 0%, #f3f6fc 100%);
    border: 1px solid #edf1f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pd-image-box img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    transition: all .35s ease;
    cursor: pointer;
}

.pd-image-box:hover img {
    transform: scale(1.05);
}

.pd-zoom-btn {
    position: absolute;
    left: 18px;
    bottom: 18px;
    height: 38px;
    padding: 0 16px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 74, 197, .95);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(0, 74, 197, .25);
}

.pd-zoom-btn:hover {
    background: #e27a1f;
}

.pd-zoom-btn i {
    margin-right: 6px;
}

/* ==============================
   Product Info
============================== */

.pd-info {
    padding: 34px;
    min-width: 0;
}

.pd-label {
    display: inline-block;
    margin: 0 0 14px;
    padding: 7px 15px;
    border-radius: 999px;
    background: #eef5ff;
    color: #004ac5;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
}

.pd-title-block h1 {
    margin: 0;
    color: #20232a;
    font-size: 34px;
    line-height: 44px;
    font-weight: 800;
    letter-spacing: -.4px;
    word-break: break-word;
}

.pd-desc {
    margin: 16px 0 0;
    color: #667085;
    font-size: 15px;
    line-height: 28px;
}

.pd-quick-params {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.pd-quick-params dl {
    margin: 0;
    padding: 16px 17px;
    border-radius: 16px;
    background: #f8faff;
    border: 1px solid #edf1f8;
}

.pd-quick-params dt {
    color: #8a94a6;
    font-size: 13px;
    line-height: 18px;
    margin-bottom: 7px;
}

.pd-quick-params dd {
    margin: 0;
    color: #20232a;
    font-size: 15px;
    line-height: 23px;
    font-weight: 700;
    word-break: break-word;
}

/* ==============================
   RFQ Old Structure
============================== */

.pd-rfq-old {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 0;
    padding-top: 26px;
    border-top: 1px solid #edf1f8;
}

.pd-rfq-old dt {
    flex-shrink: 0;
    color: #20232a;
    font-size: 15px;
    line-height: 24px;
    font-weight: 800;
}

.pd-rfq-old dd {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.pd-qty-box {
    display: flex;
    align-items: center;
    height: 46px;
    border: 1px solid #dbe4f2;
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
}

.pd-qty-box span {
    padding: 0 14px;
    color: #667085;
    font-size: 14px;
    line-height: 46px;
}

.pd-qty-box button {
    width: 38px;
    height: 46px;
    border: none;
    background: #f2f6ff;
    color: #004ac5;
    font-size: 20px;
    line-height: 46px;
    cursor: pointer;
}

.pd-qty-box button:hover {
    background: #004ac5;
    color: #fff;
}

.pd-qty-box input {
    width: 62px;
    height: 46px;
    border: none;
    border-left: 1px solid #edf1f8;
    border-right: 1px solid #edf1f8;
    text-align: center;
    color: #20232a;
    font-size: 15px;
    outline: none;
}

.pd-rfq-btn {
    display: inline-block;
    height: 46px;
    line-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    background: #004ac5;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 74, 197, .24);
    transition: all .25s ease;
}

.pd-rfq-btn i {
    margin-right: 7px;
}

.pd-rfq-btn:hover {
    background: #e27a1f;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(226, 122, 31, .28);
}

.pd-rfq-btn.is-loading {
    opacity: .78;
    pointer-events: none;
}

/* ==============================
   Right Contact Card
============================== */

.pd-contact-card {
    padding: 30px;
    background: linear-gradient(145deg, #004ac5 0%, #003a9b 100%);
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
}

.pd-contact-card::before {
    content: "";
    position: absolute;
    left: -80px;
    top: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.pd-contact-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(226,122,31,.18);
}

.pd-contact-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    color: #fff;
    font-size: 26px;
    line-height: 34px;
    font-weight: 800;
}

.pd-contact-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255,255,255,.80);
    font-size: 14px;
    line-height: 25px;
}

.pd-contact-list {
    position: relative;
    z-index: 2;
    margin-top: 28px;
}

.pd-contact-list dl {
    display: flex;
    gap: 14px;
    margin: 0 0 22px;
}

.pd-contact-list dl:last-child {
    margin-bottom: 0;
}

.pd-contact-list dt {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    line-height: 46px;
    border-radius: 14px;
    background: rgba(255,255,255,.14);
    color: #fff;
    text-align: center;
    font-size: 18px;
}

.pd-contact-list dd {
    margin: 0;
    min-width: 0;
}

.pd-contact-list strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 16px;
    line-height: 22px;
}

.pd-contact-list span {
    display: block;
    color: rgba(255,255,255,.80);
    font-size: 14px;
    line-height: 24px;
    word-break: break-word;
}

/* ==============================
   Detail Grid
============================== */

.pd-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
}

.pd-content-left {
    display: grid;
    gap: 26px;
    min-width: 0;
}

.pd-content-right {
    position: sticky;
    top: 100px;
}

.pd-section {
    overflow: hidden;
}

.pd-section-title {
    padding: 28px 32px;
    border-bottom: 1px solid #edf1f8;
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 100%);
}

.pd-section-title h2 {
    margin: 0;
    color: #20232a;
    font-size: 26px;
    line-height: 34px;
    font-weight: 800;
}

.pd-section-title p {
    margin: 8px 0 0;
    color: #667085;
    font-size: 14px;
    line-height: 24px;
}

/* ==============================
   Parameter Table
============================== */

.pd-param-table {
    padding: 28px 32px;
}

.pd-param-table table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pd-param-table th,
.pd-param-table td {
    padding: 16px 18px;
    border: 1px solid #edf1f8;
    text-align: left;
    font-size: 14px;
    line-height: 24px;
    vertical-align: top;
    word-break: break-word;
}

.pd-param-table th {
    width: 220px;
    background: #f8faff;
    color: #4d5b75;
    font-weight: 800;
}

.pd-param-table td {
    color: #20232a;
}

.pd-table-link {
    color: #004ac5;
    font-weight: 800;
    text-decoration: none;
}

.pd-table-link:hover {
    color: #e27a1f;
    text-decoration: underline;
}

/* ==============================
   Product Detail Content
============================== */

.pd-detail-content {
    padding: 30px 32px;
    color: #4d5b75;
    font-size: 15px;
    line-height: 30px;
}

.pd-detail-content h2,
.pd-detail-content h3 {
    color: #20232a;
    margin: 26px 0 12px;
    font-weight: 800;
}

.pd-detail-content h2:first-child,
.pd-detail-content h3:first-child {
    margin-top: 0;
}

.pd-detail-content h2 {
    font-size: 24px;
    line-height: 32px;
}

.pd-detail-content h3 {
    font-size: 20px;
    line-height: 28px;
}

.pd-detail-content p {
    margin: 0 0 16px;
}

.pd-detail-content ul,
.pd-detail-content ol {
    margin: 0 0 18px 22px;
    padding: 0;
}

.pd-detail-content li {
    margin-bottom: 8px;
}

.pd-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

/* ==============================
   Tags
============================== */

.pd-tags {
    padding: 26px 32px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pd-tags a {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 999px;
    background: #f6f8ff;
    color: #004ac5;
    border: 1px solid #e4eafd;
    text-decoration: none;
    font-size: 14px;
    line-height: 20px;
}

.pd-tags a:hover {
    background: #004ac5;
    color: #fff;
}

/* ==============================
   Quick Inquiry Card
============================== */

.pd-inquiry-card {
    padding: 30px;
}

.pd-inquiry-card h2 {
    margin: 0 0 10px;
    color: #20232a;
    font-size: 26px;
    line-height: 34px;
    font-weight: 800;
}

.pd-inquiry-card p {
    margin: 0 0 24px;
    color: #667085;
    font-size: 14px;
    line-height: 24px;
}

.pd-inquiry-card dl {
    margin: 0 0 18px;
}

.pd-inquiry-card dt {
    margin-bottom: 8px;
    color: #20232a;
    font-size: 14px;
    line-height: 22px;
    font-weight: 800;
}

.pd-inquiry-card dt span {
    color: #e27a1f;
}

.pd-inquiry-card input,
.pd-inquiry-card textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dbe4f2;
    border-radius: 14px;
    background: #fff;
    color: #20232a;
    font-size: 14px;
    outline: none;
    transition: all .25s ease;
}

.pd-inquiry-card input {
    height: 48px;
    padding: 0 15px;
}

.pd-inquiry-card textarea {
    height: 120px;
    padding: 13px 15px;
    resize: none;
    line-height: 24px;
}

.pd-inquiry-card input:focus,
.pd-inquiry-card textarea:focus {
    border-color: #004ac5;
    box-shadow: 0 0 0 4px rgba(0,74,197,.10);
}

.pd-inquiry-card button {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 999px;
    background: #004ac5;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 74, 197, .25);
    transition: all .25s ease;
}

.pd-inquiry-card button:hover {
    background: #e27a1f;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(226,122,31,.28);
}

.pd-inquiry-card button.is-loading {
    opacity: .75;
    cursor: not-allowed;
    pointer-events: none;
}

.goods-show-input-error {
    border-color: #e53935 !important;
    box-shadow: 0 0 0 4px rgba(229,57,53,.10) !important;
}

/* ==============================
   Image Preview Modal
============================== */

.pd-image-mask,
.pd-modal-mask {
    display: none;
    position: fixed;
    z-index: 999998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(20, 30, 50, .62);
}

.pd-image-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 50%;
    top: 50%;
    max-width: 82%;
    max-height: 82%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
}

.pd-image-modal img {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    object-fit: contain;
}

.pd-image-modal button {
    position: absolute;
    right: -16px;
    top: -16px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #004ac5;
    color: #fff;
    font-size: 24px;
    line-height: 42px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.pd-image-modal button:hover {
    background: #e27a1f;
}

/* ==============================
   Quick Inquiry Notice Modal
============================== */

.pd-modal-box {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 50%;
    top: 50%;
    width: 420px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(0,0,0,.25);
    overflow: hidden;
    text-align: center;
}

.pd-modal-box::before {
    content: "";
    display: block;
    height: 5px;
    background: #004ac5;
}

.pd-modal-body {
    padding: 42px 34px 34px;
}

.pd-modal-icon {
    width: 72px;
    height: 72px;
    line-height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #004ac5;
    color: #fff;
    font-size: 36px;
    font-weight: 800;
}

.pd-modal-box.error .pd-modal-icon {
    background: #e53935;
}

.pd-modal-box.warning .pd-modal-icon {
    background: #e27a1f;
}

.pd-modal-box.loading .pd-modal-icon {
    background: #004ac5;
    position: relative;
    font-size: 0;
}

.pd-modal-box.loading .pd-modal-icon::after {
    content: "";
    width: 34px;
    height: 34px;
    border: 4px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -21px;
    margin-top: -21px;
    animation: pdSpin .8s linear infinite;
}

@keyframes pdSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.pd-modal-body h3 {
    margin: 0 0 12px;
    color: #20232a;
    font-size: 24px;
    line-height: 32px;
    font-weight: 800;
}

.pd-modal-body p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 26px;
}

.pd-modal-body a {
    display: inline-block;
    min-width: 120px;
    height: 42px;
    line-height: 42px;
    margin-top: 26px;
    border-radius: 999px;
    background: #004ac5;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.pd-modal-body a:hover {
    background: #e27a1f;
}

/* ==============================
   RFQ Added Modal
   cart.js showQuoteModal compatible
============================== */

.quote-modal-mask {
    display: none;
    position: fixed;
    z-index: 999998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(20, 30, 50, .62);
}

.quote-modal-box {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 50%;
    top: 50%;
    width: 430px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0,0,0,.26);
    overflow: hidden;
    text-align: center;
}

.quote-modal-box::before {
    content: "";
    display: block;
    height: 5px;
    background: #004ac5;
}

.quote-modal-close {
    position: absolute;
    right: 18px;
    top: 16px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    border-radius: 50%;
    background: #f3f6fc;
    color: #8a94a6;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.quote-modal-close:hover {
    background: #004ac5;
    color: #fff;
}

.quote-modal-body {
    padding: 42px 32px 34px;
}

.quote-modal-icon {
    width: 82px;
    height: 82px;
    line-height: 82px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #004ac5;
    color: #fff;
    font-size: 42px;
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(0,74,197,.22);
}

.quote-modal-box.error .quote-modal-icon {
    background: #e53935;
}

.quote-modal-box.warning .quote-modal-icon {
    background: #e27a1f;
}

.quote-modal-title {
    margin: 0 0 12px;
    color: #20232a;
    font-size: 25px;
    line-height: 34px;
    font-weight: 800;
}

.quote-modal-text {
    margin: 0;
    color: #667085;
    font-size: 15px;
    line-height: 26px;
}

.quote-modal-count {
    margin: 24px 0 0;
    padding: 13px 16px;
    border-radius: 14px;
    background: #f7f9ff;
    border: 1px solid #e5ebfb;
    color: #667085;
    font-size: 15px;
}

.quote-modal-count b {
    color: #004ac5;
    font-size: 22px;
    margin: 0 4px;
}

.quote-modal-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
    gap: 14px;
}

.quote-modal-quote,
.quote-modal-continue {
    min-width: 130px;
    height: 44px;
    line-height: 44px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.quote-modal-quote {
    background: #004ac5;
    color: #fff;
    box-shadow: 0 12px 26px rgba(0,74,197,.22);
}

.quote-modal-quote:hover {
    background: #e27a1f;
    color: #fff;
}

.quote-modal-continue {
    background: #f6f8ff;
    color: #004ac5;
    border: 1px solid #e4eafd;
}

.quote-modal-continue:hover {
    background: #004ac5;
    color: #fff;
}

/* ==============================
   Small Desktop Fallback
============================== */

@media screen and (max-width: 1280px) {
    .pd-hero {
        grid-template-columns: 330px minmax(0, 1fr) 300px;
        gap: 22px;
    }

    .pd-info {
        padding: 28px;
    }

    .pd-contact-card,
    .pd-inquiry-card {
        padding: 26px;
    }

    .pd-title-block h1 {
        font-size: 30px;
        line-height: 40px;
    }
}

/* ==============================
   Product Image Info
============================== */

.pd-image-info {
    margin-top: 18px;
    padding: 20px 20px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    border: 1px solid #edf1f8;
}

.pd-image-info h3 {
    margin: 0 0 10px;
    color: #20232a;
    font-size: 18px;
    line-height: 26px;
    font-weight: 800;
    word-break: break-word;
}

.pd-image-info p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 24px;
}

.pd-image-info ul {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.pd-image-info li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    color: #4d5b75;
    font-size: 14px;
    line-height: 22px;
}

.pd-image-info li:last-child {
    margin-bottom: 0;
}

.pd-image-info li i {
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    background: #004ac5;
    color: #fff;
    font-size: 10px;
    text-align: center;
}