/* ==========================================
   SPANKY'S KITCHEN
   CART.CSS
   Cart-page styles only
========================================== */

.cart-page{
    width:100%;
    max-width:1024px;
    margin:0 auto;
    padding:30px 20px;
}

.cart-header{
    width:100%;
    margin-bottom:24px;
    color:#111111;
}

.cart-header h1{
    font-size:32px;
    line-height:1.2;
    margin-bottom:6px;
    color:#111111;
}

.cart-header p{
    font-size:16px;
    color:#333333;
}

.cart-empty{
    width:100%;
    background:#FFFFFF;
    border-radius:14px;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 6px 20px rgba(0,0,0,.12);
    color:#111111;
}

.cart-empty h2{
    font-size:24px;
    margin-bottom:10px;
    color:#111111;
}

.cart-empty p{
    font-size:16px;
    margin-bottom:20px;
    color:#333333;
}

.cart-btn{
    display:inline-block;
    background:#D45113;
    color:#FFFFFF;
    padding:12px 18px;
    border-radius:10px;
    text-decoration:none;
    font-weight:700;
}

.cart-layout{
    width:100%;
    display:grid;
    grid-template-columns:1fr 300px;
    gap:22px;
    align-items:start;
}

.cart-items{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:18px;
}

.cart-item{
    width:100%;
    display:grid;
    grid-template-columns:110px 1fr 170px;
    gap:16px;
    align-items:center;
    background:#FFFFFF;
    border-radius:14px;
    padding:16px;
    box-shadow:0 6px 20px rgba(0,0,0,.12);
    color:#111111;
}

.cart-item-image{
    width:110px;
    height:110px;
    border-radius:12px;
    overflow:hidden;
    background:#F8DDA4;
}

.cart-item-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.cart-image-placeholder{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#813405;
    font-size:13px;
    font-weight:700;
    text-align:center;
}

.cart-item-info h2{
    font-size:20px;
    line-height:1.25;
    margin-bottom:8px;
    color:#111111;
}

.cart-item-info p{
    font-size:14px;
    line-height:1.45;
    margin-bottom:10px;
    color:#333333;
}

.cart-item-info strong{
    font-size:17px;
    color:#813405;
}

.cart-item-actions{
    width:100%;
    display:flex;
    flex-direction:column;
    gap:10px;
    align-items:stretch;
}

.qty-controls{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.qty-controls form{
    margin:0;
}

.qty-btn{
    width:42px;
    height:42px;
    border:0;
    border-radius:10px;
    background:#D45113;
    color:#FFFFFF;
    font-size:24px;
    line-height:1;
    font-weight:800;
    cursor:pointer;
}

.qty-display{
    min-width:54px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#F8DDA4;
    border-radius:10px;
    font-size:18px;
    font-weight:800;
    color:#111111;
}

.remove-btn,
.clear-btn{
    width:100%;
    border:0;
    border-radius:8px;
    padding:10px 12px;
    cursor:pointer;
    font-size:14px;
    font-weight:700;
}

.remove-btn{
    background:#813405;
    color:#FFFFFF;
}

.cart-line-total{
    width:100%;
    padding-top:4px;
    font-size:18px;
    font-weight:800;
    color:#111111;
    text-align:right;
}

.cart-summary{
    width:100%;
    background:#FFFFFF;
    border-radius:14px;
    padding:20px;
    box-shadow:0 6px 20px rgba(0,0,0,.12);
    color:#111111;
    position:sticky;
    top:20px;
}

.cart-summary h2{
    font-size:22px;
    margin-bottom:18px;
    color:#111111;
}

.summary-row,
.summary-total{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
}

.summary-row{
    padding:10px 0;
    border-bottom:1px solid #e5e5e5;
    font-size:15px;
}

.summary-total{
    padding:16px 0;
    font-size:20px;
    font-weight:800;
}

.checkout-btn,
.continue-btn{
    width:100%;
    display:block;
    text-align:center;
    text-decoration:none;
    border-radius:10px;
    padding:13px 14px;
    font-weight:800;
    margin-top:10px;
}

.checkout-btn{
    background:#D45113;
    color:#FFFFFF;
}

.continue-btn{
    background:#F9A03F;
    color:#111111;
}

.clear-btn{
    background:#333333;
    color:#FFFFFF;
    margin-top:10px;
}

.cart-btn:hover,
.checkout-btn:hover,
.continue-btn:hover,
.qty-btn:hover,
.remove-btn:hover,
.clear-btn:hover{
    opacity:.9;
}

@media(max-width:850px){

    .cart-layout{
        grid-template-columns:1fr;
    }

    .cart-summary{
        position:relative;
        top:auto;
    }

}

@media(max-width:650px){

    .cart-page{
        padding:24px 14px;
    }

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

    .cart-item{
        grid-template-columns:90px 1fr;
        gap:14px;
    }

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

    .cart-item-actions{
        grid-column:1 / -1;
    }

    .cart-line-total{
        text-align:left;
    }

}

@media(max-width:420px){

    .cart-item{
        grid-template-columns:1fr;
    }

    .cart-item-image{
        width:100%;
        height:180px;
    }

}