/* ==========================================
   PT HASTA ABADI PERKASA - THEME HITAM & GOLD
   Menjaga Layout Asli dengan Nuansa Hitam & Emas
========================================== */

:root {
  --color-primary: #111111;
  --color-accent: #D4AF37; /* Warna Emas */
  --color-accent-hover: #B5952F;
  --color-text-main: #E2E8F0;
  --color-text-muted: #94A3B8;
  --color-bg-main: #0D0F12; /* Background Hitam Gelap Elegan */
  --color-bg-card: #14171D; /* Background Kartu */
  --border-color: #222731;
  --font-main: 'Manrope', sans-serif;
  --transition: all 0.3s ease;
}

/* GENERAL BODY & TYPOGRAPHY */
body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--color-bg-main) !important;
  color: var(--color-text-main) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: #FFFFFF !important;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

/* TOP ANNOUNCEMENT */
.top-announcement {
  background-color: #080808;
  color: #D4AF37;
  text-align: center;
  padding: 10px 15px;
  font-size: 13px;
  letter-spacing: 0.6px;
  border-bottom: 1px solid #1E232A;
}

/* NAVBAR */
/* Cari bagian NAVBAR di style.css (sekitar baris 47) dan pastikan seperti ini: */
.navbar-premium {
  background-color: #111111 !important;
  border-bottom: 1px solid #222731;
  padding: 8px 0;
  box-shadow: 0 3px 12px rgba(0,0,0,0.3);
  z-index: 1020;
  font-family: var(--font-main) !important; /* Mengunci font navbar agar sama di semua halaman */
}

.brand-text {
  color: #D4AF37 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.navbar-premium .nav-link {
  font-size: 14px !important;
  font-weight: 700;
  color: #FFFFFF !important;
  transition: var(--transition);
}

.navbar-premium .nav-link:hover,
.navbar-premium .nav-link.active {
  color: var(--color-accent) !important;
}

/* BUTTONS */
.btn-gold {
  background-color: var(--color-accent) !important;
  color: #111111 !important;
  border: 1px solid var(--color-accent) !important;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-gold:hover {
  background-color: var(--color-accent-hover) !important;
  border-color: var(--color-accent-hover) !important;
  color: #FFFFFF !important;
}

.btn-outline-premium {
  border: 1px solid var(--color-accent) !important;
  color: var(--color-accent) !important;
  background: transparent;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-outline-premium:hover {
  background: var(--color-accent) !important;
  color: #111111 !important;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(90deg, rgba(13,15,18,0.96) 0%, rgba(13,15,18,0.8) 45%, rgba(13,15,18,0.3) 100%), url("../images/GAMBARDEPAN-1.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #b1b4b8;
  padding: 100px 0;
  overflow: hidden;
}

.hero-subtitle {
  color: var(--color-accent) !important;
  font-size: 17px !important;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.hero-section .hero-title {
  color: #FFFFFF !important;
  font-size: clamp(20px, 4vw, 35px) !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  margin-bottom: 20px;
}

.hero-section .hero-description {
  color: #CBD5E1 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
  max-width: 740px;
  margin-bottom: 35px;
}

.btn-outline-hero {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid #475569;
  transition: var(--transition);
}

.btn-outline-hero:hover {
  background: #FFFFFF;
  color: #111111;
  border-color: #FFFFFF;
}

/* SECTION TITLES */
.section-subtitle {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.section-description {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
}

/* PRODUCT & FEATURED CARDS */
.product-section {
  background-color: #0D0F12 !important;
  padding: 70px 0;
}

.product-card {
  background-color: var(--color-bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-accent) !important;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.15);
}

.product-img-wrap {
  aspect-ratio: 4 / 3;
  background-color: #14171D;
  overflow: hidden;
  padding: 20px;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-info {
  padding: 22px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-card);
}

.product-category {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.product-title {
  font-size: 20px;
  color: #FFFFFF !important;
  font-weight: 800;
  margin-bottom: 12px;
}

.product-sku, .product-specs {
  color: var(--color-text-muted) !important;
}

/* ABOUT SECTION */
.about-section {
  background-color: #111418 !important;
  padding: 80px 0;
}

.about-card {
  background-color: var(--color-bg-card) !important;
  border: 1px solid var(--border-color) !important;
  padding: 35px 28px;
  border-radius: 12px;
  height: 100%;
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-accent) !important;
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.about-icon {
  color: var(--color-accent);
  font-size: 46px;
  margin-bottom: 24px;
}

.about-card h4 {
  color: #FFFFFF !important;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
}

.about-card p {
  color: var(--color-text-muted) !important;
  font-size: 15px;
  line-height: 1.8;
}

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, #111111 0%, #1A1D24 100%);
  padding: 85px 0;
  text-align: center;
  border-top: 3px solid var(--color-accent);
}

.cta-section h2 {
  color: #FFFFFF !important;
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 20px;
}

.cta-section p {
  color: #94A3B8 !important;
  font-size: 17px;
  max-width: 700px;
  line-height: 1.7;
  margin: 0 auto 30px;
}

/* FOOTER */
.footer {
  background-color: #080A0D !important;
  color: #FFFFFF !important;
  padding: 70px 0 25px;
  border-top: 1px solid #1E232A;
}

.footer h4, .footer h5 {
  color: #FFFFFF !important;
  font-weight: 800;
}

.footer p, .footer-links a, .footer-contact li {
  color: #94A3B8 !important;
}

.footer-links a:hover {
  color: var(--color-accent) !important;
}

.footer-contact i {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid #1E232A;
  margin-top: 45px;
  padding-top: 25px;
  text-align: center;
  color: #64748B;
}

/* FLOATING WHATSAPP */
.floating-wa {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: var(--transition);
}

.floating-wa:hover {
  transform: translateY(-6px);
  background-color: #1DA851;
  color: #FFFFFF;
}


/* ==========================================
   CATALOG PAGE SUPPORT
========================================== */

/* SEARCH */

.search-group .input-group-text,
.search-group input,
.search-group button {

  background-color: #FFFFFF;

}

.search-group input:focus {

  border-color: var(--color-accent);

  box-shadow: none;

}


/* PRODUCT FILTER */

#catalog-grid {

  transition: opacity 0.3s ease-in-out;

}

#active-filters .badge {

  border-color: var(--border-color) !important;

  font-size: 0.85rem;

}

#active-filters .badge:hover {

  background-color: #F8F9FA !important;

}


