/* ThisDecal — CSS trang Products: danh sách /san-pham + tem ô tô /tem-o-to */

/* --------------------------------------------------------------------------
   Breadcrumb bar (thanh nền tối dưới header)
   -------------------------------------------------------------------------- */
.td-breadcrumb-bar {
  background: var(--td-bg-alt);
  border-bottom: 1px solid var(--td-border);
}
.td-breadcrumb-bar .td-container { padding-block: 13px; }
.td-breadcrumb__sep { color: var(--td-dim); margin-inline: 6px; }
.td-breadcrumb__current { color: var(--td-text); }

/* --------------------------------------------------------------------------
   Eyebrow (gạch vàng + chữ Oswald giãn cách)
   -------------------------------------------------------------------------- */
.td-eyebrow-bar {
  width: 34px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--td-accent);
}
.td-eyebrow {
  font-family: var(--td-font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  color: var(--td-accent-text);
}

/* --------------------------------------------------------------------------
   Page head (trang danh sách)
   -------------------------------------------------------------------------- */
.td-page-head { padding-top: 24px; }
.td-page-head__title {
  margin: 10px 0 0;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.2;
  color: var(--td-text);
}
.td-page-head__lead {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--td-muted);
  font-size: 15px;
}
.td-page-head__hint { color: var(--td-accent-text); font-weight: 600; }

/* --------------------------------------------------------------------------
   Trust strip (4 cam kết)
   -------------------------------------------------------------------------- */
.td-trust {
  margin-top: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--td-border);
  border-bottom: 1px solid var(--td-border);
}
/* Vạch ngăn mảnh giữa các cam kết thay cho khung hộp */
@media (min-width: 992px) {
  .td-trust .row > [class*="col-"] + [class*="col-"] { border-left: 1px solid var(--td-border); }
}
.td-trust__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--td-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.td-trust__title { font-weight: 700; font-size: 13px; }
.td-trust__sub { color: var(--td-muted); font-size: 12px; }

/* --------------------------------------------------------------------------
   Promo banner (nền vàng, sọc chéo)
   -------------------------------------------------------------------------- */
.td-promo {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  background: var(--td-accent);
  border-radius: 12px;
  padding: 18px 24px;
}
.td-promo__stripe {
  position: absolute;
  top: -30%;
  right: 8%;
  width: 14px;
  height: 160%;
  background: #141414;
  transform: skewX(-18deg);
}
.td-promo__txt { position: relative; }
.td-promo__title {
  font-family: var(--td-font-heading);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--td-ink);
}
.td-promo__sub { color: #2b2b2b; font-weight: 600; font-size: 14px; margin-top: 4px; }

/* --------------------------------------------------------------------------
   Sidebar bộ lọc
   -------------------------------------------------------------------------- */
.td-products-body { margin-top: 22px; }

.td-filter-panel {
  position: sticky;
  top: 150px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 10px;
  padding: 6px 18px 18px;
}
.td-filter-group { padding: 16px 0; border-bottom: 1px solid var(--td-border); }
.td-filter-group__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}

.td-filter-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% + 4px);
  margin-left: -4px;
  padding: 8px 10px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  color: #444;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.td-filter-opt:hover { color: var(--td-accent-text); }
.td-filter-opt__box {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--td-dim);
  background: transparent;
  transition: border-color .2s ease, background .2s ease;
}
.td-filter-opt__box svg { opacity: 0; }
.td-filter-opt__label { flex: 1; }
.td-filter-opt__count {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #868686;
  background: rgba(255, 255, 255, .05);
  border-radius: 20px;
  padding: 1px 8px;
}
.td-filter-opt.is-active {
  border-color: var(--td-accent-text);
  background: var(--td-accent-soft);
  color: var(--td-accent-text);
}
.td-filter-opt.is-active .td-filter-opt__box {
  border-color: var(--td-accent-text);
  background: var(--td-accent);
}
.td-filter-opt.is-active .td-filter-opt__box svg { opacity: 1; }
.td-filter-opt.is-active .td-filter-opt__count {
  color: var(--td-ink);
  background: var(--td-accent);
}

