/*
Theme Name: moban22_v260519
Description: Custom WooCommerce Theme
Version: 1.0
*/

/* ================================
   WooCommerce + Bootstrap 修复
================================ */
.wc-bootstrap-input-group {
    flex-wrap: nowrap;
}

.wc-bootstrap-input-group .quantity {
    display: flex;
    flex: 0 0 80px;
}

.wc-bootstrap-input-group .quantity input[type="number"] {
    width: 100%;
}

/* 去掉 number 输入框上下箭头（统一写法） */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ================================
   通用图片处理
================================ */
.img-fluid,
.banner-img,
.logo_img,
.content-image {
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
}

/* 商品图片比例 */
.product-img img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
}

/* 防止卡片高度错位 */
.product-wrapper {
    height: 100%;
}

/* ================================
   WooCommerce 文本优化
================================ */
p.woocommerce-result-count {
    margin-bottom: 0 !important;
}

.pro-price span {
    font-weight: 500 !important;
    font-size: 14px !important;
    color: #747691 !important;
    margin: 0 !important;
}

/* ================================
   排序下拉框
================================ */
.woocommerce-ordering {
    margin: 0;
}

.woocommerce-ordering select {
    border: 1px solid #ddd;
    height: 45px;
    padding: 0 15px;
    border-radius: 0;
    background-color: #fff;
    font-size: 14px;
    color: #666;
    outline: none;
    cursor: pointer;
}

/* ================================
   分页样式
================================ */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.pagination-container ul {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.pagination-container ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    background-color: #fff;
    color: #212529;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}
