/* Stili Client Side */
:root {
    --colore-primario: #dc3545;
    --colore-secondario: #6c757d;
    --colore-successo: #28a745;
    --colore-attenzione: #ffc107;
    --colore-info: #17a2b8;
    --colore-chiaro: #f8f9fa;
    --colore-scuro: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.prodotto-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.prodotto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.prodotto-card .card-body {
    padding: 1.5rem;
}

.aggiungi-al-carrello {
    background: linear-gradient(45deg, var(--colore-primario), #e74c3c);
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.aggiungi-al-carrello:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.badge-carrello {
    background-color: var(--colore-primario);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    margin-left: 5px;
}

.riepilogo-ordine {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
}

.opzione-pagamento {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.opzione-pagamento:hover {
    border-color: var(--colore-primario);
    background-color: #f8f9fa;
}

.opzione-pagamento.selezionata {
    border-color: var(--colore-primario);
    background-color: #fff5f5;
}

.animazione-successo {
    animation: rimbalzo 1s ease-in-out;
}

@keyframes rimbalzo {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

.caricamento {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--colore-primario);
    border-radius: 50%;
    animation: gira 1s linear infinite;
}

@keyframes gira {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Adattamenti responsive */
@media (max-width: 768px) {
    .prodotto-card {
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Barra di scorrimento personalizzata */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--colore-primario);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c82333;
}