body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  background-color: #f8f8f8;
  color: #333;
  min-height: 100vh;
  position: relative;
  padding-bottom: 60px;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

a {
  text-decoration: none;
  color: #28a745;
}

a:hover {
  text-decoration: underline;
}

nav {
  background-color: #ffffff;
  padding: 20px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav h1 {
  margin: 0;
  font-size: 24px;
  color: #28a745;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  display: inline-block;
  margin-left: 30px;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #28a745;
}

nav a.active {
  font-weight: bold;
  color: #28a745;
}

header {
  background-size: cover;
  text-align: center;
  padding:  0; 
  color: white;
  margin-top: 10px; 
  width: 100%; 
}


.hero-text h2 {
color: #28a745;
margin-top: 0;
margin-bottom: 0;
;
}

.hero-text p {
  color: #000000;
}

.divider {
  width: 100vw;
  height: 2px;
  background-color: #ccc; 
  margin: 20px 0; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

.hero-text h2 {
  font-size: 48px;
  margin-bottom: 10px;
  font-weight: 700;
}


.hero-text p {
  font-size: 20px;
  font-weight: 300;
}


.about {
  padding: 50px 0;
}

.about h2 {
  color: #28a745;
  margin-bottom: 20px;
  text-align: center;
}

.about p {
  line-height: 1.6;
}


.products {
  padding: 50px 0;
}

.products h2 {
  color: #28a745;
  margin-bottom: 20px;
  text-align: center;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.product {
  width: 25%;
  margin-bottom: 30px;
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}


.product:hover {
  transform: translateY(-5px);
}

.product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.product h3 {
  margin-bottom: 10px;
}

.product .button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.product .button:hover {
  background-color: #218838;
}

.testimonials {
  padding: 50px 0;
  background-color: #f8f8f8;
}

.testimonials h2 {
  color: #28a745;
  margin-bottom: 20px;
  text-align: center;
}

.testimonial-list {
  display: flex;
  overflow-x: auto;
}

.testimonial {
  min-width: 300px;
  padding: 20px;
  border: 1px solid #ddd;
  margin-right: 20px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

footer {
  background-color: #333;
  color: white;
  padding: 20px 0;
  text-align: center;
  position: absolute; 
  bottom: 0;
  width: 100%;
}

.social-media {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
}

.social-media li {
  display: inline-block;
  margin: 0 10px;
}

.social-media a {
  color: white;
  transition: color 0.3s ease;
}

.social-media a:hover {
  color: #28a745;
}

.login form, 
.register form {
  display: flex;
  flex-direction: column;
  width: 300px;
  margin: 0 auto;
}

.login label, 
.register label {
  margin-bottom: 5px;
  display: block;
}

.login input, 
.register input {
  width: 100%; 
padding: 10px;
margin-bottom: 15px; 
border: 1px solid #ddd; 
border-radius: 5px; 
}

.login button, 
.register button {
  display: block;
  margin: 0 auto;
  width: auto; 
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.login p, .register p {
  text-align: center;
}

.about,.testimonials, .cart { 
  margin-top: 30px; 
}

.login, .register {
  margin-top: 150px;
}

@media (max-width: 768px) {
  .product {
    width: 48%;
  }

  nav ul {
    text-align: center;
    margin-top: 10px;
  }

  nav li {
    display: block;
    margin: 5px 0;
  }
}

@media (max-width: 480px) {
  .product {
    width: 100%;
  }

  .hero-text h2 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 16px;
  }
}

.product-detail .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-detail img {
  max-width: 500px;
  height: auto;
  margin-bottom: 20px;
}

.product-detail h2 {
  margin-bottom: 10px;
}

.product-detail .price {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.product-detail h3 {
  margin-top: 20px;
}

.product-detail ul {
  list-style: none;
  padding: 0;
}

.product-detail {
  display: flex;
  justify-content: center; 
  padding-top: 80px; 
  padding-bottom: 80px;
}

.product-container {
  display: flex;
  flex-direction: column;
  align-items: center; 
  width: fit-content; 
  text-align: center; 
}

.product-container img {
  max-width: 100%; 
  height: auto;
  margin-bottom: 20px;
}

.product-text { 
  text-align: center; 
}

.cart {
  padding-top: 80px; 
  padding-bottom: 80px; 
  display: flex;
  flex-direction: column; 
  align-items: center; 
  min-height: calc(100vh - 140px); 
  text-align: center;
}

.cart-item { 
  display: flex;
  flex-direction: column;
  align-items: center; 
  width: fit-content;
  text-align: center; 
  margin-bottom: 20px; 
  border: 1px solid #ddd; 
  padding: 20px; 
  border-radius: 5px; 
}

.cart-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.quantity-control { 
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

#checkout-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #28a745; 
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer; 
  margin-top: 20px; 
}

#checkout-button:hover {
  background-color: #218838; 
}

#belisekarang {
  display: inline-block;
  padding: 10px 20px;
  background-color: #28a745; 
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  cursor: pointer; 
  margin-top: 20px; 
}

#belisekarang button { 
  background-color: transparent; 
  border: none; 
  padding: 0; 
  color: white;
  font-weight: bold;
}

#belisekarang:hover { 
  background-color: #218838; 
}

.quantity-control button {
  width: 30px;
  height: 30px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.quantity-control span {
  margin: 0 10px;
}

.product .price { 
  color: #28a745; 
  font-size: 20px; 
  font-weight: bold; 
}

.product-detail .price { 
  color: #28a745; 
  font-size: 24px; 
  font-weight: bold; 
  text-align: center;
}

.product:hover {
  transform: translateY(-5px);
}

.product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.product h3 {
  margin-bottom: 10px;
}

.product .button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.product .button:hover {
  background-color: #218838;
}

.testimonials {
  padding: 50px 0;
  background-color: #f8f8f8;
}

.testimonials h2 {
  color: #28a745;
  margin-bottom: 20px;
  text-align: center;
}

.testimonial-list {
  display: flex;
  flex-wrap: wrap; 
  justify-content: space-around; 
}

.testimonial {
  width: 30%; 
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center; 
}

.testimonial h3 {
  margin-bottom: 10px;
}

.testimonial .rating {
  font-size: 20px;
  color: #ffc107; 
  margin-bottom: 10px;
}

.testimonial .date {
  font-size: 14px;
  color: #999;
}

.product-detail ul {
  list-style: none;
  padding: 0;
}

.button, .add-to-cart { 
  display: inline-block;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.button:hover, .add-to-cart:hover {
  background-color: #218838;
}

#burger-menu {
  display: none; /* Sembunyikan tombol burger di layar besar */
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: #333;
  transition: 0.3s;
}

/* Tampilan menu mobile */
#mobile-menu {
  display: none; /* Sembunyikan menu mobile secara default */
  position: absolute;
  top: 70px; /* Sesuaikan dengan tinggi navbar */
  left: 0;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-menu li {
  padding: 15px;   

  border-bottom: 1px solid #eee;
}

#mobile-menu a {
  text-decoration: none;
  color: #333;
}

/* Media query untuk tampilan mobile */
@media (max-width: 768px) {
  #burger-menu {
    display: block; /* Tampilkan tombol burger di layar mobile */
    float: right;
  }

  #nav-links {
    display: none; /* Sembunyikan menu navigasi di layar mobile */
  }

  /* #mobile-menu {
    display: none; --> Ini yang salah, harusnya display: block; 
  } */ 
  #mobile-menu.active { /* Tampilkan menu mobile saat class active ditambahkan */
    display: block; 
  }
}

/* ... (kode CSS lainnya) ... */

.banner-image {
  width: 100%; 
  overflow: hidden; 
}

.banner-image img {
  width: 100%; 
  display: block; 
}

/* Media query untuk tampilan mobile */
@media (max-width: 768px) {
  .banner-image img {
    height: 400px; /*  Sesuaikan tinggi gambar di mobile */
    object-fit: cover; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
}