@charset "utf-8";

/* =========================================================
   SAMPLE STORE - CART
   장바구니 페이지 전용
========================================================= */


/* =========================================================
   1. CART LAYOUT
========================================================= */

#wrapper.store.cart {
    padding: 7rem 0 12rem;
}

#wrapper.store.cart > .inner {
    width: calc(100% - 4rem);
    max-width: 115.2rem;
    margin: 0 auto;
}


/* =========================================================
   2. CART STEP
========================================================= */

.store.cart .page-info {
    position: relative;
    margin-bottom: 2.4rem;
}

.store.cart .page-info #btn_back {
    display: flex;
    position: absolute;
    left: 0;
    top: 50%;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f7f5f3;
    transform: translateY(-50%);
    cursor: pointer;
}

.store.cart .page-info #btn_back .svg-icon {
    display: block;
    width: 0.8rem;
    height: 0.8rem;
    border-left: 1px solid #2b2621;
    border-bottom: 1px solid #2b2621;
    transform: rotate(45deg);
}

.store.cart .breadcrumb {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.4rem;
    min-height: 4rem;
    margin: 0;
    padding: 0 0 0 5.6rem;
}

.store.cart .breadcrumb li {
    display: flex;
    align-items: center;
    color: #b8afa7;
    font-size: 1.4rem;
    font-weight: 500;
    white-space: nowrap;
}

.store.cart .breadcrumb li.active {
    color: #2b2621;
    font-weight: 700;
}

.store.cart .breadcrumb .svg-icon {
    display: block;
    width: 0.7rem;
    height: 0.7rem;
    border-top: 1px solid #c8bbae;
    border-right: 1px solid #c8bbae;
    transform: rotate(45deg);
}


/* =========================================================
   3. TABLE TOP
   선택삭제
========================================================= */

.store.cart .table-top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 5.6rem;
}

.store.cart .table-top .btn-wrap {
    display: flex;
    align-items: center;
    margin: 0;
}

.store.cart #btnDeleteSelected {
    min-width: 6.6rem;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid #a48d78;
    border-radius: 0.7rem;
    background: #fff;
    color: #806b58;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.store.cart #btnDeleteSelected:hover {
    background: #f8f7f5;
}


/* =========================================================
   4. CART TABLE
========================================================= */

.store.cart .table-wrap {
    width: 100%;
}

.store.cart .cart-table {
    width: 100%;
}


/*
   체크박스 | 상품정보 | 수량 | 주문금액
*/
.store.cart .cart-table-row {
    display: grid;
    grid-template-columns:
        5rem
        minmax(0, 1fr)
        17.2rem
        17.2rem;
    align-items: stretch;
}


/* =========================================================
   5. TABLE HEADER
========================================================= */

.store.cart .cart-table-header {
    min-height: 6.8rem;
    border-top: 1px solid #2b2621;
    border-bottom: 1px solid #e2ddd8;
}

.store.cart .cart-table-th {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b2621;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
}

.store.cart .cart-table-th.th-chk {
    justify-content: flex-start;
    padding-left: 0.6rem;
}


/* =========================================================
   6. CHECKBOX
========================================================= */

.store.cart .inp-chk {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.store.cart .inp-chk input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    opacity: 0;
}

.store.cart .inp-chk label {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
    margin: 0;
    cursor: pointer;
}

.store.cart .inp-chk label::before {
    content: "";
    display: block;
    width: 2rem;
    height: 2rem;
    box-sizing: border-box;
    border: 1px solid #c8bbae;
    border-radius: 0.2rem;
    background: #fff;
}

.store.cart .inp-chk input[type="checkbox"]:checked + label::before {
    border-color: #a48d78;
    background: #a48d78;
}

.store.cart .inp-chk input[type="checkbox"]:checked + label::after {
    content: "";
    position: absolute;
    left: 0.6rem;
    top: 0.55rem;
    width: 0.7rem;
    height: 0.4rem;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}


