/* UMKM Desa Dukuhjati Wetan — mobile-first */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #f9f9f9;
  color: #1a1a1a;
  line-height: 1.5;
  min-height: 100vh;
}

/* Wrapper — max 480px, centered */
body {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 12px 24px;
}

/* Header tipis */
.header {
  padding: 16px 4px 12px;
  text-align: center;
  border-bottom: 2px solid #2d6a4f;
  margin-bottom: 16px;
}

.header__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2d6a4f;
  line-height: 1.25;
}

.header__count {
  font-size: 1rem;
  font-weight: 600;
  color: #495057;
  margin-top: 6px;
}

/* Kontainer kartu */
.main {
  width: 100%;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Kartu UMKM */
.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.card__body {
  padding: 14px 16px 18px;
}

.card__kategori {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #2d6a4f;
  background: #d8f3dc;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.card__nama {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.card__deskripsi {
  font-size: 1.05rem;
  font-weight: 500;
  color: #343a40;
  margin-bottom: 10px;
}

.card__harga {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2d6a4f;
  margin-bottom: 14px;
}

/* Slider foto */
.slider {
  position: relative;
  width: 100%;
  background: #e9ecef;
  touch-action: pan-y pinch-zoom;
  user-select: none;
}

.slider__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.2s ease;
}

.slider__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #2d6a4f;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.slider__btn--prev {
  left: 8px;
}

.slider__btn--next {
  right: 8px;
}

.slider__btn:active {
  background: #ffffff;
}

.slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 4px;
  background: #ffffff;
}

.slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ced4da;
  padding: 0;
  cursor: pointer;
}

.slider__dot--active {
  background: #2d6a4f;
}

/* Tombol aksi */
.card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1.3;
}

.btn--whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.btn--whatsapp:active {
  background-color: #1da851;
}

.btn--maps {
  background-color: #6c757d;
  color: #ffffff;
}

.btn--maps:active {
  background-color: #5a6268;
}

/* Status kosong / error */
.status-message {
  text-align: center;
  padding: 32px 16px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #6c757d;
}
