/* =========================================================
   SANVI MASALE - CART PAGE
========================================================= */

.cart-page {
    background: #f8f8f8;
    min-height: 70vh;
}


/* =========================================================
   PAGE BANNER
========================================================= */

.cart-page-banner {
    background: linear-gradient(
        135deg,
        #fff5f5,
        #ffffff
    );

    padding: 45px 0;

    border-bottom: 1px solid #eeeeee;
}

.cart-banner-content {
    text-align: center;
}

.cart-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #777;

    font-size: 14px;

    margin-bottom: 12px;
}

.cart-breadcrumb i {
    font-size: 11px;
}

.cart-banner-content h1 {
    margin: 0 0 8px;

    font-size: 36px;

    font-weight: 700;

    color: #222;
}

.cart-banner-content p {
    margin: 0;

    color: #777;

    font-size: 15px;
}


/* =========================================================
   CART SECTION
========================================================= */

.cart-section {
    padding: 45px 0 70px;
}


/* =========================================================
   CART TOP BAR
========================================================= */

.cart-topbar {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}

.cart-topbar h2 {
    margin: 0 0 4px;

    font-size: 24px;

    font-weight: 700;

    color: #222;
}

.cart-topbar p {
    margin: 0;

    color: #777;

    font-size: 14px;
}


/* =========================================================
   CLEAR CART
========================================================= */

.clear-cart-form {
    margin: 0;
}

.btn-clear-cart {
    border: 0;

    background: transparent;

    color: #dc3545;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    padding: 8px 0;
}

.btn-clear-cart:hover {
    color: #a71d2a;
}

.btn-clear-cart i {
    margin-right: 6px;
}


/* =========================================================
   CART PRODUCTS CARD
========================================================= */

.cart-products-card {
    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 14px;

    overflow: hidden;
}


/* =========================================================
   CART PRODUCT
========================================================= */

.cart-product {
    display: flex;

    gap: 22px;

    padding: 24px;

    border-bottom: 1px solid #eeeeee;

    position: relative;
}

.cart-product:last-child {
    border-bottom: 0;
}


/* =========================================================
   PRODUCT IMAGE
========================================================= */

.cart-product-image {
    width: 145px;

    min-width: 145px;

    height: 145px;

    background: #fafafa;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

    border: 1px solid #eeeeee;
}

.cart-product-image img {
    width: 100%;

    height: 100%;

    object-fit: contain;

    padding: 10px;
}


/* =========================================================
   PRODUCT DETAILS
========================================================= */

.cart-product-details {
    flex: 1;

    min-width: 0;
}

.cart-product-details h3 {
    margin: 0 0 10px;

    font-size: 18px;

    font-weight: 700;

    color: #222;
}

.cart-product-meta {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 12px;

    color: #777;

    font-size: 13px;
}

.cart-product-meta span {
    display: inline-flex;

    align-items: center;

    gap: 6px;
}

.cart-product-meta i {
    color: #c9252d;
}


/* =========================================================
   PRICE
========================================================= */

.cart-product-price {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 18px;
}

.cart-product-price strong {
    font-size: 19px;

    color: #c9252d;

    font-weight: 700;
}

.cart-product-price del {
    color: #999;

    font-size: 14px;
}