/* 접근성용 숨김 텍스트 */

.store.cart .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   7. CART BODY / ITEM
========================================================= */

.store.cart .cart-table-body {
    width: 100%;
}

.store.cart .cart-item {
    min-height: 15rem;
    border-bottom: 1px solid #2b2621;
}

.store.cart .cart-table-td {
    min-width: 0;
}


/* 상품 체크박스 */

.store.cart .td-chk {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 0.6rem;
}


/* =========================================================
   8. PRODUCT INFO
========================================================= */

.store.cart .cart-item-info {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    min-width: 0;
    padding: 2.2rem 0;
}

.store.cart .cart-thumb {
    width: 10rem;
    height: 10rem;
    flex: 0 0 10rem;
    overflow: hidden;
    border-radius: 0.6rem;
    background-color: #f3f1ef;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.store.cart .cart-thumb.noImg {
    background-color: #f3f1ef;
}

.store.cart .cart-item-desc {
    min-width: 0;
}

.store.cart .cart-product-name {
    margin: 0 0 0.6rem;
    color: #2b2621;
    font-size: 1.6rem;
    font-weight: 600;
    line-height: 1.5;
    word-break: keep-all;
}

.store.cart .cart-price {
    margin: 0;
    color: #817870;
    font-size: 1.4rem;
    font-weight: 400;
}


/* =========================================================
   9. QUANTITY / ORDER PRICE
========================================================= */

/*
   cart-item-etc 안의
   qty-wrap / cart-item-total을
   각각 grid cell로 사용
*/
.store.cart .cart-item-etc {
    display: contents;
}


/* 수량 */

.store.cart .qty-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 15rem;
    border-left: 1px solid #e2ddd8;
    border-right: 1px solid #e2ddd8;
}

.store.cart .qty-wrap button,
.store.cart .qty-wrap input {
    height: 3.2rem;
    box-sizing: border-box;
}

.store.cart .qty-wrap button {
    width: 3.2rem;
    padding: 0;
    border: 1px solid #ddd6cf;
    background: #fff;
    color: #2b2621;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.store.cart .qty-wrap button:hover {
    background: #f8f7f5;
}

.store.cart .qty-wrap .btn-qty-minus {
    border-right: 0;
    border-radius: 0.5rem 0 0 0.5rem;
}

.store.cart .qty-wrap .btn-qty-plus {
    border-left: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.store.cart .qty-wrap .input-qty {
    width: 4.2rem;
    padding: 0;
    border: 1px solid #ddd6cf;
    border-radius: 0;
    background: #fff;
    color: #2b2621;
    font-size: 1.3rem;
    text-align: center;
    outline: none;

    -moz-appearance: textfield;
}

.store.cart .qty-wrap .input-qty::-webkit-inner-spin-button,
.store.cart .qty-wrap .input-qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}


/* 주문금액 */

.store.cart .cart-item-total {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 15rem;
    padding: 0 1.5rem;
    color: #2b2621;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
}


/* =========================================================
   10. EMPTY CART
========================================================= */

.store.cart .cart-empty {
    padding: 10rem 2rem !important;
    border-top: 1px solid #2b2621;
    border-bottom: 1px solid #2b2621;
    color: #817870;
    font-size: 1.5rem;
    text-align: center;
}


/* =========================================================
   11. PAYMENT SUMMARY
========================================================= */

.store.cart .list-box.payment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 31.6rem;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    padding: 0;
    background: transparent;
}


/* 금액 요약 박스 */

.store.cart .cart-payment-box {
    display: grid;
    grid-template-columns:
        minmax(13rem, 1fr)
        5rem
        minmax(13rem, 1fr)
        5rem
        minmax(15rem, 1fr);
    align-items: center;
    min-height: 10.5rem;
    padding: 1.8rem 3rem;
    box-sizing: border-box;
    border-radius: 1rem;
    background: #f7f5f3;
}


/* 각각의 금액 */

.store.cart .cart-payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    min-width: 0;
}

