
@font-face { font-family: 'BaiJamjuree'; font-weight: 400; src: url('BaiJamjuree-Regular.ttf') format('truetype'); }
@font-face { font-family: 'BaiJamjuree'; font-weight: 500; src: url('BaiJamjuree-Medium.ttf') format('truetype'); }
@font-face { font-family: 'BaiJamjuree'; font-weight: 600; src: url('BaiJamjuree-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'BaiJamjuree'; font-weight: 700; src: url('BaiJamjuree-Bold.ttf') format('truetype'); }

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'BaiJamjuree', sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  color: #e8e8e8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.container { max-width: 1400px; margin: 0 auto; padding: 24px; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #ff5722 0%, #ff9800 50%, #ffc107 100%);
  border-radius: 24px;
  padding: 48px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #000;
}
.hero h1 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(255,255,255,0.3);
}
.hero p { font-size: 18px; opacity: 0.85; margin-bottom: 24px; }
.hero .meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 500;
}
.hero .meta span { background: rgba(0,0,0,0.15); padding: 6px 14px; border-radius: 20px; }

/* SECTION */
.section {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
}
.section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section h2 .num {
  background: #ff9800;
  color: #000;
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
}
.section .sub {
  font-size: 14px;
  opacity: 0.65;
  margin-bottom: 20px;
}

/* FILTER */
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border-radius: 12px;
}
.filter-bar input, .filter-bar select {
  background: rgba(255,255,255,0.06);
  color: #e8e8e8;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'BaiJamjuree', sans-serif;
  font-size: 14px;
}
.filter-bar input { flex: 1; min-width: 200px; }
.filter-bar input:focus, .filter-bar select:focus { outline: 2px solid #ff9800; border-color: transparent; }

/* PRODUCT GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.product-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,152,0,0.5);
  box-shadow: 0 8px 24px rgba(255,87,34,0.2);
}
.product-card .rank {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  color: #000;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
}
.product-card .name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 12px;
  padding-right: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.product-card .row .label { opacity: 0.6; }
.product-card .row .value { font-weight: 600; }
.product-card .green { color: #4caf50; }
.product-card .red { color: #f44336; }
.product-card .blue { color: #64b5f6; }
.product-card .actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.product-card .btn {
  flex: 1;
  background: linear-gradient(135deg, #ff5722, #ff9800);
  color: #000;
  text-align: center;
  padding: 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}
.product-card .btn:hover { opacity: 0.85; }
.product-card .btn.alt {
  background: rgba(255,255,255,0.08);
  color: #e8e8e8;
}

/* INSIGHT BAR */
.insight {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.1), rgba(255, 152, 0, 0.05));
  border-left: 3px solid #ff9800;
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.7;
}
.insight strong { color: #ff9800; }
.insight.good { background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05)); border-left-color: #4caf50; }
.insight.good strong { color: #4caf50; }
.insight.warn { background: linear-gradient(135deg, rgba(244, 67, 54, 0.1), rgba(244, 67, 54, 0.05)); border-left-color: #f44336; }
.insight.warn strong { color: #f44336; }

/* STAT ROW */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.stat-box .num {
  font-size: 24px;
  font-weight: 700;
  color: #ff9800;
}
.stat-box .lbl {
  font-size: 11px;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .hero { padding: 32px 24px; }
}
