/* ============================================
   1. BACKGROUND HALAMAN JADI PUTIH
   ============================================ */
body {
  background-color: #f4f6f8 !important;
  background-image: none !important;
}

/* ============================================
   2. TEKS HEADER, PARAGRAF, & PENCARIAN
   ============================================ */
/* Teks umum, paragraf, dan deskripsi (About/Contact) */
p, span, .text-muted, .description, .content-text {
  color: #111111 !important; 
}

/* Header / Judul Halaman */
h1, h2, h3, h4, h5, h6, 
.page-title, 
.header-title {
  color: #004080 !important; /* Biru Tua */
}

/* Kolom Pencarian (Search Bar) */
input[type="text"], 
input[type="search"], 
.search-bar, 
.search-input {
  background-color: #ffffff !important;
  color: #111111 !important; 
  border: 1px solid #ced4da !important;
}
input::placeholder {
  color: #6c757d !important;
}

/* ============================================
   3. ZONA TERLARANG (PENGAMAN MUTLAK)
   ============================================ */
/* JANGAN SENTUH NAVBAR */
.navbar, .navbar *, nav, nav * {
  color: inherit !important;
}

/* JANGAN SENTUH SEMUA JENIS POPUP / MODAL / KERANJANG */
.modal, .modal *, .modal-box, .modal-box *,
.offcanvas, .offcanvas *, .cart, .cart *,
[class*="modal"], [class*="modal"] *, 
[class*="popup"], [class*="popup"] *, 
[class*="cart"], [class*="cart"] * {
  color: inherit !important;
}

/* JANGAN SENTUH PRODUK CARD (Warna ikut Admin Console) */
.product-card, .product-card *, .card, .card * {
  color: inherit !important;
}

/* ============================================
   PERBAIKAN TEKS HALAMAN ABOUT & CONTACT
   ============================================ */

/* 1. Paksa semua teks di halaman About & Contact jadi hitam/biru tua */
body.page-about p, 
body.page-about span, 
body.page-about div,
body.page-about li,
body.page-contact p, 
body.page-contact span, 
body.page-contact div,
body.page-contact li {
  color: #111111 !important; /* Warna Hitam */
}

/* 2. Judul (Visi, Misi, Hubungi Kami) jadi Biru Tua */
body.page-about h1, 
body.page-about h2, 
body.page-about h3, 
body.page-about h4,
body.page-contact h1, 
body.page-contact h2, 
body.page-contact h3, 
body.page-contact h4 {
  color: #004080 !important; /* Biru Tua */
}

/* 3. Kecualikan Navbar dan Popup di halaman ini agar tetap aman */
body.page-about .navbar *, 
body.page-about .modal *, 
body.page-about .modal-box *, 
body.page-about .offcanvas *,
body.page-about [class*="cart"] *, 
body.page-about [class*="popup"] *,
body.page-contact .navbar *, 
body.page-contact .modal *, 
body.page-contact .modal-box *, 
body.page-contact .offcanvas *,
body.page-contact [class*="cart"] *, 
body.page-contact [class*="popup"] * {
  color: inherit !important; /* Batalkan paksaan hitam, biarkan ikut Admin */
}
/* ============================================
   UBAH BACKGROUND CARD JADI PUTIH
   ============================================ */
.product-card, 
.card, 
[class*="product-card"] {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Pastikan teks di dalam card tetap ikut Admin Console (tidak dipaksa hitam) */
.product-card *, 
.card * {
  color: inherit !important;
}
/* ============================================
   TEKS HAMBURGER MENU JADI PUTIH
   ============================================ */
.sidebar a, .sidebar span, .sidebar div, .sidebar li, .sidebar i,
.offcanvas a, .offcanvas span, .offcanvas div, .offcanvas li, .offcanvas i,
.mobile-menu a, .mobile-menu span, .mobile-menu div, .mobile-menu li, .mobile-menu i,
.nav-drawer a, .nav-drawer span, .nav-drawer div, .nav-drawer li, .nav-drawer i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
/* ============================================
   FIX: LIGHTBOX PRODUK (OVERLAY DI ATAS)
   ============================================ */
#fullscreenImageOverlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important; /* Nilai z-index maksimal */
  background: rgba(0, 0, 0, 0.9) !important;
  display: none;
  justify-content: center !important;
  align-items: center !important;
  transform: translateZ(0) !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Pastikan gambar di dalamnya pas di tengah */
#fullscreenImageOverlay img {
  max-width: 95vw !important;
  max-height: 95vh !important;
  object-fit: contain !important;
  margin: auto !important;
}
/* ============================================
   FLAT: HAPUS SHADOW HEADER PRODUK RETAIL
   ============================================ */
h1.page-title, 
.page-title, 
h1, 
h2 {
  text-shadow: none !important;
  box-shadow: none !important;
  filter: none !important;
  -webkit-text-shadow: none !important;
  -moz-text-shadow: none !important;
}
/* ============================================
   HANYA WARNA TEKS: PUTIH (TANPA UBAH BG)
   ============================================ */
body.page-about .cart-drawer, 
body.page-about .cart-drawer *,
body.page-about .offcanvas,
body.page-about .offcanvas *,
body.page-about .modal-box,
body.page-about .modal-box *,
body.page-contact .cart-drawer, 
body.page-contact .cart-drawer *,
body.page-contact .offcanvas,
body.page-contact .offcanvas *,
body.page-contact .modal-box,
body.page-contact .modal-box * {
  color: #ffffff !important;
}

/* ============================================
   FIX CPU LAMBAT: PAKSA TEKS LANGSUNG MUNCUL
   ============================================ */
.product-name, .product-info h3 {
  color: #111111 !important; /* Hitam default */
}
.price-tag, .price-retail {
  color: #b8860b !important; /* Emas default */
}
.stock-info, .min-order-info {
  color: #444444 !important; /* Abu gelap default */
}

/* ============================================
   GLOBAL: PAKSA SEMUA TEKS PRODUK LANGSUNG MUNCUL
   (Mengatasi CPU Lambat di Mini Server)
   ============================================ */

/* Teks Nama Produk (Default Hitam) */
.product-name, 
.product-info h3,
.product-card h3 {
  color: #111111 !important; 
}

/* Teks Harga (Default Emas Gelap) */
.price-tag, 
.price-retail,
.product-price {
  color: #b8860b !important; 
}

/* Teks Stok & Min Order (Default Abu Gelap) */
.stock-info, 
.min-order-info {
  color: #444444 !important;
}

/* Teks Out of Stock (Merah) */
.out-of-stock *,
.stock-info.out-of-stock {
  color: #FF4136 !important;
}
