body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f9;
  margin: 0;
  padding: 0;
}

.insertAndUpdatecontainer  {
  max-width: 850px;
  margin: 40px auto;
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="file"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.dynamic-field {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.dynamic-field input {
  flex: 1;
}

.remove-field {
  background-color: #ff4d4d;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.remove-field:hover {
  background-color: #c0392b;
}

.add-more {
  display: inline-block;
  color: #007bff;
  cursor: pointer;
  margin-top: 5px;
  font-size: 14px;
}

.add-more:hover {
  text-decoration: underline;
}

button[type="submit"] {
  background-color: #28a745;
  color: #fff;
  padding: 14px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s;
}

button[type="submit"]:hover {
  background-color: #218838;
}

.preview-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.preview-container img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ccc;
}

textarea {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
}

select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.kg-price-range {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.kg-price-range input[type="text"],
.kg-price-range input[type="number"] {
  flex: 1;
}



.img-wrapper {
  position: relative;
  display: inline-block;
}

.img-wrapper .img-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ff4d4d;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}



.img-wrapper.dragging {
  
  border: 2px dashed #333;
}
