/* === 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; }

/* === Slider Fullscreen === */
.slider {
  position: relative;
  width: 100vw;
  overflow: hidden;
}

.slides {
  display: flex;
  width: 100%;
  transition: transform 1s ease;
}

.slides img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.3s ease;
}
.prev { left: 20px; }
.next { right: 20px; }
.prev:hover, .next:hover { background: rgba(0,0,0,0.7); }

/* === Hero text === */
.hero-text {
  margin-top: 20px;
  text-align: center;
}
.hero-text .logo {
  width: 200px;
  max-width: 100%;
  height: auto;
}
.hero-text .arab {
  font-size: 20px;
  font-weight: bold;
  margin: 5px 0;
  color: #2c2c2c;
}
.hero-text .desc {
  font-size: 14px;
  margin: 5px 0 25px;
  color: #444;
}

/* === Section Produk === */
.produk-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}
.produk-section h2 {
  font-size: 20px;
  font-weight: bold;
  color: #5a422a;
  margin-bottom: 20px;
  position: relative;
}
.produk-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: #5a422a;
  margin: 8px auto 0;
}

/* grid produk */
.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  justify-items: center;
}
.product-card {
  width: 100%;
  max-width: 250px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}
.product-card:hover { transform: translateY(-5px); }
.product-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

/* tombol lihat selengkapnya */
.lihat-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.btn-lihat {
  background: #d3cfc9;
  color: #6a5340;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}
.btn-lihat:hover {
  background: #b8aea2;
  color: #fff;
}

/* === Banner Slider === */
.banner-slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 50px auto;
  overflow: hidden;
  border-radius: 10px;
}
.banner-slider .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.banner-slider img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}
.banner-slider button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-slider .prev { left: 10px; }
.banner-slider .next { right: 10px; }
.banner-slider button:hover { background: rgba(0,0,0,0.7); }
/* Sosial Media Links */
.social-links {
  margin: 25px 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.social-links a {
  display: flex;
  flex-direction: column;   /* icon di atas, text di bawah */
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.social-links img {
  width: 60px;       /* samain ukuran lebar */
  height: 60px;      /* samain ukuran tinggi */
  object-fit: contain;  /* biar ga ketarik aneh */
  margin-bottom: 8px;
}

/* Box untuk "Click Here" */
.social-links span {
  display: inline-block;
  border: 1px solid #333;
  padding: 6px 18px;
  border-radius: 20px;  /* bikin oval */
  transition: 0.3s;
}

.social-links span:hover {
  background: #f5f5f5;
  border-color: #a07d58;
  color: #a07d58;
}

/* Map Container */
.map-container {
  display: flex;
  flex-direction: column;
  align-items: center; /* semua isi jadi center */
  text-align: center;
}

.map-logo {
  width: 120px;   /* ukuran fix biar ga mengecil */
  height: auto;
  margin-bottom: 15px;
}

.map-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 20px;
  text-decoration: none;
  color: #000;
  font-size: 14px;
  margin-bottom: 10px; /* jarak tombol ke teks */
  transition: 0.3s;
}

.map-btn:hover {
  background-color: #000;
  color: #fff;
}

.note {
  font-size: 18px !important; /* paksa ubah ukuran */
  color: #222 !important;     /* paksa warna lebih jelas */
  font-weight: 500;
  text-align: center;
  line-height: 1.6;
}



/* Tombol Map */
.map-btn {
  display: inline-block;
  border: 1px solid #333;
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

.map-btn:hover {
  background: #f5f5f5;
  border-color: #a07d58;
  color: #a07d58;
}


.note {
  font-size: 12px;
  margin-top: 15px;
  color: #555;
}

/* === Footer === */
footer {
  background: #c4b6a6;
  color: #3a2f2f;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  font-size: 14px;
}

/* === Responsive === */
@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; /* pas rapet di bawah topbar */
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 999; /* biar di atas slider */
  }

  .nav-links.show {
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(3, 1fr); /* tablet: 3 kolom */
  }
  .product-card img {
    height: 280px; /* biar proporsional */
  }
}

@media (max-width: 768px) {
  .products {
    grid-template-columns: repeat(2, 1fr); /* hp: 2 kolom */
  }
  .product-card img {
    height: 220px; /* biar ga kepanjangan */
  }
}
