/* 分类图标 / 商品图标 附加样式 */
.main .cate .cate-box {
    display: inline-flex;
    align-items: center;
    padding: 0 18px 0 14px;
    height: 67px;
}

.main .cate .cate-box .cate-icon {
    display: block;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    margin-right: 10px;
    border-radius: 9px;
    object-fit: contain;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .10);
}

.main .cate .cate-box .cate-txt {
    opacity: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 0;
    min-width: 0;
    color: inherit;
    font-size: inherit;
}

.main .cate .cate-box .cate-txt p {
    margin-top: 0;
    line-height: 18px;
}

.main .cate .cate-box .cate-txt .cate-num {
    opacity: .76;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

.main .cate .cate-box-select .cate-icon {
    background: rgba(255, 255, 255, .92);
}

.main .cate .cate-box-select .cate-txt .cate-num {
    color: #fff;
    opacity: .92;
}

.main .goods .picture.picture-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.main .goods .picture.picture-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .main .cate .cate-box {
        height: auto;
        min-height: 56px;
        padding: 8px 12px 8px 10px;
    }

    .main .cate .cate-box .cate-icon {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
        margin-right: 8px;
    }

    .main .goods .picture.picture-icon img {
        width: 54px;
        height: 54px;
    }
}

/* 覆盖主题里 .cate-box-select img 的绝对定位，避免选中时图标被挤到右下角 */
.main .cate .cate-box img.cate-icon,
.main .cate .cate-box-select img.cate-icon {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    top: auto !important;
    margin-right: 10px;
}

/* 详情页：商品没有自有主图时，用分类品牌图标兜底 */
.main-box .goods-img.goods-img-icon {
    padding-bottom: 62%;
    background: #fff;
    border: 1px solid #eef2fb;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(73, 105, 230, .12);
    box-sizing: border-box;
}

.main-box .goods-img.goods-img-icon img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    max-width: 130px;
    height: auto;
    margin: 0;
    border-radius: 14px;
    box-shadow: none;
    object-fit: contain;
}

@media (max-width: 768px) {
    .main-box .goods-img.goods-img-icon img {
        width: 32%;
        max-width: 110px;
    }
}
