* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Rozha One", serif;
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: "Georgia", serif;
  color: #333;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  background: #ffffff; /* Putih */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  color: #c09c68;
}

.logo img {
  width: 50px; /* silakan sesuaikan ukuran */
  height: auto; /* biar proporsi gambar tetap bagus */
  object-fit: contain;
}

nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

nav a {
  color: #c09c68;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.3s;
  position: relative;
  font-family: "Questrial", sans-serif;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #c09c68;
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Language Toggle */
.language-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 20px;
}

.lang-label {
  color: #c09c68;
  font-size: 14px;
  font-weight: bold;
  font-family: "Questrial", sans-serif;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #c09c68;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider:hover {
  background-color: #999;
}

input:checked + .slider:hover {
  background-color: #c09c68;
}

/* Footer */
footer {
  background: #000;
  color: white;
  padding: 60px 80px 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.footer-brand h2 {
  font-size: 36px;
  color: #c09c68;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.footer-brand p {
  color: #c09c68;
  margin-bottom: 25px;
  font-size: 15px;
  font-family: "Questrial", sans-serif;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid #c09c68;
  border-radius: 50%;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a svg {
  width: 20px;
  height: 20px;
  color: #c09c68;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #c09c68;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.social-links a:hover svg {
  color: #000;
  transform: scale(1.1);
}

.footer-nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.footer-nav a {
  color: #c09c68;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  font-family: "Questrial", sans-serif;
}

.footer-nav a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
}

.footer-bottom p {
  color: #c09c68;
  font-size: 14px;
  font-family: "Questrial", sans-serif;
}

/* Responsive */
@media (max-width: 1024px) {
  header,
  footer {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }

  .language-toggle {
    margin-left: 0;
  }

  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  nav a {
    font-size: 14px;
  }

  .footer-brand h2 {
    font-size: 28px;
  }
}

.product-head {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 80px;
  /* padding-right: 220px; */
}

.product-page-title {
  max-width: fit-content;
  /* margin-bottom: 60px; */
}

.product-page-title h1 {
  font-size: 110px;
  line-height: 1.4;
  color: #c09c68;
  font-family: "Rozha One", serif;
}

.product-page-title h2 {
  font-size: 85px;
  line-height: 1.4;
  color: #c09c68;
  font-family: "Rozha One", serif;
}

.product-page-title p {
  font-family: "Questrial", sans-serif;
  width: 520px;
  font-size: 24px;
}

.half-circle {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 200px;
  height: 400px;
  background-color: #3498db;
  border-top-left-radius: 200px;
  border-bottom-left-radius: 200px;
  z-index: -1;
  background-color: #ebddb966;
}

.mini-product {
  display: flex;
  gap: 20px;
  position: relative;
}

.mini-product img {
  width: 130px;
  height: auto;
  object-fit: contain;
  cursor: pointer;
  transition: all 0.3s ease;
  padding-bottom: 8px;
  border-bottom: 3px solid transparent;
}

.mini-product img:hover {
  transform: scale(1.05);
}

.mini-product img.active {
  transform: scale(1.15);
  border-bottom: 1px solid #c09c68;
  padding-bottom: 8px;
}

.mini-product img.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px; /* panjang garis */
  height: 3px;
  background-color: #c09c68;
}


.featured-image-container {
  position: absolute;
  top: 50%;
  right: 200px;
  transform: translateY(-50%) translateX(50%);
  width: 260px;
  height: 260px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

#featuredImage {
  width: 150%;
  height: auto;
  opacity: 0;
  transform-origin: center center;
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
}

/* Animasi Keyframes yang lebih smooth */
@keyframes smoothEnter {
  0% {
    opacity: 0;
    transform: translate(80px, -100px) rotate(-60deg) scale(0.6);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes smoothExit {
  0% {
    opacity: 1;
    transform: translate(0, 0) /* Start dari posisi normal */ rotate(0deg)
      scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(120px, 200px) /* Posisi akhir */ rotate(95deg)
      scale(0.5);
  }
}

/* Class untuk animasi smooth */
#featuredImage.smooth-enter {
  animation: smoothEnter 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#featuredImage.smooth-exit {
  animation: smoothExit 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

#featuredImage.show {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

.our-product {
  width: 100vw; /* gunakan seluruh lebar viewport */
  padding: 50px 180px; /* hanya atas-bawah */
  font-family: "Questrial", sans-serif;
  box-sizing: border-box;
  overflow-x: hidden; /* biar gak muncul scroll horizontal */
}

.our-product h1 {
  text-align: center;
  font-size: 55px;
  color: #c09c68;
  margin-bottom: 40px;
}

.product-filter {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.product-filter button {
  font-size: 14px;
  padding: 8px 18px;
  border: 1px solid #c09c68;
  border-radius: 8px;
  background: transparent;
  color: #c09c68;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Questrial", sans-serif;
}

.product-filter button:hover {
  background: #c09c68;
  color: #fff;
}

.product-filter .active {
  background: #c09c68;
  color: #fff;
}

/* === GRID MUSHROOMS === */
.parent {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* tetap 4 kolom saja */
  grid-auto-rows: 300px;
  gap: 20px;
  width: 100vw; /* penuh dari kiri ke kanan */
  margin: 0; /* hilangkan margin auto */
  padding: 0 80px; /* opsional: beri ruang kecil di sisi kiri-kanan */
  box-sizing: border-box;
  align-items: stretch;
}

/* Item default */
.item {
  background: #fff;
  border-radius: 15px;
  /* overflow: hidden; */
  padding: 10px;
  display: flex;
  flex-direction: column;
  height: auto;
}

.item h3 {
  color: #c09c68;
  font-size: 18px;
  margin-top: 10px;
}

.item p {
  font-size: 14px;
  color: #333;
  margin-top: 4px;
  font-family: "Questrial", sans-serif;
}

/* Layout khusus kategori */
.parent.filtered {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
}

.parent.filtered .item img {
  height: auto;
}

.item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.item.big {
  height: 400px !important;
}

.item.tall {
  height: 400px !important;
}

.item.small {
  height: 250px !important;
}

.item2 {
  grid-column: 2 / 5; /* melebar penuh ke kanan */
  grid-row: 1 / 3; /* biar mengisi area 2 baris penuh */
  height: 83%;
}

.item2 img {
  height: 100%;
  object-fit: cover;
}

/* === POSISI SESUAI GAMBAR === */
.item1 {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}
.item2 {
  grid-column: 2 / 4;
  grid-row: 1 / 3;
} /* besar di kanan atas */
.item3 {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}
.item4 {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
}
.item5 {
  grid-column: 2 / 3;
  grid-row: 3 / 4;
}
.item6 {
  grid-column: 3 / 4;
  grid-row: 3 / 4;
}
.item7 {
  grid-column: 1 / 2;
  grid-row: 4 / 5;
}
.item8 {
  grid-column: 2 / 3;
  grid-row: 4 / 5;
}
.item9 {
  grid-column: 3 / 4;
  grid-row: 4 / 5;
}

/* Responsif */
@media (max-width: 1000px) {
  .parent {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .parent {
    grid-template-columns: 1fr;
  }
}