.store.cart .payment-label {
    color: #6f6257;
    font-size: 1.3rem;
    font-weight: 500;
    white-space: nowrap;
}

.store.cart .payment-price {
    color: #2b2621;
    font-size: 1.4rem;
    font-weight: 400;
    white-space: nowrap;
}

.store.cart .payment-price strong {
    color: #2b2621;
    font-size: 2rem;
    font-weight: 700;
}


/* + / = */

.store.cart .payment-symbol {
    color: #d9a984;
    font-size: 3rem;
    font-weight: 200;
    line-height: 1;
    text-align: center;
}


/* 총 결제금액 */

.store.cart .cart-payment-item.total .payment-price,
.store.cart .cart-payment-item.total .payment-price strong {
    color: #c8753b;
}


/* =========================================================
   12. ORDER BUTTON
========================================================= */

.store.cart .list-box.payment > .btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.store.cart #btnOrder {
    width: 100%;
    height: 5.2rem;
    padding: 0;
    border: 0;
    border-radius: 0.7rem;
    background: #aa9a87;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.store.cart #btnOrder:hover {
    background: #917f6c;
}


/* =========================================================
   13. PC / MOBILE DISPLAY
========================================================= */

.store.cart .pc-only {
    display: flex;
}

.bottom-action-bar.mobile-only {
    display: none;
}


/* =========================================================
   14. MOBILE
========================================================= */

@media (max-width: 1024px) {

    /* -----------------------------------------------------
       Layout
    ----------------------------------------------------- */

    #wrapper.store.cart {
        padding: 3rem 0 10rem;
    }

    #wrapper.store.cart > .inner {
        width: 100%;
        padding: 0 2rem;
        box-sizing: border-box;
    }


    /* -----------------------------------------------------
       Step
    ----------------------------------------------------- */

    .store.cart .page-info {
        margin-bottom: 2rem;
    }

    .store.cart .page-info #btn_back {
        width: 3.6rem;
        height: 3.6rem;
    }

    .store.cart .breadcrumb {
        min-height: 3.6rem;
        gap: 1rem;
        padding-left: 5rem;
    }

    .store.cart .breadcrumb li {
        font-size: 1.3rem;
    }


    /* -----------------------------------------------------
       선택삭제
    ----------------------------------------------------- */

    .store.cart .table-top {
        min-height: 5rem;
    }

    .store.cart #btnDeleteSelected {
        min-width: 6.2rem;
        height: 3rem;
        font-size: 1.2rem;
    }


    /* -----------------------------------------------------
       Table header
    ----------------------------------------------------- */

    .store.cart .cart-table-header {
        display: grid;
        grid-template-columns: 4rem minmax(0, 1fr);
        min-height: 5.6rem;
    }

    .store.cart .cart-table-header .pc-only {
        display: none !important;
    }

    .store.cart .cart-table-th.th-chk {
        display: flex;
        padding-left: 0;
    }


    /* -----------------------------------------------------
       Item
    ----------------------------------------------------- */

    .store.cart .cart-item {
        position: relative;
        display: grid;
        grid-template-columns: 4rem minmax(0, 1fr);
        min-height: 0;
        padding: 2rem 0;
    }

    .store.cart .td-chk {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0.4rem 0 0;
    }

    .store.cart .cart-item-info {
        gap: 1.4rem;
        padding: 0;
    }

    .store.cart .cart-thumb {
        width: 8rem;
        height: 8rem;
        flex-basis: 8rem;
    }

    .store.cart .cart-product-name {
        margin-bottom: 0.5rem;
        font-size: 1.4rem;
    }

    .store.cart .cart-price {
        font-size: 1.3rem;
    }


    /* -----------------------------------------------------
       Quantity / Price
    ----------------------------------------------------- */

    .store.cart .cart-item-etc {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        margin-top: 1.6rem;
    }

    .store.cart .qty-wrap {
        min-height: 0;
        border: 0;
    }

    .store.cart .qty-wrap button,
    .store.cart .qty-wrap input {
        height: 3.4rem;
    }

    .store.cart .qty-wrap button {
        width: 3.4rem;
    }

    .store.cart .qty-wrap .input-qty {
        width: 4rem;
    }

    .store.cart .cart-item-total {
        min-height: 0;
        padding: 0;
        font-size: 1.5rem;
    }


    /* -----------------------------------------------------
       Payment
    ----------------------------------------------------- */

    .store.cart .list-box.payment {
        display: block;
        margin-top: 2rem;
    }

    .store.cart .cart-payment-box {
        grid-template-columns: 1fr;
        gap: 1.6rem;
        padding: 2.4rem 2rem;
    }

    .store.cart .cart-payment-item {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
    }

    .store.cart .payment-symbol {
        display: none;
    }

    .store.cart .payment-price strong {
        font-size: 1.7rem;
    }

    .store.cart .cart-payment-item.total {
        margin-top: 0.5rem;
        padding-top: 1.8rem;
        border-top: 1px solid #ddd6cf;
    }

    .store.cart .cart-payment-item.total .payment-label {
        color: #2b2621;
        font-size: 1.5rem;
        font-weight: 700;
    }

    .store.cart .cart-payment-item.total .payment-price strong {
        font-size: 2.1rem;
    }


    /* PC 주문버튼 숨김 */

    .store.cart .list-box.payment > .btn-wrap {
        display: none !important;
    }


    /* -----------------------------------------------------
       Mobile bottom order button
    ----------------------------------------------------- */

    .bottom-action-bar.mobile-only {
        display: block;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        padding: 1.2rem 2rem;
        padding-bottom: calc(1.2rem + env(safe-area-inset-bottom));
        border-top: 1px solid #e2ddd8;
        background: #fff;
        box-sizing: border-box;
    }

    .bottom-action-bar #btnOrderM {
        width: 100%;
        height: 5.4rem;
        padding: 0;
        border: 0;
        border-radius: 0.7rem;
        background: #aa9a87;
        color: #fff;
        font-size: 1.6rem;
        font-weight: 600;
        cursor: pointer;
    }
}


