/*
 * 2027 NEW ITEMS 页
 * 搜索框、四个筛选框、面包屑、已选筛选条全部复用 2_product.css；
 * 这里只补充标题、卡片和少量页面级差异，尺寸一律沿用列表页的 rem 体系
 * （html 桌面端 font-size: clamp(76px, 6.9444vw, 100px)，0.58rem ≈ 58px）。
 */

.new_items_page {
    padding-top: 0.42rem;
    padding-bottom: 0.95rem;
}

.new_items_page .product_stage {
    width: 94%;
    max-width: 18.2rem;
    margin: 0 auto;
}

/* 标题：左侧红色面包屑下方，与列表页品牌 logo 位置一致 */
.new_items_title {
    margin: 0.3rem 0 0;
    color: var(--blue);
    font-family: Museo, sans-serif;
    font-size: 0.6rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* 卡片网格：沿用列表页 .product_grid 的宽度与列间距，卡片尺寸与 .product_card 一致 */
.new_items_page .new_items_grid {
    margin-top: 0.86rem;
    column-gap: 0.27rem;
    row-gap: 0.5rem;
}

.new_item_card {
    width: calc(25% - 0.2025rem);
    min-height: 6.58rem;
    position: relative;
    overflow: hidden;
    padding: 0.16rem 0.14rem 0.2rem;
    border-radius: 0.15rem;
    background: var(--blue);
    color: #fff;
}

.new_item_image {
    display: block;
    padding: 0.1rem;
    aspect-ratio: 1.065 / 1;
    overflow: hidden;
    border-radius: 0.1rem;
    background: #fff;
}

.new_item_image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
}

.new_item_image:hover img {
    transform: scale(1.1);
}

/* 卡片文字区：左侧文字，右侧留给收藏/视频按钮，避免按钮压住文字 */
.new_item_body {
    position: relative;
    padding: 0.29rem 0.6rem 0 0;
    font-family: "Poppins";
}

.new_item_title {
    display: block;
    margin-bottom: 0.2rem;
    color: #fff;
    font-size: 0.32rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new_item_sku {
    margin-bottom: 0.2rem;
    font-size: 0.17rem;
    line-height: 1.235;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.new_item_meta {
    font-size: 0.24rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Category 用 小标签 + 值 两行显示，避免长分类名被截断 */
.new_item_meta_category {
    display: flex;
    flex-direction: column;
    gap: 0.02rem;
    white-space: normal;
    overflow: visible;
}

.new_item_meta_label {
    font-size: 0.6em;
    line-height: 1.2;
    opacity: 0.65;
}

.new_item_meta_value {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 1em;
    line-height: 1.25;
    word-break: break-word;
}

.new_item_card .new_item_actions {
    right: 0.17rem;
    bottom: 0.2rem;
    gap: 0.14rem;
}

.new_item_card .new_item_actions .product_icon_btn {
    width: 0.5rem;
    height: 0.5rem;
}

.new_item_card .product_icon_btn[aria-label="favorite product"] i {
    width: 0.39rem;
    height: 0.43rem;
}

.new_item_card .product_icon_btn[aria-label="preview product"] i {
    width: 0.27rem;
    height: 0.3rem;
}

.new_items_page .empty-copy {
    grid-column: 1 / -1;
    margin: 0;
    font-family: "Poppins";
    font-size: 0.24rem;
}

.new_items_page .pageWrap {
    margin-top: 0.42rem;
}

@media (max-width: 1100px) {
    .new_item_card {
        width: calc(33.333% - 0.18rem);
    }
}

@media screen and (max-width: 1042px) {
    .new_items_title {
        margin-top: 20px;
        font-size: 44px;
    }

    .new_items_page .new_items_grid {
        margin-top: 62px;
        column-gap: 28px;
    }

    .new_item_card {
        width: calc(50% - 14px);
        min-height: 0;
    }

    .new_item_title {
        font-size: 18px;
    }

    .new_item_sku,
    .new_item_meta {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .new_items_page {
        padding-top: 34px;
        padding-bottom: 40px;
    }

    .new_items_title {
        margin-top: 14px;
        font-size: 24px;
    }

    .new_items_page .new_items_grid {
        width: 92%;
        margin-top: 21px;
    }

    .new_item_card {
        width: 100%;
        min-height: 0;
        margin-bottom: 14px;
        padding: 7px 7px 10px;
        border-radius: 6px;
    }

    .new_item_image {
        padding: 4px;
        border-radius: 4px;
    }

    .new_item_body {
        padding: 14px 35px 0 0;
    }

    .new_item_title {
        margin-bottom: 7px;
        font-size: 16px;
    }

    .new_item_sku,
    .new_item_meta {
        font-size: 12px;
    }

    .new_item_sku {
        margin-bottom: 7px;
    }
}
