* {
    text-align: center;
    box-sizing: border-box;
    /*요소의 가로,세로 
    크기에 (padding과 border 포함)*/
}

.product-list {
    justify-self: center;
    list-style: none;
    width: 950px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
}

.product-list>li {
    width: 230px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

/* hover는 가상 선택자, 요소에 마우스 오버될 때 보이는 스타일 */

.product-list img {
    width: 100%;
    height: 200px;
    border: 1px solid #0000002F;
    display: flex;
    transition: transform .2s ease, border-color .5s ease;
}

.product-list img:hover {
    border-color: #007bff;
    transform: scale(1.3);
    cursor: pointer;
}

.product-name {
    margin: 10px 0px 5px;
    font-size: 14px;
    margin-bottom: 5px;
}

.product-price {
    font-weight: 800;
    font-size: 15px;
}

.badge {

    background: linear-gradient(#007bff, #3c41cf);
    color: #fff;
    margin-top: 5px;
    border-radius: 7px;
}

@media (max-width:540px) {
    .product-list {
        width: 100%;
        flex-shrink: 0;
    }
}

/* 반응형 : 470px 이하가 되면 -> 2개의 컬럼 ([230*2]+10)만 들어가게 디자인하고 싶다!
 @media라는 키워드를 사용*/