/* ============================================
   LG Subscribe Landing - Mobile First
   Agent F268040 | Bahasa Melayu
   ============================================ */

:root {
  --lg-red: #A50034;
  --lg-red-dark: #7a0027;
  --lg-black: #111111;
  --lg-grey: #f5f5f5;
  --lg-text: #222222;
  --lg-muted: #666666;
  --radius: 12px;
  --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--lg-text);
  background: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

/* Header */
.site-header {
  background: var(--lg-red);
  color: #fff;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.brand { font-weight: 700; font-size: 18px; letter-spacing: 0.5px; }
.brand span { opacity: 0.85; font-weight: 400; font-size: 12px; display: block; }
.header-cta {
  background: #fff;
  color: var(--lg-red);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--lg-red) 0%, var(--lg-red-dark) 100%);
  color: #fff;
  padding: 32px 16px;
  text-align: center;
}
.hero h1 { font-size: 24px; margin-bottom: 8px; }
.hero p { font-size: 14px; opacity: 0.9; margin-bottom: 16px; }
.hero .agent-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 16px;
}
.hero .hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--lg-red);
  padding: 12px 24px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 15px;
}

/* Filter bar */
.filter-bar {
  padding: 12px 16px;
  background: var(--lg-grey);
  position: sticky;
  top: 56px;
  z-index: 40;
}
.filter-bar input, .filter-bar select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 8px;
}
.filter-row { display: flex; gap: 8px; }
.filter-row select { flex: 1; margin-bottom: 0; }

/* Products */
.products-section { padding: 16px; max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 18px; margin: 8px 0 12px; color: var(--lg-black); }
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.product-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--lg-grey);
}
.product-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-cat {
  font-size: 11px;
  color: var(--lg-red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--lg-black); }
.product-desc { font-size: 12px; color: var(--lg-muted); margin-bottom: 8px; flex: 1; }
.product-price { font-size: 16px; font-weight: 700; color: var(--lg-red); margin-bottom: 10px; }
.cta-row { display: flex; gap: 8px; }
.cta-btn {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}
.cta-wa { background: #25D366; color: #fff; }
.cta-eb { background: var(--lg-red); color: #fff; }

/* Footer */
.site-footer {
  background: var(--lg-black);
  color: #fff;
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  margin-top: 24px;
}
.site-footer a { color: #fff; text-decoration: underline; }
.footer-agent { margin-top: 8px; opacity: 0.8; }

/* Empty state */
.empty { text-align: center; padding: 40px 16px; color: var(--lg-muted); }

/* Back to top */
.back-top {
  position: fixed;
  bottom: 16px;
  right: 16px;
  background: var(--lg-red);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow);
  z-index: 60;
}