@charset "utf-8";
/**
 * @author https://www.cosmosfarm.com
 */

 /* list */
.prd-board{
    
}
.prd-board .prd-wrap{
    list-style: none;
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 60px 16px;
    padding: 0 !important;
}
.prd-board .prd-wrap .prd-item{}
.prd-board .prd-wrap .prd-item .img-box{
    margin-bottom: 20px;
    cursor: pointer;
}
.prd-board .prd-wrap .prd-item .img-box > div{
    position: relative;
    aspect-ratio: 100 / 100;
    border-radius: 30px;
    overflow: hidden;
}
.prd-board .prd-wrap .prd-item .img-box img{
    background: #F6F6F6;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.prd-board .prd-wrap .prd-item .img-box .hover-img{
    width: 100%;
    opacity: 0;
    position: absolute; left: 0; top: 0;
    transition: .3s ease-out;
}
.prd-board .prd-wrap .prd-item .img-box:hover .hover-img{
    opacity: 1;
}

.prd-board .prd-wrap .prd-item .txt-box{
    text-align: center;
}
.prd-board .prd-wrap .prd-category{
    display: inline-block; 
    padding: 7px 30px; 
    font-size: clamp(15px, 1.5vw, 16px); font-weight: 400; 
    color: #fff; text-align: center;
    background: #D9252D;
    border-radius: 24px;
    margin-bottom: 20px;
}
.prd-board .prd-wrap .prd-title{
    font-family: 'GMarketSans', Pretendard, sans-serif !important;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    color: #222;
    line-height: 1.2;
}