/* CATALOG HEADER */

.bg-light.py-4.border-bottom {

  background: linear-gradient(
    135deg,
    #111111 0%,
    #2A2A2A 100%
  ) !important;

  color: #FFFFFF;

  border-bottom: 3px solid var(--color-accent) !important;

}

.bg-light.py-4.border-bottom h1 {

  color: #FFFFFF;

  font-weight: 800;

}

.bg-light.py-4.border-bottom .text-dark,
.bg-light.py-4.border-bottom .text-muted {

  color: #E0E0E0 !important;

}

.breadcrumb-item a {

  color: var(--color-accent) !important;

}

.breadcrumb-item.active {

  color: #AAAAAA;

}


/* CATALOG SIDEBAR */

.offcanvas-body .card {

  background-color: #FFFFFF !important;

  border: 1px solid #EAEAEA !important;

  border-radius: 12px;

  box-shadow: 0 4px 20px rgba(0,0,0,0.04);

}


/* FORM FIELDS */

.form-select,
.form-control {

  border-radius: 8px;

  border: 1px solid #DDDDDD;

  padding: 10px 15px;

}

.form-select:focus,
.form-control:focus {

  border-color: var(--color-accent);

  box-shadow: 0 0 0 0.2rem rgba(212,175,55,0.15);

}


/* ==========================================
   RESPONSIVE TABLET
========================================== */

@media (max-width: 991.98px) {

  .navbar-premium {
    padding: 10px 0;
  }

  .logo-img {
    height: 60px;
    max-width: 250px;
  }

  .navbar-premium .navbar-collapse {
    padding: 20px 0;
  }

  .navbar-premium .nav-link {
    margin: 0;
    padding: 12px 0;
  }

  .navbar-contact {
    margin-top: 20px;
  }

  .navbar-wa {
    width: 100%;
  }

  .hero-section {

    min-height: 85vh;

    background-position: 60% center;

    padding: 90px 0;

  }

  .hero-section .hero-title {
    font-size: 46px;
  }

  .hero-section .hero-description {
    font-size: 18px !important;
  }

  .offcanvas-lg {
    max-width: 85vw;
  }

}


