/* Update Warna Tema ke Biru Neon */
:root {
  --primary: #1F51FF; 
  --bg: #f8f9ff;
  --dark: #1e272e;
}

* { box-sizing: border-box; }
/* Cegah halaman melebar ke kanan (kalau ada elemen yang keluar layar, HP akan
   memperlebar halaman sehingga semuanya terlihat bergeser ke kiri). 'clip' dipakai
   di body supaya navbar sticky tetap jalan. */
html { overflow-x: hidden; }
body { overflow-x: clip; }
body { 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  margin: 0; background: var(--bg); color: var(--dark);
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 15px; }

.header { 
  background: rgba(10, 12, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  margin: 10px 15px 0;
  padding: 10px 8px; 
  position: sticky; 
  top: 10px; z-index: 100; 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.header .container {
  padding: 0 6px;
}
.header-flex { display: flex; align-items: center; justify-content: space-between; }
.logo-area { display: flex; align-items: center; gap: 3px; }
.logo { width: 45px; height: 45px; border-radius: 50%; object-fit: cover; }
.brand-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0; }

/* --- PENGATURAN BANNER RASIO 3:2 --- */
/* Swiper dilebarin 15px ke kiri-kanan (nutupin padding container) lalu dikasih padding 15px,
   jadi ukuran slide tetap sama tapi shadow punya ruang & gak kepotong di pojok */
.mySwiper { width: calc(100% + 30px); margin: 0 -15px; padding: 20px 0 40px; overflow: hidden; }

/* Slider utama: slide tengah penuh, slide kiri-kanan samar & agak mengecil
   (samar - terlihat - samar), jaraknya dirapatkan ke slide tengah */
.mySwiper .swiper-slide {
  width: min(92%, 960px);
  height: auto;
  opacity: 0.4;
  transform: scale(0.92);
  transition: opacity .5s ease, transform .5s cubic-bezier(.25, .8, .25, 1);
  /* Efek "melayang": cahaya dari kanan atas, jadi bayangan jatuh ke kiri-bawah dan agak jauh dari gambar */
  box-shadow:
    -18px 28px 28px -14px rgba(0, 0, 0, 0.4),
    -8px 12px 14px -6px rgba(0, 0, 0, 0.22);
}
.mySwiper .swiper-slide.swiper-slide-active { opacity: 1; transform: scale(1); }

.swiper-slide { 
  width: 100%; 
  border-radius: 20px; 
  overflow: hidden; 
  aspect-ratio: 3 / 2; /* Rasio sesuai resolusi 1536x1024 */
  background: #000; 
}

/* Penyesuaian tinggi untuk layar desktop */
@media (min-width: 1024px) { 
  .swiper-slide { height: 666px; } 
}

.swiper-slide img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

.swiper-pagination-bullet-active { 
  background: var(--primary) !important; 
  border-radius: 50% !important;
  box-shadow: 0 0 8px 3px rgba(31, 81, 255, 0.85);
}

/* Rasio 1:1 Produk (klik gambar -> ke halaman detail) */
.img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.img-container img { width: 100%; height: 100%; object-fit: cover; }

/* Overlay Zoom Lightbox ala Facebook (full screen) */
.overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #000;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: default;
  touch-action: none;
}
.overlay img {
  max-width: 100%;
  max-height: 100%;
  touch-action: none;
  cursor: default;
  transition: transform 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}

/* Tombol X: default (HP) di kiri atas agak menengah, kayak app Facebook */
.overlay-close {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 10000;
}
.overlay-close:hover { background: rgba(255, 255, 255, 0.22); }

/* Di layar web/desktop: tombol X pindah ke pojok kanan atas */
@media (min-width: 768px) {
  .overlay-close {
    left: auto;
    right: 20px;
    top: 20px;
  }
}

