.cart-page{
    background:#f4f7fb;
    min-height:70vh;
    padding:60px 0;
}

.cart-top{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    padding:32px 36px;
    box-shadow:0 16px 40px rgba(15,23,42,.08);
    margin-bottom:26px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}

.cart-top span{
    color:#2563eb;
    font-weight:900;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.08em;
}

.cart-top h1{
    font-size:36px;
    font-weight:900;
    color:#0f172a;
    margin:6px 0;
}

.cart-top p{
    color:#64748b;
    margin:0;
}

.cart-layout{
    display:grid;
    grid-template-columns:1fr 360px;
    gap:24px;
    align-items:start;
}

.cart-table-card,
.cart-summary,
.empty-cart{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:24px;
    box-shadow:0 14px 36px rgba(15,23,42,.08);
}

.cart-table-card{
    padding:18px;
}

.cart-row{
    display:grid;
    grid-template-columns:1.8fr .6fr .45fr .65fr .45fr;
    gap:16px;
    align-items:center;
    padding:18px 0;
    border-bottom:1px solid #e5e7eb;
}

.cart-row:last-child{
    border-bottom:none;
}

.cart-product{
    display:flex;
    align-items:center;
    gap:16px;
    min-width:0;
}

.cart-img{
    width:92px;
    height:92px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    flex-shrink:0;
}

.cart-img img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:10px;
}

.no-img{
    font-size:12px;
    color:#64748b;
    font-weight:800;
    text-align:center;
}

.cart-product small{
    display:inline-block;
    color:#2563eb;
    font-weight:900;
    margin-bottom:5px;
}

.cart-product h3{
    font-size:17px;
    font-weight:900;
    margin:0 0 5px;
    line-height:1.35;
}

.cart-product h3 a{
    color:#0f172a;
    text-decoration:none;
}

.cart-product h3 a:hover{
    color:#2563eb;
}

.cart-product p{
    color:#64748b;
    font-size:13px;
    margin:0;
}

.cart-price,
.cart-total{
    font-weight:900;
    color:#0f172a;
}

.cart-qty input{
    width:72px;
    border:1px solid #d1d5db;
    border-radius:12px;
    padding:10px;
    text-align:center;
    font-weight:900;
    outline:none;
}

.cart-qty input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.remove-btn{
    border:none;
    background:#fee2e2;
    color:#dc2626;
    border-radius:12px;
    padding:10px 12px;
    font-weight:900;
    cursor:pointer;
}

.remove-btn:hover{
    background:#fecaca;
}

.update-cart-btn{
    margin-top:18px;
}

.cart-summary{
    padding:24px;
    position:sticky;
    top:110px;
}

.cart-summary h3{
    font-size:22px;
    font-weight:900;
    color:#0f172a;
    margin-bottom:20px;
}

.summary-row,
.summary-total{
    display:flex;
    justify-content:space-between;
    gap:16px;
    padding:14px 0;
    border-bottom:1px solid #e5e7eb;
    color:#64748b;
}

.summary-row strong{
    color:#0f172a;
}

.summary-total{
    border-bottom:none;
    font-size:20px;
    color:#0f172a;
    font-weight:900;
}

.checkout-btn,
.continue-btn{
    width:100%;
    margin-top:14px;
}

.empty-cart{
    padding:60px 30px;
    text-align:center;
}

.empty-cart-icon{
    width:82px;
    height:82px;
    border-radius:24px;
    background:#eff6ff;
    color:#2563eb;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:38px;
    margin:0 auto 18px;
}

.empty-cart h2{
    font-size:30px;
    font-weight:900;
    color:#0f172a;
    margin-bottom:8px;
}

.empty-cart p{
    color:#64748b;
    margin-bottom:24px;
}

.site-toast{
    position:fixed;
    right:22px;
    bottom:24px;
    background:#0f172a;
    color:#fff;
    padding:13px 18px;
    border-radius:14px;
    font-weight:800;
    box-shadow:0 16px 40px rgba(15,23,42,.25);
    z-index:9999;
    opacity:0;
    transform:translateY(15px);
    pointer-events:none;
    transition:.25s ease;
}

.site-toast.show{
    opacity:1;
    transform:translateY(0);
}

.site-toast.success{
    background:#16a34a;
}

.site-toast.error{
    background:#dc2626;
}

@media(max-width:1100px){
    .cart-layout{
        grid-template-columns:1fr;
    }

    .cart-summary{
        position:static;
    }
}

@media(max-width:850px){
    .cart-top{
        flex-direction:column;
        align-items:flex-start;
        padding:26px 22px;
    }

    .cart-top h1{
        font-size:30px;
    }

    .cart-row{
        grid-template-columns:1fr;
        gap:12px;
        padding:22px 0;
    }

    .cart-product{
        align-items:flex-start;
    }

    .cart-price::before{
        content:"Price: ";
        color:#64748b;
        font-weight:700;
    }

    .cart-total::before{
        content:"Total: ";
        color:#64748b;
        font-weight:700;
    }

    .cart-remove,
    .cart-remove button,
    .update-cart-btn,
    .cart-top .secondary-btn{
        width:100%;
    }

    .remove-btn{
        width:100%;
    }
}

@media(max-width:520px){
    .cart-page{
        padding:34px 0;
    }

    .cart-product{
        flex-direction:column;
    }

    .cart-img{
        width:100%;
        height:180px;
    }
}