.peptide-filter-wrapper-4c33a399 {
    margin-bottom: 40px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.peptide-filter-wrapper-4c33a399::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.peptide-filter-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .peptide-filter-wrapper-4c33a399 {
        padding: 0 16px; /* Add padding to edges on mobile */
        /* Force container to allow inner overflow without breaking */
        display: block !important;
    }
    .peptide-filter-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        padding-bottom: 4px; /* Space for box shadow on active */
        margin: 0 !important;
        width: max-content !important; /* Ensure the list can grow wider than the container */
    }
    .peptide-filter-list li {
        flex: 0 0 auto !important;
        display: block !important;
    }
    .peptide-filter-list li:last-child {
        padding-right: 16px; /* Right padding for last item scroll */
    }
}

.peptide-filter-btn {
    display: block;
    padding: 10px 24px;
    border: 1px solid #E5E5E5;
    border-radius: 40px;
    background: transparent;
    color: #555;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.peptide-filter-btn:hover {
    color: #111;
    border-color: #ccc;
    background: #fdfdfd;
}

.peptide-filter-btn.active {
    color: #111;
    border-color: #111;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.peptide-filter-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.peptide-filter-btn.active::after {
    width: 40%;
    bottom: 8px;
}

/* Loading state for grid */
.woocommerce .products.loading-ajax {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}