.nav-collection .collection {
    display: grid;
    grid-template-columns: repeat(var(--pc-colum), 1fr);
    gap: 30px;
}
.bg-color .block-product-card.product-card-style--card{
    background: rgb(var(--cd-bg-color));
}
.bg-color{
    background: rgb(var(--color-background));
}
.tab-width-collection .page-width{
  max-width: var(--section-width);
}


.nav-collection .col-title {
    margin-top: 20px;
    margin-bottom: 20px
}

.nav-collection .head-left .col-title {
    text-align: start;
}

.nav-collection .head-center .col-title {
    text-align: center;
}

.nav-collection .head-right .col-title {
    text-align: end;
}

.nav-collection .tabs-box .page-width {
    display: flex;
    /* 启用 Flexbox */
    flex-wrap: nowrap;
    /* 禁止换行 */
    overflow-x: auto;
    /* 水平方向溢出时显示滚动条 */
    scrollbar-width: none;
    /* 隐藏 Firefox 滚动条（可选） */
    -ms-overflow-style: none;
    /* 隐藏 IE/Edge 滚动条（可选） */
    white-space: nowrap;
    /* 防止文本换行（双保险） */
    /* 以下为可选样式，根据实际需求调整 */
    gap: 20px;
    /* 子元素间距 */
    align-items: center;
    /* 垂直居中对齐 */
}

/* 隐藏 Webkit 浏览器（Chrome, Safari）的滚动条（可选） */
.nav-collection .tabs-box .page-width::-webkit-scrollbar {
    display: none;
}

/* 子元素样式建议 */
.nav-collection .tabs-box .page-width>* {
    flex-shrink: 0;
    /* 防止子元素被压缩 */
    /* 如果子元素需要固定宽度 */
    /* width: 100px; */
    /* 或者使用 flex-basis 设置基准宽度 */
    /* flex-basis: 100px; */
}

.nav-collection .tabs-box {
    position: sticky;
    top: var(--sticky-top);
    z-index: 2;
    background: rgb(var(--color-background));
    border-bottom: 1px solid rgba(var(--color-text), 0.1);
    transition: top 0.1s ease-in-out;

}


.nav-collection .tabs-box .tab {
    padding: 10px 20px;
    display: inline-block;
    cursor: pointer;
}

.nav-collection .col-url {
    margin-top: 40px;
}

.nav-collection .col-url {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.nav-collection .col-url a {
    color: rgb(var(--color-button-secondary-text));
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid rgb(var(--color-button-secondary-border));
    background-color: rgb(var(--color-button-secondary-background));
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.nav-collection .col-url a svg {
    transform: rotate(270deg);
    fill: currentColor;
}
.nav-collection .col-url a span{
    padding-left: 8px;
}
.nav-collection .col-url a span {
    text-decoration: underline;
}

.nav-collection .tabs-box .tab {
    position: relative;
}

.nav-collection .tabs-box .tab.active::before {
    content: "";
    width: 100%;
    position: absolute;
    left: 0;
    height: 4px;
    background: rgb(var(--color-button-secondary-border));
    bottom: 0;
    transform: translateY(50%);
}

@media (max-width:759px) {
    .nav-collection .collection {
        grid-template-columns: repeat(var(--mb-colum), 1fr);
        gap: 20px;
    }
}