@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0d0d0d;
  --bg-soft: #151515;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --gold: #f2a93b;
  --gold-dark: #d98f22;
  --white: #f5f5f5;
  --muted: #9a9a9a;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

h1, h2, h3, .logo {
  font-family: 'Poppins', sans-serif;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,13,13,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.logo {
  font-weight: 800;
  font-size: 22px;
  color: var(--gold);
  line-height: 1;
}
.logo small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 500;
}
nav.main-nav { display: flex; gap: 28px; }
nav.main-nav a {
  font-size: 14px;
  color: var(--white);
  font-weight: 500;
}
nav.main-nav a.active { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
}
.btn-gold { background: var(--gold); color: #0d0d0d; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-outline:hover { background: rgba(242,169,59,0.08); }
.btn-buy { width: 100%; margin-top: 12px; background: var(--gold); color: #0d0d0d; }
.btn-buy:hover { background: var(--gold-dark); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin: 12px 0 16px;
}
.hero h1 span { color: var(--gold); }
.hero p.lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 460px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; margin-bottom: 28px; }
.trust-row { display: flex; gap: 24px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

.hero-image-wrap { position: relative; }
.hero-image-wrap img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}
.hero-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--bg-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
}
.hero-badge strong { color: var(--gold); font-size: 22px; display: block; }
.hero-badge span { font-size: 12px; color: var(--muted); }

/* ---------- Section headers ---------- */
.section { padding: 64px 0; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 30px; font-weight: 800; margin: 8px 0 0; }

/* ---------- Category grid ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
}
.cat-card:hover { border-color: var(--gold); }
.cat-icon { color: var(--gold); margin-bottom: 16px; }
.cat-card h3 { font-size: 16px; margin: 0 0 6px; }
.cat-card p { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.cat-card .arrow { color: var(--gold); font-weight: 700; }

/* ---------- Why us ---------- */
.why-section { background: var(--bg-soft); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
}
.why-copy p { color: var(--muted); font-size: 14px; max-width: 380px; margin-bottom: 24px; }
.why-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.feature-card .icon { color: var(--gold); margin-bottom: 14px; }
.feature-card h4 { font-size: 14px; margin: 0 0 6px; }
.feature-card p { font-size: 12px; color: var(--muted); margin: 0; }

/* ---------- Products ---------- */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}
.products-header h2 { font-size: 26px; margin: 4px 0 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
/* Grid khusus di homepage: dipaksa 1 baris saja, sisanya lihat di halaman katalog */
.home-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.home-grid .product-card {
  flex: 1 1 190px;
  min-width: 160px;
  max-width: 240px;
  scroll-snap-align: start;
}
.home-grid::-webkit-scrollbar { height: 6px; }
.home-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-img { aspect-ratio: 1/1; overflow: hidden; background: #111; position: relative; cursor: pointer; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.photo-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(13,13,13,0.75); color: var(--white);
  font-size: 11px; padding: 3px 8px; border-radius: 999px;
}
.product-body { padding: 14px; }
.product-cat { font-size: 11px; color: var(--gold); font-weight: 600; }
.product-loc { font-size: 11px; color: var(--muted); margin-left: 8px; }
.product-name { font-size: 14px; margin: 4px 0 6px; }
.product-price { font-size: 14px; font-weight: 700; color: var(--gold); margin: 0; }

/* ---------- Modal galeri produk ---------- */
.jual-modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; }
.jual-modal.open { display: flex; }
.jual-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.75); }
.jual-modal-content {
  position: relative; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--radius); width: 92%; max-width: 480px; max-height: 90vh;
  overflow-y: auto; z-index: 1;
}
.jual-modal-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(13,13,13,0.7); border: none; color: var(--white);
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px;
}
.jual-modal-gallery { position: relative; aspect-ratio: 1/1; background: #111; }
.jual-modal-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jual-modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(13,13,13,0.6); color: var(--white); border: none;
  width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer;
  align-items: center; justify-content: center;
}
.jual-modal-nav.prev { left: 10px; }
.jual-modal-nav.next { right: 10px; }
.jual-modal-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0; }
.jual-modal-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); cursor: pointer; }
.jual-modal-dots .dot.active { background: var(--gold); }
.jual-modal-body { padding: 0 20px 20px; }
.jual-modal-cat { font-size: 11px; color: var(--gold); font-weight: 600; }
.jual-modal-loc { font-size: 11px; color: var(--muted); margin-left: 8px; }
.jual-modal-name { font-size: 18px; margin: 6px 0; }
.jual-modal-price { font-size: 18px; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.jual-modal-desc { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.jual-modal-buy { width: 100%; }
.jual-modal-actions { display: flex; gap: 10px; margin-top: 4px; }
.jual-modal-actions .jual-modal-buy { flex: 1; margin-top: 0; }
.btn-share {
  flex: 0 0 auto;
  background: transparent;
  border: 1.5px solid var(--gold, #f2a93b);
  color: var(--gold, #f2a93b);
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.btn-share:hover { background: var(--gold, #f2a93b); color: #0d0d0d; }

.jual-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 200;
}
.jual-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 900px) {
  .jual-modal-actions { flex-direction: column; }
  .btn-share { padding: 10px 18px; }
}

/* ---------- CTA ---------- */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 28px 32px;
  flex-wrap: wrap;
}
.cta-left { display: flex; align-items: center; gap: 20px; }
.cta-left h3 { margin: 0 0 4px; font-size: 20px; }
.cta-left p { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr;
  gap: 24px;
  margin-bottom: 32px;
}
.footer-grid h4 { font-size: 14px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ---------- Katalog filters ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 13px;
  cursor: pointer;
  color: var(--white);
}
.filter-chip.active { background: var(--gold); color: #0d0d0d; border-color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .why-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-features { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  nav.main-nav { display: none; }
  .hero h1 { font-size: 32px; }
}
