* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #ffffff; color: #111; }
html { scroll-behavior: smooth; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Top Header Hitam Khas Samsung */
.top-header { background: #000000; color: #fff; padding: 12px 0; position: sticky; top: 0; z-index: 30; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-group { display: flex; align-items: center; gap: 10px; }
.logo-ori-box {
  display: flex; align-items: center; gap: 7px;
  background: #ffffff; padding: 5px 11px; border-radius: 8px;
}
.logo-samsung-ori { height: 22px; object-fit: contain; }
.brand-divider-dark { color: #d1d5db; font-size: 1rem; font-weight: 300; }
.by-text-dark { font-size: 0.78rem; color: #4b5563; font-weight: 600; }
.logo-erafone-ori { height: 20px; object-fit: contain; }
.store-badge { background: #1428a0; color: #fff; font-size: 0.72rem; font-weight: 700; padding: 5px 9px; border-radius: 6px; letter-spacing: 0.5px; }

.search-box { flex: 1; min-width: 240px; position: relative; }
.search-form { display: flex; align-items: center; background: #fff; border-radius: 8px; overflow: hidden; }
.search-form input {
  flex: 1; padding: 10px 14px; border: none;
  font-size: 0.95rem; outline: none; background: transparent; color: #111;
}
.btn-clear-cari {
  background: transparent; border: none; color: #6b7280; font-size: 1rem;
  padding: 0 8px; cursor: pointer;
}
.btn-clear-cari:hover { color: #111; }
.btn-cari {
  background: #1428a0; color: #fff; border: none; padding: 10px 14px;
  font-weight: 700; font-size: 0.88rem; cursor: pointer; white-space: nowrap;
}
.btn-cari:hover { background: #1d4ed8; }
.search-suggestions {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: #fff; color: #111; border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2); z-index: 60;
  max-height: 360px; overflow-y: auto; border: 1px solid #e5e7eb;
}
.saran-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9; cursor: pointer; text-align: left;
}
.saran-item:last-child { border-bottom: none; }
.saran-item:hover { background: #f8fafc; }
.saran-item img { width: 42px; height: 42px; object-fit: contain; }
.saran-info { flex: 1; }
.saran-nama { font-size: 0.9rem; font-weight: 600; color: #111; }
.saran-harga { font-size: 0.82rem; font-weight: 700; color: #1428a0; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.btn-katalog-wa {
  border: 1.5px solid #fff; color: #fff; text-decoration: none;
  padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 0.9rem;
}
.btn-katalog-wa:hover { background: rgba(255,255,255,0.15); }
.cart-btn {
  background: #1428a0; color: #fff; border: none; padding: 8px 15px;
  border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer;
}
.cart-btn:hover { background: #1d4ed8; }

/* Sub-Header Navigasi Hitam Gelap */
.sub-nav { background: #18181b; color: #fff; font-size: 0.85rem; border-top: 1px solid #27272a; }
.sub-nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; flex-wrap: wrap; gap: 8px; }
.nav-links { display: flex; gap: 16px; flex-wrap: wrap; }
.nav-links a { color: #e4e4e7; text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: #fff; text-decoration: underline; }
.store-loc { color: #e4e4e7; font-weight: 500; }

/* Ticker Strip Biru Samsung */
.promo-strip { background: #1428a0; color: #ffffff; text-align: center; padding: 7px 12px; font-size: 0.85rem; font-weight: 600; }

/* Breadcrumb & SIS Samsung Bar */
.main-content { padding-top: 16px; padding-bottom: 40px; }
.breadcrumb { font-size: 0.82rem; color: #666; margin-bottom: 12px; }
.breadcrumb span { color: #111; font-weight: 600; }

.sis-brand-bar {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px 20px; margin-bottom: 20px; background: #fff;
}
.sis-logo-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.logo-samsung { height: 26px; object-fit: contain; }
.by-erafone { font-size: 0.9rem; color: #4b5563; font-weight: 600; }
.store-loc-tag { font-size: 0.9rem; color: #111; font-weight: 600; }
.sis-filter-wrap { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 700; }
.sis-filter-wrap select { padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.9rem; background: #fff; cursor: pointer; }

/* Hero Slider */
.hero-slider { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 32px; background: #f3f4f6; }
.slides { display: flex; transition: transform 0.45s ease; }
.slide { min-width: 100%; display: block; }
.slide img { width: 100%; display: block; object-fit: cover; max-height: 360px; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.5); color: #fff; border: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
}
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 12px; left: 18px; display: flex; gap: 6px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.55); cursor: pointer; }
.dot.active { background: #fff; width: 22px; border-radius: 5px; }

/* Seksi Kategori Produk */
.section-block { margin-bottom: 38px; }
.kategori-banner { width: 100%; border-radius: 10px 10px 0 0; display: block; margin-bottom: 14px; }
.kategori-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kat-card { border: none; background: transparent; padding: 0; cursor: pointer; border-radius: 12px; overflow: hidden; transition: transform 0.2s; }
.kat-card:hover { transform: translateY(-4px); }
.kat-card img { width: 100%; display: block; border-radius: 12px; }

/* Section Head */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-head h2 { font-size: 1.35rem; color: #111; }
.lihat-semua { color: #111111; font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.lihat-semua:hover { text-decoration: underline; }
.btn-reset { background: #f3f4f6; border: 1px solid #d1d5db; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }

/* Grid Kartu Produk */
.produk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.kartu {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
}
.kartu:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.08); transform: translateY(-3px); }

.kartu-img-wrap { position: relative; padding: 14px; text-align: center; background: #fff; }
.kartu-img-wrap img { width: 100%; height: 165px; object-fit: contain; }
.promo-bundling-bar {
  background: #1428a0; color: #fff; font-size: 0.72rem; font-weight: 600;
  padding: 5px 8px; text-align: left;
}

.kartu-body { padding: 10px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; justify-content: space-between; }
.meta-row { display: flex; justify-content: space-between; align-items: center; min-height: 22px; }
.kat-pill { font-size: 0.7rem; background: #f1f5f9; color: #475569; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.rating-badge { background: #dbeafe; color: #1e40af; font-size: 0.73rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }

.kartu h3 { font-size: 0.92rem; line-height: 1.35; color: #111; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.harga-jual { font-size: 1.05rem; font-weight: 700; color: #111; }
.harga-coret-row { display: flex; align-items: center; gap: 6px; min-height: 20px; }
.harga-coret { font-size: 0.78rem; color: #9ca3af; text-decoration: line-through; }
.diskon-badge { border: 1px solid #111111; color: #111111; font-size: 0.7rem; font-weight: 700; padding: 1px 5px; border-radius: 4px; }

.layanan-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.badge-cnp { font-size: 0.68rem; color: #1e40af; background: #dbeafe; padding: 2px 6px; border-radius: 4px; font-weight: 700; }

.btn-keranjang {
  width: 100%; margin-top: 8px; padding: 9px; border: none; border-radius: 7px;
  background: #111111; color: #fff; font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.btn-keranjang:hover { background: #27272a; }

/* Footer */
.footer { background: #f8fafc; border-top: 1px solid #e5e7eb; padding-top: 36px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding-bottom: 28px; line-height: 1.8; font-size: 0.9rem; }
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.footer-samsung-logo { height: 24px; object-fit: contain; }
.footer-title { font-weight: 700; color: #111; }
.footer a { color: #111111; font-weight: 600; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-bottom { background: #000000; color: #d1d5db; text-align: center; padding: 14px; font-size: 0.82rem; }

/* Modal Keranjang */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 50; }
.modal-isi {
  background: #fff; max-width: 460px; margin: 55px auto; padding: 24px;
  border-radius: 12px; position: relative; max-height: 85vh; overflow-y: auto;
}
.tutup { position: absolute; right: 16px; top: 14px; cursor: pointer; font-size: 1.2rem; }
.item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.item button { border: none; background: #e5e7eb; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-weight: bold; }
.modal-isi h3 { margin: 14px 0; }
.modal-isi input, .modal-isi textarea {
  width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-family: inherit;
}
.btn-checkout { width: 100%; padding: 12px; border: none; border-radius: 8px; background: #1428a0; color: #fff; font-weight: 700; font-size: 1rem; cursor: pointer; }
.btn-checkout:hover { background: #1d4ed8; }

/* Menu Bawah Khusus Smartphone */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
  .kategori-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .store-loc { display: none; }
}

@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .top-header { padding: 10px 0; }
  .header-inner { gap: 10px; }
  .logo-ori-box { padding: 4px 8px; gap: 5px; }
  .logo-samsung-ori { height: 16px; }
  .logo-erafone-ori { height: 15px; }
  .by-text-dark { font-size: 0.68rem; }
  .store-badge { font-size: 0.64rem; padding: 3px 6px; }
  .btn-katalog-wa { padding: 5px 9px; font-size: 0.78rem; }
  .cart-btn { padding: 6px 10px; font-size: 0.85rem; }

  .search-box { order: 3; width: 100%; min-width: 100%; }
  .search-form input { padding: 9px 12px; font-size: 0.88rem; }
  .btn-cari { padding: 9px 12px; font-size: 0.82rem; }

  .sub-nav-inner { padding: 8px 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .nav-links { flex-wrap: nowrap; white-space: nowrap; gap: 14px; font-size: 0.82rem; }
  .promo-strip { font-size: 0.74rem; padding: 6px 10px; line-height: 1.4; }

  .sis-brand-bar { padding: 12px 14px; gap: 10px; }
  .logo-samsung { height: 22px; }
  .by-erafone { font-size: 0.85rem; }
  .sis-filter-wrap { width: 100%; justify-content: space-between; }
  .sis-filter-wrap select { flex: 1; font-size: 0.85rem; }

  .hero-slider { margin-bottom: 22px; border-radius: 10px; }
  .slide img { min-height: 130px; max-height: 200px; }
  .slider-btn { width: 30px; height: 30px; font-size: 0.9rem; }

  .section-head h2 { font-size: 1.1rem; }
  .produk-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kartu-img-wrap { padding: 10px; }
  .kartu-img-wrap img { height: 125px; }
  .promo-bundling-bar { font-size: 0.66rem; padding: 4px 6px; }
  .kartu-body { padding: 8px 10px 12px; gap: 5px; }
  .kat-pill, .rating-badge { font-size: 0.65rem; }
  .kartu h3 { font-size: 0.84rem; }
  .harga-jual { font-size: 0.95rem; }
  .harga-coret { font-size: 0.72rem; }
  .diskon-badge { font-size: 0.64rem; }
  .badge-cnp { font-size: 0.62rem; }
  .btn-keranjang { padding: 8px; font-size: 0.8rem; }

  .modal-isi { width: 92%; margin: 24px auto; padding: 18px; }

  .mobile-bottom-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: #000000; border-top: 2px solid #1428a0;
    justify-content: space-around; align-items: center; padding: 6px 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  }
  .mobile-bottom-nav a, .mobile-bottom-nav button {
    background: none; border: none; color: #fff; text-decoration: none;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: 1.1rem; cursor: pointer; font-family: inherit;
  }
  .mobile-bottom-nav span { font-size: 0.7rem; font-weight: 600; color: #e5e7eb; }
}
