/* ul4 */
.ul4Frame{
    background-color: var(--background-color);
    padding: 5rem 0;
    margin-top: var(--space-3x-large);
}
.ul4>h2{
    font-size: var(--heading2);
    font-weight: bold;
    text-align: center;
    margin-bottom: var(--space-large);
}
.ul4 ul{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 3rem 1rem;
} 

.ul4 img{
    /* border: 1px solid #000; */
    width: 100%;
    aspect-ratio: 1/1;
    /* 가로세로 비율 */
    object-fit: cover;
}


/* 텍스트 */
.ul4 .bestTxt{
    text-align: center;
    margin-top: 1rem;
}
.ul4 .detail{
    color: var(--number-color);
}
.ul4 h4{
    margin-bottom: 1rem;
}
.ul4 .saleprice{
    text-decoration: line-through;
    font-family: var(--body);
}
.ul4 h3{
    color: #E13A3D;
    font-size: var(--heading3);
    font-weight: bold;
}


.ul4 .bestTxt{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
/* 버튼 스타일 */
.ul4 .btn_best{
    border: 1px solid var(--main-color);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.4rem 1.5rem;
    text-align: center;
    margin-top: 1rem;
}
.ul4 .btn_best svg{
    height: 0.8rem;
}
.ul4 .btn_best{
    display: inline-flex;
    align-items: center;
    gap: var(--space-small);
    padding-right: 0.8rem;
    white-space: nowrap;
}
.ul4 .btn_best:hover{
    background-color: var(--main-color);
    color: #ffffff;
}
.btn_best:hover svg path {
    stroke: #fff;
}

/* 하트토글 */
.ul4 figure{
    position: relative;
}
.ul4 .heart{
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
}
.ul4 .heart.on{
    fill: var(--price-color);
}

@media (max-width:768px){
    .ul4 ul{
        display: grid;
        grid-template-columns: repeat(2,1fr);
    }
    .ul4.commonFrame{
        padding-top: 0;
    }
    

}

