/* =====================================================
   Sold-out Ingredienti - styling
   ===================================================== */

/* Label "MANCA <ingrediente>" sotto art-name nel POS */
.art-card .art-mancanti {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 3px 5px 2px;
    margin-top: 2px;
    justify-content: center;
    line-height: 1.15;
}
.art-card .art-manca-chip {
    display: inline-block;
    font-size: 9.5px;
    line-height: 1.2;
    padding: 1px 6px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* Card prodotto con almeno 1 ingrediente sold-out */
.art-card.has-soldout {
    border: 2px solid #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.10);
    position: relative;
}
.art-card.has-soldout::after {
    content: '⚠️';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 14px;
    z-index: 2;
    background: #dc2626;
    color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    pointer-events: none;
}

/* Pagina settings: lista ingredienti raggruppata per categoria */
.ing-page-section h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}
.ing-count {
    display: inline-block;
    background: var(--primary-light, #e3f2fd);
    color: var(--primary, #1976D2);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    font-weight: 600;
}
.ing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 10px;
}
.ing-toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid var(--border-light, #e0e0e0);
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: all 0.12s ease;
}
.ing-toggle:hover {
    border-color: var(--primary, #1976D2);
    background: var(--primary-light, #e3f2fd);
}
.ing-toggle-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text, #222);
    line-height: 1.2;
}
.ing-toggle-state {
    font-size: 10.5px;
    color: #16a34a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ing-toggle.soldout {
    border-color: #dc2626;
    background: #fef2f2;
}
.ing-toggle.soldout .ing-toggle-name {
    color: #b91c1c;
    text-decoration: line-through;
}
.ing-toggle.soldout .ing-toggle-state {
    color: #dc2626;
}
.ing-toggle.soldout:hover {
    background: #fee2e2;
}
