  /* GLOBAL APP STYLES - TEMA BIRU */
  :root {
    --app-blue: #0d6efd;      /* Biru Utama */
    --app-blue-dark: #0a58ca; /* Biru Gelap (Hover) */
    --app-bg: #f5f6f8;
    --text-dark: #212529;
    --text-muted: #6c757d;
  }

  body.app-body {
    font-family: 'Inter', sans-serif;
    background-color: var(--app-bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
  }

  .scroll-hide::-webkit-scrollbar { display: none; }
  .scroll-hide { -ms-overflow-style: none; scrollbar-width: none; }

  /* HEADER */
  .app-header {
    height: 60px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    z-index: 1020;
  }
  .app-header input:focus {
    box-shadow: none;
    border: 1px solid var(--app-blue) !important;
  }

  /* HOME BANNER & CIRCLES */
  .banner-box {
    border-radius: 12px;
    height: 120px;
    position: relative;
    overflow: hidden;
  }
  .banner-blue {
    background: linear-gradient(135deg, #1976D2, #0d47a1);
  }
  .banner-indigo {
    background: linear-gradient(135deg, #6610f2, #4c0bce);
  }

  /* --- ANIMASI SLIDER --- */
  .banner-slider {
    transition: transform 0.5s ease-in-out; /* Animasi geser halus */
  }
  .banner-slide {
    height: 120px; /* Samakan dengan tinggi banner */
  }
  
  /* --- TITIK DOTS --- */
  .dot { 
    width: 6px; height: 6px; background-color: #ccc; border-radius: 50%; 
    transition: all 0.3s ease; cursor: pointer;
  }
  .dot.active { background-color: var(--app-blue); width: 12px; border-radius: 10px; }

  /* --- IKON KATEGORI --- */
  .category-item {
    cursor: pointer;
    width: 80px;
  }
  .cat-circle {
    width: 65px; height: 65px;
    background-color: var(--app-blue);
    color: white;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 8px auto;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3); /* Shadow kebiruan */
  }
  .cat-title { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

  /* SEARCH FILTERS */
  .select-app {
    font-size: 0.8rem;
    padding: 4px 24px 4px 10px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    background-color: #f8f9fa;
  }

  /* PRODUCT CARD */
  .product-card {
    cursor: pointer;
    transition: transform 0.1s;
  }
  .product-card:active {
    transform: scale(0.98);
  }
  .text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* --- EFEK BUBBLE AKTIF YANG RAPI & MULUS --- */
  .nav-item.active {
      color: var(--app-blue) !important;
  }

  /* Membuat kotak kapsul/bubble kecil yang pas di belakang menu aktif */
  .nav-item.active::before {
      content: '';
      position: absolute;
      width: 52px;
      height: 42px;
      background-color: rgba(13, 110, 253, 0.12);
      border-radius: 16px;
      z-index: -1;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  .nav-item.active i {
      transform: translateY(-2px) scale(1.15); /* Ikon sedikit melompat & membesar */
      color: var(--app-blue) !important;
  }

  .nav-item.active span {
      color: var(--app-blue) !important;
      font-weight: 700;
  }

  /* FLOATING SCROLL BUTTON */
  .floating-btn {
    position: fixed;
    bottom: 80px;
    right: 20px;
    background-color: var(--app-blue);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1010;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
  }

  /* CUSTOM TOAST NOTIFICATION */
  #toastMessage {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 110, 253, 0.95); /* Toast disesuaikan kebiruan sedikit */
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    white-space: nowrap;
  }
  #toastMessage.show { opacity: 1; }

/* =========================================
   PERBAIKAN MUTLAK GAMBAR PRODUK (TIDAK GEPENG)
========================================= */
.latest-products-container .card img,
.product-card img {
  width: 100% !important;
  height: 110px !important;      /* Kunci tinggi gambar khusus HP */
  object-fit: contain !important; /* Menjaga rasio asli gambar tanpa merusak bentuk */
  object-position: center;
  background-color: #ffffff;    /* Mencegah distorsi latar transparan */
}

/* Penyesuaian khusus untuk Laptop/Desktop */
@media (min-width: 768px) {
  .latest-products-container .card img,
  .product-card img {
    height: 140px !important;    /* Tinggi lebih lega di layar besar */
  }
}

  /* --- TATA LETAK GRID HASIL PENCARIAN RESPONSIF --- */
.product-grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 Kolom pas untuk HP */
  gap: 10px;
}

@media (min-width: 768px) {
  .product-grid-layout {
    grid-template-columns: repeat(4, 1fr); /* 4 Kolom di Tablet */
    gap: 15px;
  }
}

@media (min-width: 1200px) {
  .product-grid-layout {
    grid-template-columns: repeat(5, 1fr); /* 5 Kolom lega di Laptop/Desktop */
    gap: 16px;
  }
}

/* =========================================
   TATA LETAK BANNER PROMO (RESPONSIF)
========================================= */

.banner-slide {
  width: 100% !important;
  aspect-ratio: 3 / 1;
  height: auto !important;
  overflow: hidden;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center; /* Memastikan titik fokus gambar tetap di tengah */
}

/* Khusus Laptop/Desktop: Full Lebar tapi Tinggi Terkunci */
@media (min-width: 768px) {
  /* 1. Kembalikan bungkusnya menjadi full lebar (menghapus batas 800px) */
  #homeView > div.p-3.pb-2 {
    max-width: 100% !important; 
  }
  
  /* 2. Kunci tinggi maksimal banner agar tidak menjadi raksasa ke bawah */
  .banner-slide {
    aspect-ratio: auto !important; /* Matikan rasio 3:1 */
    height: 380px !important; /* Anda bisa ubah angka ini (misal 350px atau 400px) sesuai selera */
    border-radius: 12px; /* Opsional: Memberi efek sedikit melengkung di ujung banner */
  }
}

/* =========================================
   BANNER TEKS "RIMBERIO STYLE" (TEMA BIRU)
========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,900;1,900&family=Poppins:ital,wght@0,600;1,600&display=swap');

.premium-banner {
  /* Background Gradasi Biru */
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  border-radius: 12px;
  padding: 12px 15px; /* Padding atas-bawah dikurangi agar lebih tipis */
  box-shadow: 0 6px 15px rgba(37, 99, 235, 0.35); /* Bayangan biru */
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden; 
  border: 2px solid #93c5fd; /* Garis tepi biru muda */
}

