/* ========== 1. MAIN LAYOUT & CENTERING ========== */
.main {
  padding: 0px 20px 20px 20px;
  display: flex;
  justify-content: flex-end;
}

.custom-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 20px;
  margin: 0 auto;
  max-width: 1440px;
  justify-content: center;
}

.gradient-bg {
  background-image: url("../images/bannerGradientbg.png");
  background-size: cover;
}

/* ========== 2. PANELS & GRID ========== */
.items-panel,
.customize-panel {
  width: 100%;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 1.5rem;
}

.item-box {
  object-fit: cover;
  aspect-ratio: 1;
  width: 100%;
  border: 2px solid black;
  border-radius: 15px;
  background-color: #ebe3ff;
  padding: 15px;
  transition: transform 0.2s;
}

.item-box:hover {
  transform: rotate(-3deg) scale(1.05);
}

/* ========== 3. FORM ELEMENTS ========== */
.form-content {
  text-align: left;
  padding: 1rem 1.5rem;
}

.form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.neo-textarea {
  background-color: #efeaff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 12px 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  font-family: "Space Mono", monospace;
  resize: none;
  min-height: 80px;
  max-height: 120px;
}

.quantity-input {
  background-color: #efeaff;
  border: 2px solid black;
  border-radius: 20px;
  height: 45px;
}

/* ========== 4. BUTTONS & PREVIEWS ========== */
.btn-neo.w-auto {
  min-width: 100px;
  max-width: fit-content;
  font-size: 0.9rem;
  padding: 8px 20px;
}

.btn-neo-small {
  border: 2px solid #000;
  border-radius: 20px;
  padding: 2px 15px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 2px 2px 0px 0px #000;
  transition: 0.2s;
}

.btn-neo-small:active {
  box-shadow: 0px 0px 0px 0px #000;
  transform: translate(2px, 2px);
}

.photo-preview-box {
  width: 80px;
  height: 80px;
  border: 2px dashed #000;
  border-radius: 10px;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ========== 5. ADDONS SECTION (matches product.css) ========== */
.addons-section {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 16px;
  margin-top: 10px;
  width: 100%;
}

.addon-item {
  text-align: center;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  width: auto !important;
}

.addon-image {
  width: 90px;
  height: 112px;
  border-radius: 5px;
  margin-bottom: 5px;
  overflow: hidden;
  background: #ddd;
}

.addon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.addon-name {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.addon-price {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  margin-bottom: 6px;
}

.addon-counter {
  background: #ece2fb;
  border-radius: 86px;
  padding: 5px 12px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  border: none !important;
  box-shadow: none !important;
}

.counter-btn {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  user-select: none;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.neo-modal {
  background-color: #fff;
  overflow: hidden;
}

#shadesModal .modal-header {
  background-color: #ff3399; /* Matching the pink in your palette image */
  color: white;
}

#shadesModal .btn-close {
  filter: brightness(0) invert(1); /* Makes the 'X' white */
}

.img-palette {
  max-height: 600px;
}
.counter-value {
  font-family: "Raleway", sans-serif;
  font-weight: 700;
  font-size: 16px;
  min-width: 16px;
  text-align: center;
}
/* ========== 5.5 UPLOAD IMAGES ========== */
/* Update the existing box style */
.photo-preview-box {
  position: relative; /* Keep this for positioning the button */
  width: 80px;
  height: 80px;
  border: 2px dashed #ccc;
  background-size: cover;
  background-position: center;
  border-radius: 8px; /* The image is contained by this border radius */

  /* CRUCIAL: Ensure overflow is NOT hidden, so the button can float outside */
  overflow: visible !important;
}

/* Update the remove button style */
.remove-img-btn {
  position: absolute;
  /* Move it up and right so it's outside the image */
  top: -10px;
  right: -10px;

  /* Visuals */
  background: #ff4444; /* Slightly softer red */
  color: white;
  border: 2px solid white; /* Adds a nice separation from the background */
  border-radius: 50%; /* Perfect circle */

  /* Size and centering */
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Font style for the X */
  font-size: 16px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  line-height: 1;

  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Gives it depth */
  transition: background-color 0.2s ease;
  z-index: 10;
}

.remove-img-btn:hover {
  background: #cc0000; /* Darker red on hover */
}

/* ========== 6. DESKTOP QUERIES (768px+) ========== */
@media (min-width: 769px) {
  .content {
    flex-direction: row;
    align-items: flex-start;
  }

  .items-panel {
    flex: 0 0 50%;
    max-width: 1000px;
  }

  .customize-panel {
    flex: 50%;
    padding: 0 35px;
  }
}

/* ========== 7. MOBILE QUERIES (767px-) ========== */
@media (max-width: 768px) {
  .main {
    padding: 0px 20px 10px 20px;
  }
  .item-box {
    padding: 0px !important;
  }

  .btn-neo.w-auto {
    font-size: 0.85rem;
  }

  .btn-neo {
    width: 90% !important;
  }

  .photo-preview-box {
    width: 65px;
    height: 65px;
  }

  .form-content .row > div {
    margin-bottom: 1rem;
  }

  .addon-image {
    width: 75px;
    height: 93px;
  }
}
