/* 响应式网格调整 */
@media (max-width: 640px) {
    #products-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    #products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 分页样式 */
.woocommerce-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.woocommerce-pagination ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li {
    margin: 0 0.25rem;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.woocommerce-pagination ul li a:hover {
    background-color: #22634e;
    color: white;
    border-color: #22634e;
}

.woocommerce-pagination ul li span.current {
    background-color: #298567;
    color: white;
    border-color: #298567;
}

/* 确保WooCommerce原生分页也在右侧 */
.pagination-container .woocommerce-pagination {
    justify-content: flex-end;
}