.product-list{
    margin-bottom: 1rem;
    /* background: var(--sg-bglight); */
    border-radius: 0.5rem;
    padding-bottom: 0.5rem;
}
.product-list .product-list-body{
    margin: 0.5rem;
}
.product-list .product-list-body > ul{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    justify-content: center;
    gap: 0.8rem;
}
.product-list .product-list-body > ul li{
    background: var(--sg-bglight);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.product-list li {
    position: relative;
    overflow: hidden;
    border-radius: 0.2rem;
}
.product-list li .head{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}
.product-list li .head .text{
    width: max-content;
    max-width: 90%;
    padding: 0rem 0.5rem;
    height: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    color: var(--sg-colorlight);
    border-radius: 0rem 0rem 0.8rem 0rem;
    background-color: var(--sg-color-brand);
}
.product-list li .head .subtitle{
    position: absolute;
}
.product-list li .product-img{
    position: relative;
}
.product-list li .product-img .load-product{
    inset: 0;
    position: absolute;
    content: '';
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sg-bglight);
    opacity: 1;
    transition: all ease-in-out 0.3s;
}
.product-list li .product-img .load-product-active{
    opacity: 0;
}
.product-list li .product-img .load-product::after{
    position: absolute;
    content: '';
    background: var(--sg-color-spece);
    z-index: 10;
    width: 50px;
    --b: 8px;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 1px;
    background: conic-gradient(#0000 10%,#f03355) content-box;
    -webkit-mask:
      repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg),
      radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
    -webkit-mask-composite: destination-in;
            mask-composite: intersect;
    animation:l4 1s infinite steps(10);
}
@keyframes l4 {to{transform: rotate(1turn)}}


.product-list li .product-img .promo-per{
    position: absolute;
    z-index: 2;
    right: 0.5rem;
    bottom: 0.5rem;
    padding: 0.3rem;
    border-radius: 0.3rem;
    overflow: hidden;
    font-size: 0.8rem;
    color: var(--sg-colorlight);
    background: var(--sg-color-text);
}
.product-list li .con{
    width: calc(100% - 1rem);
    /* padding: 0.5rem; */
    color: var(--sg-color-text);
}
.product-list li .con h2{
    font-size: 1rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}
.product-list li .con .product-price p{
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 2.5;
    /* color: var(--sg-color-brand); */
}
.product-list li .con .product-price p span{
    color: var(--sg-color-spece);
}
.product-list li .con .tending-product-star i{
    font-size: 0.8rem;
    color: var(--sg-color-brand);
}
.product-list li .foot-box button {
    background: none;
}
.product-list li .foot-box button.cart-active{
    box-sizing: border-box;
    border: 1px solid var(--sg-border-00);
    opacity: 0.5;
    border-radius: 0.3rem;
    cursor: not-allowed;
}
.product-list li .foot-box button.cart-active .icon svg:first-child,
.product-list li .foot-box button.love-active svg:first-child{
    display: none;
}
.product-list li .foot-box button.cart-active .icon svg:last-child,
.product-list li .foot-box button.love-active svg:last-child{
    display: block;
}
.product-list li .foot-box button.cart-active .text{
    margin-right: 0.6rem;
}
.product-list li .foot-box button:hover *{
    cursor: pointer;
    color: var(--sg-color-brand);
    stroke: var(--sg-color-brand);
}
.product-list li .foot-box button.cart-active svg path{
    color: var(--sg-color-text);
    stroke: var(--sg-color-text);
    fill: var(--sg-color-text);
}
.product-list li .foot-box button.cart-active:hover *{
    color: var(--sg-color-text);
    stroke: var(--sg-color-text) !important;
    fill: var(--sg-color-text) !important;
    cursor: not-allowed;
}
.product-list li .foot-box button.love-active path{
    fill: var(--sg-maincolor-orangdark);
    stroke: var(--sg-maincolor-orangdark) !important;
}
.product-list li .foot-box button.love-active:hover{
    stroke: var(--sg-maincolor-orangdark) !important;
}
.product-list .product-list-body > ul li:has(.love-active){

}

.product-list li .foot-box .icon{
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    overflow-y: hidden;
}
.product-list li .foot-box .icon svg *{
    stroke: var(--sg-color-text);
}
.product-list li .foot{
    margin: 0 0.2rem;
    padding: 0.5rem 0rem;
}
.product-list li .foot-box .icon svg:last-child{
    display: none;
}
.product-list li .foot-box button:hover .icon *{
    stroke: var(--sg-color-brand);
}
.product-list li .foot-box button .text{
    margin-left: 0.5rem;
    font-size: 0.8rem;
}
.product-list .product-list-foot{
    height: 60px;
    margin-top: 2rem;
}
.product-list .product-list-foot a{
    position: relative;
    border-radius: 0.5rem;
    padding: 0rem 0.8rem;
    height: 2.5rem;
    width: 250px;
    max-width: 90%;
    font-size: 1rem;
    color: var(--sg-colorlight);
    background: var(--sg-color-brand);
    outline: 4px solid var(--sg-outline-colorSpace);
    transition: all ease-in-out 0.3s;
}
.product-list .product-list-foot a:active{
    scale: 99%;
}
.product-list .product-list-foot a:hover{
    opacity: 0.8;
}
@media only screen and (max-width: 800px) {
    .product-list .product-list-body > ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}
@media only screen and (max-width: 650px){
    .product-list .product-list-body > ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 0.5rem;
    }
    .product-list li{
        border-radius: 0.5rem;
    }
    .product-list li .head{
        display: none;
    }
    .product-list li .product-img{
        overflow: hidden;
    }
    .product-list li .con h2{
        font-weight: 400;
        font-size: 0.9rem;
    }
    .product-list li .con .product-price p{
        font-size: 0.9rem;
        color: var(--sg-color-brand);
    }
    .product-list li .con .product-star{
        display: none;
    }
    .product-list li .foot{
        display: none;
    }
    .product-list li .product-img .promo-per{
        bottom: auto;
        top: 0.5rem;
        background: var(--sg-color-brand);
    }
}
