/* ================= BASE ================= */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

/* ================= HEADER ================= */
.header {
  position: relative;
  width: 100%;
}

/* ================= BANNER ================= */
.banner {
  width: 100%;
  background: #000;
}

.banner img {
  width: 100%;
  display: block;
}

/* ================= NAV ================= */
.nav-box {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-box input {
  padding: 7px;
  border-radius: 6px;
  border: none;
  font-size: 12px;
}

.nav-box button {
  padding: 7px 12px;
  border: none;
  background: #ddd;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.nav-box button.active {
  background: #ff6a00;
  color: #fff;
}

/* ================= CONTAINER ================= */
.container {
  padding: 12px;
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

/* ================= CARD (KUNCI UTAMA) ================= */
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 15px;
  padding: 8px;
}

/* GAMBAR */
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}

/* WRAPPER ISI */
.card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* JUDUL (DIKUNCI) */
.card h3 {
  font-size: 13px;
  margin: 6px 0;
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  height: 32px; /* KUNCI */
}

/* HARGA (DIKUNCI) */
.card p {
  font-size: 13px;
  font-weight: bold;
  color: #e91e63;
  margin: 4px 0;
  height: 18px; /* KUNCI */
}

/* TOMBOL (DIKUNCI PALING PENTING) */
.btn-shopee {
  margin-top: auto; /* KUNCI UTAMA */
  display: block;
  text-align: center;
  background: #ee4d2d;
  color: #fff;
  padding: 7px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: bold;
  text-decoration: none;
}

/* ================= WA ================= */
.wa-float {
  position: fixed;
  right: 15px;
  bottom: 15px;
  width: 42px;
  height: 42px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wa-float img {
  width: 60%;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .nav-box {
    position: static;
    justify-content: center;
    padding: 10px;
  }
}