/* Trang sản phẩm (kho mẫu). Dùng chung bảng màu và font với site.css, không khai báo lại :root. */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Hero */
.hero { padding: 104px 0 72px; border-bottom: 1px solid var(--border); }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  max-width: 880px;
  margin: 0 0 28px;
}
.hero p { color: var(--text-muted); font-size: 1.08rem; font-weight: 300; max-width: 620px; margin: 0 0 48px; }
.hero p strong { color: var(--accent); font-weight: 600; }

.search-bar { max-width: 620px; }
.search-bar input {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1.05rem;
}
.search-bar input::placeholder { color: #6b665c; }
.search-bar input:focus { outline: none; border-bottom-color: var(--accent); }

/* Bộ lọc chuyên mục: dạng tab có gạch chân */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  margin: 56px 0 56px;
  border-bottom: 1px solid var(--border);
}
.chip {
  padding: 10px 0;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
  transition: color .2s;
}
.chip:hover { color: var(--text); }
.chip.active { color: var(--text); border-bottom-color: var(--ink); }

/* Lưới mẫu */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 48px 28px;
  padding-bottom: 120px;
}

.card {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink);
  padding-top: 22px;
}

.card-thumb {
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text-muted);
}
.card-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-tag { align-self: flex-start; font-size: .88rem; font-weight: 500; color: var(--accent); }
.card-title {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
}
.card-desc { color: var(--text-muted); font-size: .94rem; font-weight: 300; flex: 1; margin: 0 0 14px; }

.btn-demo {
  display: block;
  padding: 13px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: background .25s, color .25s;
}
.btn-demo:hover { background: var(--ink); color: var(--bg); }
.card-link { display: block; margin-top: 12px; text-align: center; font-size: .9rem; font-weight: 500; color: var(--accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.card-score { font-size: .85rem; font-weight: 600; color: var(--ink); letter-spacing: .02em; }

.empty-state { text-align: center; color: var(--text-muted); padding: 48px 0; }

/* Khối liên hệ cuối trang: đảo màu để chốt trang */
.contact {
  padding: 112px 0;
  background: var(--ink);
  color: var(--bg);
  text-align: center;
}
.contact h2 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.035em;
  color: var(--bg);
  margin-bottom: 16px;
}
.contact p { color: rgba(244, 241, 234, .72); font-weight: 300; margin: 0 auto 36px; max-width: 540px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border: 1px solid var(--bg);
  border-radius: 0;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn-primary { background: var(--bg); color: var(--ink); }
.btn-primary:hover { background: var(--accent-3); border-color: var(--accent-3); color: var(--bg); }

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 2.3rem; }
  .category-filters { margin: 36px 0 36px; }
  .grid { gap: 40px; }
  .card-thumb { height: 170px; }
  .contact { padding: 80px 0; }
}
