﻿/* ==============================
   Products Sub Menu Page
   主色：#e886ae
   副色：#d8759e
================================= */

.products-sub-menu {
    padding: 45px 0 55px;
}

    .products-sub-menu h1 {
        position: relative;
        margin: 0 0 26px;
        padding-left: 16px;
        color: #111111;
        font-size: 2rem;
        line-height: 42px;
        font-weight: bold;
    }

        .products-sub-menu h1:before {
            content: "";
            position: absolute;
            left: 0;
            top: 11px;
            width: 4px;
            height: 20px;
            background: #e886ae;
            border-radius: 4px;
        }

/* 分类整体 */
.products-sub-menu-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 26px;
}

/* 单个一级分类 */
.product-menu-list-item {
    width: 100%;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #f5d6e3;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 14px 34px rgba(216, 117, 158, 0.08);
    transition: all .25s ease;
}

    .product-menu-list-item:hover {
        border-color: #e886ae;
        box-shadow: 0 18px 42px rgba(216, 117, 158, 0.14);
        transform: translateY(-3px);
    }

    /* 没有子级的分类做紧凑处理 */
    .product-menu-list-item.no-child {
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
    }

        .product-menu-list-item.no-child:hover {
            transform: none;
            box-shadow: none;
        }

/* 一级分类标题 */
.product-menu-list-title {
    position: relative;
    display: block;
    width: 100%;
    padding-left: 15px;
    color: #111111;
    font-size: 1.05rem;
    line-height: 28px;
    font-weight: bold;
    text-decoration: none;
}

    .product-menu-list-title:before {
        content: "";
        position: absolute;
        left: 0;
        top: 11px;
        width: 5px;
        height: 5px;
        background: #e886ae;
        border-radius: 50%;
    }

    .product-menu-list-title:hover {
        color: #e886ae;
    }

/* 无子级一级分类 */
.product-menu-list-item.no-child .product-menu-list-title {
    min-height: 46px;
    line-height: 24px;
    padding: 11px 16px 11px 30px;
    color: #1f2d3d;
    font-size: 0.98rem;
    font-weight: 500;
    background: #fff8fb;
    border: 1px solid #f5d6e3;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(216, 117, 158, 0.06);
}

    .product-menu-list-item.no-child .product-menu-list-title:before {
        left: 16px;
        top: 21px;
    }

    .product-menu-list-item.no-child .product-menu-list-title:hover {
        color: #ffffff;
        background: linear-gradient(270deg, #d8759e 0%, #e886ae 100%);
        border-color: transparent;
        box-shadow: 0 12px 26px rgba(216, 117, 158, 0.20);
        transform: translateY(-2px);
    }

        .product-menu-list-item.no-child .product-menu-list-title:hover:before {
            background: #ffffff;
        }

/* 二级分类 */
.product-menu-list-child {
    width: 100%;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px dashed #f5d6e3;
}

    .product-menu-list-child > li {
        position: relative;
        width: 100%;
        margin-bottom: 8px;
    }

        .product-menu-list-child > li:last-child {
            margin-bottom: 0;
        }

        .product-menu-list-child > li > a {
            display: block;
            color: #44566c;
            font-size: 0.92rem;
            line-height: 23px;
            text-decoration: none;
            transition: all .25s ease;
        }

            .product-menu-list-child > li > a span {
                display: inline-block;
                margin-right: 5px;
                color: #e886ae;
                font-weight: bold;
            }

            .product-menu-list-child > li > a:hover {
                color: #e886ae;
                padding-left: 4px;
            }

        /* 有三级的二级分类标题加粗 */
        .product-menu-list-child > li.has-child > a {
            color: #1f2937;
            font-weight: 600;
        }

/* 三级分类 */
.product-menu-list-grandchild {
    margin-top: 6px;
    padding-left: 15px;
}

    .product-menu-list-grandchild > li {
        margin-bottom: 5px;
    }

        .product-menu-list-grandchild > li:last-child {
            margin-bottom: 0;
        }

        .product-menu-list-grandchild > li > a {
            display: block;
            color: #667085;
            font-size: 0.84rem;
            line-height: 21px;
            text-decoration: none;
            transition: all .25s ease;
        }

            .product-menu-list-grandchild > li > a span {
                display: inline-block;
                margin-right: 5px;
                color: #b88fa0;
            }

            .product-menu-list-grandchild > li > a:hover {
                color: #e886ae;
                padding-left: 4px;
            }

                .product-menu-list-grandchild > li > a:hover span {
                    color: #e886ae;
                }


/* ==============================
   Recommended Manufacturers
================================= */

.products-list-manufacturers {
    margin-bottom: 60px;
    padding: 30px 32px 34px;
    background: #ffffff;
    border: 1px solid #f5d6e3;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(216, 117, 158, 0.08);
}

    .products-list-manufacturers > b {
        position: relative;
        display: block;
        margin-bottom: 22px;
        padding-left: 16px;
        color: #111111;
        font-size: 1.35rem;
        line-height: 34px;
        font-weight: bold;
    }

        .products-list-manufacturers > b:before {
            content: "";
            position: absolute;
            left: 0;
            top: 9px;
            width: 4px;
            height: 17px;
            background: #e886ae;
            border-radius: 4px;
        }

.products-list-manufacturers-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

    .products-list-manufacturers-list a {
        height: 90px;
        padding: 18px;
        background: #fff8fb;
        border: 1px solid #f5d6e3;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all .25s ease;
    }

        .products-list-manufacturers-list a:hover {
            background: #ffffff;
            border-color: #e886ae;
            box-shadow: 0 12px 28px rgba(216, 117, 158, 0.14);
            transform: translateY(-3px);
        }

        .products-list-manufacturers-list a img {
            max-width: 100%;
            max-height: 52px;
            width: auto;
            height: auto;
            object-fit: contain;
        }


/* ==============================
   Mobile
================================= */

@media screen and (max-width: 768px) {
    .products-sub-menu {
        width: 94%;
        padding: 30px 0 38px;
    }

        .products-sub-menu h1 {
            margin-bottom: 18px;
            font-size: 1.45rem;
            line-height: 34px;
        }

            .products-sub-menu h1:before {
                top: 8px;
                height: 18px;
            }

    .products-sub-menu-list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-menu-list-item {
        padding: 16px 15px;
        border-radius: 12px;
    }

    .product-menu-list-title {
        font-size: 1rem;
        line-height: 26px;
    }

    .product-menu-list-item.no-child .product-menu-list-title {
        min-height: 42px;
        padding: 9px 14px 9px 28px;
        font-size: 0.9rem;
    }

        .product-menu-list-item.no-child .product-menu-list-title:before {
            left: 14px;
            top: 18px;
        }

    .product-menu-list-child {
        margin-top: 10px;
        padding-top: 10px;
    }

        .product-menu-list-child > li > a {
            font-size: 0.86rem;
            line-height: 22px;
        }

    .product-menu-list-grandchild {
        padding-left: 12px;
    }

        .product-menu-list-grandchild > li > a {
            font-size: 0.8rem;
            line-height: 20px;
        }

    .products-list-manufacturers {
        width: 94%;
        margin-bottom: 42px;
        padding: 22px 16px 24px;
        border-radius: 12px;
    }

        .products-list-manufacturers > b {
            margin-bottom: 16px;
            font-size: 1.15rem;
            line-height: 30px;
        }

    .products-list-manufacturers-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

        .products-list-manufacturers-list a {
            height: 78px;
            padding: 14px;
            border-radius: 10px;
        }

            .products-list-manufacturers-list a img {
                max-height: 44px;
            }
}
