/* ==========================================
   CART PAGE
========================================== */

.cart-page{
    padding:45px 0 80px;
}

.cart-header{
    margin-bottom:30px;
}

.cart-header h1{
    margin:0 0 8px;
    font-size:30px;
}

.cart-header p{
    margin:0;
    color:#777;
}


/* ==========================================
   CART LAYOUT
========================================== */

.cart-layout{
    display:grid;
    grid-template-columns:minmax(0, 1fr) 360px;
    gap:25px;
    align-items:start;
}


/* ==========================================
   CART ITEMS
========================================== */

.cart-items{
    background:#fff;
    border:1px solid #eee;
    border-radius:16px;
    overflow:hidden;
}

.cart-items-header{
    padding:18px 20px;
    border-bottom:1px solid #eee;
}


/* ==========================================
   CART ITEM
========================================== */

.cart-item{
    position:relative;
    display:flex;
    gap:16px;
    padding:20px;
    border-bottom:1px solid #eee;
}

.cart-item:last-child{
    border-bottom:none;
}

.cart-item-image{
    width:100px;
    height:100px;
    flex-shrink:0;
    overflow:hidden;
    border-radius:12px;
    background:#f5f5f5;
}

.cart-item-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.cart-image-empty{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:32px;
    color:#aaa;
}


/* ==========================================
   INFO ITEM
========================================== */

.cart-item-info{
    flex:1;
    min-width:0;
}

.cart-item-info h3{
    margin:0 35px 5px 0;
    font-size:17px;
}

.cart-item-price{
    margin:0 0 15px;
    color:#ff6b00;
    font-size:14px;
    font-weight:600;
}

.cart-item-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
}

.cart-item-total{
    font-size:16px;
}


/* ==========================================
   QUANTITY
========================================== */

.quantity-control{
    display:inline-flex;
    align-items:center;
    border:1px solid #ddd;
    border-radius:9px;
    overflow:hidden;
}

.btn-qty{
    width:34px;
    height:32px;
    border:none;
    background:#fff;
    cursor:pointer;
    font-size:18px;
}

.btn-qty:hover{
    background:#f5f5f5;
}

.item-qty{
    min-width:35px;
    text-align:center;
    font-size:14px;
    font-weight:600;
}


/* ==========================================
   REMOVE
========================================== */

.btn-remove-cart{
    position:absolute;
    top:16px;
    right:16px;
    width:28px;
    height:28px;
    border:none;
    border-radius:50%;
    background:#f5f5f5;
    color:#777;
    cursor:pointer;
    font-size:20px;
    line-height:1;
}

.btn-remove-cart:hover{
    background:#fdeaea;
    color:#dc3545;
}


/* ==========================================
   SUMMARY
========================================== */

.cart-summary{
    position:sticky;
    top:90px;
    padding:22px;
    background:#fff;
    border:1px solid #eee;
    border-radius:16px;
    box-shadow:0 5px 18px rgba(0,0,0,.05);
}

.cart-summary h2{
    margin:0 0 20px;
    font-size:20px;
}

.summary-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:13px;
    color:#666;
    font-size:14px;
}

.summary-row strong{
    color:#222;
}

.summary-divider{
    height:1px;
    background:#eee;
    margin:18px 0;
}

.summary-total{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:20px;
    font-size:17px;
    font-weight:600;
}

.summary-total strong{
    color:#ff6b00;
    font-size:20px;
}


/* ==========================================
   BUTTON CHECKOUT
========================================== */

.btn-checkout{
    width:100%;
    border:none;
    padding:13px 16px;
    border-radius:10px;
    background:#ff6b00;
    color:#fff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
}

.btn-checkout:hover{
    background:#e85f00;
}

.btn-continue-shopping{
    display:block;
    margin-top:12px;
    text-align:center;
    color:#555;
    font-size:14px;
    text-decoration:none;
}

.btn-continue-shopping:hover{
    color:#ff6b00;
}


/* ==========================================
   CART EMPTY
========================================== */

.cart-empty{
    padding:70px 20px;
    text-align:center;
    background:#fff;
    border:1px solid #eee;
    border-radius:16px;
}

.cart-empty-icon{
    font-size:55px;
    margin-bottom:15px;
}

.cart-empty h2{
    margin:0 0 8px;
    font-size:23px;
}

.cart-empty p{
    margin:0 0 25px;
    color:#777;
}

.btn-cart-back{
    display:inline-block;
    padding:11px 20px;
    border-radius:10px;
    background:#ff6b00;
    color:#fff;
    text-decoration:none;
    font-weight:600;
}


/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width:900px){

    .cart-layout{
        grid-template-columns:1fr;
    }

    .cart-summary{
        position:static;
    }

}


@media (max-width:600px){

    .cart-page{
        padding:25px 0 50px;
    }

    .cart-header h1{
        font-size:25px;
    }

    .cart-item{
        gap:12px;
        padding:15px;
    }

    .cart-item-image{
        width:80px;
        height:80px;
    }

    .cart-item-info h3{
        font-size:15px;
    }

    .cart-item-bottom{
        align-items:flex-end;
        flex-direction:column;
        gap:8px;
    }

    .cart-item-total{
        font-size:14px;
    }

    .cart-summary{
        padding:18px;
    }

}

.btn-checkout{
    display:block;
    box-sizing:border-box;
    text-align:center;
    text-decoration:none;
}