:root {
  --gold: #bfa046;
  --dark: #1f1f1f;
  --soft: #f4f6f9;
}

/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: var(--soft);
  color: #333;
}

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* ================= HEADER PROFESIONAL FIX ALL DEVICE ================= */

/* ================= HEADER ANTAM PROFESIONAL ================= */

.main-header {
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

.header-wrap {
  display: grid;
  grid-template-columns: 110px 1fr 50px;
  align-items: center;
  gap: 12px;
}

/* LOGO */
.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 1px;
}

/* SEARCH */
.search-box input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
  background: #f9f9f9;
}

/* CART ICON */
.header-actions {
  display: flex;
  justify-content: flex-end;
}

.cart-icon {
  font-size: 22px;
  cursor: pointer;
  transition: 0.2s;
}

.cart-icon:hover {
  transform: scale(1.1);
}


/* ================= TITLE ================= */

.section-title {
  margin: 25px 0 5px;
  font-size: 20px;
}

.trust-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* ================= GRID PRODUK ================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

/* ================= CARD PRODUK ================= */

.card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  text-align: center;
  transition: 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-4px);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 14px;
  margin: 6px 0;
  min-height: 36px;
}

.price {
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 8px;
}

/* ================= TOMBOL PRODUK ================= */

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  padding: 10px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.add-cart {
  background: #eee;
}

.buy-now {
  background: var(--gold);
  color: white;
}

/* ================= MODAL ================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
}

.modal-content img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ================= RESPONSIVE HP ================= */

@media (max-width: 768px) {

  .header-wrap {
    flex-direction: column;
    gap: 12px;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  /* Paksa 2 kolom di HP */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card img {
    height: 120px;
  }

  .card h3 {
    font-size: 13px;
  }

  .price {
    font-size: 13px;
  }

  .btn {
    font-size: 12px;
    padding: 8px;
  }
}


/* bar bawah navigasi tombol*/

/* ================= BOTTOM NAVIGATION ================= */

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid #ddd;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  text-align: center;
  z-index: 2000;
}

.nav-item {
  text-decoration: none;
  color: #666;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.nav-item div {
  font-size: 18px;
}

.nav-item.active {
  color: var(--gold);
  font-weight: 600;
}

/* Biar konten tidak ketutup navbar */
body {
  padding-bottom: 70px;
}
