/*************************************************************
 * 헤더 & 메인 영역
 */
@media screen and (max-width: 800px) {
    .header-wrapper {
        background: #FFF;
        box-shadow: 2px 2px 2px #EAEAEA;
    }
    .main {
        width: 100%;
        margin-top: 80px;
    }
}
@media screen and (max-width: 414px) {
    .main {
        margin-top: 68px;
    }
}
@media screen and (max-width: 320px) {
    .main {
        margin-top: 60px;
    }
}

/*--------------------------------------------
 * 배너
 */
.nail-bn > ul {
    font-size: 1.8rem;
    line-height: 3rem;
}
@media screen and (max-width: 650px) {
    .nail-bn > ul {
        font-size: 1.5rem;
        line-height: 2.5rem;
    }
}
@media screen and (max-width: 540px) {
    .nail-bn > ul {
        font-size: 1.3rem;
        line-height: 2.3rem;
    }
}
@media screen and (max-width: 414px) {
    .nail-bn > ul {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

/*--------------------------------------------
 * 상품 목록
 */
.item-title {
    margin: 40px 6% 0;
    font-family: NanumSquareEB;
    font-size: 1.8rem;
}
.item-list {
    margin: 10% 6%;
    grid: auto / 1fr 1fr;
}

/*--------------------------------------
 * 상품 정보
 */
.item > ul {
    font-size: 1.2rem;
}
.item > ul > li:nth-of-type(3) {
    font-size: 0.8rem;
}

@media screen and (max-width: 310px) {
    .item > ul {
        font-size: 1rem;
    }
    .item > ul > li:nth-of-type(3) {
        font-size: 0.6rem;
    }
}


/*************************************************************
 * sub detail 페이지 공통
 */

/*--------------------------------------
 * 상단
 */
.detail-top {
    margin: 0 15px;
    grid-template: "img"
                    "name"
                    "info"
                    "quantity"
                    "total"
                    "button";
}
.detail-top > div:nth-of-type(1) {
    margin-bottom: 10%;
}

/* 상품 정보 */
.item-info > li:nth-of-type(odd) {
    padding-right: 20%;
}

/* 구매하기 팝업 */
.buy-popup {
    left: calc(50% - 150px);
    width: 300px;
}
@media screen and (max-width: 414px) {
    .buy-popup {
        width: initial;
        left: 20px;
        right: 20px;
    }
    .buy-popup > span {
        margin-left: calc(100% - 30px);
    }
}

/* 장바구니 팝업 */
.cart-popup {
    left: calc(50% - 175px);
    width: 350px;
}
@media screen and (max-width: 414px) {
    .cart-popup {
        width: initial;
        left: 20px;
        right: 20px;
    }
    .cart-popup > span {
        margin-left: calc(100% - 30px);
    }
    .cart-popup > ul {
        margin-top: 20px;
    }
    .cart-popup > button {
        display: block;
        margin: 0 auto;
    }
    .cart-popup > button:nth-of-type(1) {
        margin: 0 auto;
        margin-bottom: 10px;
    }
}
@media screen and (max-width: 350px) {
    .cart-popup > ul {
        font-size: 1.1rem;
        line-height: 1.8rem;
        margin-top: 25px;
    }
}

/*--------------------------------------
 * 콘텐츠
 */
 .detail-content {
    margin: 100px 15px;
}
.detail-content ul {
    font-size: 1.3rem;
    line-height: 2.2rem;
}

/* 청하가 선택한 */
.detail-content > ul:nth-of-type(1) {
    font-size: 1.6rem;
    line-height: 2.3rem;
}
/* 별이랑달이랑 */
.detail-content > ul:nth-of-type(2) > li:nth-of-type(1) {
    font-size: 1.9rem;
}
.detail-content > ul:nth-of-type(2) > li:nth-of-type(1) > span {
    font-size: 1.1rem;
}
/* Real Review, 별하랑 청하랑 */
.detail-content > ul:nth-of-type(4) > li:nth-of-type(1),
.detail-content > ul:nth-of-type(5) > li:nth-of-type(1) {
    font-size: 1.8rem;
    line-height: 2.8rem;
}
/* special point */
.special-point > li:nth-of-type(1) {
    padding: 10% 0;
}
.special-point > li:nth-of-type(2) {
    font-size: 2rem;
    padding-bottom: 5%;
}
/* made point */
.made-point > li:nth-of-type(1) {
    padding: 10% 0;
}
.made-point > li:nth-of-type(2),
.made-point > li:nth-of-type(3) {
    font-size: 2rem;
    padding-bottom: 3%;
}
.made-point:last-of-type > li:nth-of-type(3) {
    padding-bottom: 5%;
}
.made-point:last-of-type > li:nth-of-type(5) {
    padding-bottom: 10%;
}

/*--------------------------------------
 * 하단
 */
.detail-bottom {
    margin: 0 15px;
}
/* 주의사항 */
.detail-bottom > h1 {
    font-size: 1.7rem;
}
.detail-bottom > ul {
    font-size: 1.2rem;
    line-height: 2.2rem;
    padding-left: 20px;
}
/* 제품 상세 정보 */
.information {
    margin: 20% 0;
}
.information th {
    padding: 2% 0;
}
.information tr:nth-of-type(1) > th {
    font-size: 1.3rem;
}
.information tr:nth-of-type(2) > th {
    font-size: 1.1rem;
}
.information td {
    padding: 1% 0 1% 5%;
    font-size: 1rem;
}
.information > caption {
    margin: 2% 0;
    font-size: 0.8rem;
}

@media screen and (max-width: 360px) {
    /*--------------------------------------
     * 컨텐츠
     */
    .detail-content ul {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    /* 청하가 선택한 */
    .detail-content > ul:nth-of-type(1) {
        font-size: 1.2rem;
        line-height: 2rem;
    }
    /* 별이랑달이랑 */
    .detail-content > ul:nth-of-type(2) > li:nth-of-type(1) {
        font-size: 1.5rem;
    }
    .detail-content > ul:nth-of-type(2) > li:nth-of-type(1) > span {
        font-size: 0.8rem;
    }
    /* Real Review, 별하랑 청하랑 */
    .detail-content > ul:nth-of-type(4) > li:nth-of-type(1),
    .detail-content > ul:nth-of-type(5) > li:nth-of-type(1) {
        font-size: 1.5rem;
        line-height: 2.5rem;
    }
    /* special point */
    .special-point > li:nth-of-type(2) {
        font-size: 1.5rem;
    }
    /* made point */
    .made-point > li:nth-of-type(2),
    .made-point > li:nth-of-type(3) {
        font-size: 1.5rem;
    }

    /*--------------------------------------
     * 하단
     */
    /* 주의사항 */
    .detail-bottom > h1 {
        font-size: 1.5rem;
    }
    .detail-bottom > ul {
        font-size: 1rem;
        line-height: 2rem;
        padding-left: 20px;
    }
    /* 제품 상세 정보 */
    .information tr:nth-of-type(1) > th {
        font-size: 1rem;
    }
    .information tr:nth-of-type(2) > th {
        font-size: 0.9rem;
    }
    .information td {
        font-size: 0.8rem;
    }
    .information > caption {
        font-size: 0.6rem;
    }
}

/*--------------------------------------
 * fixed 구매하기, 장바구니 버튼
 */
.fixed-btn {
    left: 0;
}
@media screen and (max-width: 480px) {
    .fixed-btn > button {
        width: 150px;
    }
    .fixed-btn > button:nth-of-type(1) {
        margin-right: 10px;
        margin-left: calc(50% - 155px);
    }
}
@media screen and (max-width: 359px) {
    .fixed-btn > button {
        width: 100px;
    }
    .fixed-btn > button:nth-of-type(1) {
        margin-right: 10px;
        margin-left: calc(50% - 105px);
    }
}