﻿/*
 * 产品列表业务样式
 *
 * 公共筛选区、结果头部、搜索框和分页统一由
 * content-filter-list.css 提供，本文件不再覆盖 content-* 公共组件。
 */

.product-page {
    background: #f7f7f7;
    color: #202124;
}

.malls-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.malls-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    border-radius: 5px;
    background: #fff;
    transition: transform .22s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}

.malls-product-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .09);
}

.malls-product-card__cover {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f3f3f3;
}

.malls-product-card__cover img {
    width: 250px;
    height: 150px;
    max-width: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.malls-product-card:hover .malls-product-card__cover img {
    transform: scale(1.04);
}

.malls-product-card__body {
    padding: 22px;
}

.malls-product-card h3 {
    min-height: 52px;
    margin: 0;
    color: #222;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 900;
}

.malls-product-card h3 a:hover {
    color: #d71920;
}

.malls-product-card p {
    height: 68px;
    margin: 10px 0 0;
    overflow: hidden;
    color: #73787c;
    font-size: 13px;
    line-height: 1.75;
}

.malls-product-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #ededed;
}

.malls-product-card__custom {
    color: #777;
    font-size: 12px;
    font-weight: 800;
}

.malls-product-card__custom:hover {
    color: #d71920;
}

.product-empty {
    padding: 70px 24px;
    text-align: center;
}

.product-empty h3 {
    margin: 0;
    color: #222;
    font-size: 24px;
    font-weight: 900;
}

.product-empty p {
    margin: 10px 0 24px;
    color: #777;
}

.product-empty > div {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.product-service {
    margin-top: 28px;
    padding: 34px 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    border-left: 5px solid #d71920;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .055);
}

.product-service h2 {
    max-width: 760px;
    margin: 0;
    font-size: 24px;
    line-height: 1.45;
    font-weight: 900;
}

.product-service p {
    max-width: 820px;
    margin: 10px 0 0;
    color: #777;
    font-size: 13px;
    line-height: 1.8;
}

.product-service__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

@media (max-width: 1100px) {
    .malls-product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 850px) {
    .malls-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-service {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .malls-product-grid {
        grid-template-columns: 1fr;
    }

    .product-empty > div,
    .product-service__actions {
        width: 100%;
        flex-direction: column;
    }

    .product-empty .button,
    .product-service__actions .button {
        width: 100%;
    }
}
