.modal {
    display: none;  /* Keep only this display property */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

/* When modal is actively shown, add these properties */
.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header img {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin: 15px 0;
}

.modal-body {
    padding: 0 20px;
}

.extras-section {
    margin: 20px 0;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 10px;
}

.extra-item {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-section {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: #ff4d4d;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.quantity-controls input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.price-section {
    font-size: 1.2em;
    font-weight: bold;
    color: #ff4d4d;
    margin: 15px 0;
}

.discount-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    color: #FF4B2B;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modal-title {
    font-size: 1.5rem;
    margin: 15px 20px 10px;
    color: #333;
}

.modal-description {
    margin: 0 20px 20px;
    color: #666;
    line-height: 1.4;
}

.select-text {
    margin: 0 20px 10px;
    color: #FF4B2B;
    font-size: 0.9rem;
}

.options-list {
    margin: 0 20px;
}

.option-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.option-item:last-child {
    border-bottom: none;
}

.option-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.option-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.option-name {
    color: #333;
    font-size: 0.95rem;
}

.option-price {
    color: #666;
    font-size: 0.9rem;
}

.notes-section {
    margin: 20px;
}

.notes-section h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 10px;
}

.notes-section textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.modal-footer {
    background: #f8f8f8;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-price {
    color: #FF4B2B;
    font-size: 1.2rem;
    font-weight: bold;
}

.quantity-add {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.quantity-btn {
    background: none;
    border: none;
    color: #FF4B2B;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity {
    font-weight: 500;
    color: #333;
}

.add-btn {
    background: #FF4B2B;
    color: white;
    border: none;
    padding: 8px 30px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.95rem;
}

/* Notification Styles */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #4CAF50;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification.show {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 480px) {
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    .modal {
        padding: 0;
    }
}
