/* ========================================
   CARRELLO - STILI AGGIORNATI
   ======================================== */

.carrello-section {
    background: var(--sabbia);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.carrello-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--verde-salvia);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--verde-salvia);
}

/* CARRELLO VUOTO */
.carrello-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-style: italic;
}

/* CARRELLO ITEM */
.carrello-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: all 0.2s;
}

.carrello-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.12);
    transform: translateY(-1px);
}

/* HEADER ITEM */
.carrello-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.carrello-item-info {
    flex: 1;
    margin-right: 12px;
}

.carrello-item-nome {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-label {
    background: var(--verde-salvia);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.formato-badge {
    background: var(--giallo-ocra);
    color: #333;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* DETTAGLI PERSONALIZZAZIONI */
.carrello-item-dettagli {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-top: 6px;
}

.pers-riga {
    margin-bottom: 3px;
    padding-left: 8px;
    border-left: 2px solid #e0e0e0;
}

.pers-riga:last-child {
    margin-bottom: 0;
}

/* PREZZO ITEM */
.carrello-item-prezzo {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--verde-salvia);
    white-space: nowrap;
    min-width: 70px;
    text-align: right;
}

/* CONTROLS */
.carrello-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #f0f0f0;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--verde-salvia);
    background: white;
    color: var(--verde-salvia);
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--verde-salvia);
    color: white;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-value {
    font-weight: 600;
    color: #333;
    min-width: 20px;
    text-align: center;
}

.btn-remove {
    background: var(--rosso-salmone);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: #d95555;
    transform: scale(1.05);
}

.btn-remove:active {
    transform: scale(0.98);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .carrello-item-nome {
        font-size: 0.95rem;
    }
    
    .carrello-item-dettagli {
        font-size: 0.8rem;
    }
    
    .carrello-item-prezzo {
        font-size: 1rem;
    }
}