.discount-badge {
    background: #e8f7ed;

    color: #198754;

    padding: 4px 8px;

    border-radius: 5px;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   ACTIONS
========================================================= */

.cart-product-actions {
    display: flex;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}


/* =========================================================
   QUANTITY
========================================================= */

.quantity-form {
    display: flex;

    align-items: center;

    margin: 0;
}

.quantity-btn {
    width: 34px;

    height: 34px;

    border: 1px solid #dddddd;

    background: #ffffff;

    color: #333;

    display: flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    transition: all 0.2s ease;
}

.quantity-btn:first-of-type {
    border-radius: 6px 0 0 6px;
}

.quantity-btn:hover {
    background: #f5f5f5;

    color: #c9252d;
}

.quantity-btn i {
    font-size: 10px;
}

.quantity-input {
    width: 45px;

    height: 34px;

    border: 1px solid #dddddd;

    border-left: 0;

    border-right: 0;

    text-align: center;

    font-size: 14px;

    font-weight: 600;

    outline: none;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;

    margin: 0;
}

.update-quantity-btn {
    height: 34px;

    margin-left: 8px;

    border: 0;

    background: #f1f1f1;

    color: #444;

    padding: 0 12px;

    border-radius: 5px;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}

.update-quantity-btn:hover {
    background: #c9252d;

    color: #ffffff;
}


/* =========================================================
   REMOVE
========================================================= */

.remove-item-form {
    margin: 0;
}

.remove-item-btn {
    border: 0;

    background: transparent;

    color: #777;

    font-size: 13px;

    cursor: pointer;

    padding: 5px 0;
}

.remove-item-btn:hover {
    color: #dc3545;
}

.remove-item-btn i {
    margin-right: 5px;
}


/* =========================================================
   ITEM TOTAL
========================================================= */

.cart-item-total {
    min-width: 120px;

    text-align: right;

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.cart-item-total small {
    color: #888;

    font-size: 12px;

    margin-bottom: 5px;
}

.cart-item-total strong {
    font-size: 18px;

    color: #222;

    font-weight: 700;
}


/* =========================================================
   CONTINUE SHOPPING
========================================================= */

.continue-shopping {
    padding-top: 20px;
}

.continue-shopping a {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #333;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;
}

.continue-shopping a:hover {
    color: #c9252d;
}


/* =========================================================
   SUMMARY
========================================================= */

.cart-summary-card {
    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 14px;

    overflow: hidden;

    position: sticky;

    top: 20px;
}

.summary-header {
    padding: 20px 22px;

    border-bottom: 1px solid #eeeeee;
}

.summary-header h2 {
    margin: 0;

    font-size: 20px;

    font-weight: 700;

    color: #222;
}

.summary-body {
    padding: 22px;
}

.summary-row {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 16px;

    font-size: 14px;

    color: #666;
}

.summary-row strong {
    color: #222;

    font-weight: 600;
}

.free-delivery {
    color: #198754 !important;
}

.summary-divider {
    height: 1px;

    background: #eeeeee;

    margin: 20px 0;
}

.summary-total {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;
}

.summary-total span {
    font-size: 17px;

    font-weight: 700;

    color: #222;
}

.summary-total strong {
    font-size: 23px;

    font-weight: 700;

    color: #c9252d;
}


/* =========================================================
   CHECKOUT BUTTON
========================================================= */

.checkout-btn {
    width: 100%;

    min-height: 50px;

    background: #c9252d;

    color: #ffffff;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    transition: all 0.25s ease;
}

.checkout-btn:hover {
    background: #a91d24;

    color: #ffffff;

    transform: translateY(-1px);
}


/* =========================================================
   SECURE CHECKOUT
========================================================= */

.secure-checkout {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 20px;

    padding: 13px;

    background: #f7f7f7;

    border-radius: 8px;
}

.secure-checkout > i {
    color: #198754;

    font-size: 20px;
}

.secure-checkout div {
    display: flex;

    flex-direction: column;
}

.secure-checkout strong {
    color: #333;

    font-size: 12px;
}

.secure-checkout small {
    color: #888;

    font-size: 11px;

    margin-top: 2px;
}


/* =========================================================
   BENEFITS
========================================================= */

.cart-benefits {
    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 14px;

    margin-top: 20px;

    overflow: hidden;
}

.cart-benefit {
    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px;

    border-bottom: 1px solid #eeeeee;
}

.cart-benefit:last-child {
    border-bottom: 0;
}

.cart-benefit > i {
    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: #fff1f1;

    color: #c9252d;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 15px;
}

.cart-benefit div {
    display: flex;

    flex-direction: column;
}

.cart-benefit strong {
    color: #333;

    font-size: 13px;
}

.cart-benefit span {
    color: #888;

    font-size: 11px;

    margin-top: 2px;
}


/* =========================================================
   EMPTY CART
========================================================= */

.empty-cart {
    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 16px;

    text-align: center;

    padding: 80px 25px;

    max-width: 700px;

    margin: 0 auto;
}

.empty-cart-icon {
    width: 90px;

    height: 90px;

    margin: 0 auto 25px;

    border-radius: 50%;

    background: #fff1f1;

    color: #c9252d;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 35px;
}

.empty-cart h2 {
    margin: 0 0 10px;

    font-size: 26px;

    font-weight: 700;

    color: #222;
}

.empty-cart p {
    margin: 0 auto 25px;

    color: #777;

    font-size: 14px;

    max-width: 450px;

    line-height: 1.7;
}

.shop-now-btn {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: #c9252d;

    color: #ffffff;

    padding: 12px 22px;

    border-radius: 7px;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;
}

.shop-now-btn:hover {
    background: #a91d24;

    color: #ffffff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 991px) {

    .cart-summary-card {
        position: static;
    }

}


@media (max-width: 767px) {

    .cart-page-banner {
        padding: 35px 0;
    }

    .cart-banner-content h1 {
        font-size: 28px;
    }

    .cart-section {
        padding: 30px 0 50px;
    }

    .cart-topbar {
        align-items: flex-start;
    }

    .cart-product {
        gap: 15px;

        padding: 18px;

        flex-wrap: wrap;
    }

    .cart-product-image {
        width: 100px;

        min-width: 100px;

        height: 100px;
    }

    .cart-product-details {
        width: calc(100% - 115px);
    }

    .cart-product-details h3 {
        font-size: 16px;
    }

    .cart-product-meta {
        flex-direction: column;

        align-items: flex-start;

        gap: 5px;
    }

    .cart-item-total {
        width: 100%;

        min-width: 0;

        text-align: left;

        padding-top: 10px;

        border-top: 1px dashed #dddddd;
    }

    .cart-product-actions {
        gap: 12px;
    }

}


@media (max-width: 480px) {

    .cart-topbar h2 {
        font-size: 20px;
    }

    .btn-clear-cart {
        font-size: 12px;
    }

    .cart-product {
        padding: 14px;
    }

    .cart-product-image {
        width: 80px;

        min-width: 80px;

        height: 80px;
    }

    .cart-product-details {
        width: calc(100% - 95px);
    }

    .cart-product-details h3 {
        font-size: 14px;
    }

    .cart-product-price strong {
        font-size: 16px;
    }

    .update-quantity-btn {
        display: none;
    }

    .remove-item-btn {
        font-size: 12px;
    }

}


/* =========================================================
   CART TOAST
========================================================= */

.cart-toast {

    position: fixed;

    top: 25px;

    right: 25px;

    min-width: 300px;

    max-width: 400px;

    padding: 15px 18px;

    background: #ffffff;

    border-radius: 10px;

    display: flex;

    align-items: center;

    gap: 12px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.15);

    z-index: 99999;

    opacity: 0;

    transform: translateX(120%);

    transition:
        opacity .3s ease,
        transform .3s ease;

}


.cart-toast.show {

    opacity: 1;

    transform: translateX(0);

}


.cart-toast-icon {

    font-size: 20px;

}


.cart-toast-success {

    border-left: 4px solid #198754;

}


.cart-toast-success
.cart-toast-icon {

    color: #198754;

}


.cart-toast-error {

    border-left: 4px solid #dc3545;

}


.cart-toast-error
.cart-toast-icon {

    color: #dc3545;

}


.cart-toast-message {

    font-size: 14px;

    font-weight: 600;

    color: #333;

}


@media (max-width: 576px) {

    .cart-toast {

        left: 15px;

        right: 15px;

        top: 15px;

        min-width: auto;

    }

}

/* =========================================================
   CART QUANTITY + / - BUTTONS
========================================================= */

.quantity-box {
    display: inline-flex;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    height: 38px;
}

.quantity-box button {
    width: 38px;
    height: 38px;
    border: 0;
    background: #fff;
    color: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.quantity-box button:hover {
    background: #d62828;
    color: #fff;
}

.quantity-box button:active {
    transform: scale(0.95);
}


/* =========================================================
   QUANTITY INPUT
========================================================= */

.quantity-box .quantity-input {
    width: 42px;
    height: 38px;
    border: 0;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    background: #fff;
    outline: none;
    padding: 0;
}


/* Remove browser number arrows */

.quantity-box .quantity-input::-webkit-inner-spin-button,
.quantity-box .quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-box .quantity-input {
    -moz-appearance: textfield;
}


/* =========================================================
   REMOVE BUTTON
========================================================= */

.remove-cart-item {
    border: 0;
    background: transparent;
    color: #777;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    margin-left: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.remove-cart-item i {
    color: #d62828;
    font-size: 14px;
    transition: all 0.2s ease;
}

.remove-cart-item:hover {
    background: #fff1f1;
    color: #d62828;
}

.remove-cart-item:hover i {
    color: #b71c1c;
}


/* =========================================================
   CART PRODUCT ACTIONS
========================================================= */

.cart-product-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .cart-product-actions {
        gap: 8px;
    }

    .quantity-box {
        height: 36px;
    }

    .quantity-box button {
        width: 36px;
        height: 36px;
    }

    .quantity-box .quantity-input {
        width: 38px;
        height: 36px;
    }

    .remove-cart-item {
        font-size: 13px;
        padding: 7px 8px;
    }

}