/* ========================================
   ORDINI V2.CSS - Beautiful Backend
   Modern Glassmorphism + iPad-friendly
   Design: Estetica sopra velocità
   ======================================== */

/* ========================================
   COLOR SYSTEM
   ======================================== */
:root {
    /* Brand Colors */
    --verde-salvia: #71A894;
    --verde-scuro: #5a9178;
    --verde-light: #e8f5f0;

    --giallo-ocra: #F4C063;
    --rosso-salmone: #EE6B6B;
    --sabbia: #EBD9B4;

    /* Glassmorphism */
    --glass-white: rgba(255, 255, 255, 0.92);
    --glass-white-dark: rgba(255, 255, 255, 0.7);
    --glass-green: rgba(113, 168, 148, 0.08);
    --glass-border: rgba(113, 168, 148, 0.15);

    /* Shadows */
    --shadow-glass:
        0 8px 32px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --shadow-glass-hover:
        0 16px 48px rgba(113, 168, 148, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    --shadow-float:
        0 20px 60px rgba(113, 168, 148, 0.18);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   LAYOUT PRINCIPALE
   ======================================== */
.tab-content-ordini {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5f0 100%);
    min-height: calc(100vh - 80px);
    padding: 0;
}

/* ========================================
   HEADER STICKY - Modern Badge Style
   ======================================== */
.header-ordine-sticky {
    position: sticky;
    top: 60px;
    background: linear-gradient(135deg, var(--verde-salvia) 0%, var(--verde-scuro) 100%);
    color: white;
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow:
        0 4px 20px rgba(113, 168, 148, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 98;
/* DISABLED FOR PERFORMANCE:  */
}

.header-ordine-sticky h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.totale-badge-sticky {
    background: rgba(255, 255, 255, 0.18);
    padding: 12px 28px;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 160px;
    border: 1px solid rgba(255, 255, 255, 0.25);
/* DISABLED FOR PERFORMANCE:  */
    transition: var(--transition-smooth);
}

.totale-badge-sticky:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.totale-badge-sticky .label {
    font-size: 0.7rem;
    opacity: 0.85;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.totale-badge-sticky .valore {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 2px;
    letter-spacing: -1px;
}

/* ========================================
   SECTIONS - Glass Cards
   ======================================== */
.section-glass-card {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px;
/* DISABLED FOR PERFORMANCE:  */
    box-shadow: var(--shadow-glass);
    transition: var(--transition-smooth);
    margin: 20px;
}

.section-glass-card:hover {
    box-shadow: var(--shadow-glass-hover);
    transform: translateY(-2px);
}

.section-title-modern {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--verde-scuro);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.section-title-modern .icon {
    font-size: 1.6rem;
}

/* ========================================
   SEZIONE CLIENTE - Compact & Beautiful
   ======================================== */
.cliente-card-modern {
    background: linear-gradient(135deg, var(--glass-white) 0%, rgba(113, 168, 148, 0.05) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
/* DISABLED FOR PERFORMANCE:  */
    box-shadow: var(--shadow-glass);
    margin: 20px;
}

.cliente-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cliente-nome-hero {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--verde-salvia);
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cliente-badges-group {
    display: flex;
    gap: 8px;
}

.badge-pill {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: white;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-rating {
    background: linear-gradient(135deg, var(--giallo-ocra) 0%, #f5d480 100%);
    color: #856404;
    border-color: #f5d480;
}

.badge-lifecycle {
    background: linear-gradient(135deg, var(--verde-light) 0%, white 100%);
    color: var(--verde-scuro);
}

.cliente-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 0.95rem;
    color: #666;
}

.cliente-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cliente-info-item .icon {
    font-size: 1.1rem;
    color: var(--verde-salvia);
}

/* ========================================
   TIPO ORDINE - Big Cards
   ======================================== */
.tipo-ordine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px;
}

.tipo-card-modern {
    background: var(--glass-white);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-bounce);
/* DISABLED FOR PERFORMANCE:  */
    position: relative;
    overflow: hidden;
}

.tipo-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--verde-salvia) 0%, var(--verde-scuro) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tipo-card-modern:hover {
    border-color: var(--verde-salvia);
    box-shadow: var(--shadow-float);
    transform: translateY(-8px) scale(1.02);
}

.tipo-card-modern:hover::before {
    opacity: 0.08;
}

.tipo-card-modern.selected {
    border-color: var(--verde-salvia);
    border-width: 3px;
    background: linear-gradient(135deg, var(--verde-light) 0%, white 100%);
    box-shadow:
        0 0 0 4px rgba(113, 168, 148, 0.15),
        var(--shadow-float);
}

.tipo-card-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.tipo-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.tipo-card-subtitle {
    font-size: 0.9rem;
    color: #888;
    position: relative;
    z-index: 1;
}

/* ========================================
   TOP 8 PIZZE - Premium Cards
   ======================================== */
.pizza-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.pizza-card-premium {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
/* DISABLED FOR PERFORMANCE:  */
    position: relative;
    overflow: hidden;
}

.pizza-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--verde-light) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pizza-card-premium:hover {
    border-color: var(--verde-salvia);
    box-shadow: var(--shadow-float);
    transform: translateY(-10px) scale(1.05);
}

.pizza-card-premium:hover::before {
    opacity: 1;
}

.pizza-card-premium:active {
    transform: translateY(-8px) scale(1.02);
}

.pizza-icon-large {
    font-size: 4rem;
    margin: 8px 0;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.pizza-name-modern {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    margin: 12px 0 8px 0;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.pizza-ingredients-preview {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 12px;
    line-height: 1.4;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.pizza-card-premium:hover .pizza-ingredients-preview {
    max-height: 60px;
    opacity: 1;
    margin-bottom: 16px;
}

.pizza-rating-stars {
    font-size: 0.9rem;
    margin: 8px 0;
    position: relative;
    z-index: 1;
}

.pizza-price-modern {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--verde-salvia);
    margin-top: 12px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

/* Badge Top Venduta */
.pizza-badge-top {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--giallo-ocra) 0%, #f5d480 100%);
    color: #856404;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(244, 192, 99, 0.4);
    z-index: 2;
}

/* ========================================
   SCELTA TIPO ORDINE
   ======================================== */
.scelta-tipo-ordine {
    background: var(--glass-white);
/* DISABLED FOR PERFORMANCE:  */
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-glass);
}

.scelta-tipo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verde-salvia);
    text-align: center;
    margin-bottom: 28px;
}

