/* =========================================================
   HEAVEN TOUCH - KLOTHEN STYLE CART DRAWER
========================================================= */

.rcd-drawer,
.rcd-drawer * {
    box-sizing: border-box;
}

.rcd-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000000;

    visibility: hidden;
    pointer-events: none;
}

.rcd-drawer.active {
    visibility: visible;
    pointer-events: auto;
}


/* Overlay */

.rcd-overlay {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    padding: 0;
    border: 0;

    background: rgba(0, 0, 0, 0.68);

    opacity: 0;

    cursor: pointer;

    transition: opacity 0.25s ease;
}

.rcd-drawer.active .rcd-overlay {
    opacity: 1;
}


/* Panel */

.rcd-panel {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;

    width: min(100%, 410px);

    display: flex;
    flex-direction: column;

    background: #ffffff;

    box-shadow:
        -10px 0 30px rgba(0, 0, 0, 0.10);

    transform: translateX(100%);

    transition: transform 0.3s ease;
}

.rcd-drawer.active .rcd-panel {
    transform: translateX(0);
}


/* Header */

.rcd-header {
    min-height: 72px;

    padding: 0 26px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    border-bottom: 1px solid #e7e7e7;
}

.rcd-header h2 {
    margin: 0;

    color: #111111;

    font-size: 20px;
    font-weight: 500;

    letter-spacing: 0.2px;
}

.rcd-close {
    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;

    background: transparent;
    color: #111111;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 27px;

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.rcd-close:hover {
    color: #f58220;
    transform: rotate(4deg);
}


/* Body */

.rcd-body {
    min-height: 0;
    flex: 1;

    overflow-y: auto;

    background: #ffffff;
}


/* =========================================================
   EMPTY CART
========================================================= */

.rcd-empty {
    min-height: 330px;

    padding: 45px 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;

    text-align: center;
}

.rcd-empty-icon {
    width: 82px;
    height: 82px;

    margin-bottom: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #929292;

    font-size: 55px;
}

.rcd-empty p {
    margin: 0 0 28px;

    color: #8b8b8b;

    font-size: 17px;
    font-weight: 400;
}

.rcd-empty-button {
    min-width: 225px;
    min-height: 50px;

    padding: 0 28px;

    border-radius: 999px;

    background: #f58220;
    color: #ffffff;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.rcd-empty-button:hover {
    background: #111111;
    color: #ffffff;

    transform: translateY(-1px);
}


/* =========================================================
   CART ITEM
========================================================= */

.rcd-item {
    padding: 20px 22px;

    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);

    gap: 15px;

    border-bottom: 1px solid #eeeeee;

    background: #ffffff;
}

.rcd-item-image {
    width: 88px;
    height: 108px;

    display: block;

    overflow: hidden;

    background: #f7f7f7;
}

.rcd-item-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.rcd-item-content {
    min-width: 0;
}

.rcd-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.rcd-item-name {
    color: #111111;

    font-size: 14px;
    font-weight: 500;

    line-height: 1.5;

    text-decoration: none;

    transition: color 0.2s ease;
}

.rcd-item-name:hover {
    color: #f58220;
}

.rcd-remove {
    width: 28px;
    height: 28px;

    flex: 0 0 28px;

    padding: 0;

    border: 0;

    background: transparent;
    color: #999999;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition: color 0.2s ease;
}

.rcd-remove:hover {
    color: #f58220;
}

