/* ================================================
   PERJALANAN KOPI — style.css
   ================================================ */

:root {
  --amber:  #d97706;
  --dark:   #1c1009;
  --light:  #fffbf5;
  --muted:  #78716c;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
}

/* ================================================
   HEADER
   ================================================ */
header {
  background: var(--dark);
  padding: 25px;
  text-align: center;
}

header h1 {
  color: var(--amber);
}

header p {
  margin-top: 10px;
  color: #d9c9b8;
  font-size: clamp(10px, 2vw, 14px);
}

/* ================================================
   RADIUS CONTROLS
   ================================================ */
.controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 15px;
  background: var(--dark);
  flex-wrap: wrap;
}

.radiusBtn {
  padding: 10px 20px;
  border: 1px solid #5d3412;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: white;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}

.radiusBtn.active {
  background: var(--amber);
  color: black;
}

/* ================================================
   MAP
   ================================================ */
#map {
  height: 45vh;
  min-height: 300px;
}

/* ================================================
   RESULT SECTION
   ================================================ */
#result {
  padding: 20px;
}

.resultTitle {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 15px;
  color: var(--muted);
}

.resultGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

.placeLink {
  font-size: 18px;
  font-weight: bold;
  color: #d97706;
  text-decoration: none;
}

.placeLink:hover {
  text-decoration: underline;
}

.card-address {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.loading {
  padding: 40px;
  text-align: center;
}

/* ================================================
   MERCHANDISE — Kaos
   ================================================ */
.merchandise {
  padding: 40px 20px;
}

.merchandise h2 {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
}

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

.shirtCard {
  background: white;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.shirtImage {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.price {
  font-weight: bold;
  font-size: 20px;
  margin: 10px 0;
  color: #d97706;
}

.spec {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.waBtn {
  display: block;
  text-align: center;
  padding: 12px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  transition: opacity 0.2s;
}

.waBtn:hover {
  opacity: 0.88;
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
  .shirtGrid {
    grid-template-columns: 1fr;
  }
}
