/*************************************************************
 * sub 페이지 공통
 */

/*--------------------------------------------
 * 배너
 */
.nail-bn {
    background: #E2DFF2;
    width: 100%;
    display: grid;
    grid-template: "comment img" / 60% 40%;
    justify-content: center;
    align-items: center;
}
.nail-bn > ul {
    grid-area: comment;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    font-family: NanumSquareB;
}
.nail-bn > ul > li:nth-of-type(1) {
    color: #7DB1FF;
}
.nail-bn > ul > li:nth-of-type(2) {
    color: #FFF;
    background: #7DB1FF;
}
.nail-bn > div {
    grid-area: img;
}
.nail-bn > div > img {
    width: 100%;
    height: 100%;
}

/*--------------------------------------------
 * 상품 목록
 */
.item-list {
    display: grid;
    justify-content: center;
    align-items: center;
    column-gap: 5%;
}
.item {
    display: grid;
    grid: "thumbnail"
            "item-info";
    margin-bottom: 20%;
}

/*--------------------------------------
 * 상품 이미지
 */
.item > div,
.nail1 > a > div {
    grid-area: thumbnail;
    position: relative;
}
.item > div {
    cursor: not-allowed;
}
.item > div > img,
.nail1 > a > div > img {
    width: 100%;
    height: 100%;
}
.item > div::after,
.nail1 > a > div::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: url("http://nail.joo.popol.website/images/icon_hot.png");
    background-size: cover;
    animation: blink 0.7s infinite;
}
.nail1 > a > div::after {
    background-image: url("http://nail.joo.popol.website/images/icon_new.png");
}

/*--------------------------------------
 * 상품 정보
 */
.item > ul {
    list-style: none;
    padding: 0;
    padding-top: 15px;
    margin: 0;
    grid-area: item-info;
    display: grid;
    grid: auto / auto;
    row-gap: 5%;
    font-family: NanumSquareB;
    font-size: 1.5rem;
    color: #999;
}
.item > ul > li:nth-of-type(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}
.nail1 > ul > li:nth-of-type(1) {
    color: #000;
}
.item > ul > li:nth-of-type(2) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    color: #FFEE3B;
}
.item > ul > li:nth-of-type(3) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    text-align: right;
    font-family: NanumSquareR;
    font-size: 1rem;
    color: #CCC;
    text-decoration: line-through #CCC solid;
}
.item > ul > li:nth-of-type(4) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
    text-align: right;
}
.nail1 > ul > li:nth-of-type(4) {
    color: #000;
}


/*************************************************************
 * sub detail 페이지 공통
 */

/*--------------------------------------
 * 상단
 */
.detail-top {
    display: grid;
}
.detail-top button {
    cursor: pointer;
}

/* 썸네일 이미지 */
.detail-top > div:nth-of-type(1) {
    grid-area: img;
    position: relative;
}
.detail-top > div:nth-of-type(1) > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
}
.detail-top > div:nth-of-type(1)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: url("http://nail.joo.popol.website/images/icon_new.png");
    background-size: contain;
    background-repeat: no-repeat;
}

/* 상품명 */
.detail-top > p {
    grid-area: name;
    margin: 0;
    padding: 10% 0;
    font-family: NanumSquareB;
    font-size: 1.5rem;
    border-top: 1px solid #666;
}

/* 상품 정보 */
.item-info {
    grid-area: info;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #666;
    display: grid;
    grid: auto / max-content auto;
}
.item-info > li {
    margin-bottom: 7%;
}
.item-info > li:nth-of-type(odd) {
    white-space: nowrap;
}
.item-info > li:nth-of-type(even) {
    font-family: NanumSquareL;
    padding-left: 5%;
}
.item-info > li:nth-of-type(4) {
    text-decoration: line-through;
}