.rcd-item-options {
    margin-top: 9px;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.rcd-item-options span {
    color: #8a8a8a;

    font-size: 11px;
}

.rcd-item-options strong {
    color: #333333;

    font-weight: 500;
}

.rcd-item-bottom {
    margin-top: 17px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}

.rcd-item-quantity {
    color: #888888;

    font-size: 12px;
}

.rcd-item-total {
    color: #f58220;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   FOOTER
========================================================= */

.rcd-footer {
    padding: 20px 22px 24px;

    background: #ffffff;

    border-top: 1px solid #e7e7e7;
}

.rcd-summary {
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.rcd-summary span {
    color: #111111;

    font-size: 14px;
    font-weight: 500;
}

.rcd-summary strong {
    color: #111111;

    font-size: 19px;
    font-weight: 600;
}


/* Buttons */

.rcd-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 10px;
}

.rcd-view-cart,
.rcd-checkout {
    min-height: 48px;

    padding: 0 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.rcd-view-cart {
    border: 1px solid #111111;

    background: #ffffff;
    color: #111111;
}

.rcd-view-cart:hover {
    background: #111111;
    color: #ffffff;
}

.rcd-checkout {
    border: 1px solid #f58220;

    background: #f58220;
    color: #ffffff;
}

.rcd-checkout:hover {
    border-color: #111111;

    background: #111111;
    color: #ffffff;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .rcd-panel {
        width: calc(100% - 17px);
        max-width: 395px;
    }

    .rcd-header {
        min-height: 70px;

        padding: 0 24px;
    }

    .rcd-header h2 {
        font-size: 18px;
    }

    .rcd-empty {
        padding-top: 42px;
    }

    .rcd-item {
        padding: 17px 18px;

        grid-template-columns: 78px minmax(0, 1fr);
    }

    .rcd-item-image {
        width: 78px;
        height: 98px;
    }

    .rcd-footer {
        padding: 18px;
    }
}













@media (max-width: 991px) {

    /* =========================================
       CATEGORY ROW
    ========================================= */

    .ht-mobile-parent {
        width: 100% !important;
        display: block !important;

        border-bottom: 1px solid #e7e7e7;
    }

    .ht-mobile-category-toggle {
        width: 100%;
        min-height: 78px;

        padding: 0 25px;

        border: 0;
        background: #ffffff;

        display: flex;
        align-items: center;
        justify-content: space-between;

        color: #111111;

        font-size: 18px;
        font-weight: 400;

        text-align: left;

        cursor: pointer;
    }

    .ht-mobile-category-name {
        flex: 1;
    }


    /* =========================================
       PLUS / MINUS
    ========================================= */

    .ht-mobile-plus {
        width: 30px;
        height: 30px;

        flex: 0 0 30px;

        display: flex;
        align-items: center;
        justify-content: center;

        color: #666666;

        font-size: 16px;
    }

    .ht-mobile-category-toggle:hover,
    .ht-mobile-category-toggle.is-open {
        color: #f58220;
    }

    .ht-mobile-category-toggle.is-open .ht-mobile-plus {
        color: #f58220;
    }


    /* =========================================
       SUBCATEGORY
    ========================================= */

    .ht-mobile-submenu {
        display: none !important;

        width: 100%;

        margin: 0 !important;
        padding: 0 !important;

        background: #fafafa;

        list-style: none;
    }

    .ht-mobile-submenu.is-open {
        display: block !important;
    }

    .ht-mobile-submenu > li {
        width: 100%;

        border-top: 1px solid #e8e8e8;
    }

    .ht-mobile-subcategory-link,
    .ht-mobile-view-all {
        width: 100%;
        min-height: 56px;

        padding: 0 38px;

        display: flex;
        align-items: center;

        color: #7d7d7d;

        font-size: 15px;
        font-weight: 400;
    }

    .ht-mobile-view-all {
        color: #f58220;
        font-weight: 500;
    }


    /* =========================================
       SUBCATEGORY WITH CHILDREN
    ========================================= */

    .ht-mobile-child-category-toggle {
        width: 100%;
        min-height: 56px;

        padding: 0 38px;

        border: 0;
        background: #fafafa;

        display: flex;
        align-items: center;
        justify-content: space-between;

        color: #777777;

        font-size: 15px;

        text-align: left;

        cursor: pointer;
    }


    /* =========================================
       CHILD MENU
    ========================================= */

    .ht-mobile-childmenu {
        display: none !important;

        width: 100%;

        margin: 0;
        padding: 0;

        background: #f5f5f5;

        list-style: none;
    }

    .ht-mobile-childmenu.is-open {
        display: block !important;
    }

    .ht-mobile-childmenu li {
        border-top: 1px solid #e7e7e7;
    }

    .ht-mobile-childmenu a {
        min-height: 50px;

        padding: 0 52px;

        display: flex;
        align-items: center;

        color: #888888;

        font-size: 14px;
    }
}