/* ----------------------------- GLOBAL ----------------------------- */
body {
  font-family: "Cinzel", serif;
  margin: 0;
}

/* ----------------------------- TOP BANNER ----------------------------- */
.top-banner-container {
  background-color: #0f1972;
  color: #ffd700;
  padding: 8px 16px;
  font-family: sans-serif;
  font-size: 14px;
  z-index: 9999;
}

.top-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
}

.marquee-track {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.top-dropdown select {
  margin-left: 8px;
  padding: 4px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  background-color: white;
  color: #0f1972;
}

/* ----------------------------- HEADER ----------------------------- */
header {
  background-color: #fff;
  color: #0f1972;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  z-index: 99998;
}

.logo-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  height: 80px;
}

.menu-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

nav {
  display: flex;
  justify-content: center;
}

nav a {
  color: #0f1972;
  margin: 12px;
  text-decoration: none;
  font-weight: bold;
}

/* Right Icons (Search + Cart) */
.right-icons {
  display: flex;
  align-items: center;
}

.right-icons i {
  font-size: 24px;
  color: #0f1972;
  cursor: pointer;
  margin-left: 15px;
}

.search-bar {
  padding: 5px;
  margin-right: 15px;
  border: none;
}

.search-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgb(255, 255, 255);
  padding: 20px;
  display: flex;
  justify-content: center;
  z-index: 10000;
  transition: top 0.3s ease;
}

.search-popup.hidden {
  display: none;
}

.search-popup-content {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 500px;
}

.search-popup input {
  flex: 1;
  padding: 10px;
  border: 2px solid #0f1972;
  border-radius: 6px;
  font-size: 1rem;
}

#search-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #0f1972;
}

/* shop cart */
.shop-cart {
  padding: 5px;
  margin-right: 0px;
  border: none;
}

.shop-cart {
  cursor: pointer;
}
.shop-cart i {
  cursor: pointer;
}

.cart-modal {
  display: none;
  position: fixed;
  top: 80px;
  right: 20px;
  background-color: white;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 9999;
  width: 300px;
  max-width: 90%;
  color: #0f1972;
  font-family: sans-serif;
}

/* humburger */

.hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform 0.3s ease;
  transform-origin: center center;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background-color: #0f1972;
  transition: all 0.3s ease;
}

.hamburger.rotate {
  transform: rotate(90deg);
  transform-origin: center;
}

/* Side Navigation */
.nav-container {
  position: flex;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.nav-container.open {
  transform: translateX(0);
}

.nav-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.nav-container ul li {
  margin: 16px 0;
}

.nav-container a {
  color: #0f1972;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
}

/* Tombol close */
.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: #0f1972;
  background: none;
  border: none;
  cursor: pointer;
}

/* ----------------------------- HERO ----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  color: #0f1972;
  overflow: hidden;
  z-index: 1; /* Menambahkan z-index agar elemen hero tetap berada di bawah elemen navigasi */
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* Menjaga slider tetap berada di belakang elemen lainnya */
}

.hero-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  position: relative;
  z-index: 1; /* Menjaga teks di atas slider, tapi di bawah navigasi */
  padding: 0 30px;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.5);
}

.hero-text p {
  font-size: 1.2rem;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.4);
}

.shop-now-btn {
  display: inline-block;
  padding: 12px 24px;
  margin-top: 20px;
  background-color: #0f1972;
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s ease;
}

.shop-now-btn:hover {
  background-color: #ffd700;
  color: #0f1972;
}

/* ----------------------------- FEATURES ----------------------------- */
.features {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 20px;
}

.feature-item {
  flex: 1;
  text-align: center;
  animation: popUp 0.6s ease forwards;
  opacity: 0;
}

.feature-item:nth-child(1) {
  animation-delay: 0.2s;
}
.feature-item:nth-child(2) {
  animation-delay: 0.4s;
}
.feature-item:nth-child(3) {
  animation-delay: 0.6s;
}
.feature-item:nth-child(4) {
  animation-delay: 0.8s;
}

.feature-item i {
  font-size: 10px;
  font-style: bold;
  color: #ffd700;
  border: 2px solid #0f1972;
  border-radius: 50%;
  padding: 12px;
  margin-bottom: 10px;
  display: inline-block;
}

