/* =========================================================
   CART DRAWER
========================================================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;

    background: rgba(12, 16, 25, 0.55);
    backdrop-filter: blur(3px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.cart-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   CART DRAWER
========================================================= */

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;

    width: 460px;
    max-width: 100%;
    height: 100vh;

    z-index: 9999;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.18);

    transform: translateX(105%);

    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    overflow: hidden;
}

.cart-drawer.is-open {
    transform: translateX(0);
}


/* =========================================================
   CART HEADER
========================================================= */

.cart-drawer-header {
    min-height: 88px;

    padding: 20px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #eeeeee;

    background: #ffffff;
}

.cart-drawer-header>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cart-drawer-header h3 {
    margin: 0;

    color: #111111;

    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.cart-drawer-header span {
    color: #777777;

    font-size: 13px;
    font-weight: 400;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.cart-close {
    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid #eeeeee;
    border-radius: 50%;

    background: #f7f7f7;

    color: #222222;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.cart-close i {
    font-size: 16px;
}

.cart-close:hover {
    background: #111111;
    color: #ffffff;

    transform: rotate(90deg);
}


/* =========================================================
   CART BODY
========================================================= */

.cart-drawer-body {
    flex: 1;

    min-height: 0;

    padding: 8px 24px 24px;

    overflow-y: auto;
    overflow-x: hidden;

    scrollbar-width: thin;
    scrollbar-color: #d7d7d7 transparent;
}

.cart-drawer-body::-webkit-scrollbar {
    width: 5px;
}

.cart-drawer-body::-webkit-scrollbar-track {
    background: transparent;
}

.cart-drawer-body::-webkit-scrollbar-thumb {
    background: #d5d5d5;
    border-radius: 20px;
}


/* =========================================================
   CART ITEM
========================================================= */

.cart-item {
    position: relative;

    margin-top: 16px;
    padding: 20px;

    border: 1px solid #eeeeee;
    border-radius: 12px;

    background: #ffffff;

    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.035);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.cart-item:hover {
    border-color: #dddddd;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);

    transform: translateY(-1px);
}


/* =========================================================
   ITEM INFO
========================================================= */

.cart-item-info {
    padding-right: 35px;
}

.cart-item-info h4 {
    margin: 0 0 6px;

    color: #111111;

    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.cart-item-billing {
    display: inline-flex;

    align-items: center;

    margin-bottom: 12px;

    padding: 4px 9px;

    border-radius: 20px;

    background: #f5f5f5;

    color: #666666;

    font-size: 11px;
    font-weight: 600;

    text-transform: capitalize;
}

.cart-item-price {
    color: #111111;

    font-size: 19px;
    font-weight: 700;
}


/* =========================================================
   QUANTITY
========================================================= */

.cart-item-actions {
    width: fit-content;

    margin-top: 16px;

    display: inline-flex;
    align-items: center;

    border: 1px solid #e5e5e5;
    border-radius: 8px;

    overflow: hidden;

    background: #fafafa;
}

.cart-qty-btn {
    width: 36px;
    height: 34px;

    padding: 0;

    border: 0;

    background: #fafafa;

    color: #222222;

    font-size: 18px;
    font-weight: 500;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cart-qty-btn:hover {
    background: #111111;
    color: #ffffff;
}

.cart-qty {
    min-width: 40px;

    height: 34px;

    padding: 0 8px;

    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;

    color: #111111;

    font-size: 14px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   REMOVE BUTTON
========================================================= */

.cart-remove {
    position: absolute;

    top: 18px;
    right: 18px;

    width: 32px;
    height: 32px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: transparent;

    color: #999999;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cart-remove i {
    font-size: 14px;
}

.cart-remove:hover {
    background: #f5f5f5;
    color: #e53935;
}


/* =========================================================
   EMPTY CART
========================================================= */

.cart-empty {
    padding: 90px 20px 70px;

    text-align: center;
}

.cart-empty-icon {
    width: 78px;
    height: 78px;

    margin: 0 auto 22px;

    border-radius: 50%;

    background: #f6f6f6;

    color: #222222;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-empty-icon i {
    font-size: 28px;
}

.cart-empty h4 {
    margin: 0 0 8px;

    color: #111111;

    font-size: 20px;
    font-weight: 700;
}

.cart-empty p {
    max-width: 250px;

    margin: 0 auto;

    color: #777777;

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   CART FOOTER
========================================================= */

.cart-drawer-footer {
    padding: 22px 24px 24px;

    border-top: 1px solid #eeeeee;

    background: #ffffff;

    box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.035);
}

.cart-total-row {
    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-total-row span {
    color: #666666;

    font-size: 15px;
    font-weight: 500;
}

.cart-total-row strong {
    color: #111111;

    font-size: 25px;
    font-weight: 700;
}

.cart-checkout-btn {
    width: 100%;

    min-height: 56px;

    padding: 14px 20px;

    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    text-align: center;
}

.cart-checkout-btn span {
    display: inline-flex;
    align-items: center;
}

.cart-checkout-btn i {
    font-size: 15px;
}


/* =========================================================
   HEADER CART ICON
========================================================= */

.header-cart {
    position: relative;
    /* margin-right: 24px; */
    display: inline-flex;
    align-items: center;
}

.header-cart>a {
    position: relative;

    width: 42px;
    height: 42px;

    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;

    background: #ffffff;

    color: #111111;

    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.header-cart>a:hover {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.header-cart>a i {
    font-size: 17px;
}


/* =========================================================
   CART COUNT
========================================================= */

.js-cart-count {
    position: absolute;

    top: -6px;
    right: -6px;

    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    border: 2px solid #ffffff;
    border-radius: 50%;

    background: #111111;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.2s ease;
}

.js-cart-count.has-items {
    transform: scale(1.05);
}

.js-proceed-checkout {
    text-align: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 16px;
    background: #17012C;
    display: inline-block;
    color: var(--white);
    font-weight: 700;
}

.js-proceed-checkout:hover {
    background: var(--theme);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 575px) {

    .cart-drawer {
        width: 100%;
    }

    .cart-drawer-header {
        min-height: 78px;

        padding: 18px 20px;
    }

    .cart-drawer-header h3 {
        font-size: 21px;
    }

    .cart-drawer-body {
        padding: 5px 16px 20px;
    }

    .cart-item {
        padding: 17px;
    }

    .cart-item-info {
        padding-right: 32px;
    }

    .cart-drawer-footer {
        padding: 18px 16px 20px;
    }

    .cart-total-row strong {
        font-size: 22px;
    }

    .header-cart {
        margin-right: 14px;
    }

    .header-cart>a {
        width: 38px;
        height: 38px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .cart-item-info h4 {
        font-size: 16px;
    }

    .cart-item-price {
        font-size: 17px;
    }

    .cart-qty-btn {
        width: 32px;
    }

    .cart-qty {
        min-width: 36px;
    }
}