/* ================= VARIABEL ================= */
:root {
  --orange: #ee4d2d;
  --border: #ddd;
  --bg: #f7f7f7;
  --text: #333;
  --nav-h: 30px;
}

/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none !important;
  color: inherit;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);

  /* 🔒 BODY TIDAK SCROLL */
  height: 100vh;
  overflow: hidden;
}

img {
  width: 100%;
  display: block;
}

/* ================= HEADER (DIAM TOTAL) ================= */
header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* ================= SOCIAL FIXED ================= */
.social-icon {
  position: fixed;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
}

.social-icon a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-icon a.youtube {
  background: var(--orange);
}

.social-icon svg {
  width: 15px;
  height: 15px;
  color: #fff;
}

/* ================= NAV ================= */
.nav-row {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 6px;
}

.nav {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.nav button {
  height: var(--nav-h);
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
}

.nav button.active {
  background: var(--orange);
  color: #fff;
}

.nav input {
  grid-column: 1 / -1;
  height: var(--nav-h);
  padding: 0 10px;
  font-size: 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-top: 6px;
}

/* ================= CONTAINER (INI YANG SCROLL) ================= */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 16px;

  /* 🔥 HANYA PRODUK YANG SCROLL */
  height: calc(100vh - 260px); 
  overflow-y: auto;
}

/* ================= GRID ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ================= CARD ================= */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.card-body {
  padding: 10px;
}

.card-title {
  font-size: 14px;
  font-weight: bold;
  line-height: 1.2em;
  height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  color: var(--orange);
  font-weight: bold;
  margin-bottom: 8px;
}

.btn {
  display: block;
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
}

/* ================= PAGINATION ================= */
.pagination {
  margin-top: 24px;
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .container {
    height: calc(100vh - 230px);
  }
}