/* ==========================================
   RESPONSIVE MOBILE
========================================== */

@media (max-width: 576px) {

  .top-announcement {
    font-size: 11px;
    padding: 8px 12px;
  }

  .logo-img {
    height: 50px;
    max-width: 210px;
  }

  .navbar-premium {
    padding: 8px 0;
  }

  .hero-section .hero-title {

    font-size: 36px;

    line-height: 1.2;

    letter-spacing: -0.5px;

  }

  .hero-subtitle {

    font-size: 40px !important;

    letter-spacing: 2px;

  }

  .hero-section .hero-description {

    font-size: 16px !important;

    line-height: 1.7;

  }

  .hero-buttons {

    flex-direction: column;

    gap: 12px;

  }

  .hero-btn {

    width: 100%;

    text-align: center;

    padding: 14px 20px;

    font-size: 15px;

  }

  .section-title {
    font-size: 28px;
  }

  .product-section {
    padding: 45px 0;
  }

  .about-section {
    padding: 50px 0;
  }

  .about-card {
    padding: 28px 22px;
  }

  .cta-section {
    padding: 60px 0;
  }

  .footer {
    padding: 50px 0 20px;
  }

  .floating-wa {

    bottom: 18px;

    right: 18px;

    width: 55px;

    height: 55px;

    font-size: 27px;

  }

}


/* UKURAN KARTU PRODUK */
#featured-products-container .product-card {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* UKURAN GAMBAR PRODUK */
#featured-products-container .product-img-wrap {
  width: 100%;
  height: 230px;
  aspect-ratio: auto;
  overflow: hidden;
  background-color: #F8F9FA;
  padding: 15px;
}

/* GAMBAR TETAP PROPORSIONAL */
#featured-products-container .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* RESPONSIVE HP */
@media (max-width: 576px) {
  #featured-products-container .product-img-wrap {
    height: 200px;
  }
}


/* ==========================================
   HAP - PRODUCT DETAIL PAGE REDESIGN
========================================== */

/* HALAMAN DETAIL PRODUK */
#product-detail-container {
  max-width: 1200px;
  margin: 40px auto 70px;
}

/* KARTU DETAIL PRODUK */
#product-detail-container .card {
  background: #FFFFFF !important;
  border: 1px solid #E5E5E5 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* HAPUS BACKGROUND EMAS PADA DETAIL */
#product-detail-container .card-body {
  background: #FFFFFF !important;
}

/* GAMBAR PRODUK */
#pd-image {
  display: block;
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
  background: #F8F9FA;
}

/* NAMA PRODUK */
#pd-name {
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 800;
  color: #111111;
  line-height: 1.25;
  margin-bottom: 12px;
}

/* SKU */
#pd-sku {
  color: #777777;
  font-size: 14px;
}

/* DESKRIPSI */
#pd-desc {
  font-size: 15px;
  line-height: 1.8;
  color: #555555;
}

/* SPESIFIKASI */
#pd-specs {
  background-color: #FFFFFF;
}

#pd-specs th {
  width: 35%;
  background: #F8F9FA !important;
  color: #333333 !important;
  font-weight: 700;
}

#pd-specs td {
  background: #FFFFFF !important;
  color: #333333;
}

#pd-specs th,
#pd-specs td {
  border-color: #E5E5E5;
  padding: 12px 15px;
  font-size: 14px;
}

/* TOMBOL PENAWARAN */
#pd-wa-btn {
  background: #D4AF37 !important;
  border: 1px solid #D4AF37 !important;
  color: #FFFFFF !important;
  padding: 14px 25px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
}

#pd-wa-btn:hover {
  background: #B5952F !important;
  border-color: #B5952F !important;
}

/* FOOTER HITAM PREMIUM */
footer,
.footer {
  background: #111111 !important;
  color: #FFFFFF !important;
}

footer .container,
footer .row,
footer .col-lg-4,
footer .col-lg-2,
footer .col-lg-3 {
  background-color: transparent !important;
}

/* WARNA JUDUL FOOTER */
footer h4,
footer h5 {
  color: #FFFFFF !important;
}

/* DESKRIPSI FOOTER */
footer p,
footer li,
footer a {
  color: #BBBBBB;
}