.feature-item svg {
  stroke: #0f1972;
  stroke-width: 2;
  width: 48px;
  height: 48px;
  fill: none;
  margin-bottom: 10px;
}

.feature-item svg:hover {
  filter: drop-shadow(0 0 4px #ffd700);
  transform: scale(1.1);
  transition: 0.3s ease;
}

.feature-item h4 {
  margin: 8px 0 4px;
  font-size: 0.75rem;
  color: #0f1972;
}

.feature-item p {
  font-size: 0.5rem;
  color: #0f1972;
}

@keyframes popUp {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsif untuk tampilan mobile */
@media (max-width: 720px) {
  .features {
    flex-wrap: wrap; /* Membolehkan elemen untuk membungkus jika terlalu besar */
    gap: 0px;
  }

  .feature-item {
    flex: 1 1 0.1%; /* Membuat item lebih kecil dengan 22% dari lebar */
    width: 10%; /* Ukuran setiap item lebih kecil di layar kecil */
    margin: 0 auto; /* Posisikan di tengah */
  }

  .feature-item i {
    font-size: 2px; /* Ukuran ikon lebih kecil di mobile */
    padding: 5px;
  }

  .feature-item h4 {
    font-size: 1rem; /* Ukuran font lebih kecil */
  }

  .feature-item p {
    font-size: 1rem; /* Ukuran font lebih kecil */
  }
}

/* ----------------------------- FOOTER ----------------------------- */
footer {
  background-color: #003366;
  color: white;
  text-align: center;
  padding: 10px;
}

footer {
  background-color: #0f1972; /* agar tidak ikut gelap */
  color: #ffffff;
  text-align: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ----------------------------- RESPONSIVE ----------------------------- */
@media (max-width: 720px) {
  .hero {
    max-height: 720px;
    padding: 0px;
  }

  .hero-text h2 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hamburger {
    display: block;
    position: flex;
    z-index: 10;
  }

  .feature-item i {
    font-size: 10px;
    padding: 10px;
  }

  .feature-item h4 {
    font-size: 0.95rem;
  }

  .feature-item p {
    font-size: 0.8rem;
  }
}

@media (max-width: 1080px) {
  .hero {
    min-height: 45vh;
  }

  .hero-text h2 {
    font-size: 1.4rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .features {
    gap: 10px;
    padding: 20px 10px;
  }

  .feature-item {
    padding: 0 4px;
  }

  .feature-item i {
    font-size: 10px;
    padding: 8px;
  }

  .feature-item h4 {
    font-size: 0.85rem;
  }

  .feature-item p {
    font-size: 0.75rem;
  }
}

/* ----------------------------- MISC ----------------------------- */
.swiper-button-next,
.swiper-button-prev {
  display: none !important;
}

/* ----------------------------- NAVIGATION ----------------------------- */
nav a {
  color: #0f1972;
  margin: 12px;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

nav a:hover {
  color: #ffd700;
}

.navbar {
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  justify-content: center;
}

nav.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* 👈 Tambahkan ini */
}

/* ----------------------------- RESPONSIVE NAVIGATION (Hamburger) ----------------------------- */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0f1972;
  transition: transform 0.3s ease;
}

.hamburger.open {
  transform: rotate(90deg);
}

/* Menu dropdown untuk tampilan desktop */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    display: none;
  }

  nav.open {
    display: none;
  }

  .dropdown-content {
    position: relative; /* Mengubah dropdown menjadi bawah saat tampilan kecil */
    left: 0;
    top: 0;
  }
}
header {
  position: relative;
  top: 0;
  z-index: 999;
  background-color: rgba(
    255,
    255,
    255,
    0
  ); /* Pastikan transparansi tidak mengganggu */
}
/* Menyembunyikan dropdown secara default */
.dropdown-content {
  display: none;
  position: absolute;
  left: 100%; /* Menyebabkan dropdown muncul di samping */
  top: 0;
  background-color: #fff;
  min-width: 160px;
  z-index: 100;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.dropdown:hover .dropdown-content {
  display: block; /* Menampilkan dropdown saat hover */
}

/* Styling untuk item dropdown */
.dropdown-content a {
  color: #0f1972;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-weight: bold;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

/* Bagian Kategori ------------------------------------------------------------ */
.category-section {
  display: flex;
  flex-direction: column;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  flex-wrap: nowrap;
}

.category-item.reverse {
  flex-direction: row-reverse;
}

.bg-gray {
  background-color: #f1f1f1;
  flex-wrap: nowrap;
}

.bg-white {
  background-color: #ffffff;
  flex-wrap: nowrap;
}

.category-img {
  flex: 0 0 300px;
  max-width: 100%;
}

.category-img img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  /* Tanpa border-radius agar tetap kotak */
}

.category-content {
  flex: 1;
  padding: 0 50px;
}

.category-content h2 {
  font-size: 48px;
  margin-bottom: 10px;
  color: #0f1972;
}

.category-content p {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333;
}

/* Tambahkan ini untuk mode mobile */
@media (max-width: 768px) {
  .category-content {
    padding: 0;
  }
}

.explore-link {
  position: relative;
  color: #0f1972;
  text-decoration: none;
  font-weight: bold;
}
.explore-link:hover {
  color: #ffd700;
}
.explore-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: #0f1972; /* Garis bawah biru tetap */
}

.explore-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%; /* Defaultnya garis bawah kuning tidak terlihat */
  height: 2px;
  background: #ffd700; /* Warna kuning untuk underline saat hover */
  transition: width 0.4s ease; /* Efek transisi untuk memperlihatkan underline kuning */
}