/* 수량 */
.item-quantity {
    grid-area: quantity;
    padding: 7% 0;
    display: grid;
    grid-template: "item-name minus item-quantity plus price" /
                    55% 5% 10% 5% 25%;
    align-items: center;
    border-bottom: 1px solid #666;
}
.item-quantity > button {
    border: none;
    background: #000;
    color: #FFF;
    padding: 10%;
    font-family: NanumSquareB;
}
.item-quantity > div:nth-of-type(1) {
    grid-area: item-name;
}
.item-quantity > button:nth-of-type(1) {
    grid-area: minus;
}
.item-quantity > div:nth-of-type(2) {
    grid-area: item-quantity;
    text-align: center;
}
.item-quantity > div:nth-of-type(2)::before {
    content: attr(data-quantity);
}
.item-quantity > button:nth-of-type(2) {
    grid-area: plus;
}
.item-quantity > div:nth-of-type(3) {
    grid-area: price;
    text-align: right;
    font-family: NanumSquareB;
}
.item-quantity > div:nth-of-type(3)::before {
    content: attr(data-quantity);
}

/* 총수량 */
.item-total {
    grid-area: total;
    display: grid;
    grid-template: "total total-price total-quantity" / 
                    60% 25% 15%;
    align-items: center;
    padding: 7% 0;
}
.item-total > div:nth-of-type(1) {
    grid-area: total;
}
.item-total > div:nth-of-type(2) {
    grid-area: total-price;
    font-family: NanumSquareB;
    font-size: 1.5rem;
    text-align: right;
}
.item-total > div:nth-of-type(2)::before {
    content: attr(data-quantity);
}
.item-total > div:nth-of-type(3) {
    grid-area: total-quantity;
    font-size: 0.8rem;
    text-align: right;
}
.item-total > div:nth-of-type(3)::before {
    content: attr(data-quantity);
}

/* 구매하기, 장바구니 버튼 */
.btn-wrap {
    grid-area: button;
    display: grid;
    grid-template: "buy cart" / 50% 50%;
    padding-top: 2%;
}
.btn-wrap > button {
    font-family: NanumSquareR;
    padding: 5% 0;
}
.btn-wrap > button:nth-of-type(1) {
    grid-area: buy;
    border: none;
    background: #000;
    color: #FFF;
    margin-right: 5%;
}
.btn-wrap > button:nth-of-type(2) {
    grid-area: cart;
    border-style: none;
    color: #000;
    border: 1px solid #000;
    background: #FFF;
}

