/* 3H catalogue: shared native Bricks shop + product-category layout. */
.threeh-catalog {
  --catalog-line: #cbd3df;
  --catalog-muted: #596779;
  --catalog-image-height: 300px;
  width: 100%;
  padding: 24px var(--threeh-gutter) 72px;
  background: #f3f5f7;
  color: var(--threeh-navy);
}
.threeh-catalog__inner {
  width: 100%;
  max-width: var(--threeh-container);
  margin-inline: auto;
  padding: 0;
  gap: 0;
}
.threeh-catalog__breadcrumbs { margin: 0 0 28px; font-size: 12px; line-height: 1.6; color: var(--catalog-muted); }
.threeh-catalog__breadcrumbs a { color: var(--threeh-navy); }
.threeh-catalog__layout { display: grid; width: 100%; grid-template-columns: 252px minmax(0, 1fr); gap: 32px; align-items: start; }
.threeh-catalog__sidebar, .threeh-catalog__main { min-width: 0; width: 100%; gap: 0; }
.threeh-catalog__sidebar-title { width: 100%; margin: 0; padding: 18px 18px 16px; border-top: 3px solid var(--threeh-yellow); background: var(--threeh-navy); color: #fff; font-size: 17px; line-height: 1.35; font-weight: 700; }
.threeh-catalog-categories { width: 100%; border: 1px solid var(--catalog-line); border-top: 0; background: #fff; }
.threeh-catalog-categories__item { position: relative; display: flex; align-items: center; border-top: 1px solid #e2e6ec; }
.threeh-catalog-categories__all, .threeh-catalog-categories__link { display: block; width: 100%; padding: 16px 40px 16px 18px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--threeh-navy); text-decoration: none; border-left: 3px solid transparent; }
.threeh-catalog-categories__count { position: absolute; right: 15px; width: auto; font-size: 11px; line-height: 1.3; color: var(--catalog-muted); pointer-events: none; }
.threeh-catalog-categories a:hover, .threeh-catalog-categories a[aria-current="page"] { background: #edf1f7; border-left-color: var(--threeh-yellow); color: var(--threeh-blue); }
.threeh-catalog-help { width: 100%; margin-top: 24px; padding: 22px 20px; border: 1px solid var(--catalog-line); background: #fff; }
.threeh-catalog-help__eyebrow { margin: 0 0 12px; font-size: 10px; line-height: 1.4; font-weight: 700; letter-spacing: .13em; color: var(--threeh-blue); }
.threeh-catalog-help__title { margin: 0 0 12px; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--threeh-navy); }
.threeh-catalog-help__text { font-size: 13px; line-height: 1.65; color: var(--catalog-muted); }
.threeh-catalog-help__phone { display: inline-flex; gap: 8px; align-items: center; margin: 18px 0; color: var(--threeh-navy); font-size: 19px; font-weight: 700; text-decoration: none; }
.threeh-catalog-help__button { display: inline-flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 12px; background: var(--threeh-yellow); color: var(--threeh-navy); font-size: 12px; font-weight: 700; text-decoration: none; }
.threeh-catalog-help__button:hover { background: var(--threeh-navy); color: #fff; }
.threeh-catalog__description { width: 100%; margin-bottom: 24px; font-size: 14px; line-height: 1.7; color: var(--catalog-muted); }
.threeh-catalog__description p:last-child { margin-bottom: 0; }
.threeh-catalog-products { width: 100%; min-width: 0; }
.threeh-catalog-products .bricks-products-widgets.before { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; min-height: 58px; margin: 0 0 24px; padding-bottom: 16px; border-bottom: 1px solid var(--catalog-line); }
.threeh-catalog-products .woocommerce-result-count { margin: 0; color: var(--catalog-muted); font-size: 13px; line-height: 1.5; }
.threeh-catalog-products .woocommerce-ordering { float: none; margin: 0; }
.threeh-catalog-products select.orderby { width: 228px; max-width: 100%; height: 42px; min-height: 42px; padding: 8px 34px 8px 12px; border: 1px solid #b9c3d0; border-radius: 0; background-color: #fff; font-size: 13px; line-height: 1.4; color: var(--threeh-navy); }
.threeh-catalog-products ul.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; align-items: start; }
.threeh-catalog-products ul.products::before, .threeh-catalog-products ul.products::after { content: none; }
.threeh-catalog-products li.product { position: relative; display: flex; flex-direction: column; width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 1px solid var(--catalog-line); border-radius: 0; background: #fff; box-shadow: none; overflow: hidden; transition: border-color .18s ease; }
.threeh-catalog-products li.product:hover { border-color: var(--threeh-navy); }
.threeh-catalog-products li.product::after { content: ""; position: absolute; top: 0; left: 0; z-index: 2; width: 52px; height: 3px; background: var(--threeh-yellow); pointer-events: none; }
.threeh-catalog-products li.product .content-wrapper, .threeh-catalog-products li.product .content, .threeh-catalog-products li.product .post-content { position: static; display: block; width: 100%; height: auto; min-height: 0; flex: none; padding: 0; margin: 0; background: transparent; }
.threeh-catalog-products [data-field-id] { margin: 0; padding: 0; }
.threeh-catalog-products [data-field-id="ctimg1"] { display: block; position: relative; height: var(--catalog-image-height); min-height: var(--catalog-image-height); flex: 0 0 var(--catalog-image-height); overflow: hidden; border-bottom: 1px solid var(--catalog-line); background: #fff; }
.threeh-catalog-products [data-field-id="ctimg1"] a { display: block; width: 100%; height: 100%; }
.threeh-catalog-products [data-field-id="ctimg1"] img { display: block; width: 100%; max-width: 100%; height: 100%; margin: 0; padding: 10px; object-fit: contain; object-position: center; border-radius: 0; transition: transform .24s ease; }
.threeh-catalog-products li.product:hover [data-field-id="ctimg1"] img { transform: scale(1.025); }
.threeh-catalog-products li.product:not(:has([data-field-id="ctimg1"] img))::before { content: "Đang cập nhật hình ảnh"; display: flex; align-items: center; justify-content: center; height: var(--catalog-image-height); flex: 0 0 var(--catalog-image-height); border-bottom: 1px solid var(--catalog-line); background: #eef1f4; color: var(--catalog-muted); font-size: 12px; }
.threeh-catalog-products [data-field-id="ctttl1"] { margin: 20px 18px 10px; font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: -.015em; color: var(--threeh-navy); }
.threeh-catalog-products [data-field-id="ctttl1"] a { color: inherit; text-decoration: none; }
.threeh-catalog-products [data-field-id="ctttl1"] a:hover { color: var(--threeh-blue); }
.threeh-catalog-products [data-field-id="ctexc1"] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 0 18px 16px; font-size: 13px; line-height: 1.7; color: var(--catalog-muted); }
.threeh-catalog-products [data-field-id="ctexc1"] p { margin: 0; }
.threeh-catalog-products [data-field-id="ctprc1"] { margin: 14px 18px 0; padding-top: 13px; border-top: 1px solid #e0e5ec; color: var(--threeh-navy); font-size: 13px; font-weight: 600; line-height: 1.5; }
.threeh-catalog-products [data-field-id="ctprc1"] .price { margin: 0; color: inherit; }
.threeh-catalog-products [data-field-id="ctcta1"] { margin: 10px 18px 20px; }
.threeh-catalog-card__link { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--threeh-blue); font-size: 12px; font-weight: 700; line-height: 1.5; text-decoration: none; }
.threeh-catalog-card__link span { font-size: 19px; }
.threeh-catalog-products .bricks-products-widgets.after:has(.woocommerce-pagination) { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--catalog-line); }
.threeh-catalog-products .woocommerce-pagination ul { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; border: 0; padding: 0; margin: 0; list-style: none; }
.threeh-catalog-products .woocommerce-pagination li { border: 0; margin: 0; padding: 0; }
.threeh-catalog-products .woocommerce-pagination a, .threeh-catalog-products .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 8px; border: 1px solid #bdc7d4; border-radius: 0; background: #fff; color: var(--threeh-navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.threeh-catalog-products .woocommerce-pagination .current, .threeh-catalog-products .woocommerce-pagination a:hover { border-color: var(--threeh-navy); background: var(--threeh-navy); color: #fff; }
.threeh-catalog-products .woocommerce-info, .threeh-catalog-products .woocommerce-no-products-found { width: 100%; padding: 22px; border: 1px solid var(--catalog-line); background: #fff; color: var(--threeh-navy); font-size: 14px; }
.threeh-catalog a:focus-visible, .threeh-catalog select:focus-visible { outline: 2px solid var(--threeh-blue); outline-offset: 3px; }
@media (max-width: 1199px) {
  .threeh-catalog { --catalog-image-height: 280px; }
  .threeh-catalog__layout { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
  .threeh-catalog-products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .threeh-catalog__layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .threeh-catalog__sidebar-title { padding: 13px 16px; font-size: 15px; }
  .threeh-catalog-categories { display: flex; flex-wrap: wrap; }
  .threeh-catalog-categories__all, .threeh-catalog-categories__item { width: auto; flex: 1 1 auto; border-top: 0; }
  .threeh-catalog-categories__item { border-left: 1px solid #e2e6ec; }
  .threeh-catalog-categories__all { display: flex; align-items: center; }
  .threeh-catalog-help { display: none; }
}
@media (max-width: 600px) {
  .threeh-catalog { --catalog-image-height: 300px; padding-top: 20px; padding-bottom: 48px; }
  .threeh-catalog-products ul.products { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .threeh-catalog__breadcrumbs { margin-bottom: 20px; font-size: 11px; }
  .threeh-catalog-categories__all, .threeh-catalog-categories__link { padding-top: 13px; padding-bottom: 13px; font-size: 12px; }
  .threeh-catalog-products .bricks-products-widgets.before { align-items: flex-start; gap: 12px; }
  .threeh-catalog-products .woocommerce-ordering, .threeh-catalog-products select.orderby { width: 100%; }
  .threeh-catalog-products [data-field-id="ctttl1"] { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .threeh-catalog-products li.product, .threeh-catalog-products img { transition: none; }
}