.tipo-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.tipo-card {
    background: var(--glass-white);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-smooth);
/* DISABLED FOR PERFORMANCE:  */
    position: relative;
    overflow: hidden;
}

.tipo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(113, 168, 148, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
}

.tipo-card:hover {
    border-color: var(--verde-salvia);
    box-shadow: var(--shadow-glass-hover);
    transform: translateY(-6px) scale(1.02);
}

.tipo-card:hover::before {
    opacity: 1;
}

.tipo-card.active {
    border-color: var(--verde-salvia);
    border-width: 3px;
    background: linear-gradient(135deg, rgba(113, 168, 148, 0.1) 0%, var(--glass-white) 100%);
    box-shadow: 0 0 0 4px rgba(113, 168, 148, 0.15), var(--shadow-glass);
}

.tipo-card-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.tipo-card.active .tipo-card-icon {
    animation: bounceIcon 0.6s ease;
}

@keyframes bounceIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.tipo-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.tipo-card-subtitle {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-weight: 500;
}

/* ========================================
   MENU CATEGORY BUTTONS
   ======================================== */
.menu-categories-row,
.menu-rapido-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.btn-category-modern,
.btn-menu-category {
    background: var(--glass-white);
    border: 2px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
/* DISABLED FOR PERFORMANCE:  */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-category-modern:hover,
.btn-menu-category:hover {
    border-color: var(--verde-salvia);
    background: var(--verde-light);
    box-shadow: var(--shadow-glass-hover);
    transform: translateY(-4px);
}

.btn-category-modern:active,
.btn-menu-category:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-category-icon {
    font-size: 3rem;
}

.btn-category-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
}

/* ========================================
   CARRELLO - Expandable Items
   ======================================== */
.carrello-modern {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px;
/* DISABLED FOR PERFORMANCE:  */
    box-shadow: var(--shadow-glass);
}

.carrello-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.carrello-title-modern {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--verde-scuro);
    display: flex;
    align-items: center;
    gap: 12px;
}