/* 구매하기 팝업 */
.buy-popup {
    position: fixed;
    top: calc(50% - 100px);
    height: 200px;
    background: #FFF;
    border-radius: 10px;
    filter: drop-shadow(0 0 2px #999);
    opacity: 0;
    transition: opacity 0.3s;
    display: none;
}
.buy-popup > span {
    font-family: NanumSquareEB;
    font-size: 2rem;
    margin-left: 270px;
    cursor: pointer;
}
.buy-popup > ul {
    list-style: none;
    margin-top: 55px;
    padding: 0;
    font-size: 1.3rem;
    text-align: center;
}

/* 장바구니 팝업 */
.cart-popup {
    position: fixed;
    top: calc(50% - 125px);
    height: 250px;
    background: #FFF;
    border-radius: 10px;
    filter: drop-shadow(0 0 2px #999);
    opacity: 0;
    transition: opacity 0.3s;
    display: none;
}
.cart-popup > span {
    font-family: NanumSquareEB;
    font-size: 2rem;
    margin-left: 320px;
    cursor: pointer;
}
.cart-popup > ul {
    list-style: none;
    margin-top: 40px;
    padding: 0;
    font-size: 1.3rem;
    text-align: center;
    line-height: 2rem;
}
.cart-popup > button {
    margin-top: 20px;
    padding: 5px 10px;
    background: #000;
    color: #FFF;
    border-style: none;
    cursor: not-allowed;
}
.cart-popup > button:nth-of-type(1) {
    margin-right: 30px;
    margin-left: 45px;
}


/*--------------------------------------
 * 콘텐츠
 */
.detail-content > img {
    width: 100%;
    height: 100%;
}
.detail-content ul {
    list-style: none;
    margin: 0;
    padding: 15% 0;
    text-align: center;
    /* white-space: nowrap; */
}
.detail-content ul > li > span {
    font-family: NanumSquareB;
}
/*------------- / 공통 ----------------*/

/* 이미지 (3) */
.detail-content > img:nth-of-type(3) {
    padding-top: 15%;
}
/* 별이랑달이랑 */
.detail-content > ul:nth-of-type(2) {
    text-align: left;
}
.detail-content > ul:nth-of-type(2) > li:nth-of-type(1) {
    font-family: NanumSquareB;
    border-bottom: 1px solid #666;
    padding-bottom: 3%;
    margin-bottom: 3%;
}
/* 이미지 (5) */
.detail-content > img:nth-of-type(5) {
    padding-top: 7%;
}
/* STRIP DESIGN */
.detail-content > ul:nth-of-type(3) {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #666;
    padding-bottom: 1%;
    margin-bottom: 0;
}
/* 이미지 (7), (8) */
.detail-content > img:nth-of-type(7),
.detail-content > img:nth-of-type(8) {
    border: 1px solid #CCC;
}
/* Real Review, 별하랑 청하랑 */
.detail-content > ul:nth-of-type(4),
.detail-content > ul:nth-of-type(5) {
    text-align: left;
    background: #F5F5F5;
}
.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-family: NanumSquareEB;
}
.detail-content > ul:nth-of-type(4) {
    margin-top: 15%;
    padding: 7% 0 5% 2%;
}
.detail-content > ul:nth-of-type(5) {
    margin-bottom: 15%;
    padding: 5% 0 7% 2%;
}
.detail-content > ul:nth-of-type(4) > li:nth-of-type(1)::before {
    content: "\2763  ";
}
.detail-content > ul:nth-of-type(5) > li:nth-of-type(3)::after {
    content: "  \2764";
    color: #B1A4FE;
}
/* 이미지 (11) */
.detail-content > img:nth-of-type(11),
.detail-content > img:nth-of-type(12) {
    margin-top: 15%;
}
/* special point */
.special-point > li:nth-of-type(1) {
    color: #FF0000;
    font-family: NanumSquareEB;
}
.special-point > li:nth-of-type(2) {
    font-family: NanumSquareEB;
}
/* 이미지 (18) */
.detail-content > img:nth-of-type(18) {
    margin-top: 20%;
}
/* made point */
.made-point {
    padding: 5% 0 0 !important;
}
.made-point > li:nth-of-type(1) {
    color: #FF0000;
    font-family: NanumSquareEB;
}
.made-point > li:nth-of-type(2),
.made-point > li:nth-of-type(3) {
    font-family: NanumSquareEB;
}
.made-point:last-of-type {
    background: #F5F5F5;
    margin-top: 15%;
}

/*--------------------------------------
 * 하단
 */
/* 주의사항 */
.detail-bottom > h1 {
    font-family: NanumSquareB;
}
.detail-bottom > h1 > span {
    color: #FF0000;
}

/* 제품 상세 정보 */
.information {
    width: 100%;
    border-collapse: collapse;
}
.information th, .information td {
    border: 1px solid #CCC;
}
.information th {
    background: #F5F5F5;
}
.information tr:nth-of-type(1) > th {
    font-family: NanumSquareEB;
}
.information tr:nth-of-type(1) > th {
    font-family: NanumSquareB;
}
.information td:nth-of-type(1) {
    background: #F5F5F5;
}
.information > caption {
    caption-side: bottom;
    text-align: center;
}

/*--------------------------------------
 * fixed 구매하기, 장바구니 버튼
 */
.fixed-btn {
    position: fixed;
    right: 0;
    bottom: 0;
    height: 60px;
    background: #FFF;
    box-shadow: 2px -2px 2px #EAEAEA;
    display: none;
}
.fixed-btn > button {
    font-family: NanumSquareR;
    width: 200px;
    height: 40px;
    margin-top: 10px;
    cursor: pointer;
}
.fixed-btn > button:nth-of-type(1) {
    border: none;
    background: #000;
    color: #FFF;
    margin-right: 50px;
    margin-left: calc(50% - 225px);
}
.fixed-btn > button:nth-of-type(2) {
    border-style: none;
    color: #000;
    border: 1px solid #000;
    background: #FFF;
}