.card-img-top-wrap {
  height: 180px;
  overflow: hidden;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-top-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 180px;
  color: #ccc;
  font-size: 3rem;
}

.card-img-placeholder.large {
  height: 400px;
  background: #f0f0f0;
  border-radius: 0.375rem;
  font-size: 4rem;
}

.card-img-placeholder.large div {
  font-size: 1rem;
  margin-top: 0.5rem;
}

.category-card {
  transition: transform 0.15s, box-shadow 0.15s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.item-card .select-btn {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.item-card:hover .select-btn {
  opacity: 1;
}

.select-btn.btn-success {
  opacity: 1;
}

#itemCarousel img {
  max-height: 500px;
  object-fit: contain;
  background: #f8f8f8;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
  padding: 1rem;
}

/* Admin image grid */
.admin-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.admin-image-card {
  position: relative;
  border: 2px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.25rem;
  text-align: center;
}

.admin-image-card.border-primary {
  border-color: #0d6efd;
}

.admin-image-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.25rem;
}

.admin-image-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}

.admin-image-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.25rem;
  justify-content: center;
}
