/* ===========================
   CART PAGE
=========================== */

.cart-hero{
    padding:70px 8%;
    background:linear-gradient(135deg,#eef5ff,#ffffff);
    text-align:center;
}

.cart-hero span{
    display:inline-block;
    background:#F5A623;
    color:#fff;
    padding:8px 20px;
    border-radius:30px;
    font-size:14px;
    font-weight:600;
}

.cart-hero h1{
    color:#0A2A66;
    font-size:45px;
    margin:18px 0 10px;
}

.cart-hero p{
    color:#666;
    font-size:17px;
}


/* ===========================
   CART SECTION
=========================== */

.cart-section{
    padding:70px 8%;
    background:#f8fafc;
    min-height:500px;
}

.cart-container{
    display:grid;
    grid-template-columns:1fr 360px;
    gap:35px;
    max-width:1250px;
    margin:auto;
}


/* ===========================
   CART ITEMS
=========================== */

.cart-items{
    background:#fff;
    border-radius:18px;
    padding:28px;
    box-shadow:0 10px 30px rgba(0,0,0,.07);
}

.cart-heading{
    display:flex;
    justify-content:space-between;
    align-items:center;
    border-bottom:1px solid #eee;
    padding-bottom:20px;
    margin-bottom:20px;
}

.cart-heading h2{
    margin:0;
    color:#0A2A66;
    font-size:24px;
}

.cart-heading span{
    color:#777;
    font-size:14px;
}


/* ===========================
   SINGLE CART ITEM
=========================== */

.cart-item{
    display:flex;
    align-items:center;
    gap:20px;
    padding:20px 0;
    border-bottom:1px solid #eee;
}

.cart-item:last-child{
    border-bottom:none;
}

.cart-item-image{
    width:100px;
    height:125px;
    background:#f5f7fa;
    border-radius:10px;
    padding:8px;
    object-fit:contain;
    flex-shrink:0;
}

.cart-item-info{
    flex:1;
}

.cart-item-info h3{
    color:#0A2A66;
    font-size:17px;
    margin:0 0 7px;
    line-height:1.4;
}

.cart-item-info p{
    color:#777;
    font-size:14px;
    margin:0 0 8px;
}

.cart-item-price{
    color:#009688;
    font-size:18px;
    font-weight:700;
}


/* ===========================
   QUANTITY
=========================== */

.quantity-box{
    display:flex;
    align-items:center;
    border:1px solid #ddd;
    border-radius:8px;
    overflow:hidden;
}

.quantity-box button{
    width:35px;
    height:35px;
    border:none;
    background:#f5f7fa;
    color:#0A2A66;
    font-size:18px;
    cursor:pointer;
    transition:.2s;
}

.quantity-box button:hover{
    background:#0A2A66;
    color:#fff;
}

.quantity-box span{
    min-width:38px;
    text-align:center;
    font-weight:600;
}


/* ===========================
   REMOVE BUTTON
=========================== */

.remove-cart{
    border:none;
    background:none;
    color:#e53935;
    cursor:pointer;
    font-size:18px;
    padding:8px;
    transition:.2s;
}

.remove-cart:hover{
    color:#b71c1c;
    transform:scale(1.1);
}


/* ===========================
   ORDER SUMMARY
=========================== */

.order-summary{
    background:#fff;
    border-radius:18px;
    padding:28px;
    height:max-content;
    box-shadow:0 10px 30px rgba(0,0,0,.07);
    position:sticky;
    top:25px;
}

.order-summary h2{
    color:#0A2A66;
    margin:0 0 25px;
    font-size:24px;
}

.summary-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
    color:#555;
    font-size:15px;
}

.summary-row span:last-child{
    color:#222;
    font-weight:600;
}

.summary-row .free{
    color:#009688;
}

.summary-line{
    height:1px;
    background:#eee;
    margin:20px 0;
}

.summary-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.summary-total span{
    color:#333;
    font-size:17px;
    font-weight:600;
}

.summary-total strong{
    color:#0A2A66;
    font-size:25px;
}


/* ===========================
   CHECKOUT BUTTON
=========================== */

.checkout-btn{
    width:100%;
    border:none;
    background:#0A2A66;
    color:#fff;
    padding:15px 20px;
    border-radius:10px;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.3s;
}

.checkout-btn:hover{
    background:#F5A623;
    transform:translateY(-2px);
}

.checkout-btn i{
    margin-left:8px;
}


/* ===========================
   CONTINUE SHOPPING
=========================== */

.continue-link{
    display:block;
    text-align:center;
    margin-top:18px;
    color:#0A2A66;
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}

.continue-link:hover{
    color:#F5A623;
}


/* ===========================
   EMPTY CART
=========================== */

.empty-cart{
    text-align:center;
    padding:60px 20px;
}

.empty-cart-icon{
    width:85px;
    height:85px;
    margin:0 auto 20px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#eef5ff;
    color:#0A2A66;

    border-radius:50%;

    font-size:32px;
}

.empty-cart h2{
    color:#0A2A66;
    margin-bottom:10px;
}

.empty-cart p{
    color:#777;
    margin-bottom:25px;
}

.continue-shopping{
    display:inline-flex;
    align-items:center;
    gap:8px;

    background:#0A2A66;
    color:#fff;

    text-decoration:none;

    padding:13px 24px;

    border-radius:30px;

    font-weight:600;

    transition:.3s;
}

.continue-shopping:hover{
    background:#F5A623;
}


/* ===========================
   RESPONSIVE
=========================== */

@media(max-width:1000px){

    .cart-container{
        grid-template-columns:1fr;
    }

    .order-summary{
        position:static;
    }

}


@media(max-width:650px){

    .cart-hero{
        padding:50px 5%;
    }

    .cart-hero h1{
        font-size:34px;
    }

    .cart-section{
        padding:40px 5%;
    }

    .cart-items{
        padding:18px;
    }

    .cart-item{
        flex-wrap:wrap;
        gap:15px;
    }

    .cart-item-image{
        width:80px;
        height:105px;
    }

    .cart-item-info{
        width:calc(100% - 100px);
    }

    .quantity-box{
        margin-left:95px;
    }

    .remove-cart{
        margin-left:auto;
    }

}