/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Button to open modal */
.open-modal-btn {
    background-color: #0066cc;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    width: 500px;
    margin-top: 50px;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    background-color: white;
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 100%;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Modal header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.back-btn, .close-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal body */
.modal-body {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100% - 60px);
}

/* Image upload area */
.image-upload {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.image-placeholder {
    width: 120px;
    height: 120px;
    background-color: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.edit-image-btn {
    position: absolute;
    top: 0;
    right: calc(50% - 80px);
    width: 40px;
    height: 40px;
    background-color: #0066cc;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 18px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f5f5f7;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #0066cc;
}

/* Quantity input with controls */
.quantity-input {
    position: relative;
    display: flex;
}

.quantity-input input {
    width: 100%;
}

.quantity-controls {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.quantity-up, .quantity-down {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Submit button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #0066cc;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #0055b3;
}

/* Mobile specific styles */
@media (max-width: 480px) {
    .modal-content {
        height: 100%;
        border-radius: 0;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .form-group label {
        font-size: 16px;
    }
    
    .form-group input {
        padding: 10px 14px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }
}