/* =====================================================
   CART PAGE HEADER
===================================================== */

.cart-page-header {
    background: #f7f7f8;
    padding: 50px 0;
    border-bottom: 1px solid #eee;
}

.cart-page-header h1 {
    font-size: 38px;
    font-weight: 800;
    margin: 12px 0 8px;
}

.cart-page-header p {
    color: #777;
    margin: 0;
    font-size: 14px;
}

.cart-breadcrumb {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #999;
}

.cart-breadcrumb a {
    color: #555;
    text-decoration: none;
}


/* =====================================================
   CART SECTION
===================================================== */

.cart-section {
    background: #fff;
    padding: 55px 0 80px;
}


/* =====================================================
   CART ITEMS BOX
===================================================== */

.cart-items-box {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 15px;
    overflow: hidden;
}

.cart-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 22px 25px;

    border-bottom: 1px solid #eee;
}

.cart-items-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 4px;
}

.cart-items-header span {
    color: #888;
    font-size: 12px;
}

.clear-cart-btn {
    border: 0;
    background: transparent;
    color: #777;
    font-size: 12px;
    cursor: pointer;
}

.clear-cart-btn:hover {
    color: #dc3545;
}


/* =====================================================
   CART ITEM
===================================================== */

.cart-item {
    display: grid;

    grid-template-columns:
        105px
        minmax(0, 1fr)
        auto;

    gap: 20px;

    padding: 22px 25px;

    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: 0;
}


/* Image */

.cart-item-image {
    width: 105px;
    height: 105px;

    background: #f5f5f5;

    border-radius: 10px;

    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* Details */

.cart-item-details {
    min-width: 0;
}

.cart-item-category {
    color: #999;

    font-size: 10px;
    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .6px;

    margin-bottom: 5px;
}

.cart-item-name {
    display: block;

    color: #111;

    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    margin-bottom: 8px;
}

.cart-item-name:hover {
    text-decoration: underline;
}

.cart-item-variant {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    color: #777;

    font-size: 12px;

    margin-bottom: 15px;
}

.cart-item-variant strong {
    color: #333;
}


/* Quantity */

.cart-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cart-quantity {
    display: inline-flex;

    height: 38px;

    border: 1px solid #ddd;

    border-radius: 7px;

    overflow: hidden;
}

.cart-quantity button {
    width: 35px;

    border: 0;

    background: #fff;

    cursor: pointer;
}

.cart-quantity button:hover {
    background: #f5f5f5;
}

.cart-quantity input {
    width: 45px;

    border: 0;

    border-left: 1px solid #eee;
    border-right: 1px solid #eee;

    text-align: center;

    font-size: 13px;
    font-weight: 700;

    outline: none;
}

.cart-quantity input::-webkit-inner-spin-button,
.cart-quantity input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}


/* Price */

.cart-item-price-area {
    min-width: 105px;

    text-align: right;
}

.cart-item-price {
    display: block;

    font-size: 17px;
    font-weight: 800;

    margin-bottom: 10px;
}

.remove-item-btn {
    border: 0;

    background: transparent;

    color: #999;

    font-size: 12px;

    cursor: pointer;
}

.remove-item-btn:hover {
    color: #dc3545;
}


/* =====================================================
   ORDER SUMMARY
===================================================== */

.order-summary {
    position: sticky;
    top: 25px;

    padding: 25px;

    border: 1px solid #e7e7e7;

    border-radius: 15px;

    background: #fff;
}

.order-summary h2 {
    font-size: 20px;
    font-weight: 800;

    margin-bottom: 25px;
}


/* Summary rows */

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    margin-bottom: 15px;

    color: #777;

    font-size: 13px;
}

.summary-row strong {
    color: #111;
}

.discount-text {
    color: #198754 !important;
}

.summary-divider {
    height: 1px;

    background: #eee;

    margin: 20px 0;
}


/* Total */

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 16px;

    margin-bottom: 25px;
}

.summary-total strong {
    font-size: 23px;
    font-weight: 800;
}


/* =====================================================
   COUPON
===================================================== */

.coupon-box {
    margin-bottom: 22px;
}

.coupon-box label {
    display: block;

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 8px;
}

.coupon-input {
    display: flex;

    height: 44px;

    border: 1px solid #ddd;

    border-radius: 7px;

    overflow: hidden;
}

.coupon-input input {
    min-width: 0;
    flex: 1;

    border: 0;

    padding: 0 12px;

    outline: none;

    font-size: 12px;
}

.coupon-input button {
    width: 75px;

    border: 0;

    background: #00409e;

    color: #fff;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.coupon-input button:hover {
    background: #333;
}

#couponMessage {
    display: block;

    margin-top: 7px;

    font-size: 11px;
}


/* =====================================================
   CHECKOUT
===================================================== */

.checkout-btn {
    width: 100%;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 9px;

    background: #00409e;

    color: #fff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: all .2s ease;
}

.checkout-btn:hover {
    background: #333;
    transform: translateY(-1px);
}


/* =====================================================
   CONTINUE SHOPPING
===================================================== */

.continue-shopping-link {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    color: #555;

    font-size: 12px;
    font-weight: 600;

    text-decoration: none;

    margin-top: 18px;
}

.continue-shopping-link:hover {
    color: #111;
}


/* =====================================================
   SECURE CHECKOUT
===================================================== */

.secure-checkout {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 22px;

    padding-top: 18px;

    border-top: 1px solid #eee;

    color: #888;

    font-size: 10px;
}

.secure-checkout i {
    font-size: 15px;
}


/* =====================================================
   EMPTY CART
===================================================== */

.empty-cart {
    max-width: 550px;

    margin: 20px auto 30px;

    padding: 70px 20px;

    text-align: center;
}

.empty-cart-icon {
    width: 90px;
    height: 90px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f5f5f5;

    font-size: 36px;
}

.empty-cart h2 {
    font-size: 25px;
    font-weight: 800;

    margin-bottom: 10px;
}

.empty-cart p {
    color: #777;

    font-size: 14px;

    margin-bottom: 25px;
}

.btn-continue-shopping {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    height: 48px;

    padding: 0 25px;

    background: #00409e;

    color: #fff;

    border-radius: 8px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
}


/* =====================================================
   CONFIRM MODAL
===================================================== */

.confirm-icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 18px;

    border-radius: 50%;

    background: #f8f8f8;

    color: #dc3545;

    font-size: 25px;
}

.confirm-actions {
    display: flex;

    justify-content: center;

    gap: 10px;

    margin-top: 25px;
}

.cancel-btn,
.remove-confirm-btn {
    height: 42px;

    padding: 0 22px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.cancel-btn {
    border: 1px solid #ddd;
    background: #fff;
}

.remove-confirm-btn {
    border: 0;
    background: #dc3545;
    color: #fff;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .cart-page-header {
        padding: 35px 0;
    }

    .cart-page-header h1 {
        font-size: 30px;
    }

    .cart-section {
        padding: 30px 0 50px;
    }

    .cart-items-header {
        padding: 18px;
    }

    .cart-item {
        grid-template-columns: 75px minmax(0, 1fr);

        gap: 14px;

        padding: 18px;
    }

    .cart-item-image {
        width: 75px;
        height: 75px;
    }

    .cart-item-price-area {
        grid-column: 2;
        min-width: 0;

        display: flex;

        align-items: center;
        justify-content: space-between;

        text-align: left;
    }

    .cart-item-price {
        margin: 0;
    }

    .cart-item-bottom {
        align-items: flex-start;

        flex-direction: column;

        gap: 10px;
    }

    .order-summary {
        position: static;
    }

}