/* =========================================
   Products Archive - v3.0
   Design 2: Side Thumbnail Layout
   ========================================= */

/* ---------- Page Layout ---------- */
.product_list {
    display: flex;
    justify-content: space-between;
    margin: 30px auto 0;
}

.product_list .left {
    width: 20%;
    margin-bottom: 3vw;
}

.product_list .left .sidebar {
    border: 1px solid #efefef;
    padding: 15px;
}

.product_list .right {
    width: 78%;
}

/* ---------- Top Bar ---------- */
.center2.pruduct_src {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.product_right-img {
    display: flex;
    justify-content: end;
    margin: 5px 0;
    position: relative;
}

.product_right-width {
    display: flex;
    justify-content: center;
}

.product_right-width img {
    width: 100%;
    max-width: 50px;
    margin: 0 15px 0 5px;
    max-height: 45px;
}

.product_right-width button {
    background-color: #347471;
    color: #fff;
    border: none;
    padding: 1px 7px;
    cursor: pointer;
    border-radius: 23px;
    position: absolute;
    top: 0;
    right: 0;
}

.product_right-width button:hover {
    background-color: #1c423f;
}

.product_right-width div {
    height: 45px;
    position: relative;
    top: -5px;
    margin-right: 5px;
}

.product_right-img .add i {
    display: block;
    width: 43px;
    height: 43px;
    line-height: 43px;
    text-align: center;
    background: #dbe2e0;
    color: #547e79;
    font-size: 43px;
}

.product_scr-all {
    background: #2f736d;
    color: #fff;
    height: 45px;
    margin-left: 15px;
    line-height: 43px;
    border-radius: 4px;
    padding: 0 7px;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Grid Layout - 强制3列 ---------- */
.pro_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.product_list img {
    width: 100%;
}

/* ---------- Product Card ---------- */
.product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 32px rgba(52, 116, 113, 0.18);
    transform: translateY(-3px);
}

/* ---------- Gallery Area - 固定高度 ---------- */
.card-gallery {
    display: flex;
    gap: 10px;
    height: 280px;
    min-height: 280px;
    max-height: 280px;
    overflow: hidden;
}

/* ---------- Left Thumbnails ---------- */
.card-thumbs {
    width: 60px;
    height: 100%;
    flex-shrink: 0;
    overflow: hidden;
}

.thumb-swiper {
    height: 100%;
    width: 100%;
}

.thumb-swiper .swiper-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.thumb-swiper .swiper-slide {
    width: 60px !important;
    height: 60px !important;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e8e8e8;
    cursor: pointer;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.thumb-swiper .swiper-slide:hover,
.thumb-swiper .swiper-slide.cur,
.thumb-swiper .swiper-slide-thumb-active {
    border-color: #347471;
}

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

.video-thumb-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

/* ---------- Right Main Image ---------- */
.card-main-image {
    flex: 1;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f8f8;
    position: relative;
    min-width: 0;
}

.main-swiper {
    width: 100%;
    height: 100%;
}

.main-swiper .swiper-wrapper {
    width: 100%;
    height: 100%;
}

.main-swiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* 未初始化前只显示第一张 */
.main-swiper:not(.swiper-container-initialized) .swiper-slide {
    display: none;
}

.main-swiper:not(.swiper-container-initialized) .swiper-slide:first-child {
    display: flex;
}

.main-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    line-height: 0;
}

.main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Zoom icon */
.zoom-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zoom-icon::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #333;
    border-radius: 50%;
}

.zoom-icon::after {
    content: "";
    width: 2px;
    height: 6px;
    background: #333;
    position: absolute;
    bottom: 5px;
    right: 7px;
    transform: rotate(-45deg);
}

.card-main-image:hover .zoom-icon {
    opacity: 1;
}

/* ---------- Video Slide ---------- */
.slide-video {
    background: #000;
    position: relative;
}

.embed-container {
    position: relative;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.embed-container iframe,
.embed-container object,
.embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-wrap {
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.youtube-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

.youtube-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 42px;
    background: rgba(255, 0, 0, 0.85);
    border-radius: 10px;
    z-index: 11;
    pointer-events: none;
}

.play-btn::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent white;
}

.slide-video video,
.slide-video iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ---------- Swiper Lazy Preloader ---------- */
.swiper-lazy-preloader {
    width: 36px;
    height: 36px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -18px;
    margin-top: -18px;
    z-index: 10;
    animation: swiper-preloader-spin 1s infinite linear;
    border: 3px solid #347471;
    border-radius: 50%;
    border-top-color: transparent;
    box-sizing: border-box;
}

@keyframes swiper-preloader-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ---------- Card Info ---------- */
.card-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ---------- Card Title ---------- */
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 0 4px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #347471;
}

/* ---------- Card Actions ---------- */
.card-actions {
    display: flex;
    gap: 8px;
    padding: 0 4px;
}

