* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #FDF8F0; /* krem lembut */
  color: #3E2A1F; /* cokelat tua untuk teks */
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, .logo, .section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

:root {
  --coklat-tua: #5C3A21;
  --coklat-sedang: #8B5E3C;
  --coklat-muda: #A67C52;
  --coklat-soft: #C4A484;
  --krem: #FDF8F0;
  --shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.02);
}

/* Navbar */
.navbar {
  background: var(--krem);
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
  border-bottom: 1px solid #E8DCCC;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--coklat-tua);
}
.logo span {
  color: var(--coklat-muda);
}
.logo a {
    text-decoration: none;
    display: inline-block;
}

/* Mengatur ukuran gambar logo agar sesuai di dalam navbar */
.logo img {
    width: 150px; /* Sesuaikan lebar gambar sesuai kebutuhan */
    height: auto;
    display: block;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--coklat-sedang);
  transition: 0.2s;
  font-size: 0.95rem;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--coklat-tua);
  font-weight: 600;
}
.burger {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--coklat-sedang);
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 2rem 2rem;
}
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}
.slide {
  min-width: 100%;
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}
.slide1 { background-image: linear-gradient(rgba(92,58,33,0.7), rgba(139,94,60,0.8)), url('../images/slide1.jpg'); }
.slide2 { background-image: linear-gradient(rgba(92,58,33,0.7), rgba(139,94,60,0.8)), url('../images/slide2.jpg'); }
.slide3 { background-image: linear-gradient(rgba(92,58,33,0.7), rgba(139,94,60,0.8)), url('../images/slide3.jpg'); }
.slide h1 {
  font-size: 2.8rem;
  margin-bottom: 0.8rem;
  color: #FFF5E6;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.slide p {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  color: #FFF0E0;
}
.btn {
  background: var(--coklat-muda);
  border: none;
  padding: 10px 28px;
  border-radius: 40px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.95rem;
  display: inline-block;
  text-decoration: none;
}
.btn:hover {
  background: var(--coklat-sedang);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.slider-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}
.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}
.dot.active {
  background-color: var(--coklat-muda);
  transform: scale(1.2);
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: 0.2s;
}
.prev:hover, .next:hover {
  background: var(--coklat-muda);
}
.prev { left: 15px; }
.next { right: 15px; }

/* Section */
section {
  padding: 3rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}
.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--coklat-tua);
  position: relative;
}
.section-title:after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--coklat-muda);
  margin: 0.5rem auto 0;
  border-radius: 3px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}
.product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.03);
  transition: all 0.25s ease;
  cursor: pointer;
}
.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}
.product-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.product-info {
  padding: 1rem;
}
.product-title {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
  color: var(--coklat-tua);
}
.product-desc {
  font-size: 0.8rem;
  color: #7a6a5c;
  margin: 0.5rem 0;
}
.price {
  font-weight: 700;
  color: var(--coklat-muda);
  font-size: 1.1rem;
}
.btn-order {
  background: var(--coklat-muda);
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border-radius: 40px;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.btn-order:hover {
  background: var(--coklat-sedang);
}
.filter-bar {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}
.filter-group select, .search-group input {
  padding: 8px 16px;
  border-radius: 40px;
  border: 1px solid #E8DCCC;
  background: white;
  color: var(--coklat-sedang);
}
.filter-group i {
  color: var(--coklat-muda);
  margin-right: 5px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  z-index: 1100;
}
.modal-content {
  background: var(--krem);
  max-width: 500px;
  width: 90%;
  border-radius: 28px;
  padding: 1.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--coklat-soft);
}
.close-modal {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--coklat-sedang);
}
.close-modal:hover {
  color: var(--coklat-tua);
}

footer {
  background: var(--coklat-tua);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: #FFF0E0;
}