/* Keterangan "1 dari 2" di tengah atas */
.overlay-counter {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  z-index: 10000;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Stampel Sold */
.card.sold .img-container::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('img/sold.png');
  background-size: 70%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 5;
}
.card.sold img { filter: grayscale(100%) brightness(0.6); }
.card.sold .btn-buy { background: #ccc !important; cursor: not-allowed; }

/* Filter & Grid Produk */
.filter-wrapper { display: flex; gap: 12px; margin: 20px 0; overflow-x: auto; padding-bottom: 5px; }
.filter-btn { padding: 10px 18px; border-radius: 999px; border: none; background: white; color: var(--primary); cursor: pointer; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.filter-btn.active { background: var(--primary); color: white; }

/* --- SISTEM PRIORITAS URUTAN PRODUK (OTOMATIS) --- */
.produk-grid { 
  display: grid !important; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 14px; 
  grid-auto-flow: row dense;
}

/* Tablet ke atas: 3 kolom biar ruang container 1000px kepakai maksimal */
@media (min-width: 640px) {
  .produk-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* Ranking Dasar: Semua kartu biasa ditaruh di urutan ke-10 */
.card { 
  background: white; 
  border-radius: 18px; 
  overflow: hidden; 
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 3px 10px rgba(31, 81, 255, 0.05);
  order: 10; 
  display: flex;
  flex-direction: column;
  transition: 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 81, 255, 0.15);
}

.img-container { overflow: hidden; }
.img-container img { transition: 0.35s; }
.card:hover .img-container img { transform: scale(1.05); }

/* RANKING 1: LIMITED (PALING ATAS) */
.card.limited {
  order: 1 !important;
  border: 1.5px solid #f1c40f !important;
}

/* RANKING 2: NEW (DI BAWAH LIMITED, DI ATAS HOT ITEM) */
.card.new {
  order: 2 !important;
  border: 1.5px solid var(--primary) !important;
}

/* RANKING 3: HOT ITEM (DI BAWAH NEW) */
.card.hot-item {
  order: 3 !important;
  border: 1.5px solid #ff4757 !important;
}

/* RANKING PALING BAWAH: PRODUK YANG SUDAH SOLD */
.card.sold {
  order: 99 !important;
}


.card-body { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; gap: 5px; }
.card-body h4 { 
  font-size: 12.5px; 
  font-weight: 800; 
  margin: 0; 
  line-height: 1.35; 
  white-space: nowrap;
  overflow: hidden; 
  text-overflow: ellipsis;
  cursor: pointer;
}
.card-body h4.expanded {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.card-footer {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
}

.status { color: #2ecc71; font-size: 9px; font-weight: 800; background: #ebfaf1; padding: 2px 7px; border-radius: 6px; display: inline-block; width: fit-content; margin: 0; }
.price-section { margin: 0; display: flex; flex-direction: column; gap: 1px; }
.old-price { font-size: 11px; font-weight: 600; color: #9aa1b1; text-decoration: line-through; }
.new-price { font-weight: 800; font-size: 12.5px; color: var(--primary); display: block; }

.btn-buy { 
  width: 100%; 
  background: var(--primary); 
  color: white; 
  border: none; 
  padding: 9px; 
  border-radius: 10px; 
  font-weight: 800; 
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 81, 255, 0.3);
  transition: 0.3s;
}

.btn-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(31, 81, 255, 0.5);
}

.btn-detail {
  display: block;
  width: 100%;
  text-align: center;
  background: white;
  color: var(--primary);
  border: 1.5px solid rgba(31, 81, 255, 0.3);
  padding: 8px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 12px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-detail:hover {
  background: var(--primary);
  color: white;
}

.card.sold .btn-detail { color: #999; border-color: #ddd; }

/* Styling Badge/Label */
.badge-stack {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.badge {
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
  color: white;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-hot { background: #ff4757; box-shadow: 0 0 8px rgba(255, 71, 87, 0.5); }
.badge-limited { background: #f1c40f; box-shadow: 0 0 8px rgba(241, 196, 15, 0.5); }
.badge-new { background: var(--primary); box-shadow: 0 0 8px rgba(31, 81, 255, 0.5); }
.badge-kategori { background: var(--primary); box-shadow: 0 0 8px rgba(31, 81, 255, 0.4); margin-right: 6px; }

/* Badge di halaman detail tidak posisi absolute (beda konteks dari badge-stack di grid) */
.produk-detail-badge .badge { display: inline-block; }

/* --- SKELETON LOADING (sebelum produk selesai dirender) --- */
.skeleton-card {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 3px 10px rgba(31, 81, 255, 0.05);
  display: flex;
  flex-direction: column;
}
.skeleton-img { width: 100%; aspect-ratio: 1/1; background: linear-gradient(90deg, #eef1fa 25%, #f7f9ff 37%, #eef1fa 63%); background-size: 400% 100%; animation: skeleton-pulse 1.4s ease infinite; }
.skeleton-body { padding: 13px; display: flex; flex-direction: column; gap: 8px; }
.skeleton-line { height: 10px; border-radius: 5px; background: linear-gradient(90deg, #eef1fa 25%, #f7f9ff 37%, #eef1fa 63%); background-size: 400% 100%; animation: skeleton-pulse 1.4s ease infinite; }
.skeleton-line.w-70 { width: 70%; }
.skeleton-line.w-40 { width: 40%; }
.skeleton-line.h-btn { height: 32px; border-radius: 10px; margin-top: 4px; }

@keyframes skeleton-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* Styling Search Bar */
.search-container {
  margin: 0 0 20px 0;
  width: 100%;
}

#searchInput {
  width: 100%;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid rgba(31, 81, 255, 0.1);
  background: white;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

#searchInput:focus {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(31, 81, 255, 0.2);
}

/* --- FOOTER FINAL VERSION (BLUE NEON) --- */
.main-footer {
  background: var(--primary); /* Biru Neon */
  padding: 10px 0 30px 0;
  margin-top: 60px;
  text-align: left; /* Rata kiri untuk info */
  color: #ffffff;   /* Semua teks putih */
}

.footer-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-logo-img {
  width: 45px;
  height: 45px;
}

.footer-logo {
  margin: 0;
  color: #ffffff !important; /* Paksa putih */
  font-size: 24px;
}

.tagline {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 15px;
  color: #ffffff;
}

.footer-services {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
  font-size: 14px;
  line-height: 1.8;
  color: #ffffff;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.meta-label {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7); /* Putih soft untuk label */
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
}

.motto {
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  margin-bottom: 20px;
  max-width: 450px;
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 25px 0;
}

/* COPYRIGHT TETEP DI TENGAH */
.copyright {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  text-align: center;
  display: block;
  width: 100%;
}

/* --- MENU TITIK TIGA (KEBAB MENU) --- */
.header-right {
  display: flex;
  align-items: center;
}

.menu-wrapper {
  position: relative;
  display: inline-block;
}

.kebab-icon {
  /* Ukuran dikunci (sama persis dengan ukuran 3 titik) biar tombol gak goyang pas berubah jadi silang */
  width: 24.5px;
  height: 40.5px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.5px;
  border-radius: 50%;
  transition: 0.3s;
  -webkit-tap-highlight-color: transparent; /* hilangin kilatan abu-abu bawaan browser HP pas ditap */
  outline: none;
}

.kebab-icon span {
  width: 4.5px;
  height: 4.5px;
  background-color: #fff;
  border-radius: 50%;
  display: block;
  transition: transform 0.3s ease, opacity 0.2s ease, width 0.3s ease, height 0.3s ease, border-radius 0.3s ease;
}

/* Pas menu kebuka: 3 titik berubah jadi tanda silang (X) */
.kebab-icon.active span {
  width: 20px;
  height: 2.5px;
  border-radius: 2px;
}
.kebab-icon.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.kebab-icon.active span:nth-child(2) { opacity: 0; }
.kebab-icon.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* DROPDOWN BOX */
.dropdown-content {
  display: none;
  position: fixed;
  left: 15px;
  right: 15px;
  top: 78px;
  background: rgba(10, 12, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border-radius: 18px;
  z-index: 1000;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
  padding: 12px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-content a {
  color: #fff;
  padding: 18px 18px;
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  transition: 0.3s;
}

.dropdown-content a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dropdown-content a.btn-jual {
  background: var(--primary);
  color: white;
  justify-content: center;
  font-weight: 800;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(31, 81, 255, 0.3);
}

.dropdown-content a.btn-jual:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.show-menu {
  display: block !important;
}
/* --- FAQ STYLING --- */
.faq-card {
  background: white;
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 15px;
  border: 1px solid rgba(31, 81, 255, 0.1);
  transition: 0.3s;
}

.faq-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.faq-question {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 8px;
  font-size: 16px;
}

.faq-answer {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

body.zoom-lock {
  overflow: hidden;
}

/* ========================================================== */
/* HALAMAN DETAIL PRODUK (produk.html)                         */
/* ========================================================== */

.back-bar { padding: 16px 0 0; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* Galeri foto produk (Swiper), rasio sama seperti banner */
.produk-galeri { margin: 16px 0 20px; }
.produk-galeri .swiper-slide {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}
.produk-galeri .swiper-slide { cursor: zoom-in; }
.produk-galeri .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.produk-galeri.satu-foto .swiper-pagination { display: none; }

/* Stampel Sold di galeri foto halaman detail produk */
.produk-galeri .swiper-slide.sold-slide {
  cursor: default;
}
.produk-galeri .swiper-slide.sold-slide::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('img/sold.png');
  background-size: 80%;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 5;
}
.produk-galeri .swiper-slide.sold-slide img { filter: grayscale(100%) brightness(0.6); }

/* Pagination dots ala Facebook Marketplace: kapsul gelap transparan mengambang di atas foto */
.produk-galeri .swiper-pagination {
  bottom: 10px !important;
  left: 50% !important;
  width: auto !important;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 9px;
  border-radius: 999px;
}
.produk-galeri .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.6);
  opacity: 1;
}
.produk-galeri .swiper-pagination-bullet-active {
  background: #ffffff !important;
  box-shadow: none !important;
  width: 6px;
  height: 6px;
}

.produk-detail-badge { margin-bottom: 10px; }

.produk-detail-nama {
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 8px;
  line-height: 1.3;
}

.produk-detail-status { color: #2ecc71; font-size: 11px; font-weight: 800; background: #ebfaf1; padding: 3px 9px; border-radius: 6px; display: inline-block; margin: 0 0 12px; }

.produk-detail-harga { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.produk-detail-harga .old-price { font-size: 14px; }
.produk-detail-harga .new-price { font-size: 26px; }

.produk-detail-deskripsi {
  background: white;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 16px;
  border: 1px solid rgba(0,0,0,0.04);
}
.produk-detail-deskripsi h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--primary); margin: 0 0 8px; }

.produk-detail-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.produk-detail-actions .btn-order {
  width: 100%; background: var(--primary); color: white; border: none;
  padding: 14px; border-radius: 12px; font-weight: 800; font-size: 15px;
  cursor: pointer; box-shadow: 0 4px 14px rgba(31, 81, 255, 0.3); transition: 0.3s;
  text-align: center; text-decoration: none; display: block;
}
.produk-detail-actions .btn-order:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(31, 81, 255, 0.5); }
.produk-detail-actions .btn-order.sold-btn { background: #ccc !important; cursor: not-allowed; box-shadow: none; }

.produk-detail-row { display: flex; gap: 10px; }
.produk-detail-row > * { flex: 1; }

.btn-aturan, .btn-share {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; background: white; color: var(--dark);
  border: 1.5px solid rgba(0,0,0,0.08);
  padding: 12px; border-radius: 12px; font-weight: 700; font-size: 13px;
  cursor: pointer; text-decoration: none; transition: 0.3s;
}
.btn-aturan:hover, .btn-share:hover { border-color: var(--primary); color: var(--primary); }

.produk-related { margin: 30px 0 10px; }
.produk-related h3 { font-size: 15px; font-weight: 800; margin: 0 0 14px; }
.produk-related .produk-grid { margin-bottom: 10px; }

.toast-share {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%);
  background: var(--dark); color: white; padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none;
  transition: opacity 0.3s; z-index: 5000;
}
.toast-share.show { opacity: 1; }


/* ========================================================== */
/* BERANDA BARU: slider kategori, strip pinned, halaman kategori */
/* ========================================================== */
.kat-wrap { margin: 4px 0 18px; text-align: center; }
/* Sama kayak slider utama: dilebarin ke tepi layar + padding biar shadow gak kepotong */
.katSwiper { width: calc(100% + 30px); margin: 0 -15px; padding: 10px 15px 38px; overflow: hidden; }
.katSwiper .swiper-slide.kat-slide {
  width: min(68%, 420px);
  height: auto;
  aspect-ratio: 4 / 3;
  position: relative;
  cursor: pointer;
  opacity: 0.4;
  transform: scale(0.86);
  transition: opacity .3s ease, transform .3s ease;
  background: linear-gradient(135deg, var(--primary), #0a1f6b);
  /* Efek "melayang" untuk slider kategori (cahaya dari kanan, bayangan ke kiri-bawah) */
  box-shadow:
    -16px 24px 24px -12px rgba(0, 0, 0, 0.4),
    -7px 10px 12px -5px rgba(0, 0, 0, 0.22);
}
.katSwiper .swiper-slide.kat-slide[data-game="ff"] { background: linear-gradient(135deg, #ff7a18, #af002d); }
.katSwiper .swiper-slide.kat-slide[data-game="jasa"] { background: linear-gradient(135deg, #11998e, #0b4f6c); }
.katSwiper .swiper-slide.swiper-slide-active { opacity: 1; transform: scale(1); }
.kat-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 12px 10px;
  color: #fff; font-weight: 800; font-size: 18px; text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.btn-lihat-produk {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(31, 81, 255, .35);
}
.btn-lihat-produk:active { transform: scale(.97); }

.pinned-wrap { margin: 6px 0 18px; }
.pinned-title { font-size: 15px; font-weight: 800; margin: 0 0 10px; color: var(--dark); text-align: center; }
.pinned-strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.pinned-strip .card { flex: 0 0 46%; max-width: 210px; scroll-snap-align: start; order: 0 !important; }
/* Tengahin strip di layar lebar; kalau kebanyakan (HP) tetap bisa digeser */
.pinned-strip .card:first-child { margin-left: auto; }
.pinned-strip .card:last-child { margin-right: auto; }

.kategori-judul { font-size: 22px; font-weight: 800; margin: 14px 0 16px; color: var(--dark); }
.grid-kosong { grid-column: 1 / -1; text-align: center; padding: 30px 10px; color: #666; }

/* ========================================================== */
/* SILAUAN CAHAYA di pojok kanan atas frame semua slider      */
/* (searah dengan sumber cahaya shadow: kanan atas)           */
/* ========================================================== */
.mySwiper .swiper-slide::before,
.katSwiper .swiper-slide::before,
.produkSwiper .swiper-slide::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 65%; height: 65%;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    /* inti silau di pojok */
    radial-gradient(circle at 100% 0%, rgba(255,255,255,.95) 0, rgba(255,255,255,.45) 7%, rgba(255,255,255,0) 38%),
    /* sapuan cahaya diagonal tipis */
    linear-gradient(225deg, rgba(255,255,255,.30) 0, rgba(255,255,255,.08) 22%, rgba(255,255,255,0) 45%),
    /* pantulan lensa kecil */
    radial-gradient(circle at 78% 22%, rgba(255,255,255,.35) 0, rgba(255,255,255,0) 9%);
  animation: glareBerkedip 4s ease-in-out infinite;
}
@keyframes glareBerkedip {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mySwiper .swiper-slide::before,
  .katSwiper .swiper-slide::before,
  .produkSwiper .swiper-slide::before { animation: none; }
}


/* ========================================================== */
/* TOMBOL MENGAMBANG: WhatsApp "Hubungi Admin" + kembali ke atas */
/* ========================================================== */
.wa-float {
  position: fixed;
  right: 14px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .45);
}
.wa-float svg { width: 20px; height: 20px; flex-shrink: 0; }
.wa-float:active { transform: scale(.96); }

.btn-top {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 40px; height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(31, 81, 255, .4);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .25s ease, transform .25s ease;
}
.btn-top svg { width: 20px; height: 20px; }
.btn-top.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.btn-top:active { transform: translate(-50%, 0) scale(.94); }

/* Sembunyikan saat zoom gambar terbuka; toast share dinaikkan biar tidak ketutup tombol */
body.zoom-lock .wa-float, body.zoom-lock .btn-top { display: none; }
.toast-share { bottom: 80px !important; }


/* ========================================================== */
/* ANIMASI KARTU PRODUK (muncul saat pertama terlihat di layar) */
/* ========================================================== */
@keyframes kartuMasuk {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.card.reveal { opacity: 0; }
.card.reveal-in { animation: kartuMasuk .5s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0ms); }

/* Bagian "Sudah Terjual" di bawah beranda */
.sold-wrap { margin: 30px 0 10px; }

/* ========================================================== */
/* TOMBOL MODE GELAP di navbar */
/* ========================================================== */
.theme-toggle {
  width: 36px; height: 36px;
  margin-right: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle:active { background: rgba(255, 255, 255, .12); }

/* ========================================================== */
/* MODE GELAP */
/* ========================================================== */
html[data-theme="dark"] {
  --bg: #0d111c;
  --dark: #e6e9f2;
  --surface: #161c2b;
  --teks-biru: #7f9bff; /* biru lebih terang supaya terbaca di latar gelap */
  color-scheme: dark;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .skeleton-card,
html[data-theme="dark"] .faq-card,
html[data-theme="dark"] .produk-detail-deskripsi,
html[data-theme="dark"] .btn-aturan,
html[data-theme="dark"] .btn-share,
html[data-theme="dark"] .filter-btn:not(.active),
html[data-theme="dark"] .aturan-card,
html[data-theme="dark"] #searchInput {
  background: var(--surface);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] #searchInput { color: var(--dark); border: 2px solid rgba(127, 155, 255, .22); }
html[data-theme="dark"] #searchInput::placeholder { color: #8b93a7; }
html[data-theme="dark"] #searchInput:focus { border-color: var(--primary); }

html[data-theme="dark"] .btn-detail { background: transparent; color: var(--teks-biru); border-color: rgba(127, 155, 255, .35); }
html[data-theme="dark"] .btn-detail:hover { background: var(--primary); color: #fff; }
html[data-theme="dark"] .card.sold .btn-detail { color: #777; border-color: #333; }

html[data-theme="dark"] .new-price,
html[data-theme="dark"] .faq-question,
html[data-theme="dark"] .produk-detail-deskripsi h3,
html[data-theme="dark"] .back-link,
html[data-theme="dark"] .filter-btn:not(.active) { color: var(--teks-biru); }

html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .produk-detail-deskripsi,
html[data-theme="dark"] .grid-kosong,
html[data-theme="dark"] .aturan-card-body { color: #c3c9d9; }

html[data-theme="dark"] .status,
html[data-theme="dark"] .produk-detail-status { background: rgba(46, 204, 113, .15); }

html[data-theme="dark"] .skeleton-img,
html[data-theme="dark"] .skeleton-line {
  background: linear-gradient(90deg, #1b2234 25%, #252e45 37%, #1b2234 63%);
  background-size: 400% 100%;
}

html[data-theme="dark"] .btn-aturan:hover,
html[data-theme="dark"] .btn-share:hover { color: var(--teks-biru); border-color: var(--primary); }
html[data-theme="dark"] .toast-share { background: #e6e9f2; color: #0d111c; }

/* Mode gelap: titik indikator slider utama jadi putih transparan
   (bukan biru) supaya tidak cuma cahaya biru yang terlihat */
html[data-theme="dark"] .mySwiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, .35);
  opacity: 1;
}
html[data-theme="dark"] .mySwiper .swiper-pagination-bullet-active {
  background: rgba(255, 255, 255, .85) !important;
  box-shadow: 0 0 8px 3px rgba(255, 255, 255, .3);
}

/* Mode gelap: teks penjelasan di halaman Peraturan lebih terang */
html[data-theme="dark"] .aturan-card-body p,
html[data-theme="dark"] .aturan-card-body li,
html[data-theme="dark"] .aturan-card-body,
html[data-theme="dark"] .aturan-heading p { color: #f1f4fb !important; }