/* GARIS PEMBATAS FOOTER */
footer hr,
footer .border-top {
  border-color: #333333 !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  #product-detail-container {
    margin: 20px auto 45px;
  }

  #pd-image {
    max-height: 350px;
  }

  #pd-name {
    font-size: 25px;
  }
}


/* ==========================================
   HASTA ABADI PERKASA
   PRODUCT DETAIL PREMIUM REDESIGN
   BLACK / GOLD / WHITE
========================================== */


/* ==========================================
   DETAIL PAGE BACKGROUND
========================================== */

.product-detail-page {
  background-color: #F7F8FA;
  min-height: 60vh;
}

.product-detail-section {
  padding: 45px 0 85px;
}


/* ==========================================
   BREADCRUMB
========================================== */

.detail-breadcrumb {
  margin-bottom: 30px;
}

.detail-breadcrumb .breadcrumb {
  margin-bottom: 0;
}

.detail-breadcrumb .breadcrumb-item {
  font-size: 14px;
}

.detail-breadcrumb .breadcrumb-item a {
  color: #666666;
  text-decoration: none;
  transition: 0.3s ease;
}

.detail-breadcrumb .breadcrumb-item a:hover {
  color: #D4AF37;
}

.detail-breadcrumb .breadcrumb-item.active {
  color: #D4AF37;
  font-weight: 700;
}


/* ==========================================
   MAIN DETAIL CARD
========================================== */

.detail-product-card {
  background-color: #FFFFFF;
  border: 1px solid #E8E8E8;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 8px 35px rgba(0,0,0,0.05);
}


/* ==========================================
   PRODUCT IMAGE
========================================== */

.detail-image-panel {
  width: 100%;
  position: relative;
}

.detail-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F8F9FA;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 16px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}

#pd-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 550px;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}


/* ==========================================
   PRODUCT INFORMATION
========================================== */

.detail-product-info {
  width: 100%;
}

.detail-product-badge {
  display: inline-flex;
  align-items: center;
  background-color: #EAF6ED;
  color: #287D41;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 20px;
  margin-bottom: 18px;
}


/* PRODUCT NAME */
#pd-name {
  color: #111111;
  font-size: clamp(25px, 2.4vw, 36px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}


/* SKU */
.detail-product-sku {
  color: #777777;
  font-size: 14px;
  margin-bottom: 22px;
}


/* DIVIDER */
.detail-divider {
  width: 100%;
  height: 1px;
  background-color: #EAEAEA;
  margin-bottom: 28px;
}


/* ==========================================
   PRODUCT CONTENT
========================================== */

.detail-block {
  margin-bottom: 30px;
}

.detail-block h3 {
  color: #111111;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 15px;
}

.detail-block p {
  color: #666666;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 0;
}


/* ==========================================
   PRODUCT SPECIFICATION TABLE
========================================== */

.detail-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0;
  border: 1px solid #E7E7E7;
}

.detail-spec-table th,
.detail-spec-table td {
  padding: 13px 15px;
  font-size: 14px;
  vertical-align: middle;
  line-height: 1.6;
  border: 1px solid #E7E7E7;
}

.detail-spec-table th {
  width: 35%;
  background-color: #F7F8FA !important;
  color: #333333 !important;
  font-weight: 700;
}

.detail-spec-table td {
  background-color: #FFFFFF;
  color: #555555;
}

.detail-spec-table tr:hover th,
.detail-spec-table tr:hover td {
  background-color: #FFFDF5;
}


/* ==========================================
   QUOTATION PANEL
========================================== */

.detail-quotation {
  background: #F8F9FA;
  border: 1px solid #E6D49B;
  border-radius: 12px;
  padding: 25px;
  margin-top: 35px;
}

.detail-quotation-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.detail-quotation-heading > i {
  font-size: 26px;
  color: #D4AF37;
  line-height: 1;
}

