/*
Theme Name:   xstore-child
Theme URI:    https://xstore.8theme.com
Description:  XStore is a multi-purpose theme that offers the ultimate WordPress and WooCommerce synergy, providing a comprehensive, all-in-one solution.
Author:       8theme
Author URI:   https://www.8theme.com
Template:     xstore
Version:      1.0
Text Domain:  xstore-child
Tags: e-commerce, two-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-menu, custom-logo, featured-images, full-width-template, threaded-comments, accessibility-ready, rtl-language-support, footer-widgets, sticky-post, theme-options, translation-ready, ecommerce, woocommerce, shop, elementor, business, corporate, blog, news, light, dark
*/

button {
    border: 0;
}
.wpc-filters-main-wrap input{
    height: 28px;
 
}


/*分页优化*/

.wp-pagenavi {
    text-align: center;
    padding: 15px 20px;
    margin: 20px auto;
}
.wp-pagenavi a, .wp-pagenavi span {
    padding: 6px 12px!important;
}

.wp-pagenavi span.current {
    color: #fff!important;
    border-color: #0075c1!important;
    background: #0075c1!important;
}
/* 主容器样式 */


@media screen and (min-width: 700px) {
    
.wpc-horizontal-layout.wpc-horizontal-cols-5 .wpc-filters-section:not(.wpc-filter-layout-submit-button) {
    max-width: 12%!important;
    width: 12%!important;
    margin-right: 1.25%!important;
}

}

.taxonomy-filters {
    margin-top: 20px;
    margin-bottom: 40px;
}

/* 分类项容器 */
.taxonomy-level {
    margin-bottom: 15px;
}

/* 分类标题样式 */
.taxonomy-level h3 {
    font-size: 13px;
    margin-bottom: 10px;
    color: #333;
    font-weight: bold;
}

/* 分类项列表 */
.taxonomy-level ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* 设置分类项之间的间距 */
}

/* 每个分类项 */
.taxonomy-level li {
    flex: 1 1 calc(8% - 10px); /* 每行最多三个分类项 */
    max-width: fit-content;/* 设置每个分类项的最小宽度 */
    margin: 5px 0;
}

/* 分类项的链接样式 */
.taxonomy-level a {
    text-decoration: none;
    color: #b5b5b5;
    font-size: 12px;
    display: block;
    padding: 8px 12px;
    border: 1px solid #a1a1a1;
    border-radius: 5px;
    background-color: #ffffff;
    text-align: center; /* 内容居中对齐 */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* 分类项悬停样式 */
.taxonomy-level a:hover {
    background-color: #0073aa;
    color: #fff;
    border-color: #005f8c;
}

/* 当前选中分类项的高亮效果 */
.taxonomy-level a.active {
    background-color: #0073aa;
    color: #fff;
    border-color: #005f8c;
    font-weight: bold;
}

/* 响应式设计，适应不同屏幕 */
@media (max-width: 768px) {
    .taxonomy-level ul {
        flex-direction: column; /* 屏幕小于768px时，分类项垂直排列 */
    }

    .taxonomy-level li {
        flex: 1 1 100%; /* 分类项占据100%宽度 */
    }


}


/*导航美化*/

.header-cart {
    padding: 10px 14px;
    border-radius: 6px;
    background: #e0ecf2;
}
