@import url('https://fonts.googleapis.com/css2?family=Inria+Serif:wght@400;700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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; /* tinggi fix */
  padding: 0 20px;
}

.topbar .hamburger {
  position: absolute;
  left: 15px;
  font-size: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #5a4633;
  display: none; /* default desktop hidden */
  line-height: 1;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 50px; /* selalu pas di bawah 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; }

/* === About Section === */
.about-section {
  padding: 60px 10%;
  background: #fff;
  display: flex;
  justify-content: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Kiri */
.about-left {
  flex: 1;
  min-width: 320px;
  text-align: left;
}

.about-left h2 {
  font-size: 32px;
  color: #4b2e1e;
  margin-bottom: 20px;
}

.about-left p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 15px;
}

.about-left em {
  display: block;
  margin: 20px 0;
  color: #666;
  font-style: italic;
}

/* Logo di bawah teks */
.about-left .about-logo {
  display: block;
  margin: 30px auto 0;
  width: 180px;
}

/* Kanan */
.about-right {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.about-right .about-photo {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background: #c4b6a6;
  color: #3a2f2f;
  text-align: center;
  padding: 20px;
  margin-top: 30px;
  font-size: 14px;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
  .product-card img {
    height: 280px;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .topbar .hamburger {
    display: block;
  }

  .navbar {
    justify-content: flex-start;
    padding: 0;
  }

  .nav-links {
    position: fixed;
    top: 50px; /* pas nempel 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;
  }

  .nav-links.show {
    transform: translateY(0);
  }

  /* About jadi stack */
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-left {
    text-align: center;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card img {
    height: 220px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  .products {
    grid-template-columns: 1fr;
  }
  .product-card img {
    height: 200px;
    object-fit: cover;
  }
}
