.shop-categorical-grids {
    max-width: 1500px;
    margin: 0 auto;
}

.shop-categorical-grid {
    display: flex;
    flex-wrap: wrap;
    padding: 0 30px;
}

.shop-categorical-grids-card {
    overflow: hidden;
    text-align: center;
    /* flex: 1 1 calc(20% - 20px); */
    cursor: pointer;
    padding: 0 10px;
    margin-bottom: 30px;
}

.shop-categorical-grids-card img {
    /* width: 100%; */
    /* height: auto; */
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.shop-categorical-grids-title {
    font-weight: 700;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 14px;
    font-family: "Libre Baskerville";
}

.shop-categorical-grids-price {
    font-size: 14px;
    /* color: #000000; */
    color:  #e53d3d;
    cursor: pointer;
    font-weight: 400;
    font-family: Poppins;
    margin-top: 5px;
}

.shop-categorical-grids-view-all {
    display: block;
    position: relative;
    text-align: center;
    padding: 11px 20px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-family: Poppins;
    /* margin-top: 30px; */
    /* border-radius: 5px; */
    border: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.shop-categorical-grids-button {
    display: flex;
    justify-content: center;
}

.shop-categorical-grids-neiron {
    padding: 10px 0;
}

.shop-categorical-grids-link {
    text-decoration: none;
}

.shop-categorical-grids-wave-button {
    position: relative;
    padding: 10px 20px;
    border: none;
    background-color: #dd8c32;
    color: white;
    font-size: 13px;
    cursor: pointer;
    overflow: hidden;
    outline: none;
}

.shop-categorical-grids-wave-button:hover {
    background-color: #000;
}

.shop-categorical-grids-wave-button::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transition: transform 0.5s ease-out;
    transform: skewX(-45deg);
    opacity: 0;
}

.shop-categorical-grids-wave-button:hover::before {
    right: 100%;
    transition: right 0.5s ease-out;
    opacity: 1;
}

.shop-categorical-grids-mian {
    position: relative;
}

.shop-categorical-grids-lookb {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 15px;
    padding: 8px 5px;
    background-color: #dd8c32;
    color: #fff;
    cursor: pointer;
    text-align: center;
    border: none;
    overflow: hidden;
    font-size: 14px;
    font-family: Poppins;
    transform: translateY(5px);
    transition: opacity .25s ease, transform .25s ease-out, background-color .4s ease;
    width: calc(100% - 20px);
    min-height: 40px;
    z-index: 2;
    opacity: 0;
}

.shop-categorical-grids-card:hover .shop-categorical-grids-lookb {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease-out;
}

.shop-categorical-grids-lookb:hover {
    background-color: #000;
}

.shop-categorical-grids-top {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    margin-top: 50px;
}

.shop-categorical-grids-top-ttitle {

    color: #000;
    font-weight: 700;
    position: relative;
    font-family: "Libre Baskerville", serif;
    z-index: 2;
    font-size: 24px;
}

.shop-categorical-grids-top-hover {
    position: relative;
    padding: 0 20px;
    z-index: 1;

}

.shop-categorical-grids-top-hover:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 20px;
    left: 0;
    top: 18px;
    background: #fceedc;
    z-index: -1;
}


/* hover */

.product-images {
    display: flex;
    position: relative;
    align-items: stretch;
    /* --ratio-percent: 100%; */
    --ratio-percent: 75%;
    /* 这个值可以保留，供其他用途 */
    --image-fill-type: cover;
    --badge-border-radius: 4px;
    aspect-ratio: 3 / 4;
    /* 设置宽高比为3/4 */
}

.product-images::before {
    content: "";
    width: 0;
    height: 0;
    padding-bottom: 100%;
    /* 保持比例为3/4，padding-bottom应设置为100% */
}

.hover_important_productitem img {
    height: 100%;
    object-fit: var(--image-fill-type, cover);
    object-position: var(--image-object-position, center center);
    width: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: opacity var(--duration-long) ease;
    transition-property: opacity, transform;
    aspect-ratio: 3 / 4;
    /* 设置图片宽高比为3/4 */
}

.hover_important_productitem {
    position: absolute;
    bottom: 0;
    top: 0;
    right: 0;
    left: 0;
    overflow: hidden;
    z-index: 2;
}

.shop-categorical-grid .hover_important_productitem>img+img {
    opacity: 0;}

.shop-categorical-grids-mian:hover .hover_important_productitem>img+img {
    opacity: 1;
}

/* 210 .shop-categorical-grid:hover .hover_important_productitem>img:first-child:not(:only-child) {
   opacity: 0;
 } */
.view-all-count {
    display: none;
}

@media (max-width:768px) {
    .shop-categorical-grid {
        display: flex;
        flex-wrap: nowrap;
        padding: 0px 15px;
        overflow-x: auto;
    }

    .shop-categorical-grids-card {
        overflow: hidden;
        text-align: center;
        cursor: pointer;
        padding: 0 5px;
        margin-bottom: 0;
        width: 50%;
    }

    .view-all-count {
        width: 45%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .view-all-count-border {
        border: 1px solid #e8e8e1;
        padding: 10px;
        width: auto;
        text-align: center;
        color: #000;
        font-size: 12px;
        font-family: poppins, sans-serif;
    }

    .shop-categorical-grids-button {
        display: none !important;
    }

    .shop-categorical-grids-title {
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        font-size: 11px;
        font-family: "Libre Baskerville";
    }

    .shop-categorical-grids-neiron {
        padding: 5px 0;
    }

    .shop-categorical-grids-price {
        font-size: 12px;
        /* color: #000000; */
            color: #e53d3d;
        cursor: pointer;
        font-weight: 400;
        font-family: Poppins;
        margin-top: 5px;
    }
}

@media (max-width:767px) {
    .shop-categorical-grids-top {
        display: flex;
        justify-content: left;
        margin-bottom: 30px;
        margin-top: 50px;
        padding-left: 20px;
        padding-right: 20px;
        width: 100vw;
    }
    .shop-categorical-grids-top.left{
        justify-content: flex-start;
    }
    .shop-categorical-grids-top.center{
        justify-content: center;
    }

    .shop-categorical-grids-top-hover:before {
        content: "";
        position: absolute;
        width: 100%;
        height: 10px;
        left: 0;
        top: 18px;
        background: #fceedc;
        z-index: -1;
    }

    .shop-categorical-grids-top-hover {
        position: relative;
        padding: 0;
        z-index: 1;
        font-size: 22px;
        font-weight: 700;
    }
}

.shop-categorical-grids .product_view_quid {
    bottom: 15px !important;
}

.shop-categorical-grids-card:hover .product_view_quid {
    opacity: 1;
}

.quick-add__opener {
    border-radius: 16px;
    width: 32px;
    /* height: 32px; */
    color: rgb(var(--color-text));
    background-color: rgb(var(--color-page-background));
    border: 1px solid rgba(var(--color-text), 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Poppins', serif;
    font-weight: 400;
}