.explore-link:hover::after {
  width: 100%;
}

/* Animations */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.animate.show {
  opacity: 1;
  transform: none;
}

.animate[data-animate="slide-left"].show {
  transform: translateX(0);
}

.animate[data-animate="slide-right"].show {
  transform: translateX(0);
}

[data-animate="slide-left"] {
  transform: translateX(-50px);
}

[data-animate="slide-right"] {
  transform: translateX(50px);
}

[data-animate="fade"] {
  transform: translateY(40px);
}

/* Responsive */
@media (max-width: 768px) {
  .category-item {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .category-item.reverse {
    flex-direction: row-reverse;
  }

  .category-img {
    flex: 0 0 40%;
  }

  .category-content {
    flex: 1;
    padding-left: 20px;
  }
}
@media (max-width: 768px) {
  .category-content h2 {
    font-size: 20px;
  }

  .category-content p {
    font-size: 14px;
  }

  .explore-link {
    font-size: 14px;
  }
}

/* bagian produk ------------------------------------------------------------------ */
.product-card {
  width: 300px;
  text-align: center;
  overflow: hidden;
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.product-image .hover-img {
  opacity: 0;
  z-index: 1;
}

.product-card:hover .default-img {
  transform: scale(1.1);
  opacity: 0;
}

.product-card:hover .hover-img {
  transform: scale(1.1);
  opacity: 1;
}
.hover-video {
  width: 100%;
  height: auto;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
  object-fit: cover;
}

.product-card:hover .hover-video {
  opacity: 1;
}
  .newsletter {
    background-color: #f9f9f9;
    padding: 40px 20px;
    text-align: center;
  }

  .newsletter-container h2 {
    font-family: "Cinzel", serif;
    font-size: 24px;
    margin-bottom: 10px;
  }

  .newsletter-container p {
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    margin-bottom: 20px;
  }

  .newsletter-form {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .newsletter-form input[type="email"] {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px;
  }

  .subscribe-btn {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  .subscribe-btn:hover {
    background-color: #0056b3;
  }
  .footer {
    background-color: #0f1972;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }
  
  .footer-section {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-section h3 {
    font-family: "Cinzel", serif;
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .footer-section a {
    color: #ffd700;
    text-decoration: none;
    display: block;
    margin: 5px 0;
  }
  
  .footer-section a:hover {
    color: #fff;
  }
  
  .footer-section p {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    margin: 5px 0;
  }
  
  .footer-section iframe {
    border-radius: 8px;
  }
  
  .footer-copyright {
    margin-top: 20px;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    color: #ccc;
  }
  .product-showcase {
    padding: 40px 20px;
    text-align: center;
    background-color: #f9f9f9;
  }
  
  .product-showcase h2 {
    font-family: "Cinzel", serif;
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .product-card {
    width: 300px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }
  
  .product-image img {
    width: 100%;
    height: auto;
  }
  
  .product-info {
    padding: 15px;
  }
  
  .product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .product-info p {
    font-size: 16px;
    color: #007bff;
    margin-bottom: 15px;
  }
  
  .cart-btn {
    padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .cart-btn:hover {
    background-color: #0056b3;
  }
