@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: #f5f6fa;
    margin: 0; padding: 0; box-sizing: border-box;
}

.top-nav {
    display: flex; align-items: center; padding: 15px 20px;
    background: #ffffff; border-bottom: 1px solid #e0e0e0;
    position: sticky; top: 0; z-index: 1000;
}
.back-btn { margin-right: 15px; font-size: 20px; color: #2d6a4f; text-decoration: none; }
.page-title { font-size: 18px; font-weight: 600; color: #2d6a4f; }

.sell-container {
    max-width: 800px; margin: 20px auto; padding: 0 15px;
}

.header-text { margin-bottom: 20px; }
.header-text h2 { color: #2d6a4f; margin: 0 0 5px 0; font-size: 22px; }
.header-text p { color: #666; font-size: 14px; margin: 0; }

.form-section {
    background: #ffffff; padding: 20px; border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03); margin-bottom: 20px;
    border: 1px solid #f0f0f0;
}

.section-title { font-size: 16px; color: #333; margin: 0 0 15px 0; border-bottom: 1px solid #eee; padding-bottom: 8px; }

.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; font-weight: 500; }
.input-group input, .input-group select, .input-group textarea {
    width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px;
    box-sizing: border-box; font-family: inherit; font-size: 14px; outline: none; transition: 0.3s;
}
.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    border-color: #2d6a4f; box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

/* Image Upload UI */
.image-upload-wrapper { position: relative; }
.upload-box {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    border: 2px dashed #c5a880; padding: 40px 20px; border-radius: 10px;
    background: #fdfbf7; cursor: pointer; color: #666; transition: 0.3s;
}
.upload-box:hover { background: #f9f5ed; border-color: #2d6a4f; }
.upload-box i { font-size: 40px; color: #c5a880; margin-bottom: 10px; }
.image-preview { position: relative; width: 100%; max-width: 200px; border-radius: 10px; overflow: hidden; border: 1px solid #ddd; }
.image-preview img { width: 100%; height: auto; display: block; }
.remove-img-btn {
    position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.6);
    color: white; border: none; width: 25px; height: 25px; border-radius: 50%; cursor: pointer;
}

/* Discount Badge */
.discount-badge {
    background: #e63946; color: white; font-size: 11px; padding: 2px 6px;
    border-radius: 4px; margin-left: 5px; display: none;
}

.submit-btn {
    width: 100%; background: #2d6a4f; color: white; padding: 15px; border: none;
    border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer; transition: 0.3s;
    margin-bottom: 30px;
}
.submit-btn:hover { background: #1b4332; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(27,67,50,0.2); }

/* Popup Overlay */
.popup-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 2000;
}
.popup-card {
    background: white; padding: 30px; border-radius: 15px; text-align: center;
    max-width: 380px; width: 90%; animation: popIn 0.3s ease-out;
}
.popup-card h2 { color: #2d6a4f; margin: 10px 0; }
.popup-card p { color: #555; font-size: 14px; margin-bottom: 20px; line-height: 1.5; }
.success-icon i { font-size: 60px; }
.ok-btn { background: #2d6a4f; color: white; border: none; padding: 10px 30px; border-radius: 8px; cursor: pointer; font-size: 16px; }

@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 600px) { .input-grid { grid-template-columns: 1fr; gap: 0; } }