/* ================= BODY ================= */
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
}

/* ================= TOPBAR ================= */
.kj-topbar {
  background: #c4161c;
  color: #fff;
  font-size: 12px;
  padding: 4px 0;
  background: linear-gradient(90deg, #e31e24, #c4161c);
}
.kj-topbar a {
  color: #fff;
  text-decoration: none;
}
.kj-topbar i {
  margin-right: 5px;
}

/* ================= MAIN HEADER ================= */
.kj-header-main {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.kj-header-main .container {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ================= FIX LOCATION (INI SAJA YANG DIPERBAIKI) ================= */
.kj-location-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0; /* supaya tidak gepeng */
}

/* desktop biar ada jarak dari logo */
@media (min-width: 1024px) {
  .kj-location-wrapper {
    margin-left: 10px;
  }
}

/* tablet */
@media (min-width: 769px) and (max-width: 1023px) {
  .kj-location-wrapper {
    width: 100%;
  }
  .kj-location {
    width: 100%;
    justify-content: space-between;
  }
}

/* mobile */
@media (max-width: 768px) {
  .kj-location-wrapper {
    width: 100%;
    margin-left: 13px;
    margin-right: 13px;
  }
  .kj-location {
    width: 100%;
    justify-content: space-between;
  }
}

/* ================= CONTAINER ================= */
.kj-header-wrapper .container,
.kj-nav .container {
  max-width: var(--bs-breakpoint-xl);
  width: 100%;
}

header.bg-white {
  border-bottom: 1px solid #eee;
  box-shadow: none !important;
}

header .container {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

/* ================= STICKY ================= */
.kj-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #fff;
}

header.bg-white {
  box-shadow: none !important;
}
.kj-header-wrapper.scrolled {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.kj-nav {
  box-shadow: none !important;
}

/* ================= LOGO ================= */
.kj-logo img {
  height: 50px;
  display: block;
}

/* ================= LOCATION ================= */
.kj-location {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  min-width: 220px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f3f4f6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.kj-location:hover {
  background: #e9ecef;
  box-shadow: none;
}

.loc-label {
  font-size: 10px;
  font-weight: 500;
  color: #8a8f98;
  line-height: 1;
}

.kj-location i:last-child {
  margin-left: auto;
}

/* ================= STORE ================= */
.kj-store-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  width: 280px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  display: none;
  z-index: 2000;
  max-height: 300px;
  overflow-y: auto;
}

.kj-store-dropdown.active {
  display: block;
}

/* ================= SISANYA BIARKAN ================= */
/* (kode kamu setelah ini tetap sama, tidak saya ubah) */

.store-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: 0.2s ease;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

.store-item.move-animate {
  transform: translateY(-10px);
  background: #f9fafc;
}

.store-item.nearest-store {
  border-left: 4px solid #e31e24;
  padding-left: 10px;
}

.store-item:hover {
  background: #f5f5f5;
}

.store-item strong {
  font-size: 14px;
}

.store-item small {
  font-size: 12px;
  color: #888;
}

/* ================= TOKO TERDEKAT DENGAN COSTUMER ================= */
.nearest-suggest {
  margin-top: 6px;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nearest-badge {
  background: #e31e24;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 12px;
  margin-left: 6px;
}

.suggest-left {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
}

.store-name {
  font-weight: 600;
  color: #111;
}

.store-distance {
  font-size: 12px;
  color: #777;
}

.nearest-suggest button {
  background: #e31e24;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.nearest-suggest button:hover {
  opacity: 0.9;
}

/* ================= SEARCH BAR ================= */
.search-wrapper {
  height: 45px;
  border-radius: 50px;
  background: #fff;
  box-shadow: none;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.search-wrapper:hover {
  box-shadow: none;
}
.search-wrapper input {
  background: transparent !important;
}

.search-wrapper:focus-within {
  border-color: #e31e24;
}

.search-wrapper input.form-control {
  height: 45px !important;
  font-size: 14px !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}
.search-wrapper input.form-control:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.btn-search {
  height: 45px !important;
  width: 45px;
  border-radius: 999px;
  background: #e31e24;
  border: none !important;
}

.btn-search:hover {
  transform: none;
  box-shadow: none;
}

/* ================= ACTION BUTTONS ================= */
.kj-actions .btn-light {
  border: 1px solid #e31e24;
  color: #e31e24;
  background: #fff;
}

.kj-actions .btn-danger {
  background: #e31e24;
  border: none;
}

/* ================= HEADER CART ================= */

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* ================= CART BLOCK ================= */

.kj-cart-header {
  cursor: pointer;
  color: #000;
  margin-left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-left: 22px;
  border-left: 1px solid #e6e6e6;
  cursor: pointer;
  position: relative;
  transition: 0.25s ease;
}

.kj-cart-header:hover {
  background: #f7f7f7;
  border-radius: 10px;
  padding: 8px 14px 8px 22px;
}

.kj-cart-header .cart-count {
  font-size: 12px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  top: -5px;
  right: -5px;
  border: 1px solid #fff;
}

/* ICON */
.kj-cart-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-icon {
  width: 24px;
  height: 24px;
  color: #111;
}

.cart-icon-circle {
  width: 40px;
  height: 40px;
  background-color: #e31e24; /* Ubah ke Biru jika ingin matching sidebar */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* BADGE */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e31e24;
  color: #fff;
  font-size: 11px;
  padding: 3px 6px;
  border-radius: 50px;
  font-weight: 600;
}

/* TEXT */
.kj-cart-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cart-label {
  font-size: 12px;
  color: #888;
}

.cart-total {
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

/* ================= DROPDOWN ================= */
/* ================= OVERLAY ================= */

.kj-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 1040;
}

/* ================= SIDEBAR ================= */
/* ================= RE-DESIGN SIDEBAR (MITRA10 STYLE) ================= */

.kj-cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  height: 100%;
  background: #f4f4f4; /* Background body abu muda */
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
}

.kj-cart-sidebar.active {
  right: 0;
}

/* Header Biru Mitra10 */
.cart-sidebar-header {
  background: #3b3e9a; /* Warna Biru Utama */
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cart-sidebar-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* List Barang (Scrollable) */
.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

/* Card Produk di dalam Cart */
.cart-item-row {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  display: flex;
  gap: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid #eee;
}

.cart-item-img-wrapper {
  width: 85px;
  height: 85px;
  flex-shrink: 0;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  padding: 5px;
}

.cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  line-height: 1.4;
  margin-bottom: 5px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: #e31e24; /* Merah untuk harga */
}

/* Actions: QTY & Delete */
.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qty-control-box {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  height: 32px;
}

.qty-control-box button {
  background: #fff;
  border: none;
  width: 30px;
  height: 100%;
  color: #3b3e9a;
  transition: 0.2s;
}

.qty-control-box button:hover {
  background: #f0f0f0;
}

.qty-number {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  min-width: 35px;
  text-align: center;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

.btn-delete-item {
  background: none;
  border: none;
  color: #bbb;
  font-size: 16px;
  transition: 0.2s;
}

.btn-delete-item:hover {
  color: #e31e24;
}

/* Footer Fixed */
.cart-sidebar-footer {
  padding: 20px;
  background: #fff;
  border-top: 2px solid #eee;
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.05);
}

.subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.subtotal span {
  font-weight: 500;
  color: #666;
}
.subtotal strong {
  font-size: 1.2rem;
  color: #3b3e9a;
}

.checkout-btn {
  width: 100%;
  padding: 15px;
  background: #3b3e9a;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  transition: 0.3s;
}

.checkout-btn:hover {
  background: #2e3182;
  transform: translateY(-2px);
}

/* HEADER */
.cart-sidebar-header {
  background: #e31e24;
  color: #fff;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-sidebar-header h3 {
  margin: 0;
  font-size: 16px;
}

.cart-close {
  cursor: pointer;
  position: relative;
  z-index: 2110;
  padding: 5px 10px;
  background: transparent; /* Ubah ke transparent jika header sidebar sudah putih */
  border-radius: 4px;

  /* GANTI DI SINI */
  color: #e31e24 !important; /* Warna merah utama e-commerce kamu */

  font-size: 14px;
  font-weight: bold; /* Tambahkan ini agar teks "Close" lebih tegas */
  transition: 0.2s;
  border: none; /* Hilangkan border default button */
}

.cart-close:hover {
  color: #b31217 !important; /* Merah agak gelap saat disentuh mouse */
  background: rgba(
    227,
    30,
    36,
    0.05
  ); /* Efek merah tipis di background saat hover */
  text-decoration: none;
}

/* BODY */
.cart-sidebar-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-product {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.cart-product img {
  width: 70px;
  height: 70px;
  object-fit: cover;
}

.cart-product-info h4 {
  font-size: 14px;
  margin: 0 0 5px;
}

.cart-product-info p {
  font-size: 13px;
  margin: 0 0 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
}

/* FOOTER */
.cart-sidebar-footer {
  padding: 20px;
  border-top: 1px solid #eee;
}

.subtotal {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: #e31e24;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

/* ================= NAVBAR ================= */
.kj-nav {
  background: #f5f6f8;
  box-shadow: none;
  padding: 0.25rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
.kj-nav a {
  text-decoration: none;
  color: #111;
  font-weight: 500;
  margin-right: 1rem;
  transition: color 0.2s ease;
  font-size: 14px;
}
.kj-nav a:hover {
  color: #e31e24;
}

.search-wrapper:focus-within {
  border-color: #e31e24;
}

.kj-categories {
  position: relative;
}

/* ================= Mega menu ================= */
.kj-categories {
  position: relative;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 1100px;
  background: #fff;
  border: 1px solid #eee;
  display: none;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.kj-categories:hover .mega-menu {
  display: flex;
}

/* LEFT */

.mega-left {
  width: 230px;
  border-right: 1px solid #eee;
  padding: 10px 0;
}

.mega-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
}

.mega-cat:hover {
  background: #f6f6f6;
}

/* RIGHT */

.mega-right {
  flex: 1;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.mega-col {
  display: none;
}

.mega-col.active {
  display: block;
}

.mega-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.mega-col a {
  display: block;
  font-size: 13px;
  color: #444;
  margin-bottom: 6px;
  text-decoration: none;
}

/* BANNER */

.mega-banner {
  width: 250px;
  border-left: 1px solid #eee;
}

.mega-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ================= FIX 1024+ DESKTOP ================= */
@media (min-width: 1024px) {
  header .container {
    flex-wrap: nowrap !important; /* jangan boleh turun */
    align-items: center;
  }

  /* Batasi search supaya ga makan tempat */
  header form {
    flex: 1;
    max-width: 520px;
  }

  .search-wrapper {
    width: 100%;
  }

  /* Supaya actions tetap kanan */
  .kj-actions {
    flex-shrink: 0;
    margin-left: auto;
    gap: 12px;
  }

  /* Logo jangan kegedean */
  .kj-logo img {
    height: 42px;
  }
}

/* ================= DESKTOP CART ================= */
/* Asumsikan cart di header punya kelas .kj-cart-mobile */
.kj-cart-mobile {
  display: flex; /* tampil di desktop default */
  align-items: center;
  justify-content: center;
}
/* ================= DESKTOP DEFAULT ================= */

/* Bottom nav default hidden */
.kj-mobile-nav {
  display: none;
}

/* default desktop */
.kj-login-mobile {
  display: none;
}

/* ================= MOBILE RESPONSIVE ================= */
@media (min-width: 769px) and (max-width: 1023px) {
  /* Wrap header jadi 2 baris */
  header .container {
    flex-wrap: wrap;
    gap: 12px; /* atur jaraknya di sini */
  }

  /* ================= ROW 1 ================= */
  .kj-logo {
    order: 1;
    flex: 0 0 auto;
  }

  .kj-logo img {
    height: 38px;
  }

  .search-wrapper {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px; /* jarak input & tombol */
    width: 100%;
    gap: 4px;
  }

  .search-wrapper input[type="text"] {
    flex: 1; /* input full sisa wrapper */
    height: 36px; /* sama tinggi tombol */
    padding: 0 1px;
    font-size: 14px;
    border-radius: 18px; /* setengah tinggi, biar rounded */
    border: 1px solid #ccc;
    outline: none;
  }

  .search-wrapper .form-control {
    font-size: 12px;
  }

  .search-wrapper .btn-search {
    padding: 0 12px;
  }
  .btn-search {
    width: 36px !important; /* fix size */
    height: 36px !important;
    padding: 0 !important; /* override px-4 */
    font-size: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e31e24; /* warna merah seperti Mitra10 */
    color: #fff;
    border: none;
    cursor: pointer;
  }
  .btn-search:hover {
    background-color: #c41c1f;
  }
  .btn-search i {
    font-size: 16px; /* icon proporsional */
  }

  .kj-desktop-auth {
    display: none;
  }

  .kj-login-mobile {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #eee;
    font-size: 16px;
    color: #e31e24;
    flex-shrink: 0;
  }

  form.flex-grow-1 {
    order: 2;
    flex: 1;
    margin: 0 8px;
  }

  .kj-actions {
    order: 3;
    flex: 0 0 auto;
  }

  .kj-cart-header {
    display: none !important;
  }

  /* Hide login & daftar button */
  .kj-actions .btn {
    display: none;
  }

  /* ================= ROW 2 ================= */
  .kj-location-wrapper {
    order: 4;
    flex: 1 1 100%;
    margin-top: 8px;
  }

  /* Hide navbar desktop */
  .kj-nav {
    display: none !important;
  }

  /* Optional: hide topbar biar clean */
  .kj-topbar {
    display: none !important;
  }

  /* Show mobile bottom nav */
  .kj-mobile-nav {
    display: flex;
  }

  /* Prevent content ketutup bottom nav */
  body {
    padding-bottom: 75px;
  }
}

/* ================= MOBILE BOTTOM NAV CLEAN ================= */

.kj-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: #e31e24;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.15);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* TRIK CEKUNGAN */
.kj-mobile-nav::before {
  content: "";
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 80px;
  background: #e31e24;
  border-radius: 50%;
  z-index: 1;
}

/* item biasa */
.kj-mobile-nav a {
  flex: 1;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.kj-mobile-nav a i {
  font-size: 18px;
  margin-bottom: 4px;
}

/* CART FLOATING */
.kj-cart-mobile {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: -32px;

  width: 65px;
  height: 65px;
  background: #fff;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  color: #e31e24 !important;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
/* badge */
.cart-badge {
  position: absolute;
  top: 6px;
  right: 14px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  padding: 3px 6px;
  border-radius: 20px;
}

/* supaya konten tidak ketutup nav */
@media (max-width: 991px) {
  body {
    padding-bottom: 70px;
  }
}

/* ================= MOBILE (≤768px) ================= */
@media (max-width: 768px) {
  /* Wrap header jadi 2 baris */
  header .container {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* ================= ROW 1 ================= */

  .kj-logo {
    order: 1;
    flex: 0 0 auto;
    margin-left: 13px;
  }

  .kj-logo img {
    height: 27px;
  }
  form.flex-grow-1 {
    order: 2;
    flex: 1 1 auto; /* ambil space secukupnya */
    margin: 0 4px; /* rapat ke logo & tombol */
    min-width: 0;
  }

  .search-wrapper {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px; /* jarak input & tombol */
    width: 100%;
    gap: 4px;
  }

  .search-wrapper input[type="text"] {
    flex: 1; /* input full sisa wrapper */
    height: 36px; /* sama tinggi tombol */
    padding: 0 1px;
    font-size: 14px;
    border-radius: 18px; /* setengah tinggi, biar rounded */
    border: 1px solid #ccc;
    outline: none;
  }

  .search-wrapper .form-control {
    font-size: 12px;
  }

  .search-wrapper .btn-search {
    padding: 0 12px;
  }
  .btn-search {
    width: 36px !important; /* fix size */
    height: 36px !important;
    padding: 0 !important; /* override px-4 */
    font-size: 14px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e31e24; /* warna merah seperti Mitra10 */
    color: #fff;
    border: none;
    cursor: pointer;
  }
  .btn-search:hover {
    background-color: #c41c1f;
  }
  .btn-search i {
    font-size: 16px; /* icon proporsional */
  }

  .search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }

  .suggest-item {
    padding: 10px;
    cursor: pointer;
  }

  .suggest-item:hover {
    background: #f5f5f5;
  }

  .kj-desktop-auth {
    display: none;
  }

  .kj-login-mobile {
    display: flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    border: 1px solid #eee;
    font-size: 16px;
    color: #e31e24;
    flex-shrink: 0;
  }

  form.flex-grow-1 {
    order: 2;
    flex: 1;
    margin: 0 8px;
  }
  .kj-cart-header {
    display: none !important;
  }

  .cart-badge {
    top: 4px;
    right: 6px;
    font-size: 9px;
    padding: 2px 5px;
  }

  .kj-actions {
    order: 3;
    flex: 0 0 auto;
  }

  /* Hide login & daftar button */
  .kj-actions .btn {
    display: none;
  }

  /* ================= ROW 2 ================= */

  .kj-location-wrapper {
    order: 4;
    flex: 1 1 100%;
    margin-top: 6px;
  }

  .kj-location {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Hide navbar desktop */
  .kj-nav,
  .kj-topbar {
    display: none !important;
  }

  /* Show mobile bottom nav */
  .kj-mobile-nav {
    display: flex;
  }

  /* Prevent content ketutup bottom nav */
  body {
    padding-bottom: 70px;
  }
}

/* ================= CHAT WIDGET ================= */
.chat-fullscreen {
  display: none; /* default hidden */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 9999;
  flex-direction: column;
}

.chat-fullscreen.active {
  display: flex;
}

.chat-header {
  padding: 12px;
  background: #e31e24;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header .chat-back {
  cursor: pointer;
}

.chat-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 80%;
}

.message.cs {
  background: #f0f0f0;
  align-self: flex-start;
}
.message.user {
  background: #e31e24;
  color: #fff;
  align-self: flex-end;
}

.chat-footer {
  display: flex;
  padding: 8px;
  border-top: 1px solid #eee;
  gap: 6px;
}

.chat-footer input {
  flex: 1;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  min-width: 0;
}

.chat-footer .send-btn {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: #e31e24;
  color: #fff;
  border: none;
  cursor: pointer;
}

.chat-fullscreen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  background: #fff;
  z-index: 9999;
}

.chat-fullscreen.active {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #e31e24;
  color: #fff;
  font-weight: 600;
}

.chat-back {
  cursor: pointer; /* pastikan bisa diklik */
  font-size: 20px;
  user-select: none;
}
