/* =====================
   GLOBAL
===================== */
body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  color: #333;
}

/* =====================
   SLIDER SECTION
===================== */
.slider-section {
  padding: 40px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  text-align: center;
}

.slider-container {
  overflow: hidden;
  margin: auto;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

/* =====================
   CARD
===================== */
.card {
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Main image */
.image-fluid {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
}

/* Card body */
.card-body {
  padding: 10px 6px;
  color: #333;
}

.card-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

/* =====================
   VIEW IMAGES (THUMBNAILS)
===================== */
.view-img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #0d6efd;
  transition: transform 0.3s ease;
}

.view-img:hover {
  transform: scale(1.15);
}

/* =====================
   RESPONSIVE
===================== */
@media (min-width: 1024px) {
  .slider-container {
    width: 1000px;
  }
  .card {
    min-width: 320px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .slider-container {
    width: 680px;
  }
  .card {
    min-width: 320px;
  }
}

@media (max-width: 767px) {
  .slider-container {
    width: 320px;
  }
  .card {
    min-width: 320px;
  }
}

/* =====================
   IMAGE POPUP
===================== */
.image-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

.image-popup img {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  margin-top: 5%;
  border-radius: 10px;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* ===============================
   EXISTING ADD-ON IMAGES
================================ */

/* Container for each image */
.position-relative {
  width: 120px;
  height: 120px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  /* overflow: hidden; */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Image inside box */
.view-img-edit {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

/* Delete button (red cross) */
.delete-link {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  background: #ff0000;
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  line-height: 26px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

/* Hover effect */
.delete-link:hover {
  background: #cc0000;
  transform: scale(1.1);
}

/* Wrapper spacing (Bootstrap d-flex already used) */
.d-flex.gap-3 {
  row-gap: 15px;
}

