/* Sidebar & Modal Styles */
.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 350px; height: 100vh;
    background: white; box-shadow: -5px 0 30px rgba(0,0,0,0.2); z-index: 2000;
    transition: right 0.4s ease; display: flex; flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-header { padding: 20px; background: #0046BE; color: white; display: flex; justify-content: space-between; align-items: center; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px; }
.cart-item { display: flex; gap: 15px; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.cart-footer { padding: 20px; border-top: 1px solid #ddd; background: #f9f9f9; }
.total-row { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; }

.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; display: none; }
.overlay.active { display: block; }
.close-cart { cursor: pointer; font-size: 1.5rem; }

/* Modal Styles */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 3000;
    display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.checkout-form-box {
    background: white; padding: 30px; width: 90%; max-width: 500px;
    border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 5px; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }
.add-btn { width: 100%; padding: 12px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }

/* Mobile Fix */
@media (max-width: 500px) { .cart-sidebar { width: 100%; right: -100%; } }