sticky-nav {
    padding-block: 14px;
    width: 100%;
    transition: all 0.3s;
    display: block;
}

sticky-nav .sticky-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

sticky-nav.is-fixed {
    position: fixed;
    top: var(--top);
    z-index: 10;
    background-color: rgba(var(--color-background));
}

/* 保留原有顶部导航行为 */
.sticky-nav-prevent-header-slide-down .theme-sticky-header--sticky theme-sticky-header {
    animation: none !important;
    transform: translateY(calc(-100% + var(--theme-sticky-header-top) * -1)) !important;
}

sticky-nav .scroll-container {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}

sticky-nav .sticky-nav-price {
    display: block;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

sticky-nav .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-left: auto;
    align-items: center;
}

sticky-nav .link-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

sticky-nav .add-to {
    flex-shrink: 0;
    --color-button-text: 51, 51, 51;
    --color-button-background: 233, 255, 0;
    --button-border-width: 0;
    padding-block: 10px;
}

sticky-nav .sticky-nav-logo {
    width: 150px;
}

sticky-nav .sticky-nav-item {
    position: relative;
}

sticky-nav .sticky-nav-item a.active {
    box-shadow: inset 0 0 0 var(--button-border-width, 1px) rgb(var(--color-button-secondary-border), 0.3);
    color: rgb(var(--color-button-secondary-text));
    background-color: rgb(var(--color-button-secondary-background));
}

sticky-nav .add-to-wrapper {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

sticky-nav .sticky-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
}

sticky-nav .sticky-nav-item a {
    font-size: var(--text-size-pc);
    line-height: var(--text-height-pc);
}

@media (max-width: 959px) {
    sticky-nav .sticky-nav-container {
        flex-direction: column-reverse;
        gap: 15px;
    }

    sticky-nav .scroll-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        gap: 16px;
    }

    sticky-nav .sticky-nav-price {
        font-size: 20px;
    }

    sticky-nav .scroll-container:has(.sticky-icon) {
        padding-top: 20px;
    }

    sticky-nav .scroll-container::-webkit-scrollbar {
        display: none;
    }

    sticky-nav .link-group {
        flex-wrap: nowrap;
    }

    sticky-nav .sticky-nav-item {
        flex: 0 0 auto;
    }

    sticky-nav .add-to-wrapper {
        width: 100%;
        justify-content: center;
    }

    sticky-nav .sticky-icon {
        width: 24px;
        height: 24px;
    }

    sticky-nav .sticky-nav-item a {
        font-size: var(--text-size-mobile);
        line-height: var(--text-height-mobile);
    }
}/* 手机端：价格在上，购买操作在下 */
@media (max-width: 959px) {
    sticky-nav {
        padding-block: 10px;
    }

    sticky-nav .sticky-nav-container {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    sticky-nav .scroll-container {
        width: 100%;
        gap: 12px;
    }

    sticky-nav .sticky-nav-price {
        font-size: 18px;
        line-height: 1.3;
    }

    sticky-nav .link-group:empty {
        display: none;
    }

    sticky-nav .add-to-wrapper {
        width: 100%;
        justify-content: flex-start;
        min-width: 0;
    }

    sticky-nav sticky-add {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
    }

    sticky-nav sticky-add .custom-select {
        flex: 1 0 100%;
        width: 100%;
        min-width: 0;
    }

    sticky-nav sticky-add .custom-select[data-size="0"] {
        display: none;
    }

    sticky-nav sticky-add theme-input-number {
        flex: 0 0 110px;
        width: 110px;
        height: 42px;
    }

    sticky-nav sticky-add theme-product-form {
        flex: 1 1 0;
        min-width: 0;
        height: 42px;
    }

    sticky-nav sticky-add .sticky-form,
    sticky-nav sticky-add .form__buttons {
        width: 100%;
        height: 100%;
    }

    sticky-nav sticky-add .form__buttons button {
        width: 100%;
        height: 100%;
        min-height: 42px;
        padding: 8px 12px;
        font-size: 14px;
    }
}