/* Menu Customizer Modal */
.greek-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.greek-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.greek-modal-content {
    background: #fff;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 20px;
    position: relative;
    padding: 2.5rem;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.greek-modal-overlay.active .greek-modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.modal-header h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.75rem;
    color: #0A2540;
    margin-bottom: 0.5rem;
}

.modal-section {
    margin-top: 2rem;
}

.section-title {
    display: block;
    font-weight: 700;
    color: #444;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

/* Pill Selector */
.pill-selector {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pill-option input {
    display: none;
}

.pill-option span {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border: 2px solid #eee;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pill-option input:checked + span {
    background: #0A2540;
    border-color: #0A2540;
    color: #fff;
}

/* Sauce Grid */
.sauce-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sauce-option input {
    display: none;
}

.sauce-card {
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.sauce-option input:checked + .sauce-card {
    border-color: #0A2540;
    background: rgba(10, 37, 64, 0.05);
}

.sauce-name {
    display: block;
    font-weight: 700;
}

.sauce-price {
    font-size: 0.75rem;
    color: #666;
}

/* Addon Stack */
.addon-stack {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
}

.addon-row {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    cursor: pointer;
}

.addon-row:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.addon-name {
    flex: 1;
    margin-left: 1rem;
    font-weight: 600;
}

.addon-price {
    color: #00843D;
    font-weight: 700;
}

/* Modal Footer */
.modal-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.modal-total {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0A2540;
}

@media (max-width: 480px) {
    .greek-modal-content {
        padding: 1.5rem;
    }
    .sauce-grid {
        grid-template-columns: 1fr;
    }
}
