body {
  background: linear-gradient(to bottom right, #0b3d2e, #1a472a);
  color: #fef9c3;
  font-family: "Segoe UI", sans-serif;
}

.back-btn {
  background: #22c55e;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  color: #fff;
  margin-bottom: 20px;
  transition: 0.3s;
}

.back-btn:hover {
  background: #16a34a;
  transform: scale(1.05);
}

h2 {
  color: #facc15;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

.category-box {
  background: #14532d;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
}

.category-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #d9f99d;
  border-bottom: 2px solid #facc15;
  padding-bottom: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.item-card {
  background: linear-gradient(to bottom right, #fef9c3, #facc15);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #14532d;
}

.item-card img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 15px;
}

.item-info {
  flex-grow: 1;
  font-weight: 500;
}

.btn-detail {
  background: #22c55e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  transition: 0.3s;
}

.btn-detail:hover {
  background: #16a34a;
  transform: scale(1.05);
}

/* Modal */
.modal-content {
  background: linear-gradient(to bottom right, #14532d, #0b3d2e);
  border: 2px solid #22c55e;
  border-radius: 15px;
}

.modal-header {
  background: #166534;
  border-bottom: 2px solid #22c55e;
  color: #facc15;
  font-weight: bold;
}

.modal-body {
  color: #fef9c3;
  font-size: 1rem;
}

/* Desktop Layout */
.detail-container {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.detail-text {
  flex: 1;
}

.target-section {
  flex: 0 0 auto;
  text-align: center;
}

.detail-container img {
  max-width: 200px;
  border-radius: 12px;
  border: 2px solid #22c55e;
}

.target-section strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  color: #cfeb17ef;
}

.target-section img {
  max-width: 100%;
  border-radius: 8px;
}

/* Mobile Layout */
@media (max-width: 768px) {
  .detail-container {
    flex-direction: column;
    gap: 15px;
  }

  .target-section {
    order: 2;
    width: 100%;
  }

  .detail-text {
    order: 1;
  }

  .detail-container img {
    max-width: 100%;
    margin: 0 auto;
  }
}
