/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: #f4f6f8;
  color: #333;
  line-height: 1.6;
  padding-bottom: 40px;
}

.container {
  width: 92%;
  max-width: 1080px;
  margin: auto;
  padding: 20px 0;
}

/* JUDUL */
h1 {
  font-size: 26px;
  margin-bottom: 24px;
  text-align: center;
  color: #222;
}

/* PRODUK GRID - Shopee Look */
.produk-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

/* ITEM PRODUK */
.produk-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: 0.2s ease;
}

.produk-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* GAMBAR KOTAK 1:1 */
.produk-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}


/* NAMA */
.produk-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin: 6px 0;
}

/* HARGA */
.produk-item .price {
  color: #e53935;
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 6px;
}

/* DESKRIPSI */
.produk-item p {
  font-size: 12px;
  color: #555;
  margin-bottom: auto;
}

/* TOMBOL BELI */
.button {
  background-color: #ffc357;
  color: white;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  margin-top: 12px;
  width: 100%;
  display: block;
}

/* RESPONSIVE */
@media (max-width: 600px) {
  .produk-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .produk-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
  }

  .slider-wrapper {
    overflow: hidden;
  }

  .slider-container {
    overflow-x: auto;
    max-width: 100%;
  }
}

/* ==== FIX UTAMA RESPONSIVE PRODUK MOBILE ==== */

html, body {
  overflow-x: hidden;
  width: 100%;
}

.container {
  max-width: 100%;
  padding: 20px 0;
  overflow-x: hidden;
}

.produk-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

/* PERBAIKAN GAMBAR DI HP */
.produk-img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  display: block;
}

/* PERBAIKAN SLIDER YANG MELUBER */
.slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.slider-container {
  max-width: 100%;
  overflow-x: auto;
  display: flex;
  gap: 8px;
}

.slider-container img {
  height: 60px;
  width: 60px;
  object-fit: cover;
  flex-shrink: 0;
}

/* FIX PRODUK ITEM */
.produk-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px;
  box-sizing: border-box;
}