/* popup */
.prd-pop{
    padding: 40px 0 14px;
    background: #D9252D;
    border-radius: 20px;
    width: 90%; max-width: 1190px;
    position: fixed; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: none;
}
.prd-pop .prd-pop-wrap{
    background: #fff;
    padding: 35px 40px;
    display: flex; gap: 30px;
    align-items: center;
}
.prd-pop .prd-pop-wrap .prd-pop-swiper{
    max-width: 500px; width: 46%;
    overflow: hidden;
    position: relative;
}
.prd-pop .prd-pop-wrap .prd-pop-swiper .swiper-slide{
    aspect-ratio: 100 / 100;
    background: #F7F8F9;
    border-radius: 30px;
}
.prd-pop .prd-pop-wrap .prd-pop-swiper .swiper-slide img{
    width: 100%;
}
.prd-pop .prd-pop-wrap .info-box{
    flex: 1;
}
.prd-pop .prd-pop-wrap .info-box .info-top{
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px dashed #B8B8B8;
}
.prd-pop .prd-pop-wrap .info-box .info-top .prd-title{
    font-size: clamp(16px, 3vw, 34px);
    margin-bottom: 10px;
    line-height: 1.1;
}
.prd-pop .prd-pop-wrap .info-box .info-top div p{
    font-family: 'GMarketSans', Pretendard, sans-serif !important;
    padding: 0;
    font-size: clamp(15px, 1.6vw, 18px); font-weight: 500;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom{
    max-height: 250px; overflow-y: auto;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul{
    list-style: none; padding: 0 !important;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul li{
    display: flex; gap:10px;
    margin-bottom: 15px;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul li:last-child{
    margin-bottom: 0;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul li > span{
    display: inline-block; padding: 1px 20px;
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 400;
    border:1px solid #D9252D;
    border-radius: 50px;
    height: 29px; width: max-content; min-width: 102px;
    text-align: justify;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul li > span::after{
    content: ""; display: inline-block; width: 100%;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul .row-origin > span::after{
    display: none;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul li p{
    font-size: clamp(15px, 1.6vw, 16px); font-weight: 400;
    flex: 1;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul li p span{
    padding: 0; border:none; font-size: clamp(15px, 1.6vw, 16px);
    height: auto;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul .row-flex p{
    display: flex; gap: 10px;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul .row-flex p span{
    padding-right: 10px; position: relative; min-width: 46px;
}
.prd-pop .prd-pop-wrap .info-box .info-bottom ul .row-flex p span:nth-of-type(2)::before{
    content: ""; display: block; width: 1px; height: 17px;
    background: #B9B9B9; position: absolute; left: -10px; top: 4px;
}

.prd-pop .pop-close{
    position: absolute; right: 32px; top: 12px;
    width: 20px; height: 20px;
    cursor: pointer;
}
.prd-pop .pop-close::before,
.prd-pop .pop-close::after{
    content: ""; display: block; width: 100%; height: 2px;
    background: #fff; border-radius: 50px;
    position: absolute; left: 50%; top: 50%;
}
.prd-pop .pop-close::before{
    transform: translate(-50%, -50%) rotate(45deg);
}
.prd-pop .pop-close::after{
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* popup slide pagination */
.prd-pop .pop-page{
    width:100%; bottom: 14px;
    display: flex; justify-content: center; gap: 14px;
}
.prd-pop .pop-page .swiper-pagination-bullet{
    width: 10px; height: 10px; opacity: 1;
    background: #B8B8B8;
}
.prd-pop .pop-page .swiper-pagination-bullet-active{
    background: #D9252D;
}


.popback{
    background: rgba(0,0,0,.7);
    width: 100vw; height: 100vh;
    position: fixed; left: 0; top: 0;
    z-index: 0;
    display: none;
}

/* admin control */
.prd-board .prd-wrap .list-control{
    text-align: center;
}
.prd-board .prd-wrap .list-control a{
    border: 1px solid #222; padding: 2px;
}

@media screen and (max-width:1024px){
    /* list */
    .prd-board .prd-wrap{
        grid-template-columns: repeat(3, 1fr);
        gap: 50px 16px;
    }
    .prd-board .prd-wrap .prd-category{
        padding: 2px 22px; margin-bottom: 10px;
    }
    .prd-board .prd-wrap .prd-item .img-box .hover-img{
        display: none;
    }

    /* popup */
    .prd-pop .prd-pop-wrap .info-box .info-bottom ul li > span{
        min-width: 99px;
    }
    .prd-pop .prd-pop-wrap .info-box .info-top div{
        max-height: 54px;
        overflow-y: auto;
    }
}

@media screen and (max-width:768px){
    /* list */
    .prd-board .prd-wrap{
        grid-template-columns: repeat(2, 1fr);
    }
    .prd-board .prd-wrap .prd-category{
        padding: 3px 22px 0;
    }

    /* popup */
    .prd-pop .prd-pop-wrap{
        flex-direction: column; gap: 10px;
        padding: 30px; 
    }
    .prd-pop .prd-pop-wrap .prd-pop-swiper,
    .prd-pop .prd-pop-wrap .info-box{
        width:100%;
    }
    .prd-pop .prd-pop-wrap .prd-pop-swiper{
        max-width: 150px;
    }
    .prd-pop .prd-pop-wrap .info-box .info-top .prd-title{
        margin-bottom: 5px;
    }
    .prd-pop .prd-pop-wrap .info-box .info-top{
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    .prd-pop .prd-pop-wrap .info-box .info-bottom{
        max-height: 100px;
    }
    .prd-pop .prd-pop-wrap .info-box .info-bottom ul li{
        margin-bottom: 10px;
    }
    .prd-pop .pop-page{
        gap: 10px; bottom: 6px;
    }
    .prd-pop .prd-pop-wrap .info-box .info-bottom ul li > span{
        min-width: 94px;
    }
    .prd-pop .pop-page .swiper-pagination-bullet{
        width: 7px; height: 7px;
    }
    .prd-pop .pop-close{
        right:20px;
    }
}

@media screen and (max-width:500px){
    /* list */
    .prd-board .prd-wrap{
        grid-template-columns: 1fr;
    }

    /* popup */
    .prd-pop .prd-pop-wrap{
        padding: 20px;
    }
    .prd-pop .prd-pop-wrap .info-box .info-bottom ul .row-origin{
        flex-direction: column;
    }
}