    /* ####################################################
    :: Template Name: Essence - Fashion Ecommerce Template
    :: Author: Colorlib
    :: Author URL: https://colorlib.com
    :: Description: Essence is smart & elegant fashion e-commerce Template. It's suitable for all e-commerce business platform.
    :: Version: 1.0.0
    :: Created: April 27, 2018
    :: Last Updated: May 2, 2018
    #################################################### */

    /* ---------------------------------------
    ##### - PLACE YOUR CUSTOM CSS HERE - #####
    --------------------------------------- */

.chain-finder-overlay {
    background: rgba(0,0,0,0.3);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.chain-finder-box {
    background: rgba(26, 43, 65, 0.9);
    color: #fff;
    padding: 40px 30px 30px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    max-width: 500px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.chain-finder-box h2 {
    font-weight: 600;
    margin-bottom: 18px;
    font-size: 2.2rem;
    color: #d3d9e1;
}

.chain-finder-box .finder-desc {
    margin-bottom: 18px;
    font-size: 1.16rem;
    color: #d3d9e1;
}

.finder-form {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
}

.finder-form input[type="text"] {
    flex: 1 1 auto;
    padding: 12px 16px;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    min-width: 0;
}

.finder-form button {
    background: #fff;
    color: #1a2b41;
    padding: 12px 22px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

/* .finder-help {
    margin-top: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
} */
.info-bang {
    font-weight: bold;
    margin-right: 4px;
    color: #FFD700;
}
.help-link {
    color: #FFD700;
    text-decoration: none;
}
.help-link:hover {
    text-decoration: underline;
}

/* 移动端自适应 */
@media (max-width: 767px) {
    .chain-finder-section,
    .chain-finder-section .container,
    .chain-finder-section .row,
    .chain-finder-section [class^="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    /* box自己宽度100%，两侧留呼吸空间（推荐12-18px） */
    .chain-finder-box {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 0;
        box-sizing: border-box;
        padding-left: 16px;
        padding-right: 16px;
    }
    .finder-form {
        flex-direction: column;
        gap: 10px;
    }
    .finder-form input[type="text"],
    .finder-form button {
        width: 100%;
        font-size: 1.05rem;
    }
    .tire-size-popup {
        justify-content: center !important;
        align-items: center;
        flex-direction: column;
        width: 100%;
    }
    .tire-size-popup img {
        display: block !important;
        margin: 0 auto !important;
        max-width: 95vw;
        height: auto;
    }
}

.finder-help {
  margin-top: 8px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  color: #fff;
  gap: 10px;
}

.info-bang-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(26, 43, 65, 0.9);
  border-radius: 50%;
  font-weight: bold;
  color: #fff;
  font-size: 20px;
  margin-right: 8px;
  transition: background 0.2s, color 0.2s;
  border: 2px solid #fff;
}

.help-link-text {
  color: #fff;
  font-size: 1.1rem;
  transition: color 0.2s;
}

/* hover到任意部分都变黄色 */
.finder-help:hover .info-bang-circle,
.finder-help:hover .help-link-text {
  color: #FFD700;
  border-color: #FFD700;
}

/* 感叹号圈的背景也变深黄色（可选） */
.finder-help:hover .info-bang-circle {
  background: #392c00;
}

/* 弹窗图片样式 */
.tire-size-popup {
  width: 100%;
  text-align: left;
  margin-top: 16px;
}
.tire-size-popup img {
  max-width: 300px;
  width: 100%;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  display: block;
}

.finder-box-bordered {
    border: 1px solid #bbb;   /* 细实线 */
    border-radius: 8px;
    padding: 20px 18px;
    background: #fff;
    box-sizing: border-box;
}

.chain-finder-section {
    background-image: url('img/bg-img/willschain-bg-1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 500px;
    position: relative;
}

/* 默认隐藏小屏图片 */
.mobile-bg {
    display: none;
}


/* 小屏切换：隐藏背景图，用 img 替代 */
@media (max-width: 767px) {
    .chain-finder-section {
        background-image: none;
        background-size: cover;
        height: auto;
    }
    .mobile-bg {
        display: block;
        margin-bottom: 0;  
        padding-bottom: 0;
        object-fit: cover;
        height: auto;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
    }
}




.thumb-carousel-container {
    display: flex;
    align-items: center;
    margin-top: 18px;
    gap: 8px;
    width: 370px; /* 你要多宽自己调 */
}

.thumb-carousel-list {
    display: flex;
    overflow: hidden;
    width: 240px; /* 3个缩略图，每个80px宽 */
}

.thumb-block {
    width: 75px;
    height: 75px;
    margin-right: 8px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border 0.2s;
    box-sizing: border-box;
}
.thumb-block.selected {
    border: 2px solid #1f2d44;
}

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

.thumb-carousel-prev, .thumb-carousel-next {
    background: #eee;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 15px;
    font-size: 20px;
    color: #1f2d44;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}
.thumb-carousel-prev:disabled, .thumb-carousel-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#main-image-block {
    width: 340px;
    margin: 0 auto;
}


.carousel-arrow-btn {
    background-color: #39639b;
    color: #fafbfc;
    border: none;
    outline: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0 4px;
    border-radius: 6px;
    transition: background 0.2s;
    cursor: pointer;
}
.carousel-arrow-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.carousel-arrow-btn svg {
    display: block;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-size: 28px !important;
    line-height: 44px !important;
    color: #333 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    z-index: 2;
    transition: background 0.2s;
}
.owl-carousel .owl-nav button.owl-prev { left: -22px; }
.owl-carousel .owl-nav button.owl-next { right: -22px; }
.owl-carousel .owl-nav button:focus { outline: none; }


@media (max-width: 768px) {
    #series-types-detail > div {
        flex-direction: column !important;
        align-items: center;
        gap: 24px;
    }
    #series-types-detail .section-heading,
    #series-types-detail h2 {
        text-align: center !important;
        font-size: 1.25rem !important;
    }
    #series-types-detail > div > div {
    width: 90vw !important;
    max-width: 340px;
    margin: 0 auto;
    }
}

@media (max-width: 768px) {
  .type-detail-section .slide-img-wrapper,
  .type-detail-section .slide-img-wrapper img {
    width: 90vw !important;
    height: 90vw !important;
    max-width: 98vw;
    max-height: 98vw;
    min-width: 180px;
    min-height: 180px;
  }
  .type-detail-section > div[style*="max-width: 1100px"] {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .type-detail-section img[style*="width: 380px"] {
    width: 25vw !important;
    height: 25vw !important;
    min-width: 60px;
    min-height: 60px;
    max-width: 80px;
    max-height: 80px;
  }
}
body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* 
.desktop-only { display: block; }
.mobile-only { display: none; }

@media (max-width: 767px) {
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
} */

.single-product-wrapper {
    text-align: center;
    background: #fff;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 14px #0001;
    padding: 18px 12px 16px 12px;
    transition: box-shadow .2s;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.single-product-wrapper:hover {
    box-shadow: 0 6px 24px #0002;
}

.product-img {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img img {
    width: 80%;
    max-width: 250px;
    height: 250px;
    object-fit: contain;
    border-radius: 6px;
    background: #fafafc;
    box-shadow: 0 0 6px #0001;
}

.product-description h6 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0 4px 0;
}

.product-description > div {
    color: #888;
}

@media (max-width: 768px) {
    .chain-finder-widget {
        margin-left: auto !important;
        margin-right: auto !important;
        float: none !important;
        display: block !important;
    }
    /* 你如果还觉得不够正中，可以试试加上下面这句 */
    .single_product_desc {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

#loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;    /* 或 auto，看你内容多少 */
    font-size: 2rem;
    background: #fff; /* 可选，让内容区是白底 */
}

.pagination .page-item.active .page-link {
    background-color: #39639b !important;  /* 你想要的背景色 */
    border-color: #39639b !important;      /* 你想要的边框色 */
    color: #fff !important;                /* 你想要的字体色 */
}

.loading-overlay {
    position: fixed;
    top: 85px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.loading-box {
    text-align: center;
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #ddd;
    border-top: 4px solid #1f2d44;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 14px;
}

.loading-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1f2d44;
}

body.loading {
    overflow: hidden;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.contact-label {
    min-width: 165px;
    font-weight: 700;
    color: #000;
    line-height: 1.6;
}

.contact-value {
    color: #6c757d;
    line-height: 1.6;
    flex: 1;
}

.contact-row-address .contact-value {
    line-height: 1.8;
}

.factory-video-wrap{
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.factory-video{
    width: 720px;
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    background: #000;
}
.factory-gallery-section {
    width: 100%;
    margin: 70px auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.factory-gallery-label {
    text-align: left;
    margin-bottom: 16px;
    letter-spacing: 2px;
    color: #8b8ba7;
    font-weight: 600;
    font-size: 18px;
}

.factory-gallery-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    height: 420px;
    max-width: 1100px;
}

.factory-gallery-side-img {
    opacity: 0.3;
    width: 380px;
    height: 380px;
    object-fit: contain;
    user-select: none;
}

.factory-gallery-main-img {
    width: 420px;
    height: 420px;
    object-fit: contain;
    box-shadow: 0 4px 32px 0 #ededf7;
    background: #fff;
}

.factory-gallery-thumbs {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.factory-gallery-thumbs img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border: 2px solid transparent;
    border-radius: 4px;
    background: #f5f5f5;
    cursor: pointer;
}

.factory-gallery-thumbs img.active {
    border: 2px solid #888;
}

@media (max-width: 768px) {
    .factory-gallery-img-wrap {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        height: auto;
    }

    .factory-gallery-side-img {
        width: 25vw !important;
        height: 25vw !important;
        min-width: 60px;
        min-height: 60px;
        max-width: 80px;
        max-height: 80px;
    }

    .factory-gallery-main-img {
        width: 90vw !important;
        height: 90vw !important;
        max-width: 98vw;
        max-height: 98vw;
        min-width: 180px;
        min-height: 180px;
    }

    .factory-gallery-thumbs {
        gap: 10px;
    }

    .factory-gallery-thumbs img {
        width: 48px;
        height: 48px;
    }
}