:root {
  --bg-main: #0c0e12;
  --bg-card: #151821;
  --bg-hover: #1f2330;
  --border-color: #262b3a;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent-primary: #00dc82;
  --accent-hover: #00b86c;
  --color-shopee: #ee4d2d;
  --color-tiktok: #fe2c55;
  --color-tokopedia: #03ac0e;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Navbar & Header */
.header {
  background: rgba(21, 24, 33, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-logo span {
  color: var(--accent-primary);
}

.search-box {
  flex: 1;
  max-width: 550px;
  position: relative;
}

.search-input {
  width: 100%;
  background: #090a0d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px 10px 42px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--accent-primary);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Category Shortcut Bar */
.category-bar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
  overflow-x: auto;
  white-space: nowrap;
}

.category-list {
  display: flex;
  gap: 10px;
}

.cat-pill {
  padding: 6px 14px;
  background: #090a0d;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.cat-pill:hover, .cat-pill.active {
  background: var(--bg-hover);
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

/* Hero Section */
.hero-banner {
  padding: 24px 0 12px;
}

.hero-card {
  background: linear-gradient(135deg, #151821 0%, #1f2838 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
}

.hero-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hero-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Section Titles */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0 16px;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Product Grid (Mobile-First: 2 kolom) */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}



@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: #3b4255;
}

.card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #090a0d;
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .card-thumb img {
  transform: scale(1.05);
}

.badge-discount {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e11d48;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.card-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.badge-market {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.market-shopee { color: var(--color-shopee); }
.market-tiktok-shop { color: var(--color-tiktok); }
.market-tokopedia { color: var(--color-tokopedia); }

.card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
  line-height: 1.35;
  margin-bottom: 8px;
}

.price-wrap {
  margin-top: auto;
}

.price-current {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.price-original {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 6px 0 10px;
}

.meta-rating {
  color: #f59e0b;
  font-weight: 600;
}

.btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent-primary);
  color: #0c0e12;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 0;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.btn-buy:hover {
  background: var(--accent-hover);
}

/* Footer & Compliance */
.footer {
  background: #090a0d;
  border-top: 1px solid var(--border-color);
  padding: 32px 0 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.compliance-box {
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  line-height: 1.6;
}