/* Efek Garis-garis Diagonal (Watermark) di Latar Belakang */
.premium-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 15px,
    rgba(255, 255, 255, 0.08) 15px,
    rgba(255, 255, 255, 0.08) 30px
  );
  z-index: 1;
  pointer-events: none;
}

.premium-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-style: italic; /* Dimiringkan ala Rimberio */
  font-size: 1.6rem; /* Ukuran disesuaikan agar proporsional di banner yang lebih ringkas */
  color: #FFFFFF;
  text-shadow: 2px 2px 0px #1e1b4b; /* Efek bayangan blok tebal */
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 2; 
  transform: skewX(-5deg); /* Efek condong/cepat */
}

.premium-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 0.8rem;
  color: #ffffff; /* Warna teks putih */
  letter-spacing: 2px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.25); /* Label gelap transparan di belakang teks */
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  transform: skewX(-5deg);
}

/* ========================================================
     BOTTOM NAVIGATION (LEBAR KANAN KIRI PAS & PRESISI)
     ======================================================== */
  .app-bottom-nav {
      position: fixed !important;
      bottom: 6px !important;/* <--- BATAS LAYAR BAWAH */
      left: 50% !important;
      transform: translateX(-50%) !important;
      width: 94% !important;
      max-width: 440px !important; /* DIPERLEBAR: Agar muat dengan nyaman dan rapi di HP */
      height: 70px;
      z-index: 1030;
      display: flex !important;
      justify-content: space-around !important;
      align-items: center !important;
      background-color: #ffffff;
      padding: 0 12px; /* Menambahkan jarak aman kanan-kiri di dalam bilah */
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12) !important;
      border-radius: 32px !important;
      border: 1px solid rgba(0, 0, 0, 0.04);
      overflow: visible !important; /* WAJIB: Agar kotak yang menonjol keluar tidak terpotong */
  }

  .nav-item {
      flex: 1;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      cursor: pointer;
      height: 100%;
      text-decoration: none;
      background: transparent;
      border: none;
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  /* Efek saat ditekan */
  .nav-item:active {
      transform: scale(0.9);
  }

  .nav-item i {
      font-size: 1.2rem;
      margin-bottom: 2px;
      z-index: 2;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Sembunyikan teks untuk menu yang sedang aktif */
  .nav-item.active span {
      display: none !important; 
  }

  .nav-item span {
      font-size: 0.6rem;
      font-weight: 500;
      z-index: 2;
      transition: color 0.3s ease;
  }

  /* ========================================================
     EFEK KOTAK MENONJOL KELUAR UNTUK MENU AKTIF
     ======================================================== */
  .nav-item.active {
      color: #ffffff !important;
  }

  .nav-item.active::before {
      content: '';
      position: absolute;
      top: -18px; 
      left: 50%;
      transform: translateX(-50%);
      width: 52px;
      height: 52px;
      background-color: var(--app-blue);
      border-radius: 18px;
      z-index: 1;
      box-shadow: 0 8px 20px rgba(13, 110, 253, 0.35);
      transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  .nav-item.active i {
      transform: translateY(-18px) scale(1.25);
      color: #ffffff !important;
  }

  /* ========================================================
     KHUSUS LAYAR LAPTOP / DESKTOP (BENTANG PENUH)
     ======================================================== */
  @media (min-width: 768px) {
      .app-bottom-nav {
          width: 100% !important;
          max-width: 100% !important;
          left: 0 !important;
          transform: none !important;
          bottom: 0 !important;
          height: 75px !important;
          padding: 0 40px !important;
          box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08) !important;
          border-radius: 0 !important;
          border-top: 1px solid #eaeaea;
          overflow: visible !important;
      }

      .nav-item.active::before {
          top: -22px;
          width: 62px;
          height: 62px;
          border-radius: 20px;
      }

      .nav-item.active i {
          transform: translateY(-22px) scale(1.35);
      }

      .nav-item i {
          font-size: 1.35rem !important; 
      }

      .nav-item span {
          font-size: 0.7rem !important;  
      }
  }