.detail-quotation h4 {
  color: #111111;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}

.detail-quotation p {
  color: #777777;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}


/* WHATSAPP BUTTON */
.detail-wa-button {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  padding: 15px 25px;

  background-color: #D4AF37;
  border: 1px solid #D4AF37;
  color: #FFFFFF;

  font-size: 15px;
  font-weight: 800;
  text-align: center;

  border-radius: 8px;
  transition: all 0.3s ease;
}

.detail-wa-button:hover {
  background-color: #B5952F;
  border-color: #B5952F;
  color: #FFFFFF;
  transform: translateY(-2px);
}


/* ==========================================
   FOOTER DETAIL
========================================== */

.product-detail-page + .footer {
  background-color: #0B0B0B;
  color: #FFFFFF;
  border-top: 1px solid #282828;
}

.product-detail-page + .footer h4,
.product-detail-page + .footer h5 {
  color: #FFFFFF;
}

.product-detail-page + .footer p,
.product-detail-page + .footer li {
  color: #AAAAAA;
}

.product-detail-page + .footer .footer-bottom {
  border-top: 1px solid #333333;
}


/* ==========================================
   RESPONSIVE TABLET
========================================== */

@media (max-width: 991.98px) {

  .product-detail-section {
    padding: 35px 0 65px;
  }

  .detail-product-card {
    padding: 25px;
  }

  .detail-image-box {
    aspect-ratio: 4 / 3;
  }

  #pd-name {
    font-size: 28px;
  }

}


/* ==========================================
   RESPONSIVE MOBILE
========================================== */

@media (max-width: 576px) {

  .product-detail-section {
    padding: 25px 0 50px;
  }

  .detail-breadcrumb {
    margin-bottom: 20px;
  }

  .detail-product-card {
    padding: 15px;
    border-radius: 12px;
  }

  .detail-image-box {
    aspect-ratio: 1 / 1;
    padding: 10px;
  }

  #pd-image {
    max-height: 340px;
  }

  #pd-name {
    font-size: 25px;
  }

  .detail-product-sku {
    font-size: 13px;
  }

  .detail-block {
    margin-bottom: 24px;
  }

  .detail-block h3 {
    font-size: 17px;
  }

  .detail-block p {
    font-size: 14px;
  }

  .detail-spec-table th,
  .detail-spec-table td {
    padding: 10px;
    font-size: 12px;
  }

  .detail-quotation {
    padding: 18px;
    margin-top: 25px;
  }

  .detail-quotation-heading {
    gap: 12px;
  }

  .detail-quotation h4 {
    font-size: 15px;
  }

  .detail-wa-button {
    padding: 13px 20px;
    font-size: 14px;
  }

}
/* PERBAIKAN KATALOG PRODUK */

#catalog-grid .product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#catalog-grid .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px;
}

#catalog-grid .product-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    display: block !important;
    overflow-wrap: break-word;
    line-height: 1.4;
}

#catalog-grid .product-info .btn {
    margin-top: auto;
}

/* ==========================================
   HAP - GALERI & SERTIFIKAT MODERN STYLE
========================================== */

