.cart-page {
    padding: 40px 0;
}

.cart-page h1 {
    margin-bottom: 24px;
}

.cart-empty {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

.cart-items {
    display: grid;
    gap: 16px;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr 170px 120px;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
}

.cart-item-image img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 10px;
}

.cart-item-info h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.cart-item-info a {
    color: #0b1f44;
    text-decoration: none;
}

.cart-sku {
    margin: 0 0 8px;
    color: #64748b;
    font-size: 14px;
}

.cart-price,
.cart-item-total {
    font-weight: 700;
    color: #0b1f44;
}

.cart-item-actions {
    display: grid;
    gap: 8px;
}

.cart-item-actions form {
    display: flex;
    gap: 8px;
}

.cart-item-actions input {
    width: 64px;
    padding: 8px;
}

.cart-item-actions button,
.btn-primary,
.btn-secondary,
.btn-clear {
    border: 0;
    border-radius: 8px;
    padding: 9px 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cart-item-actions button,
.btn-primary {
    background: #0d6efd;
    color: #fff;
}

.btn-secondary {
    background: #0b1f44;
    color: #fff;
    margin-top: 16px;
}

.btn-remove,
.btn-clear {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.cart-summary {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.cart-summary h2 {
    margin-top: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin: 14px 0;
}

.summary-row.total {
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
    font-size: 20px;
}

.cart-summary form {
    margin-top: 12px;
}

.cart-summary button,
.cart-summary a {
    width: 100%;
}

@media (max-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

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

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