.carrello-count-badge {
    background: var(--verde-salvia);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.btn-svuota-carrello {
    background: transparent;
    border: 1px solid var(--rosso-salmone);
    color: var(--rosso-salmone);
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-svuota-carrello:hover {
    background: var(--rosso-salmone);
    color: white;
}

.carrello-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.carrello-item-modern {
    background: linear-gradient(135deg, white 0%, var(--verde-light) 2%, white 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.carrello-item-modern:hover {
    border-color: var(--verde-salvia);
    box-shadow: 0 8px 24px rgba(113, 168, 148, 0.12);
    transform: translateX(4px);
}

.carrello-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrello-item-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.carrello-item-qty-badge {
    background: var(--verde-salvia);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.carrello-item-info {
    flex: 1;
}

.carrello-item-nome {
    font-weight: 700;
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 4px;
}

.carrello-item-format-badge {
    font-size: 0.75rem;
    color: #888;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

.carrello-item-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.carrello-item-prezzo {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--verde-salvia);
    letter-spacing: -0.5px;
}

.carrello-item-actions {
    display: flex;
    gap: 8px;
}

.btn-item-action {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
}

.btn-edit-item {
    background: rgba(113, 168, 148, 0.1);
    color: var(--verde-salvia);
}

.btn-edit-item:hover {
    background: var(--verde-salvia);
    color: white;
    transform: rotate(15deg) scale(1.1);
}

.btn-delete-item {
    background: rgba(238, 107, 107, 0.1);
    color: var(--rosso-salmone);
}

.btn-delete-item:hover {
    background: var(--rosso-salmone);
    color: white;
    transform: scale(1.15);
}

/* Dettagli espandibili */
.carrello-item-details {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    padding-top: 0;
}

.carrello-item-modern.expanded .carrello-item-details {
    max-height: 300px;
    opacity: 1;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.item-detail-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
    margin: 6px 0;
}

.item-detail-icon {
    font-size: 1rem;
    color: var(--verde-salvia);
}

.carrello-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}

.carrello-empty-icon {
    font-size: 5rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.carrello-empty-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ========================================
   TOTALI - Modern Summary
   ======================================== */
.totali-modern {
    background: linear-gradient(135deg, var(--glass-white) 0%, rgba(113, 168, 148, 0.03) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px;
/* DISABLED FOR PERFORMANCE:  */
    margin-top: 20px;
}

.totale-row-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.totale-row-modern:last-child {
    border-bottom: none;
    padding-top: 20px;
    margin-top: 12px;
    border-top: 2px solid var(--verde-salvia);
}

.totale-label {
    color: #666;
    font-weight: 500;
}

.totale-value {
    font-weight: 700;
    color: #333;
}

.totale-row-modern:last-child .totale-label {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--verde-scuro);
}

.totale-row-modern:last-child .totale-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--verde-salvia);
    letter-spacing: -1px;
}

/* ========================================
   CONFERMA ORDINE - Hero Button
   ======================================== */
.btn-conferma-hero {
    width: 100%;
    padding: 24px;
    border: none;
    background: linear-gradient(135deg, var(--verde-salvia) 0%, var(--verde-scuro) 100%);
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition-bounce);
    box-shadow:
        0 12px 40px rgba(113, 168, 148, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 24px;
    letter-spacing: -0.5px;
    position: relative;
    overflow: hidden;
}

.btn-conferma-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-conferma-hero:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 60px rgba(113, 168, 148, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-conferma-hero:hover::before {
    width: 600px;
    height: 600px;
}

.btn-conferma-hero:active {
    transform: translateY(-4px) scale(0.98);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: var(--glass-white);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 24px;
/* DISABLED FOR PERFORMANCE:  */
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    pointer-events: all;
    transform: translateX(400px);
    opacity: 0;
    animation: slideInToast 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInToast {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.85rem;
    color: #666;
}

.toast.success {
    border-left: 4px solid var(--verde-salvia);
}

.toast.success .toast-icon {
    color: var(--verde-salvia);
}

.toast.error {
    border-left: 4px solid var(--rosso-salmone);
}

.toast.error .toast-icon {
    color: var(--rosso-salmone);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes flyToCart {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: scale(0.5) translate(50vw, -20vh);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) translate(80vw, -50vh);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.animate-fly-to-cart {
    animation: flyToCart 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-shake {
    animation: shake 0.3s ease;
}

.animate-bounce {
    animation: bounce 0.4s ease;
}

/* ========================================
   RESPONSIVE - iPad & Mobile
   ======================================== */
@media (max-width: 1024px) {
    .section-glass-card {
        margin: 16px;
        padding: 20px;
    }

    .pizza-grid-modern {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .tipo-ordine-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .header-ordine-sticky {
        flex-direction: column;
        gap: 16px;
        padding: 16px 20px;
    }

    .totale-badge-sticky {
        width: 100%;
        align-items: center;
    }

    .pizza-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-categories-row {
        grid-template-columns: 1fr;
    }

    .toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }

    .toast {
        min-width: auto;
    }
}

/* Touch-friendly sizing */
@media (hover: none) and (pointer: coarse) {
    .pizza-card-premium,
    .btn-category-modern,
    .tipo-card-modern {
        min-height: 44px;
        min-width: 44px;
    }

    .btn-item-action {
        width: 44px;
        height: 44px;
    }
}

/* =============================================
   OPZIONI COTTURA (Tagliate, Ben Cotte, Poco Cotte)
   ============================================= */
.cottura-options-row {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

.btn-cottura {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-cottura:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #adb5bd;
}

.btn-cottura.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    border-color: #4CAF50;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-cottura.active .btn-cottura-text {
    color: white;
}

.btn-cottura-icon {
    font-size: 1.8em;
    line-height: 1;
}

.btn-cottura-text {
    font-size: 0.85em;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================
   MODIFICA PREZZO
   ============================================= */
.btn-modifica-prezzo {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 10px;
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.btn-modifica-prezzo:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.5);
}

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

.input-modifica-prezzo {
    width: 80px;
    padding: 6px 10px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
}

.input-modifica-prezzo:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.btn-modifica-ok {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.btn-modifica-ok:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
}

.btn-modifica-cancel {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 1.2em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(244, 67, 54, 0.3);
}

.btn-modifica-cancel:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.5);
}

.totale-row-modern.modificabile {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.totale-row-modern.modificabile span:last-child {
    display: flex;
    align-items: center;
}
