body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.card {
    border: none;
    border-radius: 20px;
}

.card-header {
    border-bottom: 2px solid #e9ecef;
    border-radius: 20px 20px 0 0 !important;
}

.product-row {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.product-row .form-select,
.product-row .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.product-row .form-select:focus,
.product-row .form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.remove-btn {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1rem;
    line-height: 1;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-btn:hover:not(:disabled) {
    background-color: #dc3545;
    color: white;
}

.remove-btn:disabled {
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

.measure-unit {
    background-color: #e9ecef;
    font-weight: 500;
    text-align: center;
}

.quantity {
    text-align: center;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.btn-outline-primary {
    border: 2px dashed #3498db;
    color: #3498db;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #3498db;
    color: white;
    border-style: solid;
}

.total-amount {
    font-size: 2rem;
    background: linear-gradient(135deg, #3498db, #2ecc71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .product-row .row {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-row .col-md-12,
    .product-row .col-md-7,
    .product-row .col-md-2,
    .product-row .col-md-1 {
        width: 100%;
    }
    
    .remove-btn {
        width: 100%;
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .total-amount {
        font-size: 1.75rem;
    }
}


.suggestions-wrapper {
    z-index: 1060;
}

.suggestions-suggestions {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border: 1px solid #e9ecef;
}

.suggestions-suggestion {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.suggestions-suggestion:hover {
    background-color: #f8f9fa;
}


.form-control-lg {
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

#modal-widget-content {
  background: #0f0f0f;
  border-radius: 10px;
  padding: 10px;
}

.offerta {
	color: blueviolet;
}

.offerta:hover {
	color: red;
    text-decoration: underline;
	cursor: pointer;
}

.popup-fade {
	display: none;
}
.popup-fade:before {
	content: '';
	background: #000;
	position: fixed; 
	left: 0;
	top: 0;
	width: 100%; 
	height: 100%;
	opacity: 0.7;
	z-index: 9999;
}
.popup {
	position: fixed;
	top: 0%;
	left: 50%;
	padding: 20px;
	background: #fff;
	border: 1px solid orange;
	border-radius: 4px; 
	z-index: 99999;
	opacity: 1;	
	max-width: 800px;
	margin-top: 30px;
    margin-bottom: 30px;
	transform: translate(-50%, 0%);
	max-height: 95vh;
    overflow-y: scroll;
}
.popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
}

