/*
Theme Name: moban20_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;
}

/* hover */
.pagination-container ul li a:hover:not(.disabled):not(.active) {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #DE3163;
    transform: translateY(-2px);
}

/* active */
.pagination-container ul li a.active {
    background-color: #DE3163;
    border-color: #DE3163;
    color: #fff;
    cursor: default;
    box-shadow: 0 4px 10px rgba(222, 49, 99, 0.2);
}

/* disabled */
.pagination-container ul li a.disabled {
    color: #adb5bd;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #e9ecef;
    cursor: not-allowed;
}

/* ellipsis */
.pagination-container ul li a[href="javascript:;"] {
    border: none;
    background: transparent;
    cursor: default;
}


/* ================================
   响应式优化
================================ */
@media (max-width: 576px) {

    .pagination-container ul {
        gap: 5px;
    }

    .pagination-container ul li a {
        min-width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* 针对商品卡片头部进行修复 */
.product-item .product-content .head {
    display: flex;
    flex-direction: column; /* 将左右排列强制改为上下排列 */
    align-items: flex-start; /* 左对齐 */
    gap: 8px; /* 标题和下方价格之间留出一点空隙 */
}

/* 确保标题容器宽度占满，不再受挤压 */
.product-item .product-content .head .top {
    width: 100%;
}

/* 确保价格和星星区域占满整行，内部可以再做排版 */
.product-item .product-content .head .bottom {
    width: 100%;
    display: flex;
    justify-content: space-between; /* 价格在左，星星在右 */
    align-items: center;
}