/* General Styles */
body {
  margin: 0;
  font-family: 'Inria Serif', serif;
  background: #f9f9f9;
  color: #333;
  padding-top: 110px; /* biar konten ga ketiban topbar + navbar */
}

/* === Topbar === */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  background: #e5e1de;
  display: flex;
  justify-content: center;  /* judul di tengah */
  align-items: center;
  height: 50px; /* kasih tinggi pasti */
  padding: 0 20px;
}

.topbar .hamburger {
  position: absolute;
  left: 15px;
  font-size: 26px; /* lebih gede dikit */
  background: none;
  border: none;
  cursor: pointer;
  color: #5a4633;
  display: none; /* default desktop hidden */
  line-height: 1; /* biar gak kepotong */
}


/* === Navbar Desktop Default === */
.navbar {
  position: fixed;
  top: 32px; /* geser sesuai tinggi topbar */
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;  /* NAVBAR TENGAH di desktop */
  align-items: center;
  padding: 14px 20px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
}

.nav-links li a {
  text-decoration: none;
  color: #5a4633;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
}
.nav-links li a:hover { color: #a07d58; }

/* Banner Kategori */
.banner-kategori {
  text-align: center;
  padding: 40px 20px;
  background: #f3f0ed;
}
.banner-kategori .logo-banner {
  width: 120px;
  height: auto;
  margin-bottom: 15px;
}
.banner-kategori h1 {
  font-family: 'Inria Serif', serif;
  font-size: 28px;
  color: #5a422a;
}

/* Layout Kategori */
.kategori-page {
  display: flex;
  max-width: 1300px;
  margin: 30px auto;
  padding: 0 20px;
  gap: 20px;
  justify-content: center;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
}
.sidebar h3 {
  font-size: 15px;
  font-weight: bold;
  margin: 20px 0 10px;
  color: #5a422a;
}
.search-box {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
}
.filter-list { list-style: none; padding: 0; margin: 0; }
.filter-list li {
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Produk Grid */
.produk-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Card Produk */
.produk-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s;
}
.produk-card:hover { transform: translateY(-5px); }
.produk-card h4 {
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
  margin: 0;
  color: #3a2f2f;
  text-align: center;
}

/* Slider Produk */
.produk-slider {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  height: 300px;           /* tinggi konsisten */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.produk-slider .slides {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;        /* cuma sebesar container */
  height: 100%;
}

.produk-slider .slides img {
  min-width: 100%;    /* tiap gambar harus full width container */
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Tombol Slider Produk Bulat */
.produk-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 18px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}
.produk-slider .prev { left: 10px; }
.produk-slider .next { right: 10px; }
.produk-slider button:hover {
  background: rgba(0,0,0,0.7);
}

/* Footer */
footer {
  background: #c4b6a6;
  color: #3a2f2f;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  font-size: 14px;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .produk-grid {
    grid-template-columns: repeat(3, 1fr); /* tablet: 3 kolom */
  }
  .produk-card img {
    height: 280px;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .topbar .hamburger {
    display: block; /* hamburger muncul di HP */
  }

  .navbar {
    justify-content: flex-start;
    padding: 0;
  }

  .nav-links {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #eee;
    display: none;
    z-index: 999;
  }

  .nav-links.show {
    display: flex;
  }

  .produk-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* HP: paksa 2 kolom */
    gap: 15px;
  }

  .produk-card img {
    height: 220px;
    object-fit: cover;
  }

  .navbar {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .produk-grid {
    grid-template-columns: 1fr; /* HP kecil: 1 kolom */
  }
  .produk-card img {
    height: 200px;
    object-fit: cover;
  }
  .hero-text img.logo {
    width: 120px;
  }
}
