/* RESET */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #fff;
}

/* HEADER */
.header {
  background-color: #e5c9c9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  flex-wrap: wrap;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 50px;
  margin-right: 10px;
}
.logo h2 {
  color: #2c3e50;
  font-weight: 600;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  gap: 25px;
}
.navbar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  background: transparent;
  padding: 5px 10px;
  border-radius: 10px;
}
.navbar a.active {
  background-color: #d6b0b7;
}
.navbar .icons span {
  margin-left: 15px;
  font-size: 18px;
  color: white;
}

/* MENU TOGGLE */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.menu-toggle span {
  height: 3px;
  width: 25px;
  background: #fff;
  margin: 4px 0;
  transition: 0.4s;
}

/* HERO SECTION */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 60px;
  background-color: #fff;
  flex-wrap: wrap;
}
.hero-text {
  max-width: 50%;
}
.hero-text p {
  font-size: 16px;
  color: #333;
}
.hero-text h1 {
  font-size: 36px;
  color: #2c3e50;
}
.hero-text h1 strong {
  color: #5a6780;
}
.btn-hero {
  margin-top: 20px;
  padding: 12px 24px;
  background-color: #d6b0b7;
  color: white;
  text-decoration: none;
  border-radius: 15px;
  font-weight: bold;
}
.hero-image img {
  max-width: 370px;
  height: auto;
  display: block;
  margin-left: auto;
}

/* FLASH SALE */
.flash-sale {
  background-color: #d4b0c1;
  padding: 30px;
}
.flash-sale h2 {
  color: white;
  font-size: 24px;
  margin-bottom: 20px;
}
.product-grid {
  display: grid;
  gap: 20px;
}

/* 5 kolom untuk desktop */
@media (min-width: 993px) {
  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* 3 kolom untuk tablet */
@media (min-width: 769px) and (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 2 kolom untuk HP */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background-color: white;
  padding: 10px;
  border-radius: 20px;
  text-align: center;
}
.product-card img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 10px;
}
.btn-pesan {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background-color: #7966a8;
  color: white;
  text-decoration: none;
  border-radius: 10px;
}

/* FOOTER */
.footer {
  background-color: #f6dddd;
  padding: 30px 20px;
}
.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}
.footer-section {
  flex: 1;
  min-width: 250px;
}
.footer-section h4,
.footer-section h3 {
  color: #333;
}
.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.social-icons img {
  width: 24px;
  height: 24px;
}

/* RESPONSIVE UMUM */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-image img {
    margin: 20px auto 0;
    max-width: 90%;
  }

  .btn-hero {
    width: 100%;
    text-align: center;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .footer-section {
    width: 100%;
  }

  .social-icons {
    justify-content: flex-start;
  }
}

/* RESPONSIVE MENU - HP */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
  }

  .navbar {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #e5c9c9;
    padding: 10px 20px;
    margin-top: 10px;
  }

  .navbar.show {
    display: flex;
  }

  .navbar a {
    width: 100%;
    padding: 10px;
    background-color: #d6b0b7;
    margin-bottom: 5px;
  }

  .navbar a.active {
    background-color: #b48b95;
  }
}
