body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f3f4f6;
  color: #1f2937;
}
header {
  background: #25D366;
  color: white;
  padding: 16px 24px;
  font-size: 20px;
  font-weight: bold;
  position: sticky;
  top: 0;
  z-index: 10;
}
footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 13px;
  color: #6b7280;
}
.banner {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}
.container {
  max-width: 960px;
  margin: 24px auto;
  padding: 0 16px;
}
.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.info {
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.info h3 {
  margin: 0 0 8px 0;
  font-size: 17px;
}
.desc {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 16px;
  flex-grow: 1;
}
.btn {
  background: #25D366;
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  text-decoration: none;
  font-size: 14px;
}
.btn:hover {
  background: #22c55e;
}
.banner-wrapper {
  margin: 24px auto;
  max-width: 960px;
  padding: 0 16px;
}
.price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.price {
  font-weight: bold;
  color: #10b981;
  font-size: 16px;
}
.detail-page {
  margin-top: 24px;
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.product-detail img {
  max-width: 400px;
  border-radius: 8px;
  flex: 1;
}

.detail-info {
  flex: 2;
  min-width: 260px;
}

.detail-info .price {
  color: #10b981;
  font-weight: bold;
  font-size: 20px;
  margin: 8px 0;
}

.detail-info .desc {
  margin-bottom: 16px;
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  color: #555;
  text-decoration: none;
}
.section {
  padding: 32px 16px;
  max-width: 1024px;
  margin: 0 auto;
}

.section-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
}

.kategori-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.kategori-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.kategori-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.terlaris-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.section-divider {
  margin: 48px auto;
  border: none;
  border-top: 1px solid #ddd;
  max-width: 800px;
}
.detail-page {
  margin-top: 24px;
}

.product-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.product-detail img {
  max-width: 400px;
  border-radius: 8px;
  flex: 1;
}

.detail-info {
  flex: 2;
  min-width: 260px;
}

.detail-info .price {
  color: #10b981;
  font-weight: bold;
  font-size: 20px;
  margin: 8px 0;
}

.detail-info .desc {
  margin-bottom: 16px;
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  color: #555;
  text-decoration: none;
}

/* Utility: 2-line clamp without Tailwind plugin */
.line-clamp-2{
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
:root { --header-h: 40px; }              /* mobile */
@media (min-width: 640px) {
  :root { --header-h: 48px; }            /* desktop, sesuaikan tinggi header */
}
body { padding-top: var(--header-h); }
html, body { scroll-padding-top: var(--header-h); }
#banner { margin-top: 0; }

#navToggle:checked ~ #mobileOverlay { display: block; }
#navToggle:checked ~ #mobileMenu   { display: block; }



