:root {
  --brand: #2A7E84; /* hijau terang */
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: var(--brand);
}

/* Navbar */
.navbar {
  background-color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
  font-weight: 700;
  color: var(--brand) !important;
}

.navbar-nav .nav-link {
  color: var(--brand) !important;
  font-weight: 500;
}

.navbar-nav .nav-link.active {
  color: var(--brand);
  border-bottom: 2px solid var(--brand);
}

/* Header */
.page-header {
  text-align: center;
  padding: 90px 20px 50px;
}

.page-header h1 {
  font-weight: 600;
  font-size: 32px;
  color: var(--brand);
}

.page-header p {
  color: #555;
  font-size: 16px;
}

/* Produk */
.product-card {
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
  background: #fff;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 14px;
  text-align: center;
  flex-grow: 1;
}

.product-info h5 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--brand);
}

.price {
  color: #444;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
}

.btn-affiliate {
  background-color: var(--brand);
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-affiliate:hover {
  background-color: #20686D;
}

.container-products {
  max-width: 1300px;
  margin: auto;
  padding: 0 30px;
}

/* Footer */
footer {
  background: #f8f8f8;
  color: var(--brand);
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
  font-size: 14px;
}
.container-products {
  max-width: 1000px;       /* batasi area produk agar di tengah */
  margin: 0 auto;
  padding: 0 20px;
}

.row.g-4 {
  justify-content: center; /* posisikan kartu produk di tengah baris */
}

/* Atur kolom produk */
.col-6.col-sm-4.col-md-3 {
  flex: 0 0 25%;           /* 4 kolom pas di layar besar */
  max-width: 25%;
}

@media (max-width: 991px) {
  .col-6.col-sm-4.col-md-3 {
    flex: 0 0 33.333%;
    max-width: 33.333%;    /* 3 kolom di tablet */
  }
}

@media (max-width: 767px) {
  .col-6.col-sm-4.col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;        /* 2 kolom di HP */
  }
}
/* Pewarisan gaya global */
body {
  font-family: 'Poppins', sans-serif;
  color: #1E5E63;
  background-color: #ffffff;
}

/* Header konsisten */
.page-header {
  background: linear-gradient(to bottom, #ffffff, #f8f8f8);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Tombol “Lihat Produk” versi hijau terang */
.btn-affiliate {
  background-color: #2A7E84;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: 0.3s;
}

.btn-affiliate:hover {
  background-color: #1E5E63;
}

/* Produk sejajar rapi 4 kolom tengah */
.container-products {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.row.g-4 {
  justify-content: center;
}

.product-card {
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  background: #fff;
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 15px;
  text-align: center;
}
h1, h2, h3, .fw-semibold {
  font-weight: 600;
}

.navbar-brand, .navbar-nav .nav-link {
  font-weight: 500;
}

p, li, a {
  font-weight: 400;
}
/* ===== FONT KHUSUS UNTUK MENU NAVBAR ===== */
.navbar-nav .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #1E5E63 !important;
  transition: 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #2A7E84 !important; /* warna saat hover & aktif */
  text-decoration: none;
}
.product-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Posisi kode tiga angka */
.product-code {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background: rgba(255,255,255,0.8);
  color: #333;
  font-weight: bold;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
