  /* ===============================
   BASE & TOKENS
==================================*/
:root{
  --nps-bg: rgba(0,0,0,.46);
  --nps-bg-strong: rgba(0,0,0,.65);
  --nps-text: #ffffff;
  --nps-accent: #D9A514;         /* kuning */
  --nps-shadow: 0 8px 22px rgba(0,0,0,.40);
  --nps-radius: 12px;
  --nps-gap: 24px;
}

body {
  font-family: 'Poppins', sans-serif;
}

/* Navbar Font & Fix (Desktop & Tablet) */
.navbar .nav-link {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;       /* lebih besar di layar besar */
  font-weight: 500;
  white-space: nowrap;     /* cegah teks patah ke bawah */
  line-height: 1.2;
  padding: 0.5rem 0.75rem;
}

/* Responsif untuk layar kecil (mobile) */
@media (max-width: 768px) {
  .navbar .nav-link {
    font-size: 0.95rem;    /* agak kecil di HP */
    padding: 0.4rem 0.6rem;
  }
}

*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ margin:0; padding:0; }

/* ===============================
   HERO
==================================*/
.hero-bg{
  position: relative;
  min-height: 100vh;
  color: var(--nps-text);
  background: url('img/bg1.jpg') center/cover no-repeat;
}

.hero-content{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  min-height: 60vh;
  padding: 40px 16px;
}

/* ===============================
   NAVBAR WRAPPER (sticky)
==================================*/
.sticky-top-20{ position: sticky; top:0; z-index:1030; }
.nps-nav{
  background:rgba(0,0,0,.46);
  /* ... */
  border-radius:12px;
  margin:0 16px 0;      /* hilangkan margin atas */
  box-shadow:0 8px 22px rgba(0,0,0,.4);
  padding:14px 0 10px;
  overflow:visible;
}


/* (opsional) state lebih solid saat scroll
.nps-nav.is-shrink{
  background: var(--nps-bg-strong);
  padding-top: 10px;
  padding-bottom: 8px;
}
*/

/* ===============================
   GRID: logo | . | tools
         menu (baris bawah)
==================================*/
.nps-grid{
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "logo . tools"
    "menu menu menu";
  column-gap: var(--nps-gap);
  row-gap: 12px;
  align-items: start;
}

.nps-logo-wrap{ grid-area: logo; display: block; }
.nps-menu-wrap{ grid-area: menu; display: flex; justify-content: center; }
.nps-tools{ grid-area: tools; display: flex; flex-direction: column; align-items: end; gap: 10px; }

/* ===============================
   LOGO
==================================*/
.nps-logo{
  display: block;
  height: 88px;
}

/* ===============================
   MENU
==================================*/
.nps-menu{
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 34px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nps-menu .nav-link{
  color: var(--nps-text);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  transition: color .2s ease, background-color .2s ease, transform .08s ease;
}
/* Setiap .nav-link yang *setelah* link lain akan punya margin-left 32px */
.nps-menu{ display:flex; gap:32px; }

.nps-menu .nav-link:hover{ color: var(--nps-accent); }
.nps-menu .nav-link:active{ transform: translateY(1px); }
.nps-menu .nav-link.active{
  background: var(--nps-accent);
  color: #000 !important;
}

/* Pastikan horizontal di layar besar (Bootstrap) */
@media (min-width: 992px){
  .navbar .navbar-nav{ flex-direction: row !important; }
}

/* ===============================
   SEARCH (tools kanan)
==================================*/
.nps-tools .input-group,
.nps-tools .form-control{ max-width: 360px; }

.nps-search .form-control{ border-radius: 999px; }
.nps-search .input-group-text{ border-radius: 999px 0 0 999px; }

/* ===============================
   RESPONSIVE
==================================*/
@media (max-width: 991.98px){
  .nps-grid{
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "tools"
      "menu";
    row-gap: 12px;
  }
  .nps-tools{ align-items: stretch; }
  .nps-logo{ height: 60px; }
  .nps-menu{ flex-wrap: wrap; gap: 14px; }
}

@media (min-width: 992px){
  .nps-menu-wrap{ width:100%; }
  .nps-menu{ padding-right: var(--tools-pad, 0px); }
}



/* Tab kategori produk */
#produkTab .nav-link {
  background-color: #E8D39A;   /* kuning muda default */
  color: #000 !important;      /* teks hitam */
  font-weight: 600;
  border-radius: 20px;
  padding: 6px 18px;
}

#produkTab .nav-link.active {
  background-color: #BE8E27 !important; /* kuning keemasan gelap */
  color: #fff !important;               /* teks putih */
}

#produkTab .nav-link:hover {
  background-color: #C9A227 !important; /* hover kuning lebih terang */
  color: #fff !important;
}

.product-img {
  max-height: 200px;   /* lebih besar di desktop */
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .product-img { max-height: 150px; }
}

@media (max-width: 576px) {
  .product-img { max-height: 120px; }
}

/*whatsapp*/
.whatsapp-float {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
.whatsapp-float img {
  width: 100%;
  height: auto;
}