/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
/* Fix supaya konten tidak ketiban header */
body {
  padding-top: 100px; /* Atur sesuai tinggi header */
}

/* Tambahkan margin bawah agar tidak nempel ke footer */
.product-grid-section {
  margin-bottom: 80px;
}


/*--------------------------------------------------------------
# Back to top button
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: #c78904;
  width: 40px;
  height: 40px;
  transition: all 0.4s;
}

.back-to-top i {
  font-size: 28px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: #c78904;
  color: #fff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* ===================== */
/* CUSTOM PRELOADER */
/* ===================== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

#preloader img {
  width: 160px;
  height: auto;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}


/* ===================== */
/* HEADER UTAMA */
/* ===================== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: 90px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: all 0.3s ease;
}

#header.shrink {
  height: 60px;
  padding: 0 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ===================== */
/* LOGO */
/* ===================== */
.navbar-logo img,
.navbar-container object {
  max-height: 55px;
  width: auto;
}

/* ===================== */
/* NAVBAR DESKTOP */
/* ===================== */
.navbar {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar a {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  color: #191919;
  letter-spacing: 1.2px;
  position: relative;
  text-decoration: none;
  padding: 8px 0;
  transition: 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
  color: #a37029;
}

.navbar a::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  background: #a37029;
  margin-top: 4px;
  transition: 0.3s;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

/* ===================== */
/* DROPDOWN MENU */
/* ===================== */
.navbar .dropdown {
  position: relative;
}

.navbar .dropdown ul {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 999;
}

.navbar .dropdown:hover > ul,
.navbar .dropdown ul.dropdown-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar .dropdown ul,
.navbar .dropdown ul li {
  list-style: none;
  padding: 0;
  margin: 0;
}

.navbar .dropdown ul li a {
  display: block;
  padding: 10px 20px;
  font-size: 16px;
  color: #1a1a1a;
  font-family: 'Cinzel', serif;
  text-transform: none;
  transition: all 0.3s ease;
}

.navbar .dropdown ul li a:hover {
  background: #834e09;
  color: #fff;
}

/* ===================== */
/* MOBILE NAV TOGGLE */
/* ===================== */
.mobile-nav-toggle {
  display: none;
  font-size: 28px;
  color: #000;
  cursor: pointer;
  z-index: 9999;
  position: relative;
}

/* ===================== */
/* RESPONSIVE NAVBAR MOBILE */
/* ===================== */
@media (max-width: 991px) {
  .navbar {
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
  }

  .navbar li {
    width: 100%;
    margin-bottom: 6px;
    text-align: center;
  }

  .navbar a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  /* ===================== */
  /* DROPDOWN (MOBILE) */
  /* ===================== */

  .navbar .dropdown {
    position: relative; /* ✅ Supaya ul nempel ke sini */
  }

  .navbar .dropdown ul {
    display: none;
    position: relative; /* ✅ Ganti dari absolute */
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 6px;
    z-index: 999;
    text-align: center;
  }

  .navbar .dropdown ul.dropdown-active {
    display: block;
  }

  .navbar .dropdown ul li {
    width: 100%;
  }

  .navbar .dropdown ul li a {
    display: block;
    padding: 10px 20px;
    font-size: 15px;
    color: #191919;
    border-bottom: 1px solid #eee;
    background: none;
  }

  .navbar .dropdown ul li:last-child a {
    border-bottom: none;
  }
}

/* ===================== */
/* RESPONSIVE (MOBILE) */
/* ===================== */
@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: block;
  }

  #navbar ul {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 999;
  }

  #navbar.navbar-mobile ul {
    display: flex;
  }

  .navbar {
    flex-direction: column;
    gap: 0;
  }

  .navbar a {
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    width: 100%;
    text-align: left;
  }
}

/*=======================
# PRODUCT SECTION GRID
=========================*/
.product-grid-section {
  padding: 80px 0;
  background: #fff;
  margin-top: auto;
  margin-bottom: 10px;
}

.collections-title {
  text-align: center;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 40px;
  margin-top: 10px;
  font-family: 'Cinzel', serif;
}

/*========== FILTER BAR ==========*/
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-bar select {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: 'Cinzel', serif;
}

/*========== PRODUCT GRID ==========*/
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/*========== PRODUCT CARD ==========*/
.product-card {
  position: relative;
  border-radius: 0px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

/*========== IMAGE WRAPPER ==========*/
.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/4; /* ini bikin tinggi seragam tanpa pakai height tetap */
  overflow: hidden;
  border-radius: 0px;
  align-items: flex-end; /* daripada center */
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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

/*========== OVERLAY ==========*/
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.product-card:hover .overlay {
  opacity: 1;
}

/*========== PRODUCT NAME ON IMAGE ==========*/
.product-name {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  color: #f5f5f5;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-card:hover .product-name {
  transform: scale(1.05);
}

/*========== ARROW ICON ==========*/
.arrow-icon {
  width: 16px;
  display: inline-block;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.3s ease;
}

.product-card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

/*========== NAMA PRODUK DI BAWAH GAMBAR (DISABLED) ==========*/
.product-card h4,
.product-card p {
  display: none;
}

/*========== BUTTON / CTA (View Detail) ==========*/
.card-body .btn {
  margin-top: 10px;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  background: transparent;
  color: #c0a060;
  border: 1px solid #c0a060;
  transition: all 0.3s ease;
}

.card-body .btn:hover {
  background: #c0a060;
  color: #fff;
}

/*========== FADE-IN ANIMATION ==========*/
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/*========== RESPONSIVE ==========*/
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .product-name {
    font-size: 16px;
    left: 15px;
    bottom: 12px;
  }
}

/*========== VARIANT LIST ==========*/
.product-variant-list {
  padding: 60px 20px;
  background-color: #f7f7f7;
}

.product-variant-list .section-title {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  text-align: left;
  margin-bottom: 30px;
  color: #222;
}

.variant-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.variant-list li {
  margin-bottom: 15px;
}

.variant-list a {
  display: inline-block;
  padding: 12px 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.variant-list a:hover {
  background-color: #222;
  color: #fff;
  border-color: #222;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.premium-footer {
  background: #111;
  color: #eee;
  font-family: 'Poppins', sans-serif;
  padding: 60px 0 30px;
}

.footer-column ul li a:hover,
.social-icons a:hover {
  color: #fff;
  text-decoration: underline;
}

.premium-footer .footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.premium-footer .footer-logo img {
  width: 300px;
  margin-bottom: 20px;
}

.premium-footer .footer-logo p {
  max-width: 300px;
  font-size: 14px;
  color: #aaa;
}

.premium-footer .footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.premium-footer .footer-column h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 600;
}

.premium-footer .footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.premium-footer .footer-column ul li {
  margin-bottom: 8px;
}

.premium-footer .footer-column ul li a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.premium-footer .footer-column ul li a:hover {
  color: #fff;
}

.premium-footer .social-icons a {
  display: inline-block;
  font-size: 18px;
  color: #ccc;
  margin-right: 15px;
  transition: 0.3s;
}

.premium-footer .social-icons a:hover {
  color: #fff;
}

.premium-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

.section-links button:hover {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

@media (max-width: 768px) {
  .premium-footer .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .premium-footer .footer-logo img {
    width: 200px;
  }

  .premium-footer .footer-logo p {
    max-width: 100%;
    margin: 0 auto 20px;
  }

  .premium-footer .footer-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .premium-footer .footer-column {
    width: 100%;
    max-width: 300px;
    margin-bottom: 30px;
  }

  .premium-footer .social-icons a {
    margin: 0 10px;
  }
}