/* Kategori Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}
.category-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}
.category-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.category-info {
  padding: 1.5rem;
  text-align: center;
}
.category-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--coklat-tua);
  margin-bottom: 0.5rem;
}
.category-info p {
  font-size: 0.9rem;
  color: #7a6a5c;
  margin-bottom: 1rem;
}
.btn-category {
  display: inline-block;
  background: var(--coklat-muda);
  color: white;
  padding: 8px 20px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-category:hover {
  background: var(--coklat-sedang);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    padding: 0.7rem 1rem;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--krem);
    padding: 1rem 0;
    gap: 0.8rem;
    text-align: center;
  }
  .nav-links.show {
    display: flex;
  }
  .burger {
    display: block;
  }
  .slide {
    padding: 3rem 1rem;
    min-height: 350px;
  }
  .slide h1 {
    font-size: 1.8rem;
  }
  .slide p {
    font-size: 1rem;
  }
  .prev, .next {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .products-grid {
    gap: 1.2rem;
  }
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .category-grid {
    gap: 1.2rem;
  }
  .category-info h3 {
    font-size: 1.2rem;
  }
}
@media (max-width: 480px) {
  .slide h1 { font-size: 1.5rem; }
}
/* Testimoni */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.testimonial-card {
  background: white;
  border-radius: 24px;
  padding: 1.8rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
  text-align: center;
  border: 1px solid rgba(139, 94, 60, 0.1);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}
.testimonial-avatar {
  width: 80px;
  height: 80px;
  background: #FEF3E2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #8B5E3C;
  font-size: 2.8rem;
}
.testimonial-rating {
  color: #FFB800;
  font-size: 1.2rem;
  letter-spacing: 4px;
  margin-bottom: 1rem;
}
.testimonial-card p {
  font-style: italic;
  color: #4A3B2C;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 1rem 0;
}
.testimonial-card h4 {
  color: #8B5E3C;
  font-weight: 600;
  margin-top: 0.5rem;
}
/* Testimonial Slider */
.testimonial-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
}

.testimonial-slider-wrapper {
  overflow: hidden;
  width: 100%;
}

.testimonial-slides {
  display: flex;
  transition: transform 0.4s ease-in-out;
  gap: 2rem;
}

.testimonial-card {
  flex: 0 0 calc(33.333% - 1.33rem); /* 3 cards per slide on desktop */
  background: white;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: 0.3s;
  text-align: center;
  border: 1px solid rgba(139, 94, 60, 0.1);
}

@media (max-width: 992px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 1rem); /* 2 cards per slide */
  }
}

@media (max-width: 576px) {
  .testimonial-card {
    flex: 0 0 100%; /* 1 card per slide */
  }
}

.testimonial-prev,
.testimonial-next {
  background: #D4A373;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  flex-shrink: 0;
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: #8B5E3C;
  transform: scale(1.05);
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  background: #ddd;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s;
}

.testimonial-dot.active {
  background: #D4A373;
  transform: scale(1.3);
}
/* Banner Iklan */
.promo-banner {
  background: linear-gradient(135deg, #8B5E3C, #D4A373);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  margin: 0 5% 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  animation: slideUp 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.promo-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  flex: 1;
}

.promo-text {
  font-weight: bold;
  background: #FFD700;
  color: #8B5E3C;
  padding: 0.3rem 1rem;
  border-radius: 30px;
  font-size: 0.9rem;
}

.promo-message {
  font-size: 1rem;
  font-weight: 500;
}

.promo-btn {
  background: white;
  color: #8B5E3C;
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.promo-btn:hover {
  background: #FFD700;
  color: #5C3E1F;
}

.close-banner {
  background: none;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  padding: 0 5px;
}

.close-banner:hover {
  color: #FFD700;
  transform: scale(1.1);
}

/* Responsive banner */
@media (max-width: 768px) {
  .promo-banner {
    flex-direction: column;
    text-align: center;
    border-radius: 20px;
    padding: 1rem;
  }
  .promo-content {
    justify-content: center;
  }
}