/* ==========================
   Cart Page
========================== */

.cart-page {
    padding: 80px 8%;
}


.cart-page h1 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 45px;
    font-weight: 500;
}


/* ==========================
   Cart Layout
========================== */

.cart-container {

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;

}


/* ==========================
   Cart Items
========================== */

.cart-items {

    display: flex;
    flex-direction: column;
    gap: 25px;

}


.cart-item {

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 80%;
    margin: 20px auto;

    padding: 20px;

    background: #fff;

    border-radius: 10px;

    box-shadow: 0 5px 15px rgba(0,0,0,0.08);

    gap: 25px;

}


/* Product Image */

.cart-item img {

    width: 120px;
    height: 140px;

    object-fit: cover;

    border-radius: 10px;

}


/* Product Info */

.info {

    flex: 1;

}


.info h3 {

    margin-bottom: 10px;

    font-size: 22px;

}


.info p {

    color: #777;

    font-size: 18px;

}


/* ==========================
   Quantity
========================== */

.quantity {

    display: flex;
    align-items: center;
    gap: 10px;

}


.quantity button {

    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: bold;

    cursor: pointer;

    border: none;

    background: #111;

    color: white;

    border-radius: 10px;

    transition: .2s;

}


.quantity button:hover {

    background: #b88a44;

    transform: scale(1.1);

}


.quantity input {

    width: 45px;
    height: 35px;

    text-align: center;

    border: 1px solid #ddd;

}



/* ==========================
   Remove Button
========================== */


.remove-btn {

    padding: 10px 18px;

    border: none;

    border-radius: 8px;

    background: #ff3b3b;

    color: white;

    cursor: pointer;

    transition: .2s;

}

.cart-item .add-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 10px;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s ease, transform .2s ease;
    margin-top: 15px;
}

.cart-item .add-cart-btn:hover {
    background: #b88a44;
    transform: translateY(-1px);
}

.remove-btn {
    padding: 10px 18px;

    border: none;

    border-radius: 8px;

    background: #ff3b3b;

    color: white;

    cursor: pointer;

    transition: .2s;

}


.remove-btn:hover {

    background: #d60000;

    transform: scale(1.05);

}



/* ==========================
   Summary
========================== */


.summary {

    padding:30px;

    background:#fafafa;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

    height:max-content;

    position: sticky;

    top: 30px;

    border-radius: 15PX;
}


.summary h2 {

    margin-bottom: 25px;

}


.summary p,
.summary h3 {

    display: flex;

    justify-content: space-between;

    margin: 18px 0;

}


.summary hr {

    margin: 20px 0;

}


.checkout {

    width: 100%;

    padding: 18px;

    background: #111;

    color: white;

    font-size: 17px;

    border: none;

    cursor: pointer;

    transition: .3s;

    border-radius: 15px;

}


.checkout:hover {

    background: #b88a44;

}

.cart-items{
    display:flex;
    flex-direction:column;
    gap:25px;
}


.cart-item{
    display:flex !important;
    align-items:center;
    justify-content:space-between;
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
}


.cart-item img{
    display:block;
    width:120px;
    height:140px;
    object-fit:cover;
}



/* ==========================
   Responsive
========================== */


@media(max-width:900px){


.cart-container {

    grid-template-columns: 1fr;

}


.cart-item {

    width: 100%;

    flex-direction: column;

    text-align: center;

}


.info {

    padding-left: 0;

}
.summary {

    position: static;

}


}