/* 品牌列表样式 */
ul.product-brands {
    list-style: none;
    margin: 0 -15px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

ul.product-brands li.product-brand {
    padding: 0 15px;
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

@media (min-width: 576px) {
    ul.product-brands.columns-2 li.product-brand {
        width: 50%;
    }
    
    ul.product-brands.columns-3 li.product-brand {
        width: 33.333%;
    }
    
    ul.product-brands.columns-4 li.product-brand {
        width: 25%;
    }
    
    ul.product-brands.columns-5 li.product-brand {
        width: 20%;
    }
    
    ul.product-brands.columns-6 li.product-brand {
        width: 16.666%;
    }
}

/* 品牌链接样式 */
.product-brand .brand-link {
    display: block;
    text-align: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
    transition: all 0.3s ease;
}

.product-brand .brand-link:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* 品牌缩略图样式 */
.product-brand .brand-thumbnail {
    display: block;
    margin: 0 auto 15px;
    width: 100%;
    height: 150px;
    line-height: 150px;
    text-align: center;
    overflow: hidden;
    background: #f9f9f9;
    border-radius: 4px;
}

.product-brand .brand-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    vertical-align: middle;
    object-fit: contain;
}

.product-brand .brand-thumbnail.no-image {
    font-size: 40px;
    color: #ddd;
}

/* 品牌标题样式 */
.product-brand h2.woocommerce-loop-category__title {
    font-size: 16px;
    margin: 0 0 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

/* 产品计数样式 */
.product-brand .product-count {
    display: inline-block;
    font-size: 12px;
    color: #888;
}

/* 管理界面文档样式 */
.wc-brands-shortcode-docs {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.wc-brands-shortcode-docs h2,
.wc-brands-shortcode-docs h3 {
    margin-top: 0;
}

.wc-brands-shortcode-docs pre {
    background: #f9f9f9;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow-x: auto;
}

.wc-brands-shortcode-docs ul {
    list-style: disc;
    padding-left: 20px;
}

.wc-brands-shortcode-docs code {
    background: #f9f9f9;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}    