﻿@charset "utf-8";

/* =========================================================
   Product Article Detail
   Article-specific styles only.
   Shared gallery / component styles continue to use product_show1.css.
========================================================= */

#posts .ws-post-detail-crumb *,
#posts .ws-post-detail-hero *,
#posts .ws-post-detail-reference *,
#posts .ws-post-detail-reading *,
#posts .ws-post-detail-preview * {
    box-sizing: border-box;
}


/* Breadcrumb */

.ws-post-detail-crumb {
    border-bottom: 1px solid #e4ebf0;
    background: #fff;
}

.ws-post-detail-crumb .container {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    color: #8b97a8;
    font-size: 13px;
    white-space: nowrap;
}

.ws-post-detail-crumb a {
    color: #56657a;
    text-decoration: none;
}

.ws-post-detail-crumb a:hover {
    color: #0000ff;
}

.ws-post-detail-crumb i {
    color: #00a9a0;
}

.ws-post-detail-crumb span {
    color: #25354b;
}


/* Article hero */

.ws-post-detail-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0;
    background:
        radial-gradient(circle at 88% 12%, rgba(40,203,232,.18), transparent 28%),
        linear-gradient(135deg, #08224a 0%, #072f67 55%, #000087 100%);
}

.ws-post-detail-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -170px;
    width: 360px;
    height: 360px;
    border: 44px solid rgba(255,255,255,.035);
    border-radius: 50%;
}

.ws-post-detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0,1fr) 330px;
    gap: 58px;
    align-items: center;
}

.ws-post-detail-labels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ws-post-detail-labels span,
.ws-post-detail-labels em {
    min-height: 29px;
    padding: 4px 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    line-height: 20px;
    font-style: normal;
    letter-spacing: .8px;
}

.ws-post-detail-labels span {
    background: linear-gradient(90deg, #0000ff 0%, #28cbe8 100%);
    color: #fff;
}

.ws-post-detail-labels em {
    border: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.78);
}

.ws-post-detail-hero-copy h1 {
    max-width: 900px;
    margin: 14px 0 0;
    color: #fff;
    font-size: 39px;
    line-height: 49px;
}

.ws-post-detail-hero-copy > p {
    max-width: 850px;
    margin: 13px 0 0;
    color: rgba(255,255,255,.76);
    font-size: 15px;
    line-height: 25px;
}

