.offcanvas-cart-modern {
    background: #ffffff;
    color: #1a2a44;
    box-shadow: -6px 0 24px rgba(0, 0, 0, 0.08);
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 12px 0 0 12px;
    overflow: hidden;
}

.offcanvas-header {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
    background: linear-gradient(to right, #f8f9fa, #e9ecef);
}

.offcanvas-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0a2540;
    margin: 0;
    letter-spacing: -0.5px;
}

.offcanvas-body {
    padding: 1.75rem;
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border: 1px solid #e3e6ea;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
    transition: background 0.3s, transform 0.2s ease;
}

.cart-item:hover {
    background: #f1f3f5;
    transform: translateY(-2px);
}

.cart-item-details {
    flex-grow: 1;
    margin-right: 1rem;
}

.cart-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #1a2a44;
}

.cart-item-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.quantity-input {
    width: 72px;
    height: 40px;
    padding: 0.4rem 0.75rem;
    font-size: 1rem;
    text-align: center;
    border: 1px solid #d0d7dd;
    border-radius: 8px;
    background-color: #ffffff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.quantity-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    outline: none;
}

.btn-outline-danger {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #dc3545;
    color: #dc3545;
    background-color: transparent;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #fff;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.2);
}

.cart-total {
    font-size: 1.3rem;
    font-weight: 800;
    padding-top: 1.75rem;
    border-top: 1px solid #dee2e6;
    text-align: right;
    color: #0a2540;
    letter-spacing: -0.4px;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
    .offcanvas-body {
        padding: 1.25rem;
    }

    .cart-item {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
    }

    .cart-item-details {
        margin-right: 0;
        margin-bottom: 0.75rem;
        text-align: center;
    }

    .cart-total {
        font-size: 1.1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .offcanvas-title {
        font-size: 1.3rem;
    }

    .quantity-input {
        width: 60px;
        font-size: 0.95rem;
    }

    .btn-outline-danger {
        font-size: 0.85rem;
    }
}
