/**
 * Oxygen WooCommerce Category Filter Chips
 * Default styles for category filter chips
 */

/* Toolbar Wrapper - Flexbox layout for chips and sorting */
.oxy-woo-toolbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

/* Category Chips Container */
.oxy-woo-category-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* Individual Chip Styling */
.oxy-woo-category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    outline: none;
}

/* Hover State */
.oxy-woo-category-chip:hover {
    background-color: #e0e0e0;
    border-color: #d0d0d0;
    transform: translateY(-2px);
}

/* Active State */
.oxy-woo-category-chip.active {
    background-color: #9aca3c;
    color: #fff;
    border-color: #9aca3c;
}

.oxy-woo-category-chip.active:hover {
    background-color: #88b634;
    border-color: #88b634;
}

/* Focus State for Accessibility */
.oxy-woo-category-chip:focus {
    box-shadow: 0 0 0 3px rgba(154, 202, 60, 0.3);
}

/* Loading State */
.oxy-woo-toolbar-wrapper.loading .oxy-woo-category-chip {
    opacity: 0.6;
    pointer-events: none;
}

/* Ensure sorting select stays on the right */
.oxy-woo-toolbar-wrapper .woocommerce-ordering {
    margin: 0;
}

/* Result count styling - now below toolbar */
.woocommerce-result-count {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .oxy-woo-toolbar-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .oxy-woo-category-chips {
        width: 100%;
    }

    .oxy-woo-toolbar-wrapper .woocommerce-ordering {
        width: 100%;
    }

    .oxy-woo-toolbar-wrapper .woocommerce-ordering select {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .oxy-woo-category-chip {
        padding: 6px 16px;
        font-size: 13px;
    }

    .oxy-woo-category-chips {
        gap: 8px;
    }
}