/* =========================================================
   15. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    #wrapper.store.cart > .inner {
        padding: 0 1.6rem;
    }

    .store.cart .page-info #btn_back {
        position: static;
        margin-bottom: 1.5rem;
        transform: none;
    }

    .store.cart .breadcrumb {
        justify-content: flex-start;
    }

    .store.cart .cart-thumb {
        width: 7rem;
        height: 7rem;
        flex-basis: 7rem;
    }

    .store.cart .cart-item-info {
        gap: 1.2rem;
    }

    .store.cart .cart-item-etc {
        align-items: flex-end;
    }

    .store.cart .cart-item-total {
        font-size: 1.4rem;
    }

    .bottom-action-bar.mobile-only {
        padding-right: 1.6rem;
        padding-left: 1.6rem;
    }
}

/* 판매가 중지된 로컬 장바구니 항목 */
.store.cart .cart-item.is-unavailable {
    opacity: 0.52;
}

.store.cart .cart-item.is-unavailable .cart-product-name,
.store.cart .cart-item.is-unavailable .cart-price,
.store.cart .cart-item.is-unavailable .cart-item-total {
    text-decoration: line-through;
}

.store.cart .cart-unavailable-message {
    margin: 0.4rem 0 0;
    color: #9b938c;
    font-size: 1.3rem;
    font-weight: 400;
}

.store.cart .btn-remove-unavailable {
    margin-top: 0.7rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #817870;
    font-size: 1.3rem;
    line-height: 1.3;
    text-decoration: underline;
    cursor: pointer;
}

.store.cart .btn-remove-unavailable:hover {
    color: #2b2621;
}

.store.cart .cart-item.is-unavailable .qty-wrap button,
.store.cart .cart-item.is-unavailable .qty-wrap input {
    cursor: not-allowed;
}
