/* ===== CARRELLO STYLES ===== */
/* Container principale */
.empty-cart-container {
    padding: 3rem 2rem;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    background: #f8f9fa;
}

/* Stili card carrello */
.cart-item {
    transition: all 0.3s ease;
    position: relative;
}

.cart-item:hover {
    background-color: #f8f9fa;
}

/* Immagini prodotto */
.cart-item img {
    max-height: 80px;
    object-fit: cover;
}

.product-placeholder {
    width: 80px;
    height: 80px;
    background: #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.5rem;
}

/* Nome prodotto */
.product-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prezzo unitario */
.price-unit {
    text-align: center;
}

.price-unit strong {
    color: #28a745;
    font-size: 1.1rem;
}

/* Controlli quantità */
.quantity-form {
    max-width: 120px;
    margin: 0 auto;
}

.qty-input {
    font-weight: 600;
    text-align: center;
}

.btn-qty-minus,
.btn-qty-plus {
    width: 35px;
    border-color: #dee2e6;
}

.btn-qty-minus:hover,
.btn-qty-plus:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

/* Subtotale */
.subtotal {
    font-size: 1.1rem;
    color: #28a745;
}

/* Azioni carrello */
.cart-actions {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

/* Sidebar riepilogo */
.order-summary {
    font-size: 0.95rem;
}

.order-summary .row {
    margin-bottom: 0.5rem;
}

.order-summary hr {
    margin: 1rem 0;
    border-color: #dee2e6;
}

/* Sticky sidebar */
.sticky-top {
    top: 1rem;
}

/* Badge contatore */
.badge {
    font-size: 0.75rem;
}

/* Hover effects per pulsanti */
.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Alert info personalizzato */
.alert-info {
    background-color: #e7f3ff;
    border-color: #b3d7ff;
    color: #0056b3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-item .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-item .col-md-2,
    .cart-item .col-md-4 {
        text-align: center;
    }
    
    .quantity-form {
        max-width: 150px;
    }
    
    .price-unit,
    .subtotal {
        text-align: center;
    }
    
    .cart-actions .row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cart-actions .col-md-6 {
        text-align: center !important;
    }
    
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }
}

@media (max-width: 576px) {
    .empty-cart-container {
        padding: 2rem 1rem;
    }
    
    .display-1 {
        font-size: 3rem;
    }
    
    .cart-item {
        padding: 1rem !important;
    }
    
    .product-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
    
    .cart-item img {
        max-height: 60px;
    }
}

/* Animazioni */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-item {
    animation: fadeIn 0.3s ease;
}

/* Focus states */
.qty-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Loading state per form submit */
.quantity-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Migliora visibilità icone */
.bi {
    vertical-align: baseline;
}

/* Stili per breadcrumb */
.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

/* Effetti hover su card */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Stili specifici per pulsante checkout */
.btn-success.btn-lg {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-success.btn-lg:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Miglioramenti tipografici */
.display-5 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.lead {
    font-weight: 400;
}

/* Separatori visivi */
.border-top {
    border-top: 1px solid #dee2e6 !important;
}

/* Stati di caricamento */
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Evidenziazione totale */
.text-primary.fs-5 {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}