/* =========================================================
   SUMPAHJITU — Full Local Stylesheet (tanpa dependensi CDN)
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #23272e;
  background: #f4f6f8;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: #1b7200; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 12px; line-height: 1.25; color: #14181d; }
p { margin: 0 0 12px; }
i { font-style: normal; display: inline-block; min-width: 1.1em; text-align: center; }
hr { border: 0; border-top: 1px solid #e3e6ea; margin: 20px 0; }
input, select, textarea, button { font: inherit; }
input[type="text"], input[type="email"], input[type="password"], input[type="integer"], textarea, select {
  padding: 9px 12px; border: 1px solid #ccd2d9; border-radius: 8px; background: #fff; width: 100%; max-width: 480px;
}
textarea { min-height: 90px; resize: vertical; }
label { font-weight: 600; font-size: 14px; }
form .form-group { margin-bottom: 14px; }
table { border-collapse: collapse; width: 100%; }

/* ---------- Ikon pengganti FontAwesome (glyph unicode) ---------- */
.fa-star::before { content: "\2605"; color: #ffb400; }
.fa-thumbs-up::before { content: "\1F44D"; }
.fa-shopping-cart::before { content: "\1F6D2"; }
.fa-times::before, .fa-times-circle::before, .icon-cross::before { content: "\2715"; }
.fa-share::before { content: "\2934"; }
.icon-heart::before { content: "\2665"; color: #e0245e; }
.icon-search::before { content: "\1F50D"; }
.icon-moon::before { content: "\263E"; }
.icon-medal::before { content: "\1F3C5"; }
.fa-plug::before { content: "\1F50C"; }
.fa-box::before { content: "\1F4E6"; }
.fa-comment::before { content: "\1F4AC"; }
.icon-mail::before { content: "\2709"; }
.icon-lock::before { content: "\1F512"; }
.icon-head::before { content: "\1F464"; }
.icon-check::before { content: "\2713"; }
.icon-angle-right::before { content: "\203A"; }
.icon-arrow-up::before { content: "\2191"; }
.icon-paper-clip::before { content: "\1F4CE"; }
.icon-flag::before { content: "\2691"; }
.socicon-facebook::before { content: "f"; font-weight: 700; }
.socicon-twitter::before { content: "t"; font-weight: 700; }
.socicon-instagram::before { content: "ig"; font-size: 12px; font-weight: 700; }

/* ---------- Utilitas yang dipakai markup ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.text-white { color: #fff; }
.text-muted { color: #7d868f; }
.text-success { color: #1b7200; }
.text-primary { color: #1b73e8; }
.text-warning { color: #ffb400; }
.text-bold { font-weight: 700; }
.text-sm { font-size: 13px; }
.text-lg { font-size: 20px; }
.text-uppercase { text-transform: uppercase; }
.text-normal { font-weight: 400; }
.h1 { font-size: 30px; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 10px; } .mt-4 { margin-top: 26px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 6px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 26px; }
.ml-0 { margin-left: 0; } .ml-2 { margin-left: 8px; } .ml-3 { margin-left: 14px; } .ml-4 { margin-left: 20px; }
.mr-0 { margin-right: 0; } .mr-2 { margin-right: 8px; } .mr-3 { margin-right: 14px; } .mr-4 { margin-right: 20px; }
.padding-top-1x { padding-top: 16px; } .padding-top-2x { padding-top: 26px; }
.padding-top-none { padding-top: 0; }
.padding-bottom-1x { padding-bottom: 16px; }
.padding-bottom-none { padding-bottom: 0; }
.padding-left-none { padding-left: 0; }
.margin-bottom-none { margin-bottom: 0; }
.margin-bottom-1x { margin-bottom: 14px; }
.margin-top-none { margin-top: 0; }
.padding-35 { padding: 12px; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-align-center { text-align: center; }
.w-400 { max-width: 400px; }
.hidden { display: none !important; }

/* ---------- Grid dasar ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.row > [class*="col-"], .row > .col { padding: 0 12px; width: 100%; }
.row > .col { flex: 1 1 0; }
.row > .col-auto { flex: 0 0 auto; width: auto; }
@media (min-width: 768px) {
  .col-sm-6, .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.333%; }
  .col-md-5 { width: 41.667%; }
  .col-md-12 { width: 100%; }
}
@media (min-width: 992px) {
  .col-lg-9 { width: 75%; }
  .col-lg-3 { width: 25%; }
}

/* ---------- Tombol LOGIN / DAFTAR atas ---------- */
.button-login-daftar {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 12px 16px; max-width: 1200px; margin: 0 auto;
}
.button-login-daftar a {
  display: block; text-align: center; padding: 13px 10px;
  background: linear-gradient(180deg, #2a8f00, #1b7200);
  border: 2px solid #0e3d00; border-radius: 10px;
  color: #ffffff !important; font-weight: 800; font-size: 21px; letter-spacing: 2px;
  box-shadow: 0 3px 8px rgba(27, 114, 0, .35);
  transition: transform .15s ease, filter .15s ease;
}
.button-login-daftar a:hover { filter: brightness(1.1); text-decoration: none; transform: translateY(-1px); }

/* ---------- Modal (dikelola js/local.js) ---------- */
.modal { display: none; position: fixed; inset: 0; z-index: 1050; background: rgba(10, 14, 18, .55); overflow-y: auto; padding: 24px 12px; }
.modal.show { display: flex; align-items: flex-start; justify-content: center; }
.modal-dialog { background: #fff; border-radius: 14px; max-width: 560px; width: 100%; margin: auto; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #edf0f3; }
.modal-title { margin: 0; font-size: 18px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid #edf0f3; text-align: right; }
.close { background: none; border: 0; font-size: 22px; cursor: pointer; color: #666; line-height: 1; }

/* ---------- Off-canvas & elemen tak terpakai ---------- */
.offcanvas-container, .offcanvas-wrapper { display: block; }
.offcanvas-container { display: none; }
.pswp { display: none !important; }
.compare-service-card { display: none !important; }
.site-backdrop { display: none; }
.toolbar-dropdown { display: none; }
.recaprchaMessage, .recaprchaCustom, #recaptcha1, #recaptcha2 { min-height: 0; }
.fb-login-button { margin-top: 10px; }

/* ---------- Navbar ---------- */
.navbar-sticky {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff; border-bottom: 1px solid #e3e6ea;
  box-shadow: 0 2px 10px rgba(15, 23, 30, .06);
}
.site-branding .inner { display: flex; align-items: center; gap: 12px; max-width: 1200px; margin: 0 auto; padding: 10px 16px; }
.offcanvas-toggle { display: none; }
.site-logo { display: inline-flex; }
.header-logo { height: 48px; width: auto; }
.site-menu { display: none; }
@media (min-width: 992px) {
  .site-menu { display: block; }
  .site-branding .inner { justify-content: space-between; }
  .site-menu .navbar-nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; align-items: center; }
  .site-menu .navbar-nav > li > a { color: #23272e; font-weight: 600; }
  .site-menu .navbar-nav > li > a:hover { color: #1b7200; text-decoration: none; }
  .mega-menu, .sub-menu { display: none; }
}
.sub-menu-nav .sub-nav {
  display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none;
  max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  background: #fff; border-bottom: 1px solid #e3e6ea;
}
.sub-menu-nav .sub-nav a {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #eef4ec; border: 1px solid #d5e4d0;
  color: #1b7200; font-weight: 700; font-size: 12.5px; letter-spacing: .4px;
}
.sub-menu-nav .sub-nav a:hover { background: #1b7200; color: #fff; text-decoration: none; }
.toolbar { display: none; }
.site-search { display: none; }
.topbar { height: 0; }

/* ---------- Konten utama ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.alert-danger { display: none; }
h1[itemprop="name"] { font-size: clamp(26px, 4vw, 40px); margin: 18px 0 10px; }
.rating-summary, .text-primary.ml-3 { color: #1b73e8; }

/* Galeri produk */
.product-gallery { background: #fff; border: 1px solid #e6e9ed; border-radius: 14px; padding: 14px; }
.owl-carousel, .owl-stage, .owl-loaded { display: block; }
.slide-owl-wrap img { width: 100% !important; height: auto !important; border-radius: 10px; }
.product-thumbnails { display: flex; gap: 8px; list-style: none; padding: 0; margin: 10px 0 0; }
.product-thumbnails img { width: 130px; border-radius: 8px; border: 1px solid #e3e6ea; }
.gallery-wrapper .gallery-item a { display: none; }
.btn-verify, .btn-success-disabled { display: inline-block; padding: 6px 12px; border: 1px solid #d7dbe0; border-radius: 8px; background: #fff; color: #444; }
.social-bar { display: flex; gap: 8px; margin-top: 10px; }
.social-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #eef1f4; color: #444; font-weight: 700; font-size: 14px;
}
.social-button:hover { background: #1b7200; color: #fff; text-decoration: none; }

/* Tab Description / Reviews / Comments */
.nav-pills { display: flex; gap: 10px; list-style: none; justify-content: center; padding: 0; margin: 22px 0; }
.nav-pills .nav-link { padding: 9px 22px; border: 1px solid #d7dbe0; border-radius: 999px; color: #333; font-weight: 600; background: #fff; cursor: pointer; }
.nav-pills .nav-link.active { background: #1b7200; border-color: #1b7200; color: #fff; }
.tab-content { min-height: 0; }
.tab-pane { display: none; }
.tab-pane.active.show { display: block; }

/* Kartu deskripsi & artikel */
.card { background: #fff; border: 1px solid #e6e9ed; border-radius: 14px; margin: 14px 0; overflow: hidden; }
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid #edf0f3; text-align: center; background: #fbfcfd; }
.post-block h4 { font-size: 22px; margin-top: 4px; }
.post-block p[style*="justify"] { text-align: justify; color: #333a42; }
.post-image .flexslider { display: none; }
.btn-success { display: inline-block; background: linear-gradient(180deg, #2a8f00, #1b7200); color: #fff !important; padding: 10px 22px; border-radius: 9px; font-weight: 700; border: 0; cursor: pointer; }
.btn-success:hover { filter: brightness(1.08); text-decoration: none; }
.btn-primary { display: inline-block; background: #1b73e8; color: #fff !important; padding: 9px 20px; border-radius: 9px; font-weight: 600; border: 0; cursor: pointer; }
.btn-outline-secondary { display: inline-block; background: #fff; color: #444 !important; padding: 8px 18px; border: 1px solid #ccd2d9; border-radius: 9px; font-weight: 600; cursor: pointer; }
.btn-warning { display: inline-block; background: #ffb400; color: #23272e !important; padding: 9px 18px; border-radius: 9px; font-weight: 700; border: 0; cursor: pointer; }
.btn-sm { font-size: 13.5px; padding: 7px 14px; }
.btn-block { display: block; width: 100%; text-align: center; }
.order-now { text-align: center; }

/* Tag */
.tag {
  display: inline-block; margin: 4px 6px 4px 0; padding: 6px 14px;
  background: #eef4ec; border: 1px solid #d5e4d0; border-radius: 999px;
  color: #1b7200; font-weight: 600; font-size: 13px;
}
.tag:hover { background: #1b7200; color: #fff; text-decoration: none; }

/* Tabel keunggulan */
.wishlist-table { overflow-x: auto; }
.table-hover tr:hover { background: #f7faf6; }
.table td, .table th { padding: 12px 10px; border-bottom: 1px solid #edf0f3; text-align: left; vertical-align: middle; }
.custom-checkbox { display: inline-flex; align-items: center; }
.quick-hide { color: #7d868f; font-size: 13.5px; white-space: nowrap; }

/* ---------- Sidebar ---------- */
.sticky-top { position: static; }
.countdown-sm { text-align: center; }
.product-price { font-size: 34px; margin: 6px 0 12px; }
.product-price .text-success { color: #1b7200; }
.user-info-wrapper { background: #fff; border: 1px solid #e6e9ed; border-radius: 14px; overflow: hidden; margin-top: 14px; }
.user-cover { height: 120px; background-size: cover; background-position: center; position: relative; }
.info-label { position: absolute; right: 10px; bottom: 10px; background: rgba(0, 0, 0, .65); color: #ffd76a; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.user-info { display: flex; align-items: center; gap: 12px; padding: 12px 14px 4px; }
.user-avatar img { width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; margin-top: -34px; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); background: #fff; }
.user-data h4 { margin: 0; font-size: 17px; }
.profile-link a { color: #14181d; font-weight: 800; }
.success-label { display: inline-block; background: #d9f2d0; color: #1b7200; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-right: 6px; }
.user-data span { color: #7d868f; font-size: 13px; }
.text-center .btn { margin: 4px 3px; }
.profile-items { background: #fff; border: 1px solid #e6e9ed; border-radius: 14px; margin-top: 14px; padding: 6px 4px; }
.profile-items td, .profile-items th { border-bottom: 1px solid #edf0f3; padding: 10px 12px; text-align: left; }
.large28pixel { font-size: 24px; }
.border-top-0 { border-top: 0 !important; }
.border-white { border-color: #fff !important; }
.text-danger { color: #d93025; }
.text-info { color: #1b73e8; }

/* Breadcrumb & rating ringkas */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; padding: 0; margin: 18px 0; }
.breadcrumbs .separator::before { content: "\203A"; color: #9aa1a9; }
.smalllighter { color: #555c64; font-size: 14px; }
.inlinechange { display: inline-block; margin: 4px 14px; }

/* ---------- Footer ---------- */
.site-footer { background: #10161d; color: #c3cad2; margin-top: 40px; padding: 44px 0 26px; }
.site-footer .row { margin: 0 -12px; }
.site-footer [class*="col-"] { padding: 0 12px; width: 100%; margin-bottom: 22px; }
@media (min-width: 768px) { .site-footer .col-md-6 { width: 50%; } }
@media (min-width: 992px) { .site-footer .col-lg-3 { width: 25%; margin-bottom: 0; } }
.widget-title { color: #fff; font-size: 17px; letter-spacing: .5px; margin-bottom: 14px; }
.widget-links .unstyled { list-style: none; margin: 0; padding: 0; }
.widget-links li { margin-bottom: 9px; }
.widget-links li a { color: #a9b3bd; }
.widget-links li a:hover { color: #9fd489; text-decoration: none; }
.unstyled .unstyled { margin-top: 9px; padding-left: 10px; }
.navi-link-light { color: #9fd489; }
.site-footer .social-button { background: #1d2630; color: #cfd6dd; margin-right: 6px; }
.site-footer .social-button:hover { background: #1b7200; color: #fff; }
.hr-light { border-top-color: #2a3542; }
.subscribe-form .input-group { display: flex; gap: 8px; max-width: 360px; }
.subscribe-form input { background: #1a232d; border: 1px solid #33404d; color: #e8edf2; }
.subscribe-form .btn-primary { padding: 9px 16px; }
.footer-copyright { text-align: center; color: #8b949e; font-size: 13.5px; margin: 22px 0 0; }

/* ---------- Tombol kembali ke atas ---------- */
.scroll-to-top-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 44px; height: 44px; border-radius: 50%;
  background: #1b7200; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.scroll-to-top-btn:hover { filter: brightness(1.1); text-decoration: none; }

/* ---------- Faq & review (gaya sudah ada di halaman; penyesuaian kecil) ---------- */
.cok-faq { padding: 0 16px; }
@media (max-width: 991.98px) {
  .col-lg-9, .col-lg-3 { width: 100%; }
  .site-menu { display: block; }
  .site-menu .navbar-nav { display: none !important; } /* item nav disembunyikan di mobile (menu toggle tidak tersedia di versi lokal) */
}

/* =========================================================
   PERBAIKAN LAYOUT v2
   ========================================================= */

/* --- Utilitas visibilitas responsif (pengganti Bootstrap) --- */
@media (min-width: 576px)    { .hidden-xs-up { display: none !important; } }
@media (max-width: 575.98px) { .hidden-xs-down { display: none !important; } }
@media (min-width: 768px)    { .hidden-sm-up { display: none !important; } }
@media (max-width: 767.98px) { .hidden-sm-down { display: none !important; } }
@media (min-width: 992px)    { .hidden-md-up { display: none !important; } }
@media (max-width: 991.98px) { .hidden-md-down { display: none !important; } }
@media (min-width: 1200px)   { .hidden-lg-up { display: none !important; } }
@media (max-width: 1199.98px) { .hidden-lg-down { display: none !important; } }

/* --- Nav utama sejajar container & di tengah (sebelumnya menempel tepi kiri) --- */
.site-menu .navbar-nav {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 4px 30px; list-style: none;
  max-width: 1200px; margin: 0 auto; padding: 2px 16px 0;
}
.site-menu .navbar-nav > li > a {
  display: inline-block; padding: 7px 2px;
  color: #23272e; font-weight: 600; font-size: 15px;
}
.site-menu .navbar-nav > li > a:hover { color: #1b7200; text-decoration: none; }

/* --- Galeri: CTA mobile tak mengambil ruang di desktop, banner rapi --- */
.product-gallery .owl-carousel { margin: 0; }
.slide-owl-wrap { line-height: 0; }

/* --- Baris aksi di bawah banner (like/thumbnail/sosial) rata atas --- */
.product-gallery .row { align-items: center; }
@media (max-width: 575.98px) {
  .button-login-daftar a { font-size: 17px; padding: 11px 8px; }
  .modal { padding: 12px 8px; }
  .card-body { padding: 14px; }
  .site-footer [class*="col-"] { width: 100%; }
}