/* GALLERY HERO BANNER */
.gallery-hero {
  background: linear-gradient(135deg, #111111 0%, #222222 60%, #1a1810 100%);
  border-bottom: 3px solid var(--color-accent);
}

.text-gold {
  color: var(--color-accent) !important;
}

.bg-gold {
  background-color: var(--color-accent) !important;
}

.text-light-muted {
  color: #CCCCCC !important;
}

.max-h-70vh {
  max-height: 70vh;
  object-fit: contain;
}

/* FILTER BUTTONS */
.btn-gallery-filter {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #4A5568;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.btn-gallery-filter:hover {
  background-color: #F8F9FA;
  color: var(--color-primary);
  border-color: #CBD5E0;
}

.btn-gallery-filter.active {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* GALLERY CARDS */
.gallery-card {
  border: 1px solid #EAEAEA;
  border-radius: 14px;
  overflow: hidden;
  background: #FFFFFF;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.04);
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
  border-color: var(--color-accent);
}

.border-gold-subtle {
  border-color: rgba(212, 175, 55, 0.3);
}

/* IMAGE WRAPPERS */
.gallery-img-wrap,
.cert-img-wrap {
  width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #F8F9FA;
}

.gallery-img-wrap {
  height: 250px;
}

.cert-img-wrap {
  height: 320px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cert-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-card:hover .gallery-img-wrap img,
.gallery-card:hover .cert-img-wrap img {
  transform: scale(1.07);
}

/* BADGE & OVERLAY */
.gallery-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(17, 17, 17, 0.85);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.btn-zoom {
  background: #FFFFFF;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-card:hover .btn-zoom {
  transform: translateY(0);
}

/* ITEM ANIMATION */
.gallery-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ==========================================
   DARK & GOLD INDUSTRIAL CATALOG REDESIGN
   Font: Plus Jakarta Sans
========================================== */

body.bg-dark-catalog {
  background-color: #0D0F12 !important;
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif !important;
  color: #E2E8F0;
}

.text-gold {
  color: #D4AF37 !important;
}

.bg-dark-catalog {
  background-color: #0D0F12 !important;
}

/* HERO BANNER KATALOG */
.catalog-hero-banner {
  background-color: #111418;
  border-bottom: 1px solid #1E232A;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.hero-banner-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-size: cover;
  background-position: center right;
  opacity: 0.35;
  mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%);
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 50%);
}

.-quote-badge {
  border-right: 3px solid #D4AF37;
  padding-right: 15px;
  display: inline-block;
  text-align: right;
}

/* SIDEBAR FILTER CARD */
.filter-sidebar-card {
  background: #14171D;
  border: 1px solid #222731;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.bg-dark-input {
  background-color: #1C2028 !important;
  color: #FFFFFF !important;
}

.search-dark-group .input-group-text,
.search-dark-group input {
  border-radius: 10px;
}

.search-dark-group input::placeholder {
  color: #64748B;
  font-size: 14px;
}

/* CATEGORY CUSTOM BUTTON (RADIO) */
.custom-category-btn {
  display: block;
  background-color: #1A1D24;
  border: 1px solid #262B36;
  color: #94A3B8;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.custom-category-btn:hover {
  background-color: #222731;
  color: #FFFFFF;
}

.custom-category-btn.active {
  background: linear-gradient(135deg, #2A2413 0%, #1A1D24 100%);
  border-color: #D4AF37;
  color: #D4AF37;
}

.custom-check-box {
  width: 18px;
  height: 18px;
  border: 2px solid #475569;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.custom-category-btn.active .custom-check-box {
  background-color: #D4AF37;
  border-color: #D4AF37;
}

.custom-category-btn.active .custom-check-box::after {
  content: "✓";
  color: #111;
  font-size: 12px;
  font-weight: bold;
  position: absolute;
  top: -2px;
  left: 2px;
}

/* SELECT DROPDOWN DARK */
.select-dark-sm {
  background-color: #14171D !important;
  border: 1px solid #222731 !important;
  color: #CBD5E1 !important;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
}

.btn-gold-outline {
  background: transparent;
  border: 1px solid #D4AF37;
  color: #D4AF37;
  transition: all 0.3s ease;
}

.btn-gold-outline:hover {
  background-color: #D4AF37;
  color: #111111;
}

/* GRID TOGGLE BUTTONS */
.btn-dark-toggle {
  background-color: #14171D;
  border: 1px solid #222731;
  color: #64748B;
  padding: 6px 12px;
}

.btn-dark-toggle.active,
.btn-dark-toggle:hover {
  background-color: #D4AF37;
  color: #111111;
  border-color: #D4AF37;
}

/* PRODUCT CARD REDESIGN (PERSIS ACUAN GAMBAR) */
.dark-product-card {
  background-color: #14171D;
  border: 1px solid #222731;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dark-product-card:hover {
  transform: translateY(-7px);
  border-color: #D4AF37;
  box-shadow: 0 12px 30px rgba(212, 175, 55, 0.15);
}

.dark-img-wrap {
  position: relative;
  height: 210px;
  background-color: #0A0C0E;
  overflow: hidden;
}

.dark-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.dark-product-card:hover .dark-img-wrap img {
  transform: scale(1.06);
}

.category-tag-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: #FFD700;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
}

.category-tag-badge.badge-zinc {
  background-color: #FCD34D;
}

.category-tag-badge.badge-alum {
  background-color: #FDE68A;
}

.category-tag-badge.badge-custom {
  background-color: #F59E0B;
  color: #FFFFFF;
}

.dark-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.dark-card-title {
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.35;
}

.dark-card-meta {
  font-size: 12.5px;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.dark-card-meta i {
  color: #D4AF37;
  font-size: 14px;
  margin-right: 6px;
}

.btn-detail-dark {
  background: transparent;
  border: 1px solid #334155;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 9px;
  border-radius: 30px;
  text-align: center;
  transition: all 0.3s ease;
  margin-top: auto;
  text-decoration: none;
  display: block;
}

.dark-product-card:hover .btn-detail-dark {
  border-color: #D4AF37;
  background-color: #D4AF37;
  color: #111111;
}

/* ==========================================
   PERBAIKAN NAVBAR & UKURAN LOGO
========================================== */

/* Pastikan elemen brand teratur dan fleksibel */
.navbar-brand.brand-stack {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  max-width: 160px !important; /* Batasi lebar maksimal brand */
}

/* Membatasi ukuran logo agar tidak melebar/membesar */
.logo-img {
  height: 40px !important;       /* Mengunci tinggi logo */
  width: auto !important;        /* Menjaga proporsi gambar */
  max-width: 140px !important;   /* Menjaga lebar logo */
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Teks nama perusahaan di bawah logo */
.brand-text {
  display: block !important;
  color: #D4AF37 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  line-height: 1.1 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Mencegah menu bertabrakan */
.navbar-premium .navbar-nav {
  align-items: center;
}

.navbar-premium .nav-link {
  font-size: 13px !important;
  padding: 8px 10px !important;
}

/* ==========================================
   FIX TABEL SPESIFIKASI DINAMIS (JS RENDER)
========================================== */
.table.custom-spec-table,
.table.custom-spec-table th,
.table.custom-spec-table td,
#pd-specs tr,
#pd-specs th,
#pd-specs td {
  background-color: #0E1117 !important;
  color: #FFFFFF !important;
  border-color: #D4AF37 !important;
}

.table.custom-spec-table {
  border: 2px solid #D4AF37 !important;
  border-collapse: collapse !important;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.table.custom-spec-table th,
.table.custom-spec-table td {
  padding: 14px 18px !important;
  font-size: 14px !important;
}

.table.custom-spec-table th {
  background-color: #141923 !important;
  color: #D4AF37 !important;
  font-weight: 700 !important;
  width: 38%;
}

.table.custom-spec-table tr:hover th,
.table.custom-spec-table tr:hover td {
  background-color: #1A202C !important;
  color: #FFFFFF !important;
}

/* Styling Tambahan Footer agar Lebih Rapih */
.footer h5 {
  letter-spacing: 1px;
}

.footer-links a:hover {
  color: #D4AF37 !important;
  padding-left: 4px;
}

.footer-contact li {
  line-height: 1.6;
}


/* ==========================================
   HAP DROPDOWN PRODUK KATALOG
   TEMA HITAM & GOLD
========================================== */

.navbar-premium .hap-catalog-dropdown {
    position: relative;
}

/* Menu dropdown utama */
.navbar-premium .hap-catalog-menu {
    background-color: #111111 !important;
    border: 1px solid #D4AF37 !important;
    border-radius: 8px;
    min-width: 255px;
    padding: 8px 0;
    margin-top: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    z-index: 1100;
}

/* Tulisan kategori */
.navbar-premium .hap-catalog-menu .dropdown-item {
    color: #FFFFFF !important;
    background-color: transparent;
    font-size: 13px;
    font-weight: 700;
    padding: 13px 20px;
    white-space: nowrap;
    transition: all 0.25s ease;
}

/* Hover warna gold */
.navbar-premium .hap-catalog-menu .dropdown-item:hover,
.navbar-premium .hap-catalog-menu .dropdown-item:focus {
    background-color: #D4AF37 !important;
    color: #111111 !important;
    padding-left: 25px;
}

/* Garis pemisah */
.hap-catalog-menu .dropdown-divider {
    border-color: #444444;
}

/* Warna panah */
.hap-catalog-dropdown .dropdown-toggle::after {
    border-top-color: #D4AF37;
    margin-left: 7px;
}

/* DESKTOP: dropdown muncul saat hover */
@media (min-width: 992px) {
    .hap-catalog-dropdown:hover > .hap-catalog-menu {
        display: block;
    }

    .hap-catalog-dropdown > .hap-catalog-menu {
        position: absolute;
        top: 100%;
        left: 0;
    }
}

/* MOBILE: dropdown mengikuti menu */
@media (max-width: 991.98px) {
    .navbar-premium .hap-catalog-dropdown {
        width: 100%;
    }

    .navbar-premium .hap-catalog-menu {
        position: static !important;
        width: 100%;
        box-shadow: none;
    }

    .navbar-premium .hap-catalog-dropdown > .nav-link {
        padding: 12px 0 !important;
    }
}
