/* 改进的商品展示样式 */
.jpm-products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.jpm-products-header {
    text-align: center;
    margin-bottom: 40px;
}

.jpm-products-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
}

.jpm-products-header p {
    color: #666;
    font-size: 16px;
}

.jpm-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.jpm-product-card {
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.jpm-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.jpm-product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.jpm-product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.jpm-product-card:hover img {
    transform: scale(1.1);
}

.jpm-product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.jpm-product-info {
    padding: 20px;
}

.jpm-product-category {
    color: #0073aa;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.jpm-product-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 52px;
}

.jpm-product-price {
    font-size: 28px;
    color: #e67e22;
    font-weight: 700;
    margin-bottom: 15px;
}

.jpm-product-description {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    min-height: 65px;
}

.jpm-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.jpm-product-stock {
    color: #27ae60;
    font-weight: 600;
    font-size: 14px;
}

.jpm-product-stock.out-of-stock {
    color: #e74c3c;
}

.jpm-product-location {
    color: #95a5a6;
    font-size: 13px;
}

.jpm-product-actions {
    padding: 15px 20px;
    background: #f8f9fa;
    display: flex;
    gap: 10px;
}

.jpm-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.jpm-btn-primary {
    background: #0073aa;
    color: #fff;
}

.jpm-btn-primary:hover {
    background: #005177;
}

.jpm-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.jpm-btn-secondary:hover {
    background: #bdc3c7;
}

/* 筛选器样式 */
.jpm-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.jpm-filter-btn {
    padding: 10px 20px;
    border: 2px solid #0073aa;
    background: #fff;
    color: #0073aa;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.jpm-filter-btn.active,
.jpm-filter-btn:hover {
    background: #0073aa;
    color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
    .jpm-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .jpm-products-header h1 {
        font-size: 28px;
    }
}