*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f5f5;
}

header{
    background:#fff;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 3px 10px rgba(0,0,0,.1);
}

header h2{
    color:#ff6600;
}

header a{
    text-decoration:none;
    color:#333;
    font-weight:bold;
}

.container{
    width:90%;
    margin:40px auto;
    display:grid;
    grid-template-columns:2fr 1fr;
    gap:30px;
}

#cartItems{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.cart-item{
    background:#fff;
    display:flex;
    gap:20px;
    padding:15px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}

.cart-item img{
    width:150px;
    height:120px;
    object-fit:cover;
    border-radius:8px;
}

.details{
    flex:1;
}

.details h3{
    margin-bottom:10px;
}

.price{
    color:#ff6600;
    font-size:22px;
    font-weight:bold;
    margin:10px 0;
}

.qty{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
}

.qty button{
    width:35px;
    height:35px;
    border:none;
    background:#ff6600;
    color:#fff;
    cursor:pointer;
    border-radius:5px;
    font-size:18px;
}

.remove{
    margin-top:15px;
    background:red;
    color:#fff;
    border:none;
    padding:10px 15px;
    cursor:pointer;
    border-radius:5px;
}

.summary{
    background:#fff;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    height:fit-content;
}

.summary h2{
    margin-bottom:20px;
}

.summary h3{
    margin-bottom:25px;
}

#checkoutBtn{
    width:100%;
    padding:15px;
    border:none;
    background:#ff6600;
    color:#fff;
    font-size:18px;
    cursor:pointer;
    border-radius:8px;
}

#checkoutBtn:hover{
    background:#e65c00;
}

@media(max-width:768px){

.container{
    grid-template-columns:1fr;
}

.cart-item{
    flex-direction:column;
}

.cart-item img{
    width:100%;
    height:220px;
}

}