﻿/* ============================================================ */
/* Page_ProductList_Body 区：主内容容器（前缀 Page_ProductList_Body_） */
/* ============================================================ */
.Page_ProductList_Body_main {
    padding-top: calc(var(--topbar-height) + var(--top-safe) + 16px);
    padding-bottom: calc(var(--tabbar-height) + var(--bottom-safe) + 16px);
    padding-left: 16px;
    padding-right: 16px;
}

/* ========== Body 区：搜索栏 ========== */
.Page_ProductList_Body_search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border-radius: 16px;
    padding: 11px 14px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.Page_ProductList_Body_searchIcon {
    font-size: 16px;
    color: var(--text-sub);
}

.Page_ProductList_Body_searchInput {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: var(--text);
    font-family: inherit;
}

    .Page_ProductList_Body_searchInput::placeholder {
        color: var(--text-sub);
    }

/* ========== Body 区：分类筛选 ========== */
.Page_ProductList_Body_filter {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 16px;
}

    .Page_ProductList_Body_filter::-webkit-scrollbar {
        display: none;
    }

.Page_ProductList_Body_chip {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-sub);
    background: var(--card);
    border: 1px solid var(--line);
    padding: 7px 14px;
    border-radius: 18px;
    cursor: pointer;
}

    .Page_ProductList_Body_chip.active {
        background: var(--primary);
        border-color: var(--primary);
        color: #fff;
    }

/* ========== Body 区：排序栏 ========== */
.Page_ProductList_Body_sort {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    font-size: 12px;
    color: var(--text-sub);
}

    .Page_ProductList_Body_sort .active {
        color: var(--primary);
        font-weight: 600;
    }

/* ========== Body 区：商品双列网格 ========== */
.Page_ProductList_Body_prodGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.Page_ProductList_Body_prodCard {
    background: var(--card);
    border-radius: 16px;
    padding: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.Page_ProductList_Body_prodCover {
    height: 96px;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin-bottom: 10px;
}

.Page_ProductList_Body_prodTitle {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.Page_ProductList_Body_prodTag {
    display: inline-block;
    font-size: 9px;
    color: var(--gold);
    background: #fef3c7;
    padding: 2px 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.Page_ProductList_Body_prodFoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.Page_ProductList_Body_prodPrice {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.Page_ProductList_Body_prodSales {
    font-size: 10px;
    color: var(--text-sub);
}
