/* ============================================================
   TRANG CHỦ tailieuchuan.pro.vn — style theo tailieu247.net
   Header/Footer giữ nguyên của theme
   ============================================================ */

/* ---- Shared ---- */
.h247-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.h247-section-head {
  text-align: center;
  margin-bottom: 36px;
}
.h247-section-head h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 8px;
}
.h247-section-head p {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

/* ============================================================
   HERO
   ============================================================ */
.h247-hero {
  background: linear-gradient(135deg, #f0f6ff 0%, #eaf3fb 100%);
  padding: 56px 0 48px;
}
.h247-hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.h247-hero__text { flex: 1 1 50%; }
.h247-hero__title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a2e;
  margin: 0 0 16px;
}
.h247-hero__accent {
  display: block;
  color: #0d6efd;
}
.h247-hero__desc {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
}
.h247-hero__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.h247-pill {
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: .84rem;
  color: #444;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.h247-pill--star { color: #e67e22; border-color: #f5c07a; }

.h247-hero__img {
  flex: 1 1 45%;
  position: relative;
}
.h247-hero__img img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0,0,0,.14);
  display: block;
}
.h247-tag {
  position: absolute;
  font-size: .76rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  color: #fff;
}
.h247-tag--green  { background: #28a745; top: 14px; left: 14px; }
.h247-tag--yellow { background: #f0a500; bottom: 14px; right: 14px; }

/* ============================================================
   CATEGORIES
   ============================================================ */
.h247-cats {
  background: #f8f9fb;
  padding: 56px 0;
}
.h247-cats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.h247-cat {
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
}
.h247-cat:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 26px rgba(0,0,0,.12);
}
.h247-cat__icon { font-size: 2.4rem; margin-bottom: 12px; }
.h247-cat h3 {
  font-size: .94rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 8px;
}
.h247-cat p {
  font-size: .82rem;
  color: #777;
  margin: 0 0 10px;
  line-height: 1.5;
}
.h247-cat strong { font-size: .87rem; }
.h247-cat--blue   strong { color: #0d6efd; }
.h247-cat--green  strong { color: #28a745; }
.h247-cat--purple strong { color: #6f42c1; }
.h247-cat--orange strong { color: #e67e22; }

/* ============================================================
   PRODUCT SECTION
   ============================================================ */
.h247-products {
  background: #fff;
  padding: 48px 0;
}

/* Topbar */
.shop-topbar {
  display: flex;
  align-items: center;
  padding: 10px 0 12px;
  border-bottom: 2px solid #e8edf3;
  margin-bottom: 8px;
}
.woocommerce-result-count {
  font-size: .85rem;
  color: #888;
  margin: 0;
}

/* List */
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
}
li.product.wc-product-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 16px 8px;
  border-bottom: 1px solid #f0f3f7;
  border-radius: 8px;
  transition: background .15s;
}
li.product.wc-product-row:hover { background: #f7f9ff; }
li.product.wc-product-row:last-child { border-bottom: none; }

/* Thumbnail */
.wc-row-thumb {
  flex-shrink: 0;
  width: 170px;
  height: 115px;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #1355a0;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.wc-row-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .25s;
}
.wc-row-thumb:hover img { transform: scale(1.04); }

/* Info */
.wc-row-info { flex: 1; min-width: 0; }

.wc-row-cat {
  display: inline-block;
  background: #0d6efd;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 7px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.wc-row-title {
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 10px;
}
.wc-row-title a { color: #1a1a2e; text-decoration: none; transition: color .15s; }
.wc-row-title a:hover { color: #0d6efd; }

.wc-row-price {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.wc-price-old { font-size: .85rem; color: #bbb; text-decoration: line-through; }
.wc-price-old .woocommerce-Price-amount { color: #bbb; }
.wc-price-current { font-size: .98rem; font-weight: 800; color: #e63946; }
.wc-price-current .woocommerce-Price-amount { color: #e63946; }

/* Buttons */
.wc-row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wc-rbtn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 15px;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  letter-spacing: .4px;
  transition: opacity .15s, transform .1s;
}
.wc-rbtn:hover { opacity: .85; transform: translateY(-1px); }
.wc-rbtn--view  { background: #5a6470; color: #fff !important; }
.wc-rbtn--zalo  { background: #0068ff; color: #fff !important; }
.wc-rbtn--zalo img { vertical-align: middle; }
.wc-rbtn--buy   { background: #e63946; color: #fff !important; }

/* Pagination */
.woocommerce-pagination { margin-top: 32px; display: flex; justify-content: center; }
.woocommerce-pagination ul {
  display: flex; gap: 5px;
  list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: 8px; font-size: .88rem; font-weight: 600;
  text-decoration: none; border: 1px solid #dde3ec;
  color: #444; background: #fff; transition: all .15s;
}
.woocommerce-pagination ul li a:hover {
  background: #0d6efd; color: #fff !important; border-color: #0d6efd;
}
.woocommerce-pagination ul li span.current {
  background: #0d6efd; color: #fff; border-color: #0d6efd;
}

/* ============================================================
   STATS
   ============================================================ */
.h247-stats {
  background: #0d6efd;
  padding: 48px 0;
}
.h247-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.h247-stat strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
.h247-stat span {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  margin-top: 4px;
  display: block;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.h247-steps {
  background: #f8f9fb;
  padding: 56px 0;
}
.h247-steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.h247-step {
  background: #fff;
  border-radius: 14px;
  padding: 32px 20px 24px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  position: relative;
}
.h247-step__badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: #0d6efd;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 12px;
  border-radius: 20px;
  letter-spacing: .5px;
  white-space: nowrap;
}
.h247-step__icon { font-size: 2.2rem; margin: 8px 0 10px; }
.h247-step h4 { font-size: .94rem; font-weight: 700; color: #1a1a2e; margin: 0 0 8px; }
.h247-step p  { font-size: .82rem; color: #777; margin: 0; line-height: 1.5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .h247-hero__inner { flex-direction: column; gap: 28px; }
  .h247-hero__title { font-size: 1.9rem; }
  .h247-cats__grid,
  .h247-steps__grid { grid-template-columns: repeat(2, 1fr); }
  .h247-stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .h247-hero { padding: 36px 0 28px; }
  .h247-hero__title { font-size: 1.5rem; }
  .h247-cats__grid,
  .h247-steps__grid,
  .h247-stats__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wc-row-thumb { width: 100px; height: 78px; }
  .wc-row-title { font-size: .87rem; }
  .wc-rbtn { padding: 6px 10px; font-size: .74rem; }
  li.product.wc-product-row { gap: 12px; }
}