.btn-quote {
    flex: 1;
    padding: 12px 18px;
    background: #347471;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-quote:hover {
    background: #2a5f5c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 116, 113, 0.3);
}

.btn-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #e8f4f3;
    color: #347471;
    border: 2px solid #347471;
    border-radius: 8px;
    font-size: 22px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
}

.btn-detail:hover {
    background: #347471;
    color: #fff;
    transform: translateY(-1px);
}

/* ---------- Global Quote Modal ---------- */
.global-quote-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.global-quote-overlay.active {
    display: flex;
}

.global-quote-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
}

.global-quote-modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 30px;
    max-width: 520px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.global-quote-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f2f2f2;
    border-radius: 50%;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.global-quote-close:hover {
    background: #e74c3c;
    color: #fff;
}

.global-quote-product-name {
    font-size: 16px;
    font-weight: 700;
    color: #347471;
    margin-bottom: 20px;
    padding-right: 40px;
    line-height: 1.4;
}

/* 方案三：左右分栏风格 */
.Batch_form .batch_quote {
    padding: 0;
    width: 850px;
    display: flex;
    overflow: hidden;
}

.batch_quote .title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

/* 需要在HTML中加一个左侧区域，或用伪元素模拟 */
.batch_quote::before {
    content: '';
    display: block;
    width: 280px;
    min-height: 100%;
    background: linear-gradient(160deg, #347471, #245250);
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.batch_form {
    padding: 40px;
    flex: 1;
}

.batch_form .tow p {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.batch_form > div,
.batch_form > p {
    margin-top: 16px;
}

.batch_form .input-na {
    width: 100%;
    max-width: unset;
    background: #fff;
    padding: 13px 16px;
    border-radius: 8px;
    border: 1.5px solid #e2e8e8;
    font-size: 14px;
    transition: all 0.3s;
}

.batch_form .input-na:focus {
    outline: none;
    border-color: #347471;
    box-shadow: 0 2px 8px rgba(52, 116, 113, 0.12);
}

.batch_form textarea {
    width: 100%;
    border-radius: 8px;
    background: #fff;
    padding: 13px 16px;
    border: 1.5px solid #e2e8e8;
    max-height: 100px;
    font-size: 14px;
    resize: none;
    transition: all 0.3s;
}

.batch_form textarea:focus {
    outline: none;
    border-color: #347471;
    box-shadow: 0 2px 8px rgba(52, 116, 113, 0.12);
}

.batch_form .sub {
    width: 100%;
    text-align: center;
    margin: 24px 0 0;
    display: block;
    background: #347471;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}

.batch_form .sub:hover {
    background: #2a5f5d;
    box-shadow: 0 4px 12px rgba(52, 116, 113, 0.3);
}
/* ---------- Fancybox ---------- */
.fancybox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    display: none;
    z-index: 900;
    background: rgba(0, 0, 0, 0.8);
}

.fancybox-overlay-fixed {
    position: fixed;
    bottom: 0;
    right: 0;
}

.fancybox-lock .fancybox-overlay {
    overflow: auto;
}

.fancybox-opened {
    z-index: 900;
}

.fancybox-wrap {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 900;
}

.fancybox-skin {
    position: relative;
    background: #f9f9f9;
    color: #444;
    text-shadow: none;
    border-radius: 4px;
}

.fancybox-opened .fancybox-skin {
    box-shadow: 0 10px 25px rgba(0, 0, 0, .5);
}

.fancybox-inner,
.fancybox-outer {
    position: relative;
}

#fancybox-loading,
.fancybox-close,
.fancybox-next span,
.fancybox-prev span {
    background: url(/images/fancybox_sprite.png);
}

.fancybox-close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    z-index: 8040;
}

.fancybox-iframe,
.fancybox-image {
    display: block;
    width: 100%;
    height: 100%;
}

.fancybox-nav {
    position: absolute;
    top: 0;
    width: 40%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    background: transparent url(https://www.gvpak.com/images/blank.gif);
    -webkit-tap-highlight-color: transparent;
    z-index: 8040;
}

.fancybox-prev span {
    left: 10px;
    background-position: 0 -36px;
}

.fancybox-nav span {
    position: absolute;
    top: 50%;
    width: 36px;
    height: 34px;
    margin-top: -18px;
    cursor: pointer;
    z-index: 8040;
    visibility: hidden;
}

.fancybox-nav:hover span {
    visibility: visible;
}

.fancybox-next span {
    right: 10px;
    background-position: 0 -72px;
}

.fancybox-next {
    right: 0;
}

/* ---------- Pagination ---------- */
.pagenavi_list {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 20px 0;
}

.pagenavi_list .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: #347471;
    background: #fff;
    border: 2px solid #e0e8e8;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagenavi_list .page-numbers.current {
    background: #347471;
    color: #fff;
    border-color: #347471;
    box-shadow: 0 4px 12px rgba(52, 116, 113, 0.35);
    cursor: default;
}

.pagenavi_list a.page-numbers:hover {
    background: #347471;
    color: #fff;
    border-color: #347471;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 116, 113, 0.3);
}

.pagenavi_list a.prev.page-numbers,
.pagenavi_list a.next.page-numbers {
    padding: 0 18px;
    font-weight: 600;
}

.pagenavi_list .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
    min-width: 32px;
    padding: 0;
    color: #999;
}

.pagenavi_list .page-numbers.dots:hover {
    background: transparent;
    color: #999;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

/* ---------- FE Reset Button ---------- */
button.facetwp-reset {
    padding: 7px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 1px 1px #c5c5c5;
    cursor: pointer;
    margin-top: 10px;
}

/* =========================================
   Responsive
   ========================================= */

@media (max-width: 1440px) {
    .center2.pruduct_src {
        width: 100%;
        padding: 0 20px;
    }
    .product_list {
        width: 100%;
        padding: 0 25px;
    }
}

@media (max-width: 1200px) {
    .pro_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .card-gallery {
        height: 260px;
        min-height: 260px;
        max-height: 260px;
    }
}

@media (max-width: 1000px) {
    .product_list {
        flex-wrap: wrap;
    }
    .product_list .left {
        width: 100%;
    }
    .product_list .right {
        width: 100%;
    }
    .Batch_form .batch_quote {
        width: 100%;
    }
    .product_right-width {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(5, 1fr);
    }
    .product_right-width img {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .pro_list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card-gallery {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .product-card {
        padding: 12px;
        gap: 12px;
        margin: 8px;
    }

    .card-thumbs {
        width: 50px;
    }

    .thumb-swiper .swiper-slide {
        width: 50px !important;
        height: 50px !important;
    }

    .loca.pruduct_src-phone {
        height: auto;
    }

    .product_right-img {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .product_scr-all {
        margin: 10px 0;
    }

    .center2.pruduct_src {
        flex-direction: column;
        align-items: center;
        align-content: flex-start;
    }
}

@media (max-width: 480px) {
    .pro_list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card-gallery {
        height: 280px;
        min-height: 280px;
        max-height: 280px;
        gap: 8px;
    }

    .card-thumbs {
        width: 46px;
    }

    .thumb-swiper .swiper-slide {
        width: 46px !important;
        height: 46px !important;
        border-radius: 6px;
    }

    .card-main-image {
        border-radius: 8px;
    }

    .btn-quote {
        padding: 10px 14px;
        font-size: 13px;
    }

    .btn-detail {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .pagenavi_list .page-numbers {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
}

/* ---------- Mobile Filter Sidebar ---------- */
@media (min-width: 769px) {
    .mobile-filter-wrapper {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile-filter-wrapper {
        display: block !important;
        margin: 10px 0 20px 0;
    }

    #filter-switch {
        display: none;
    }

    .filter-trigger-btn {
        display: inline-flex;
        align-items: center;
        cursor: pointer;
        padding: 5px 0;
    }

    .filter-trigger-btn img {
        width: 25px;
        height: auto;
        margin-right: 8px;
        vertical-align: middle;
    }

    .filter-trigger-btn .btn-text {
        font-size: 19px;
        font-weight: 600;
        color: #333;
    }

    .sidebar-close-btn {
        display: none;
        position: fixed;
        top: 15px;
        left: 260px;
        width: 35px;
        height: 35px;
        background: #f44336;
        color: #fff;
        border-radius: 50%;
        text-align: center;
        line-height: 33px;
        font-size: 24px;
        font-weight: bold;
        cursor: pointer;
        z-index: 100000;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 400px !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 99999 !important;
        overflow-y: auto !important;
        padding: 20px !important;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1) !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
        display: block !important;
        margin: 0 !important;
        border: none !important;
    }

    .filter-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99998;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    body:has(#filter-switch:checked) .sidebar {
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    body:has(#filter-switch:checked) .filter-backdrop {
        opacity: 1;
        visibility: visible;
    }

    body:has(#filter-switch:checked) .sidebar-close-btn {
        display: block;
    }

    body:has(#filter-switch:checked) {
        overflow: hidden;
    }
}

/*public mould 产品的h1标题*/
h1.entry-title {
    text-align: center;
    color: #2c5e5c; /* 比主题色稍微深一点，更有质感 */
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px; /* 微调间距，显得更紧凑 */
    margin: 120px 0 40px;
    position: relative;
    padding-bottom: 20px;
}
@media (min-width: 769px) {
    h1.entry-title {
    font-size: 30px;}
}
/* 增加一个中间的小装饰点 */
h1.entry-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #347471;
    margin: 15px auto 0;
    border-radius: 2px;
}