/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  font-family: "Poppins", sans-serif;
  color: #444444;
}

a {
  color: #834e09;
  text-decoration: none;
}

a:hover {
  color: #834e09;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Cinzel", serif;
}

.container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Anti scroll horizontal (mencegah overflow layout) */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* ===================== */
/* 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 Detail Section
--------------------------------*/

/* Container */
.container {
  max-width: 1440px;
  margin: 30px auto;
  padding: 0 40px; /* Pastikan seluruh konten sejajar */
}

/* Section Wrapper */
.product-detail-section {
  padding: 100px 0 60px;
  background: #fff;
}

.product-detail-grid {
  display: flex;
  gap: 60px;
  align-items: stretch; /* ✅ Penting biar kiri dan kanan sejajar tinggi */
}

.product-left,
.product-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Gambar Penuh */
.product-image-full {
  flex: 1;
  height: 100%; /* ✅ Tambah ini biar ngikutin tinggi kanan */
  display: flex;
}

.product-image-full img {
  width: 135%;
  height: 100%; /* ✅ Tambah ini supaya gambar mengisi parent-nya */
  object-fit: cover; /* Atau 'contain' kalau takut terpotong */
  display: block;
}

/* ========== KANAN: Varian + Spesifikasi ========== */
.product-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 200px; /* pastikan tidak nambah padding */
  padding-right: 0px;
}

/* Tombol Varian */
.product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.variant-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  background-color: #f3f3f3;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.variant-btn:hover {
  background-color: #ddd;
}

.variant-btn.active {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* Spesifikasi */
.section-title {
  font-size: 24px;
  font-weight: 600;
  color: #834e09;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
  text-align: left;
  color: #444;
  vertical-align: top;
}

.spec-table th {
  width: 35%;
  font-weight: 600;
}

/* =============================== */
/* RESPONSIVE (TABLET & MOBILE)   */
/* =============================== */
@media (max-width: 991px) {
  .container {
    padding: 0 24px;
  }

  .product-detail-grid {
    flex-direction: column;
    gap: 40px;
  }

  .product-left,
  .product-right {
    width: 100%;
    padding: 0;
  }

  .product-title {
    font-size: 26px;
    text-align: center;
    margin-bottom: 20px;
  }

  .product-image-full {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .product-image-full img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
    border-radius: 8px;
  }

  .product-variants {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
    text-align: center;
  }

  .variant-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .section-title {
    font-size: 20px;
    text-align: left;
    margin-bottom: 16px;
  }

  .spec-table {
    font-size: 15px;
    border-collapse: collapse;
    width: 100%;
  }

  .spec-table th,
  .spec-table td {
    padding: 12px 16px;
    text-align: left;
    display: table-cell;
  }

  .spec-table th {
    font-weight: 600;
    width: 35%;
  }

  /* ✅ Fix padding kanan kiri */
  .product-right {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

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

.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;
}

@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;
  }

  /* ==================================
# FIX TRANSISI SPESIFIKASI
================================== */
.spec-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.5s ease;
}

.spec-content.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .product-detail-section {
    padding: 60px 0 40px;
  }

  .product-detail-grid {
    flex-direction: column;
    gap: 40px;
  }

  .product-left,
  .product-right {
    width: 100%;
    padding: 0;
  }

  .product-image-full {
    width: 100%;
    height: auto;
  }

  .product-image-full img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 380px;
  }

  .product-right {
    padding: 0 !important;
  }

  .product-variants {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }

  .variant-btn {
    font-size: 13px;
    padding: 8px 14px;
  }

  .section-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 16px;
  }

  .spec-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
  }

  .spec-table th,
  .spec-table td {
    padding: 12px 10px;
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .spec-table th {
    font-weight: 600;
    color: #555;
    margin-top: 12px;
  }
}


}