/* ============================
   PRODUCT EDIT – IMAGE GRID
   ============================ */

#existingImages, #uploadedImages {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Thumbnail container */

.uploaded-image {
  position: relative;
  width: 180px;
  height: 180px;
  background: var(--bs-light-bg-subtle);
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s ease;
}

/* Hover effect */

.uploaded-image:hover {
  border-color: #bfbfbf;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Primary image highlight */

.uploaded-image.primary {
  border-color: #ff3f51;
  background: #fff7d6;
  box-shadow: 0 0 0 2px #ff3f51 inset;
}

/* Thumbnail image */

.uploaded-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
  border-radius: 8px;
}

/* ============================
   PRIMARY BADGE
   ============================ */

.primary-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #f9e526;
  color: #000;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
  z-index: 20;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}

/* ============================
   IMAGE ACTION BUTTONS
   ============================ */

.image-actions {
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  z-index: 15;
}

.image-actions button {
  padding: 3px 6px;
  font-size: 11px;
  border-radius: 6px;
}

/* Make primary button stand out */

.image-actions .btn-warning, .image-actions .btn-outline-warning {
  font-weight: 600;
}

/* ============================
   QUILL EDITOR FIXES
   ============================ */

.ql-toolbar {
  border-radius: 15px 15px 0 0;
  background-color: #f8f9fa;
}

#editor-container {
  border-radius: 0 0 15px 15px;
  background: white;
  color: #212223;
  font-size: 18px;
}

