/* Modern Delivery App Modal (iFood Style) */
.modern-modal {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #f4f4f5; /* Background for the scroll area to show gaps */
}

/* Close Button Overlay */
.modern-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #ea1d2c;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Hero Image */
.modern-modal-hero {
    width: 100%;
    height: 240px;
    background: #ffffff;
    flex-shrink: 0;
}
.modern-modal-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scrollable Content Area */
.modern-modal-scroll {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 24px;
}

/* Product Info Block */
.modern-modal-info {
    background: #ffffff;
    padding: 20px 20px 24px 20px;
    margin-bottom: 12px;
}
.modern-modal-info h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 8px;
    line-height: 1.2;
}
.modern-modal-info p {
    font-size: 0.9rem;
    color: #71717a;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: justify;
}
.modern-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.modern-current-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: #18181b;
}
.modern-old-price {
    font-size: 0.9rem;
    color: #a1a1aa;
    text-decoration: line-through;
}
.modern-discount-badge {
    background: #dcfce7;
    color: #16a34a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Option Groups */
.modern-option-group {
    background: #ffffff;
    padding: 24px 20px;
    margin-bottom: 12px;
}
.modern-option-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.modern-option-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.modern-option-header p {
    font-size: 0.85rem;
    color: #71717a;
}
.modern-badge-green {
    background: #16a34a;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}
.modern-badge-red {
    background: #fee2e2;
    color: #ea1d2c;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Option List Items */
.modern-option-list {
    display: flex;
    flex-direction: column;
}
.modern-option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f4f4f5;
}
.modern-option-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.modern-option-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modern-option-left img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    background-color: #f4f4f5;
    color: #a1a1aa;
    font-size: 10px;
    text-align: center;
    overflow: hidden;
    line-height: 1.2;
    display: block;
}
.modern-option-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.modern-option-text h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3f3f46;
}
.modern-free-tag {
    font-size: 0.8rem;
    color: #6b21a8;
    background: #f3e8ff;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    font-weight: 600;
}
.modern-price-add {
    font-size: 0.85rem;
    color: #16a34a;
    font-weight: 600;
}

/* Quantity Control Box (Solid Button Style) */
.modern-qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
}
.modern-qty-box button {
    width: 34px;
    height: 34px;
    background: #6b21a8; /* Solid purple */
    border-radius: 50%;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(107, 33, 168, 0.2);
}
.modern-qty-box button:active {
    transform: scale(0.95);
    background: #581c87;
}
.modern-qty-box span {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #18181b;
}

/* Obs Textarea */
.modern-obs-group {
    background: #ffffff;
    padding: 24px 20px;
}
.modern-obs-group h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #18181b;
    margin-bottom: 12px;
}
.modern-obs-group textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    resize: none;
    outline: none;
}
.modern-obs-group textarea:focus {
    border-color: #ea1d2c;
}

/* Sticky Footer (Red Style) */
.modern-modal-footer {
    background: #ffffff;
    padding: 16px 20px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.modern-footer-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}
.modern-footer-qty {
    display: flex;
    align-items: center;
    gap: 12px;
}
.modern-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid #ea1d2c;
    color: #ea1d2c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
}
.modern-qty-btn:active {
    background: #fee2e2;
}
.modern-qty-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: #18181b;
    min-width: 16px;
    text-align: center;
}
.modern-footer-add {
    flex: 1;
    height: 48px;
    background: #ea1d2c;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(234, 29, 44, 0.25);
}
.modern-footer-add:active {
    transform: scale(0.98);
}

/* NOVO DESIGN DO MODAL (OPCOES E FOOTER) */
.modern-option-header {
    background: #f3f4f6;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modern-option-list {
    background: #ffffff;
}
.modern-option-item {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modern-option-text h4 {
    font-size: 1rem;
    color: #111827;
    font-weight: 500;
    margin-bottom: 2px;
}
.new-qty-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 80px;
}
.new-qty-add-btn {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-controls {
    display: flex;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 4px;
    border: 1px solid #e5e7eb;
}
.qty-controls button {
    background: transparent;
    border: none;
    color: #ef4444;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
}
.qty-controls .val {
    font-weight: 700;
    color: #111827;
    width: 24px;
    text-align: center;
    font-size: 1.1rem;
}

/* NOVO FOOTER */
.modern-modal-footer {
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    padding: 16px;
    position: relative; z-index: 100;
    box-shadow: none;
}
.modern-footer-controls {
    display: flex;
    gap: 16px;
    align-items: stretch;
}
.new-main-qty {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 110px;
}
.new-main-qty button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px;
}
.new-main-qty span {
    font-size: 1.2rem;
}
.new-main-add {
    background: #ef4444;
    border: none;
    border-radius: 12px;
    padding: 16px 20px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    flex: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}
.new-main-add:active {
    transform: scale(0.98);
}

.modern-options-container { padding-bottom: 90px; }

.thin-icon {
    font-weight: 300;
    font-size: 1.6rem;
    line-height: 1;
    font-family: Arial, sans-serif;
}
.new-main-qty .thin-icon {
    font-size: 1.8rem;
}
\n.modern-options-container { padding-bottom: 90px; }\n