.td-filter-clear {
  margin-top: 14px;
  background: none;
  border: 0;
  padding: 0;
  color: var(--td-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.td-filter-clear:hover { color: var(--td-accent-text); }

@media (max-width: 991.98px) {
  .td-filter-panel { position: static; }
}

/* --------------------------------------------------------------------------
   Toolbar (đếm + sắp xếp)
   -------------------------------------------------------------------------- */
.td-toolbar {
  padding: 13px 16px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.td-toolbar__num { color: var(--td-accent-text); font-weight: 700; }
.td-toolbar__label { font-size: 13px; font-weight: 400; color: var(--td-muted); }

.td-sort-btn {
  padding: 7px 13px;
  border-radius: 4px;
  border: 1px solid var(--td-border);
  background: transparent;
  color: var(--td-text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease;
}
.td-sort-btn:hover { color: var(--td-accent-text); }
.td-sort-btn.is-active { border-color: var(--td-accent-text); color: var(--td-accent-text); }

/* --------------------------------------------------------------------------
   Trạng thái rỗng + phân trang
   -------------------------------------------------------------------------- */
.td-empty { padding: 60px 16px; color: var(--td-muted); }
.td-empty[hidden] { display: none; }
.td-empty__title {
  font-family: var(--td-font-heading);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--td-text);
  margin-bottom: 8px;
}
.td-empty__sub { font-size: 14px; margin-bottom: 20px; }


/* --------------------------------------------------------------------------
   SEO article
   -------------------------------------------------------------------------- */
.td-seo {
  margin-top: 56px;
  background: var(--td-bg-alt);
  border-top: 1px solid var(--td-border);
}
.td-seo .td-container { padding-block: 40px; }
.td-seo__inner { max-width: 820px; }
.td-seo__title { font-size: 24px; color: var(--td-text); margin: 0 0 14px; }
.td-seo__inner p { color: var(--td-muted); font-size: 15px; margin: 0 0 14px; }
.td-seo__inner p:last-child { margin-bottom: 0; }
.td-seo__inner strong { color: var(--td-text); }

/* --------------------------------------------------------------------------
   Nút phụ (viền trắng) + chữ nghiêng highlight
   -------------------------------------------------------------------------- */
.td-btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  background: transparent;
  color: var(--td-text);
  border: 1px solid var(--td-text);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: border-color .2s ease, color .2s ease;
}
.td-btn-outline-light:hover { border-color: var(--td-accent-text); color: var(--td-accent-text); }

.td-skew-highlight {
  display: inline-block;
  padding: 2px 16px 7px;
  background: var(--td-accent);
  color: var(--td-ink);
  line-height: 1.3;
  transform: skewX(-8deg);
  box-shadow: 6px 6px 0 rgba(252, 185, 21, .18);
}
.td-skew-highlight > span { display: inline-block; transform: skewX(8deg); }

/* --------------------------------------------------------------------------
   Hero tem ô tô
   -------------------------------------------------------------------------- */
.td-car-hero {
  position: relative;
  background: radial-gradient(circle at 80% 15%, rgba(252, 185, 21, .13), transparent 46%), var(--td-bg);
  border-bottom: 1px solid var(--td-border);
  overflow: hidden;
}
.td-car-hero .td-container {
  position: relative;
  z-index: 1;
  padding-block: 52px;
}
.td-car-hero__stripes {
  position: absolute;
  top: -10%;
  right: -4%;
  width: 32%;
  height: 120%;
  background: repeating-linear-gradient(-20deg, rgba(252, 185, 21, .08) 0 10px, transparent 10px 26px);
  pointer-events: none;
}
.td-car-hero__title {
  margin: 22px 0 0;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.3;
  color: var(--td-text);
}
.td-car-hero__lead {
  margin: 18px 0 0;
  max-width: 480px;
  font-size: 16.5px;
  color: #b8b8b8;
}

.td-car-hero__visual { position: relative; height: 360px; }
.td-car-hero__panel {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  background: #f4f4f4;
}
.td-car-hero__panel img { width: 100%; height: 100%; object-fit: cover; }
.td-car-hero__panel--main {
  top: 0;
  right: 0;
  width: 78%;
  height: 74%;
  border: 1px solid var(--td-border);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.td-car-hero__panel--side {
  bottom: 0;
  left: 0;
  width: 52%;
  height: 52%;
  border: 2px solid var(--td-accent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .7);
}

/* --------------------------------------------------------------------------
   Card vị trí dán tem ô tô
   -------------------------------------------------------------------------- */
.td-pos-card {
  padding: 18px 20px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 10px;
  transition: border-color .2s ease;
}
.td-pos-card:hover { border-color: var(--td-accent-text); }
.td-pos-card__num {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--td-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--td-accent-text);
  font-family: var(--td-font-heading);
  font-size: 17px;
  font-weight: 700;
}
.td-pos-card__txt { min-width: 0; }
.td-pos-card__name { display: block; font-weight: 700; font-size: 15px; color: var(--td-text); }
.td-pos-card__desc { display: block; font-size: 12.5px; color: var(--td-muted); }

/* Ghi chú nhỏ dưới tiêu đề section */
.td-products-note { color: var(--td-muted); font-size: 14px; margin: -10px 0 24px; }

/* --------------------------------------------------------------------------
   Quy trình đặt tem ô tô
   -------------------------------------------------------------------------- */
.td-steps {
  margin-top: 64px;
  background: var(--td-bg-alt);
  border-block: 1px solid var(--td-border);
}
.td-steps .td-container { padding-block: 52px; }
.td-step__num {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--td-accent-soft);
  border: 1px solid rgba(252, 185, 21, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--td-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--td-accent-text);
}
.td-step__title { font-weight: 700; font-size: 15px; }
.td-step__desc { font-size: 13px; color: var(--td-muted); margin-top: 5px; }

/* --------------------------------------------------------------------------
   CTA band (nền vàng, sọc chéo)
   -------------------------------------------------------------------------- */
.td-cta-band {
  position: relative;
  background: var(--td-accent);
  overflow: hidden;
}
.td-cta-band .td-container { padding-block: 38px; }
.td-cta-band__stripe {
  position: absolute;
  top: -30%;
  height: 160%;
  background: #141414;
  transform: skewX(-18deg);
}
.td-cta-band__stripe--1 { right: 6%; width: 16px; }
.td-cta-band__stripe--2 { right: 10%; width: 8px; }
.td-cta-band__title { font-size: clamp(22px, 3vw, 32px); color: var(--td-ink); margin: 0; }
.td-cta-band__sub {
  margin: 6px 0 0;
  color: #2b2b2b;
  font-weight: 600;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Nút toggle bộ lọc trên mobile (< lg) — desktop luôn mở nhờ .d-lg-block
   -------------------------------------------------------------------------- */
.td-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  margin-bottom: 12px;
  background: var(--td-bg-alt);
  border: 1px solid var(--td-border);
  border-radius: 8px;
  color: var(--td-text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.td-filter-toggle:hover { border-color: var(--td-accent-text); color: var(--td-accent-text); }
.td-filter-toggle__chev { margin-left: auto; display: inline-flex; transition: transform .2s ease; }
.td-filter-toggle[aria-expanded="true"] .td-filter-toggle__chev { transform: rotate(180deg); }

@media (max-width: 991.98px) {
  .td-filter-panel { margin-bottom: 8px; }
}

/* Cây danh mục trong sidebar lọc — thụt lề theo cấp */
/* Điều hướng danh mục theo nhánh: nút quay lên + tên nhánh đang xem */
.td-cat-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--td-muted);
}
.td-cat-back:hover { color: var(--td-accent-text); }
.td-cat-current {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--td-border);
  font-family: var(--td-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--td-text);
}
.td-filter-opt--lv3 { padding-left: 34px; }

/* ===== Banner landing danh mục ===== */
.td-cat-banner {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--td-border);
  margin-bottom: 20px;
}
.td-cat-banner img {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: cover;
}