.ws-post-detail-meta {
    margin-top: 19px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.ws-post-detail-meta span {
    color: rgba(255,255,255,.68);
    font-size: 13px;
    line-height: 20px;
}

.ws-post-detail-meta i {
    margin-right: 5px;
    color: #52dbe4;
}

.ws-post-detail-hero-note {
    padding: 25px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

.ws-post-detail-hero-note > span {
    display: block;
    color: #00a9a0;
    font-size: 11px;
    line-height: 18px;
    letter-spacing: .9px;
}

.ws-post-detail-hero-note h2 {
    margin: 6px 0 0;
    color: #17233a;
    font-size: 23px;
    line-height: 31px;
}

.ws-post-detail-hero-note p {
    margin: 10px 0 0;
    color: #6c798d;
    font-size: 13px;
    line-height: 22px;
}

.ws-post-detail-hero-note a {
    min-height: 40px;
    margin-top: 16px;
    padding: 0 14px;
    border-radius: 8px;
    background: #042858;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}

.ws-post-detail-hero-note a:hover {
    background: #0000ff;
    color: #fff;
}


/* Compact component reference */

.ws-post-detail-reference {
    padding: 34px 0 10px;
}

.ws-post-detail-reference-card {
    padding: 18px;
    border: 1px solid #dbe5eb;
    border-radius: 17px;
    background: #fff;
    display: grid;
    grid-template-columns: 390px minmax(0,1fr);
    gap: 30px;
    box-shadow: 0 14px 34px rgba(4,40,88,.06);
}

.ws-post-detail-media {
    min-width: 0;
}

#posts .ws-post-detail-media .ws-gallery-main {
    height: 300px;
}

#posts .ws-post-detail-media .ws-gallery-zoom-view {
    width: 390px;
    height: 300px;
}

.ws-post-detail-product {
    min-width: 0;
    padding: 10px 10px 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ws-post-detail-product-head > span {
    display: block;
    color: #00a9a0;
    font-size: 12px;
    line-height: 19px;
    letter-spacing: .8px;
}

.ws-post-detail-product-head h2 {
    margin: 4px 0 0;
    color: #17233a;
    font-size: 28px;
    line-height: 36px;
}

.ws-post-detail-product-head a,
.ws-post-detail-product-head em {
    margin-top: 4px;
    display: inline-block;
    color: #0000ff;
    font-size: 14px;
    line-height: 21px;
    font-style: normal;
    text-decoration: none;
}

.ws-post-detail-product-summary {
    max-width: 780px;
    margin: 10px 0 0;
    color: #6b788b;
    font-size: 14px;
    line-height: 23px;
}

.ws-post-detail-facts {
    margin-top: 17px;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    overflow: hidden;
    border: 1px solid #e0e7ec;
    border-radius: 10px;
    background: #fbfdfe;
}

.ws-post-detail-facts dl {
    min-width: 0;
    margin: 0;
    padding: 12px 13px;
}

.ws-post-detail-facts dl + dl {
    border-left: 1px solid #e7edf1;
}

.ws-post-detail-facts dt {
    color: #8a96a7;
    font-size: 11px;
    line-height: 18px;
}

.ws-post-detail-facts dd {
    margin: 3px 0 0;
    overflow: hidden;
    color: #26364e;
    font-size: 13px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ws-post-detail-facts .goods_stock {
    color: #00a9a0;
}

.ws-post-detail-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ws-post-detail-qty {
    width: 92px;
    height: 42px;
    overflow: hidden;
    border: 1px solid #d8e3e8;
    border-radius: 8px;
    background: #fff;
    display: grid;
    grid-template-columns: 34px 1fr;
}

.ws-post-detail-qty span {
    background: #f2f7f8;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7b8798;
    font-size: 11px;
}

.ws-post-detail-qty input {
    width: 100%;
    min-width: 0;
    padding: 0 8px;
    border: 0;
    outline: 0;
    color: #17233a;
    font-size: 13px;
}

.ws-post-detail-primary,
.ws-post-detail-secondary {
    min-height: 42px;
    padding: 0 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.ws-post-detail-primary {
    border: 0;
    background: linear-gradient(90deg,#0000ff,#28cbe8);
    color: #fff;
}

.ws-post-detail-primary:hover {
    background: linear-gradient(90deg,#042858,#00c6bc);
    color: #fff;
}

.ws-post-detail-secondary {
    border: 1px solid #d4e0e7;
    background: #fff;
    color: #34455b;
}

.ws-post-detail-secondary:hover {
    border-color: #00c6bc;
    color: #0000ff;
}

.ws-post-detail-links {
    margin-top: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.ws-post-detail-links a {
    color: #64748b;
    font-size: 13px;
    line-height: 20px;
    text-decoration: none;
}

.ws-post-detail-links a:hover {
    color: #0000ff;
}

.ws-post-detail-links i {
    margin-right: 5px;
    color: #00a9a0;
}


/* Reading layout */

.ws-post-detail-reading {
    padding: 24px 0 62px;
}

.ws-post-detail-reading-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 270px;
    gap: 20px;
    align-items: start;
}

.ws-post-detail-article,
.ws-post-detail-side-card,
.ws-post-detail-side-note,
.ws-post-detail-faq,
.ws-post-detail-cta {
    border: 1px solid #dfe7ec;
    border-radius: 14px;
    background: #fff;
}

.ws-post-detail-article {
    min-width: 0;
    padding: 26px;
}

.ws-post-detail-section-head {
    margin-bottom: 19px;
}

.ws-post-detail-section-head > span {
    display: block;
    margin-bottom: 4px;
    color: #00a9a0;
    font-size: 12px;
    line-height: 19px;
    letter-spacing: .8px;
}

.ws-post-detail-section-head h2 {
    margin: 0;
    color: #17233a;
    font-size: 27px;
    line-height: 36px;
}

.ws-post-detail-section-head > p {
    max-width: 850px;
    margin: 7px 0 0;
    color: #6c798c;
    font-size: 13px;
    line-height: 22px;
}

.ws-post-detail-side {
    position: sticky;
    top: 76px;
    display: grid;
    gap: 12px;
}

.ws-post-detail-side-card {
    padding: 19px;
}

.ws-post-detail-side-card > span {
    display: block;
    color: #00a9a0;
    font-size: 11px;
    line-height: 18px;
    letter-spacing: .8px;
}

.ws-post-detail-side-card h3 {
    margin: 5px 0 14px;
    color: #17233a;
    font-size: 21px;
    line-height: 28px;
}

.ws-post-detail-side-card dl {
    margin: 0;
    padding: 9px 0;
    border-top: 1px solid #e8eef1;
}

.ws-post-detail-side-card dt {
    color: #8b97a7;
    font-size: 11px;
    line-height: 17px;
}

.ws-post-detail-side-card dd {
    margin: 2px 0 0;
    color: #34445a;
    font-size: 13px;
    line-height: 20px;
    word-break: break-word;
}

.ws-post-detail-side-primary,
.ws-post-detail-side-secondary {
    width: 100%;
    min-height: 40px;
    margin-top: 10px;
    padding: 0 11px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    text-decoration: none;
}

.ws-post-detail-side-primary {
    background: #042858;
    color: #fff;
}

.ws-post-detail-side-primary:hover {
    background: #0000ff;
    color: #fff;
}

.ws-post-detail-side-secondary {
    border: 1px solid #d8e3e8;
    background: #f8fbfc;
    color: #53647a;
}

.ws-post-detail-side-secondary:hover {
    border-color: #00c6bc;
    color: #0000ff;
}

.ws-post-detail-side-note {
    padding: 15px;
    display: grid;
    grid-template-columns: 24px minmax(0,1fr);
    gap: 8px;
    background: #f7fbfb;
}

.ws-post-detail-side-note i {
    color: #00a9a0;
    font-size: 16px;
}

.ws-post-detail-side-note p {
    margin: 0;
    color: #708095;
    font-size: 12px;
    line-height: 20px;
}


/* FAQ */

.ws-post-detail-faq {
    margin-top: 20px;
    padding: 26px;
}

.ws-post-detail-faq-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.ws-post-detail-faq-grid article {
    padding: 17px 18px;
    border: 1px solid #e0e8ed;
    border-radius: 10px;
    background: #fbfdfe;
}

.ws-post-detail-faq-grid h3 {
    margin: 0;
    color: #25364e;
    font-size: 14px;
    line-height: 22px;
}

.ws-post-detail-faq-grid p {
    margin: 7px 0 0;
    color: #6d7b8e;
    font-size: 13px;
    line-height: 21px;
}


/* Bottom sourcing CTA */

.ws-post-detail-cta {
    margin-top: 20px;
    padding: 24px 26px;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 30px;
    align-items: center;
    background:
        radial-gradient(circle at 92% 0%, rgba(40,203,232,.16), transparent 25%),
        #fff;
}

.ws-post-detail-cta > div:first-child > span {
    display: block;
    color: #00a9a0;
    font-size: 11px;
    line-height: 18px;
    letter-spacing: .8px;
}

.ws-post-detail-cta h2 {
    margin: 5px 0 0;
    color: #17233a;
    font-size: 24px;
    line-height: 32px;
}

.ws-post-detail-cta p {
    max-width: 820px;
    margin: 7px 0 0;
    color: #6c798d;
    font-size: 13px;
    line-height: 22px;
}

.ws-post-detail-cta-actions {
    display: flex;
    gap: 8px;
}

.ws-post-detail-cta-primary,
.ws-post-detail-cta-secondary {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.ws-post-detail-cta-primary {
    background: linear-gradient(90deg,#0000ff,#28cbe8);
    color: #fff;
}

.ws-post-detail-cta-primary:hover {
    color: #fff;
}

.ws-post-detail-cta-secondary {
    border: 1px solid #d6e1e7;
    background: #fff;
    color: #53647a;
}

.ws-post-detail-cta-secondary:hover {
    border-color: #00c6bc;
    color: #0000ff;
}


/* Gallery preview for article pages */

.ws-post-detail-preview {
    position: fixed;
    z-index: 100050;
    inset: 0;
    padding: 24px;
    background: rgba(8,20,40,.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-post-detail-preview-box {
    position: relative;
    width: 760px;
    max-width: 94vw;
    max-height: 88vh;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
}

.ws-post-detail-preview-box img {
    width: 100%;
    max-height: calc(88vh - 36px);
    display: block;
    object-fit: contain;
}

.ws-post-detail-preview-close {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #042858;
    color: #fff;
    cursor: pointer;
}


/* Responsive */

@media screen and (max-width: 1180px) {
    .ws-post-detail-reference-card {
        grid-template-columns: 340px minmax(0,1fr);
    }

    .ws-post-detail-facts {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .ws-post-detail-facts dl:nth-child(3) {
        border-left: 0;
        border-top: 1px solid #e7edf1;
    }

    .ws-post-detail-facts dl:nth-child(4) {
        border-top: 1px solid #e7edf1;
    }
}

@media screen and (max-width: 1024px) {
    .ws-post-detail-hero-grid {
        grid-template-columns: minmax(0,1fr) 290px;
        gap: 32px;
    }

    .ws-post-detail-reading-grid {
        grid-template-columns: 1fr;
    }

    .ws-post-detail-side {
        position: static;
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media screen and (max-width: 767px) {
    .ws-post-detail-hero {
        padding: 34px 0 38px;
    }

    .ws-post-detail-hero-grid {
        grid-template-columns: 1fr;
        gap: 19px;
    }

    .ws-post-detail-hero-copy h1 {
        font-size: 28px;
        line-height: 37px;
    }

    .ws-post-detail-hero-note {
        padding: 19px;
        border-radius: 13px;
    }

    .ws-post-detail-reference {
        padding-top: 24px;
    }

    .ws-post-detail-reference-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 13px;
        border-radius: 13px;
    }

    #posts .ws-post-detail-media .ws-gallery-main {
        height: 280px;
    }

    #posts .ws-post-detail-media .ws-gallery-zoom-view {
        display: none !important;
    }

    .ws-post-detail-product {
        padding: 0 4px 5px;
    }

    .ws-post-detail-product-head h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .ws-post-detail-facts {
        grid-template-columns: 1fr;
    }

    .ws-post-detail-facts dl + dl,
    .ws-post-detail-facts dl:nth-child(3),
    .ws-post-detail-facts dl:nth-child(4) {
        border-left: 0;
        border-top: 1px solid #e7edf1;
    }

    .ws-post-detail-actions {
        display: grid;
        grid-template-columns: 92px minmax(0,1fr);
    }

    .ws-post-detail-secondary {
        grid-column: 1 / -1;
    }

    .ws-post-detail-reading {
        padding-top: 18px;
        padding-bottom: 44px;
    }

    .ws-post-detail-article,
    .ws-post-detail-faq {
        padding: 18px;
        border-radius: 11px;
    }

    .ws-post-detail-section-head h2 {
        font-size: 22px;
        line-height: 30px;
    }

    .ws-post-detail-side {
        grid-template-columns: 1fr;
    }

    .ws-post-detail-faq-grid {
        grid-template-columns: 1fr;
    }

    .ws-post-detail-cta {
        padding: 20px 18px;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .ws-post-detail-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .ws-post-detail-preview {
        padding: 12px;
    }
}
