/**
 * ============================================================================
 * HUY CƯỜNG HEAVY LIFT & THACO INDUSTRIES STANDARD
 * Stylesheet Trang Danh sách Sản phẩm (products.html) & Chi tiết Sản phẩm (product-detail.html)
 * Tái tạo 100% cấu trúc & bố cục THACO INDUSTRIES với bảng màu Xanh lá đậm & Vàng mỡ gà
 * ============================================================================
 */

:root {
  --prod-green-deep: var(--hc-primary-dark, #064A26);
  --prod-green-primary: var(--hc-primary, #0D7C3E);
  --prod-green-mid: var(--hc-primary-light, #1A9958);
  --prod-gold-main: var(--hc-accent, #F0B429);
  --prod-gold-soft: var(--hc-accent-light, #FFD700);
  --prod-text-dark: var(--hc-color-neutral-900, #1A1A2E);
  --prod-text-body: var(--hc-text-body, #374151);
  --prod-text-muted: var(--hc-text-subtle, #6B7280);
  --prod-border: var(--hc-border-subtle, #E5E7EB);
  --prod-surface-alt: var(--hc-bg-surface-alt, #F0FFF4);
  --prod-white: var(--hc-text-inverse, #FFFFFF);
}

@keyframes fade_up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
 * 1. BANNER & THANH ĐIỀU HƯỚNG BREADCRUMB (#banner_gr) CHUẨN 100% THACO
 * ========================================================================== */
/* Đảm bảo khung #page và #content tràn 100% chiều ngang màn hình (không bị bó hẹp hai bên) */
#page.site,
#page.container,
#page.grid-container,
#content.site-content,
#content.hc-news-archive-page,
#content.hc-demo-blocks-page,
.hc-demo-blocks-page .hc-demo-blocks__section,
.hc-prod-a-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

div#banner_gr {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #064A26;
}

/* Hiển thị trọn vẹn 100% chiều ngang & tỷ lệ chiều cao nguyên bản của ảnh Hero chuẩn THACO */
div#banner_gr img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

div#banner_gr.banner_img {
  position: relative;
}

div#banner_gr.banner_img .banner_def {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(6, 74, 38, 0.15) 0%,
      rgba(0, 0, 0, 0.05) 50%,
      rgba(6, 74, 38, 0.72) 100%);
  pointer-events: none;
  z-index: 1;
}

div#banner_gr.banner_img .gr_head {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 0 24px;
  background: transparent;
}

div#banner_gr .grid-container,
.banner_gr .grid-container {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: clamp(20px, 3.5vw, 48px) !important;
  padding-right: clamp(20px, 3.5vw, 48px) !important;
  box-sizing: border-box !important;
}

@media (max-width: 768px) {

  div#banner_gr .grid-container,
  .banner_gr .grid-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Triệt tiêu margin âm của .row và padding của .grid-100 để Breadcrumb dóng sát mép trái container */
div#banner_gr .breadcrumbs,
div#banner_gr .breadcrumbs .row,
div#banner_gr .breadcrumbs .grid-100,
div#banner_gr .breadcrumbs #breadcrumb,
div#banner_gr.banner_img .breadcrumbs,
div#banner_gr.banner_img .breadcrumbs .row,
div#banner_gr.banner_img .breadcrumbs .grid-100,
div#banner_gr.banner_img .breadcrumbs #breadcrumb,
.banner_gr .breadcrumbs,
.banner_gr .breadcrumbs .row,
.banner_gr .breadcrumbs .grid-100,
.banner_gr .breadcrumbs #breadcrumb {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

div#banner_gr .breadcrumbs nav.breadcrumb,
div#banner_gr.banner_img .breadcrumbs nav.breadcrumb,
.banner_gr .breadcrumbs nav.breadcrumb {
  margin-left: 0 !important;
}

/* Breadcrumb trên banner đồng bộ kiểu chữ bài viết, có nền sáng để nổi trên ảnh. */
div#banner_gr.banner_img .breadcrumbs nav.breadcrumb {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  top: auto !important;
  left: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  background: rgba(248, 250, 249, 0.96) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  max-width: 100%;
}

div#banner_gr nav.breadcrumb ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.4;
}

div#banner_gr nav.breadcrumb ul li {
  display: inline-flex;
  align-items: center;
  width: auto !important;
  padding: 0 !important;
}

div#banner_gr nav.breadcrumb ul li cite {
  font-style: normal;
}

div#banner_gr.banner_img nav.breadcrumb ul li.list_br a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: auto !important;
  padding: 0 !important;
  line-height: inherit !important;
  color: #6B7280;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

div#banner_gr.banner_img nav.breadcrumb ul li.list_br a .home_icon {
  width: 14px;
  height: 14px;
  stroke: #6B7280;
  stroke-width: 2.6;
  transition: stroke 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

div#banner_gr.banner_img nav.breadcrumb ul li.list_br a:hover {
  color: var(--color-accent);
}

div#banner_gr.banner_img nav.breadcrumb ul li.list_br a:hover .home_icon {
  stroke: var(--color-accent);
}

div#banner_gr.banner_img nav.breadcrumb ul li.list_br a:hover cite {
  color: var(--color-accent);
}

div#banner_gr.banner_img nav.breadcrumb ul span.divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  margin: 0 2px;
}

div#banner_gr.banner_img nav.breadcrumb ul span.divider svg {
  width: 10px;
  height: 10px;
  stroke: #9CA3AF;
  stroke-width: 3;
  display: block;
}

div#banner_gr.banner_img nav.breadcrumb ul li.title_single {
  color: #1A1A2E;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* Breadcrumb trên trang Chi tiết sản phẩm (Không có ảnh nền lớn) */
div#banner_gr:not(.banner_img) {
  background: #F8FAF9;
  border-bottom: 1px solid #E5E7EB;
  padding: 14px 0;
}

div#banner_gr:not(.banner_img) nav.breadcrumb ul {
  margin: 0;
}

div#banner_gr:not(.banner_img) nav.breadcrumb ul a {
  color: #374151;
  text-decoration: none;
  transition: color 0.2s ease;
}

div#banner_gr:not(.banner_img) nav.breadcrumb ul a:hover,
div#banner_gr:not(.banner_img) nav.breadcrumb ul a:hover cite {
  color: #064A26;
}

div#banner_gr:not(.banner_img) nav.breadcrumb ul span.divider {
  color: #6B7280;
  margin: 0 2px;
}

div#banner_gr:not(.banner_img) nav.breadcrumb ul li.title_single,
div#banner_gr:not(.banner_img) nav.breadcrumb ul li.title_single cite {
  color: #064A26;
  font-weight: 700;
}

/* ==========================================================================
 * 2. TRANG DANH SÁCH SẢN PHẨM (.product_page) CHUẨN 100% THACO INDUSTRIES
 * ========================================================================== */
.product_page {
  padding-top: 64px;
  padding-bottom: 80px;
  background: #FFFFFF;
}

.product_page .grid-container {
  width: 100% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding-left: clamp(20px, 3.5vw, 48px) !important;
  padding-right: clamp(20px, 3.5vw, 48px) !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-wrap: wrap !important;
}

@media (max-width: 768px) {
  .product_page .grid-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

.product_page .grid-100 {
  width: 100%;
  box-sizing: border-box;
}

.product_page h2.heading_title,
.product_page h1.heading_title,
.product_details_sec_2 h2.heading_title,
.product_related h2.heading_title {
  font-size: 28px;
  font-weight: 800;
  color: #064A26;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  letter-spacing: 0.02em;
  position: relative;
}

/* Thanh Slider Ngang Danh mục Sản phẩm (.slider_cat_product) */
.product_page .wrap_slider {
  position: relative;
  margin-top: 10px;
  margin-bottom: 18px;
}

.product_page .arrow_slider,
.product_related .arrow_slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  box-shadow: 0 4px 12px rgba(6, 74, 38, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.product_page .arrow_slider.prev,
.product_related .arrow_slider.prev {
  left: -48px;
}

.product_page .arrow_slider.next,
.product_related .arrow_slider.next {
  right: -48px;
  left: unset;
}

.product_page .arrow_slider svg path,
.product_related .arrow_slider svg path {
  fill: #064A26;
  transition: fill 0.25s ease;
}

.product_page .arrow_slider:hover,
.product_related .arrow_slider:hover {
  background: #064A26;
  border-color: #F0B429;
}

.product_page .arrow_slider:hover svg path,
.product_related .arrow_slider:hover svg path {
  fill: #FFD700;
}

.slider_cat_product {
  padding: 20px 4px;
  margin: 0 0 10px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.slider_cat_product::-webkit-scrollbar {
  display: none;
}

.slider_cat_product .swiper-wrapper {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.slider_cat_product .swiper-slide {
  flex: 0 0 156px;
  width: 156px;
  min-width: 148px;
}

/* 5 danh mục trở xuống: dàn đều hết chiều ngang, không trượt. */
.product_page .wrap_slider--static .slider_cat_product {
  overflow: visible;
}
.product_page .wrap_slider--static .swiper-wrapper {
  display: grid;
  grid-template-columns: repeat(var(--hc-cat-count), minmax(0, 1fr));
  width: 100%;
}
.product_page .wrap_slider--static .swiper-slide {
  width: auto;
  min-width: 0;
  flex: none;
}

/* Nhiều hơn 5 danh mục: hiển thị 5 thẻ và trượt ngang từng thẻ. */
.product_page .wrap_slider--scrollable .slider_cat_product {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.product_page .wrap_slider--scrollable .swiper-wrapper {
  display: flex;
  width: 100%;
}
.product_page .wrap_slider--scrollable .swiper-slide {
  flex: 0 0 calc((100% - 56px) / 5);
  width: calc((100% - 56px) / 5);
  min-width: 0;
  scroll-snap-align: start;
}
.product_page .wrap_slider .item_cat_product {
  width: 100%;
}

.item_cat_product {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px !important;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.06);
  height: 124.47px;
  text-align: center;
  padding: 14px 10px;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.item_cat_product .box_img {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.item_cat_product .box_img img {
  max-height: 38px;
  width: auto;
  /* Chuyển icon xanh dương THACO sang tông Xanh lá đậm chủ đạo của Huy Cường */
  filter: brightness(0) saturate(100%) invert(14%) sepia(46%) saturate(1635%) hue-rotate(106deg) brightness(92%) contrast(98%);
  opacity: 0.9;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.item_cat_product h3 {
  font-size: 14px;
  color: #1A1A2E;
  font-weight: 600;
  margin: 4px 0 0;
  line-height: 1.32;
  transition: color 0.25s ease;
}

.item_cat_product.active {
  pointer-events: unset;
}

.item_cat_product.active:hover {
  border-color: #F0B429;
  box-shadow: 0 8px 20px rgba(6, 74, 38, 0.12);
}

.item_cat_product.active.focus {
  background: #064A26;
  border-color: #064A26;
  box-shadow: 0 8px 22px rgba(6, 74, 38, 0.22);
}

.item_cat_product.active.focus h3 {
  color: #FFD700;
  font-weight: 700;
}

.item_cat_product.active.focus .box_img img {
  filter: brightness(0) invert(1);
  opacity: 1;
}

.item_cat_product .box_img img.is-custom-icon,
.item_cat_product.active.focus .box_img img.is-custom-icon {
  filter: none !important;
  opacity: 1 !important;
  max-height: 38px;
  max-width: 48px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
 * 3. CỘT TRÁI SIDEBAR BỘ LỌC DANH MỤC CON & THÀNH VIÊN (.sidebar.product)
 * ========================================================================== */
.product_page .sidebar.product {
  width: 25% !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
  padding-right: 36px !important;
  box-sizing: border-box !important;
}

.product_page .grid-75,
.product_page .tablet-grid-70 {
  width: 75% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Danh mục con (#load_cat_child > ul.list_cat_child) */
#load_cat_child {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 4px 18px rgba(6, 74, 38, 0.08);
}

.subcat_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #064A26;
  color: #FFD700;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid #F0B429;
  border-radius: 12px 12px 0 0;
}

.btn_clear_subcat {
  background: transparent;
  border: 1px solid #F0B429;
  color: #FFD700;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.btn_clear_subcat:hover {
  background: #F0B429;
  color: #064A26;
}

ul.list_cat_child {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-top: none;
  margin: 0 0 36px 0;
  padding: 0;
  list-style: none;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

ul.list_cat_child li {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #1A1A2E;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 8px 18px;
  cursor: pointer;
  border-bottom: 1px solid #F3F4F6;
  transition: background-color 0.2s ease, color 0.2s ease;
}

ul.list_cat_child li:last-child {
  border-bottom: none;
}

ul.list_cat_child li span {
  background: #D1D5DB;
  border-radius: 60px;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-right: 10px;
  box-sizing: border-box;
  position: relative;
}

ul.list_cat_child li:hover {
  background: #F8FAF9;
  color: #064A26;
}

ul.list_cat_child li.active {
  background: rgba(6, 74, 38, 0.08);
  color: #064A26;
  font-weight: 700;
}

ul.list_cat_child li.active span {
  background: transparent;
  border: 2px solid #064A26;
}

ul.list_cat_child li.active span::before {
  width: 8px;
  height: 8px;
  background: #064A26;
  content: "";
  position: absolute;
  border-radius: 50%;
  left: 2px;
  top: 2px;
}

/* Bộ lọc Thành viên / Đơn vị (.cat_member) */
.cat_member {
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
}

.cat_member .close_list {
  display: none;
}

.cat_member .heading_title {
  font-size: 18px !important;
  color: #064A26 !important;
  border-bottom: 2px solid #064A26;
  padding-bottom: 14px;
  margin-bottom: 20px !important;
}

.list_cat_member {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list_cat_member li {
  font-size: 13.5px;
  display: flex;
  align-items: flex-start;
  text-transform: uppercase;
  color: #374151;
  cursor: pointer;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.list_cat_member li:not(:last-child) {
  margin-bottom: 16px;
}

.list_cat_member li span {
  border: 1px solid #E5E7EB;
  width: 16px;
  height: 16px;
  margin-right: 12px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
  flex: 0 0 auto;
  background: #FFFFFF;
}

.list_cat_member li svg {
  transform: translateX(0.5px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.list_cat_member li.active {
  font-weight: 700;
  color: #064A26;
}

.list_cat_member li.active span,
.list_cat_member li:hover span {
  background: #064A26;
  border-color: #F0B429;
}

.list_cat_member li:hover {
  color: #064A26;
}

.list_cat_member li.active svg,
.list_cat_member li:hover svg {
  opacity: 1;
}

/* ==========================================================================
 * 4. THANH CÔNG CỤ LỌC NHANH & CHUYỂN ĐỔI GRID / LIST (.product_toolbar)
 * ========================================================================== */
.product_toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
  margin: 0 0 20px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 18px !important;
  background: #F8FAF9 !important;
  border: 1px solid #E5E7EB !important;
  /* border-left: 4px solid #064A26 !important; */
}

.product_toolbar_left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #1A1A2E;
}

.product_toolbar_left strong {
  color: #064A26;
  font-weight: 800;
}

.btn_toggle_mobile_filter {
  display: none;
  align-items: center;
  gap: 6px;
  background: #064A26;
  color: #FFD700;
  border: 1px solid #F0B429;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.product_toolbar_right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.product_toolbar .product_quick_search,
.product_quick_search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 420px;
  width: 420px;
  max-width: 100%;
}

.product_toolbar .product_quick_search input,
.product_quick_search input,
#productSearchInput {
  width: 100% !important;
  min-width: 320px;
  max-width: 100%;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 40px 0 16px !important;
  border: 1px solid #E5E7EB !important;
  background: #FFFFFF !important;
  font-size: 13.5px !important;
  color: #1A1A2E !important;
  outline: none !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.product_toolbar .product_quick_search input:focus,
.product_quick_search input:focus,
#productSearchInput:focus {
  border-color: #064A26 !important;
  box-shadow: 0 0 0 2px rgba(6, 74, 38, 0.12) !important;
}

.product_toolbar .product_quick_search svg,
.product_quick_search svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #064A26;
  pointer-events: none;
  z-index: 2;
}

.view_mode_switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
}

.view_mode_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.view_mode_btn:first-child {
  border-right: 1px solid #E5E7EB;
}

.view_mode_btn.active {
  background: #064A26;
  color: #FFD700;
}

.view_mode_btn:hover:not(.active) {
  background: #F0FFF4;
  color: #064A26;
}

/* Thanh chip hiển thị các bộ lọc đang chọn */
#activeFilterSummary {
  display: none;
  margin: 0 20px 18px;
}

.active_filter_list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.filter_chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #064A26;
  color: #FFD700;
  border: 1px solid #F0B429;
  padding: 5px 12px;
  font-size: 12.5px;
  cursor: pointer;
}

.filter_chip i {
  font-style: normal;
  font-weight: 700;
  color: #F0B429;
  margin-left: 4px;
}

.btn_reset_all_filters {
  background: transparent;
  border: 1px solid #064A26;
  color: #064A26;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.btn_reset_all_filters:hover {
  background: #F0B429;
  border-color: #F0B429;
  color: #064A26;
}

/* ==========================================================================
 * 5. DANH SÁCH SẢN PHẨM DẠNG GRID & LIST (.wrap_product & .wrap_product.list-view)
 * ========================================================================== */
.wrap_product {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin: 0 0 40px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wrap_product .product_item {
  width: 100%;
  margin: 0;
}


.product_item a.style_center.max {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.for_gallery {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  z-index: 10;
  background: #F8FAF9;

}

.product_item .for_gallery .item_gallery {
  height: 270px;
  line-height: inherit;
  display: none;
}

.product_item .for_gallery .item_gallery.active {
  display: block;
  animation-name: fade_up;
  animation-duration: 0.45s;
}

.product_item .for_gallery .item_gallery .inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  overflow: hidden;
}

/* Hiển thị ảnh thiết bị to rõ, sắc nét, bao trọn khung hình */
.product_item .for_gallery .item_gallery img {
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

/* Badge sức nâng nổi bật ở góc ảnh */
.hc_card_capacity_badge,
.hc-pd-gallery__main .hc_card_capacity_badge,
.product_item .hc_card_capacity_badge,
.product_item .product_meta_badges,
.wrap_product .product_meta_badges,
.hc-prod-card__badge,
.hc-prod-row__badge,
.hc-prod-hero__badge {
  display: none !important;
}

.hc_card_capacity_badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 12;
  background: rgba(6, 74, 38, 0.94);
  color: #FFD700;
  border: 1px solid rgba(240, 180, 41, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.hc_card_capacity_badge.hc_card_badge--service {
  background: rgba(6, 74, 38, 0.96);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-transform: none;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 4px 14px rgba(6, 74, 38, 0.4);
}

.box_hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg,
      rgba(6, 74, 38, 0.84),
      rgba(6, 74, 38, 0.84));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
}

.for_gallery:hover .box_hover {
  opacity: 1;
}

.box_hover .inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -35%);
  font-size: 14px;
  font-weight: 700;
  color: #FFD700;
  text-align: center;
  white-space: nowrap;
}

.box_hover .inner span {
  width: 25px;
  height: 25px;
  display: flex;
  position: relative;
  margin: 0 auto 6px;
}

.box_hover .inner span::before,
.box_hover .inner span::after {
  width: 25px;
  height: 1.5px;
  background: #F0B429;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.box_hover .inner span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

ul.nav_gallery {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 25;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.nav_gallery li {
  width: 36px;
  height: 36px;
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 5px 10px;
  cursor: pointer;
  background: #FFFFFF;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

ul.nav_gallery li img {
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  object-fit: contain;
}

ul.nav_gallery li.active,
ul.nav_gallery li:hover {
  border-color: #064A26;
  box-shadow: 0 0 0 1px #F0B429;
}

.product_item {
  position: relative;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  background: #FFFFFF;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.product_item:hover {
  border-color: #0D7C3E;
  box-shadow: 0 16px 36px rgba(6, 74, 38, 0.14);
  transform: translateY(-4px);
}

.product_item .product_item_body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: stretch;
  text-align: left;
  position: relative;
  padding: 16px !important;
  z-index: 6;
  width: 100%;
}

.product_item h3 {
  text-align: left;
  font-size: 18px;
  font-weight: 700;
  color: #064A26;
  margin: 0 0 10px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product_item h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product_item:hover h3 a {
  color: #0D7C3E;
}

/* Badge danh mục */
.product_item .product_meta_badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.product_cat_tag {
  background: #F8FAF9;
  color: #064A26;
  border: 1px solid #E5E7EB;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1.4;
}

/* Khối hiển thị thông số kỹ thuật chính trên thẻ */
.hc_card_specs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78px;
  gap: 8px;
  width: 100%;
  padding: 13px 15px;
  background: #F8FAF9;
  border-radius: 10px;
  margin: 0 0 14px;
  box-sizing: border-box;
}

.hc_spec_row {
  display: flex;
  flex-wrap: wrap ;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}

.hc_spec_label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4B5563;
  font-size: 12.5px;
  font-weight: 600;
  flex-shrink: 0;
  margin-bottom: 0 !important;
}

.hc_spec_label svg {
  width: 16px;
  height: 16px;
  stroke: #0D7C3E;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.hc_spec_val {
  color: #1A1A2E;
  font-weight: 700;
  font-size: 13.5px;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

/* Khối chứa nhiều mức sức nâng (ví dụ: 150 tấn, 600 tấn, 800 – 1.250 tấn) */
.hc_spec_values {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px 6px;
}

.hc_spec_values .hc_spec_val {
  max-width: 100%;
}

/* Khi có nhiều badge sức nâng phải xuống dòng, cố định nhãn ở trên đầu */
.hc_spec_row.hc_spec_capacity {
  align-items: flex-start;
}

.hc_spec_row.hc_spec_capacity .hc_spec_label {
  padding-top: 3px;
}

.hc_spec_val.hc_spec_val--capacity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #064A26;
  font-weight: 800;
  font-size: 12.5px;
  background: #E8F5E9;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(13, 124, 62, 0.22);
  line-height: 1.25;
  white-space: nowrap;
  box-sizing: border-box;
}

.wrap_product.list-view .hc_spec_values {
  max-width: 75%;
}

/* Biến thể thẻ tiêu chuẩn Dịch vụ kỹ thuật */
.hc_card_specs.hc_card_specs--service {
  background: #F8FAF9;
  border-left: 4px solid #0D7C3E;
}

.hc_card_specs--service .hc_spec_val {
  max-width: 66%;
  font-size: 13px;
}

.hc_card_specs--service .hc_spec_val.hc_spec_val--capacity {
  color: #064A26;
  font-weight: 700;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 66%;
}

/* Biến thể thẻ Thiết bị kỹ thuật (/thiet-bi/) */
.hc_card_specs.hc_card_specs--thietbi {
  background: #FFFFFF;
  /* border-left: 4px solid #064A26; */
}

.hc_card_specs--thietbi .hc_spec_row.hc_spec_model .hc_spec_val {
  color: #064A26;
  font-weight: 700;
  font-size: 13px;
}

.hc_card_specs--thietbi .hc_spec_val {
  max-width: 65%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product_item--service .btn_view_detail {
  background: #064A26;
  color: #FFFFFF;
}

.product_item--service .btn_view_detail:hover {
  background: #0D7C3E;
  color: #FFFFFF;
}

/* Mô tả ngắn cho sản phẩm dạng Grid: bo tròn & cân đối */
.product_item .product_list_desc {
  font-size: 13px;
  line-height: 1.55;
  color: #4B5563;
  text-align: left;
  margin: 0 0 16px;
  display: -webkit-box !important;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 60px;
}

/* Nút "Xem chi tiết" và hành động */
.product_item .product_list_actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: auto !important;
}

.product_item .btn_view_detail {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: #064A26;
  color: #FFFFFF !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
  z-index: 8;
  letter-spacing: 0.03em;
  white-space: nowrap !important;
  box-shadow: 0 4px 10px rgba(6, 74, 38, 0.16);
  box-sizing: border-box;
}

.product_item .btn_view_detail span {
  white-space: nowrap !important;
  display: inline-block;
}

.product_item .btn_view_detail svg {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease;
  stroke: currentColor;
}

.product_item:hover .btn_view_detail,
.product_item .btn_view_detail:hover {
  background: #F0B429;
  color: #064A26 !important;
  box-shadow: 0 6px 18px rgba(240, 180, 41, 0.45);
}

.product_item:hover .btn_view_detail svg,
.product_item .btn_view_detail:hover svg {
  transform: translateX(4px);
}

.product_item .btn_list_quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  background: #F8FAF9;
  color: #064A26;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  box-sizing: border-box;
  border-radius: 8px;
  transition: all 0.25s ease;
  position: relative;
  z-index: 8;
  white-space: nowrap;
}

.product_item .btn_list_quote:hover {
  background: #064A26;
  color: #FFD700;
  border-color: #064A26;
}

/* Chế độ hiển thị Danh sách ngang (.wrap_product.list-view) */
.wrap_product.list-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 10px 40px;
}

.wrap_product.list-view .product_item {
  width: 100%;
  display: flex;
  align-items: stretch;
  flex-direction: row;
  gap: 28px;
  padding: 22px 26px;
  margin: 0;
}

.wrap_product.list-view .product_item .for_gallery {
  width: 340px;
  flex: 0 0 340px;
  margin-bottom: 0;
}

.wrap_product.list-view .product_item .for_gallery .item_gallery {
  height: 240px;
}

.wrap_product.list-view .hc_card_specs {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
}

.wrap_product.list-view .product_item .card_overlay_link {
  display: none;
}

.wrap_product.list-view .product_item .for_gallery {
  width: 280px;
  flex: 0 0 280px;
  margin-bottom: 0;
  border: 1px solid #F3F4F6;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrap_product.list-view .product_item .for_gallery .item_gallery {
  height: 190px;
  width: 100%;
}

.wrap_product.list-view .product_item_body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 15;
}

.wrap_product.list-view ul.nav_gallery {
  justify-content: flex-start;
  margin-bottom: 6px;
}

.wrap_product.list-view ul.nav_gallery li {
  margin: 0 8px 6px 0;
}

.wrap_product.list-view .product_meta_badges {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.product_cat_tag {
  background: #F8FAF9;
  color: #064A26;
  border: 1px solid #E5E7EB;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  text-transform: uppercase;
}

.product_highlight_tag {
  background: #064A26;
  color: #FFD700;
  border: 1px solid #F0B429;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
}

.wrap_product.list-view .product_item h3 {
  text-align: left;
  font-size: 20px;
  margin: 0 0 10px 0;
  color: #064A26;
}

.wrap_product.list-view .product_list_desc {
  display: block;
  font-size: 14.5px;
  color: #374151;
  line-height: 1.55;
  margin: 0 0 12px 0;
}

.wrap_product.list-view .product_list_specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 6px 18px;
  list-style: none;
  margin: 0 0 16px 0;
  padding: 10px 14px;
  background: #F8FAF9;
  border-left: 3px solid #F0B429;
  font-size: 13px;
  color: #1A1A2E;
}

.wrap_product.list-view .product_list_specs strong {
  color: #064A26;
}

.wrap_product.list-view .product_list_actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn_list_detail {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  background: #064A26;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn_list_detail:hover {
  background: #0D7C3E;
  color: #FFD700;
}

.btn_list_quote {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 18px;
  background: #F0B429;
  color: #064A26;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.btn_list_quote:hover {
  background: #FFD700;
}

/* Trạng thái rỗng khi lọc không có kết quả */
.empty_product_state {
  grid-column: 1 / -1;
  width: 100%;
  margin: 20px 0;
  padding: 56px 24px;
  box-sizing: border-box;
  text-align: center;
  background: #F8FAF9;
  border: 1px dashed #D1D5DB;
}

.empty_product_state .empty_icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.empty_product_state h3 {
  font-size: 20px;
  color: #064A26;
  margin: 0 0 8px;
}

.empty_product_state p {
  color: #374151;
  margin: 0 0 18px;
}

.btn_reset_empty {
  background: #064A26;
  color: #FFD700;
  border: 1px solid #F0B429;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* Phân trang (.pagination_product) chuẩn THACO */
.pagination_product {
  display: block;
  width: 100%;
  margin-top: 10px;
}

.pagination_product .paging {
  display: flex;
  justify-content: center;
}

.pagination_product ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination_product ul li {
  display: block;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pagination_product ul a {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hc-news-line, #E5E7EB);
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  color: var(--hc-news-text, #374151);
  margin: 0;
  text-decoration: none;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.pagination_product ul a:hover {
  border-color: var(--hc-news-primary, #0D7C3E);
  background: var(--hc-news-primary, #0D7C3E);
  color: #fff;
}

.pagination_product ul a.active {
  background: var(--hc-news-primary, #0D7C3E);
  border-color: var(--hc-news-primary, #0D7C3E);
  color: #fff;
}

.pagination_product ul a svg {
  display: block;
}

/* ==========================================================================
 * 6. TRANG CHI TIẾT SẢN PHẨM (.product_details_sec_1) CHUẨN 100% THACO
 * ========================================================================== */
.product_details_sec_1 {
  position: relative;
  padding-top: 50px;
  padding-bottom: 60px;
  background: #FFFFFF;
}

.product_details_sec_1::before {
  background: #E5E7EB;
  width: 100%;
  max-width: 1160px;
  bottom: 0;
  content: "";
  position: absolute;
  height: 1px;
  left: 50%;
  transform: translateX(-50%);
}

.product_details_sec_1 .grid-container,
.product_details_sec_2 .grid-container,
.product_related .grid-container {
  width: 100% !important;
  max-width: var(--hc-container-max, 1400px) !important;
  margin: 0 auto !important;
  padding-left: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  padding-right: var(--hc-container-padding, clamp(20px, 3.5vw, 48px)) !important;
  box-sizing: border-box !important;
}

.product_details_sec_1 .grid-100 {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.product_details_sec_1 .grid-55 {
  width: 55%;
  box-sizing: border-box;
}

.product_details_sec_1 .grid-45 {
  width: 45%;
  padding-left: 50px;
  box-sizing: border-box;
}

/* Gallery Ảnh Chính (.gallery-top) & Ảnh縮略 (.gallery-thumbs) */
.gallery-top {
  position: relative;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  margin-bottom: 14px;
  overflow: hidden;
}

.gallery-top .swiper-wrapper {
  position: relative;
  width: 100%;
}

.gallery-top .swiper-slide {
  height: 414px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.gallery-top .swiper-slide.swiper-slide-active,
.gallery-top .swiper-slide.active {
  display: flex;
  animation: fade_up 0.35s ease;
}

.gallery-top .swiper-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.gallery-top img {
  display: block;
  margin: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.gallery-top .swiper-button-prev,
.gallery-top .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(6, 74, 38, 0.08);
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.gallery-top .swiper-button-prev {
  left: 14px;
}

.gallery-top .swiper-button-next {
  right: 14px;
}

.gallery-top .swiper-button-prev::after,
.gallery-top .swiper-button-next::after {
  content: "";
  width: 9px;
  height: 9px;
  border-top: 2px solid #064A26;
  border-right: 2px solid #064A26;
  display: block;
}

.gallery-top .swiper-button-prev::after {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.gallery-top .swiper-button-next::after {
  transform: rotate(45deg);
  margin-right: 3px;
}

.gallery-top .swiper-button-prev:hover,
.gallery-top .swiper-button-next:hover {
  background: #064A26;
  border-color: #F0B429;
}

.gallery-top .swiper-button-prev:hover::after,
.gallery-top .swiper-button-next:hover::after {
  border-color: #FFD700;
}

.product_details_sec_1 .gallery-thumbs,
.gallery-thumbs {
  display: block !important;
  grid-template-columns: none !important;
  gap: 0 !important;
  width: 100%;
  overflow: hidden;
}

.product_details_sec_1 .gallery-thumbs .swiper-wrapper,
.gallery-thumbs .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  width: 100%;
}

.product_details_sec_1 .gallery-thumbs .swiper-slide,
.gallery-thumbs .swiper-slide {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.product_details_sec_1 .gallery-thumbs .swiper-slide img,
.gallery-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.gallery-thumbs .swiper-slide.swiper-slide-thumb-active,
.gallery-thumbs .swiper-slide.swiper-slide-active,
.gallery-thumbs .swiper-slide.active {
  border: 2px solid #064A26;
  box-shadow: inset 0 0 0 1px #F0B429;
}

/* Cột phải: Tên sản phẩm, Thông tin cơ bản, Nút Liên hệ & Hotline */
h1.title_product {
  color: #064A26;
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 26px 0;
  line-height: 1.3;
}

.product_details_sec_1 .list_info .item {
  display: flex;
  align-items: flex-start;
  padding: 13px 0;
  font-size: 15px;
}

.product_details_sec_1 .list_info .item:first-child {
  padding-top: 0;
}

.product_details_sec_1 .list_info .item:not(:last-child) {
  border-bottom: 1px solid #E5E7EB;
}

.product_details_sec_1 .list_info .item b {
  width: 145px;
  flex: 0 0 145px;
  margin-right: 12px;
  color: #1A1A2E;
  font-weight: 700;
}

.product_details_sec_1 .list_info .item .content {
  color: #374151;
  flex: 1;
}

/* Cụm nút Liên hệ báo giá & Số Hotline (ul.list_link) chuẩn 100% THACO */
ul.list_link {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 0 0;
  padding: 0;
  list-style: none;
}

ul.list_link a {
  background: #F0B429;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #064A26;
  font-weight: 800;
  font-size: 18px;
  min-width: 215px;
  padding: 0 22px;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

ul.list_link a svg {
  margin-right: 14px;
}

ul.list_link a svg path {
  fill: #064A26;
}

ul.list_link a:hover {
  background: #FFD700;
  color: #064A26;
}

ul.list_link a.contact {
  background: #064A26;
  color: #FFFFFF;
  text-transform: uppercase;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  margin-right: 4px;
  border: 1px solid #064A26;
}

ul.list_link a.contact:hover {
  background: #0D7C3E;
  color: #FFD700;
  border-color: #F0B429;
}

.content.mota {
  font-size: 15.5px;
  line-height: 1.65;
  color: #374151;
  max-width: 480px;
  margin-top: 32px;
  margin-bottom: 26px;
}

ul.share_product {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.share_product li:not(:last-child) {
  margin-right: 10px;
}

ul.share_product a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #064A26;
  color: #FFD700;
  position: relative;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

ul.share_product a:hover {
  background: #F0B429;
  color: #064A26;
}

ul.share_product svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ==========================================================================
 * 7. THÔNG TIN CHI TIẾT SẢN PHẨM: TABS THÔNG SỐ / MÔ TẢ / FAQs (.product_details_sec_2)
 * ========================================================================== */
.product_details_sec_2 {
  padding-top: 44px;
  padding-bottom: 20px;
  background: #FFFFFF;
}

.box_tabs {
  border: 1px solid #E5E7EB;
  padding: 35px 60px 55px;
  background: #FFFFFF;
  margin-top: 18px;
}

ul.nav_tabs {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 24px 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 14px;
}

ul.nav_tabs li {
  font-size: 20px;
  color: #374151;
  padding: 0 30px;
  cursor: pointer;
  font-weight: 600;
  transition: color 0.2s ease;
}

ul.nav_tabs li:first-child {
  padding-left: 0;
}

ul.nav_tabs li:not(:last-child) {
  border-right: 1px solid #E5E7EB;
}

ul.nav_tabs li:hover {
  color: #064A26;
}

ul.nav_tabs li.active {
  color: #064A26;
  font-weight: 800;
  position: relative;
}

.for_tabs .item {
  display: none;
}

.for_tabs .item.active {
  display: block;
  animation-name: fade_up;
  animation-duration: 0.4s;
}

/* Bảng thông số kỹ thuật trong Tab 1 */
.for_tabs table {
  width: 100%;
  border-collapse: collapse;
}

.for_tabs tr {
  border-bottom: 1px solid #E5E7EB;
}

.for_tabs tr:nth-child(even) {
  background: #F8FAF9;
}

.for_tabs td {
  padding: 14px 20px;
  font-size: 15px;
  color: #1A1A2E;
  vertical-align: middle;
}

.for_tabs tr td:first-child {
  font-weight: 700;
  color: #064A26;
}

.for_tabs .item_tab_2 .content p {
  font-size: 15.5px;
  line-height: 1.75;
  color: #000000;
  font-weight: 400;
  margin: 0 0 12px 0;
}

/* Accordion FAQs trong Tab 3 (.q_a > .item_q_a) chuẩn THACO */
.item_q_a:not(:last-child) {
  margin-bottom: 16px;
}

.item_q_a h3 {
  min-height: 58px;
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 16.5px;
  font-weight: 700;
  padding: 10px 70px 10px 30px;
  background: #F8FAF9;
  color: #064A26;
  cursor: pointer;
  position: relative;
  border-left: 4px solid #064A26;
  transition: background-color 0.25s ease;
}

.item_q_a.active h3,
.item_q_a h3:hover {
  background: #F0FFF4;
  border-left-color: #F0B429;
}

.item_q_a h3 span {
  width: 18px;
  height: 18px;
  position: absolute;
  right: 22px;
}

.item_q_a h3 span::before,
.item_q_a h3 span::after {
  width: 100%;
  height: 2px;
  background: #064A26;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.item_q_a h3 span::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.item_q_a.active h3 span::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.item_q_a .box_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #FFFFFF;
  border: 1px solid transparent;
}

.item_q_a.active .box_content {
  max-height: 600px;
  border-color: #E5E7EB;
  border-top: none;
}

.item_q_a .box_content .inner {
  padding: 20px 30px;
  font-size: 15px;
  line-height: 1.65;
  color: #374151;
}

/* ==========================================================================
 * 8. SẢN PHẨM / DỊCH VỤ LIÊN QUAN (.product_related) CHUẨN THACO
 * ========================================================================== */
.product_related {
  padding-top: 50px;
  padding-bottom: 70px;
  background: #FFFFFF;
}

.product_related .heading_title {
  text-transform: uppercase;
  margin-bottom: 24px;
}

.product_related .wrap_slider {
  position: relative;
}

.product_related .arrow_slider.prev {
  left: -20px;
}

.product_related .arrow_slider.next {
  right: -20px;
}

.slider_product_related {
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 2px 18px;
}

.slider_product_related::-webkit-scrollbar {
  display: none;
}

.slider_product_related .swiper-wrapper {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3);
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slider_product_related .swiper-slide {
  width: 100%;
  min-width: 0;
  display: flex;
}

.slider_product_related .product_item {
  width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
 * 9. POPUP MODAL FORM LIÊN HỆ BÁO GIÁ (.popup_form / #form_bao_gia) CHUẨN THACO
 * ========================================================================== */
.popup_form {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.popup_form.active {
  opacity: 1;
  pointer-events: unset;
}

.popup_form .bg_close {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 24, 13, 0.72);
  backdrop-filter: blur(2px);
}

.popup_form div#form_bao_gia {
  width: 480px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  position: relative;
  z-index: 9;
  padding: 36px 32px 30px;
  border-top: 5px solid #064A26;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.popup_form .button_close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: #064A26;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup_form .button_close svg {
  width: 24px;
  height: 24px;
  fill: #064A26;
}

.popup_form .button_close:hover svg {
  fill: #F0B429;
}

.popup_form .form_modal_heading {
  margin: 0 0 18px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5E7EB;
}

.popup_form .form_modal_heading h3 {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 800;
  color: #064A26;
  text-transform: uppercase;
}

.popup_form .form_modal_heading span {
  font-size: 13px;
  color: #374151;
}

.popup_form div#form_bao_gia .wrap_form .grid-100 p {
  display: block;
  margin: 0 0 12px 0;
}

.popup_form div#form_bao_gia input[type="text"],
.popup_form div#form_bao_gia input[type="tel"],
.popup_form div#form_bao_gia input[type="email"],
.popup_form div#form_bao_gia select,
.popup_form div#form_bao_gia textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  background: #F8FAF9;
  font-size: 14px;
  color: #1A1A2E;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.popup_form div#form_bao_gia input[name="title_product"] {
  background: #F0FFF4;
  color: #064A26;
  font-weight: 700;
  border-color: #064A26;
}

.popup_form div#form_bao_gia textarea {
  height: 96px;
  padding: 10px 14px;
  resize: vertical;
}

.popup_form div#form_bao_gia input:focus,
.popup_form div#form_bao_gia select:focus,
.popup_form div#form_bao_gia textarea:focus {
  border-color: #064A26;
  background: #FFFFFF;
}

.popup_form div#form_bao_gia input.wpcf7-submit {
  width: 100%;
  height: 44px;
  background: #F0B429;
  border: 1px solid #064A26;
  font-weight: 800;
  color: #064A26;
  font-size: 14.5px;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.popup_form div#form_bao_gia input.wpcf7-submit:hover {
  background: #064A26;
  color: #FFD700;
}

.popup_form .wpcf7-response-output {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  display: none;
}

.popup_form .wpcf7-response-output.success {
  background: #E8F5E9;
  border-left: 4px solid #064A26;
  color: #064A26;
  font-weight: 600;
}

.popup_form .wpcf7-response-output.error {
  background: rgba(220, 38, 38, 0.08);
  border-left: 4px solid #DC2626;
  color: #DC2626;
  font-weight: 600;
}

/* ==========================================================================
 * 10. ĐÁP ỨNG ĐA THIẾT BỊ (RESPONSIVE BREAKPOINTS TỪ 375PX ĐẾN 4K)
 * ========================================================================== */
@media (max-width: 1280px) {

  .product_page .arrow_slider.prev,
  .product_related .arrow_slider.prev {
    left: -12px;
  }

  .product_page .arrow_slider.next,
  .product_related .arrow_slider.next {
    right: -12px;
  }

}

@media (max-width: 991px) {
  .product_page .wrap_slider--static .swiper-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .product_page .wrap_slider--scrollable .swiper-slide {
    flex-basis: calc((100% - 28px) / 3);
    width: calc((100% - 28px) / 3);
  }
  .product_page {
    padding: 44px 0 60px;
  }

  .product_page .sidebar.product,
  .product_page .grid-75 {
    width: 100%;
    padding-right: 0;
  }

  .product_toolbar {
    margin: 0 0 20px;
  }

  .btn_toggle_mobile_filter {
    display: inline-flex;
  }

  .sidebar.product .cat_member {
    display: none;
    margin-bottom: 24px;
  }

  .sidebar.product .cat_member.active {
    display: block;
  }

  .wrap_product {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 28px;
  }

  .wrap_product .product_item {
    width: 100%;
    margin: 0;
  }

  .product_item .for_gallery .item_gallery {
    height: 240px;
  }

  .wrap_product.list-view {
    margin: 0 0 28px;
  }

  .wrap_product.list-view .product_item {
    width: 100%;
    margin: 0;
    flex-direction: column;
  }

  .wrap_product.list-view .product_item .for_gallery {
    width: 100%;
    flex: none;
  }

  .wrap_product.list-view .hc_card_specs {
    flex-direction: column;
    gap: 8px;
  }

  .product_details_sec_1 .grid-55,
  .product_details_sec_1 .grid-45 {
    width: 100%;
    padding-left: 0;
  }

  .product_details_sec_1 .grid-45 {
    margin-top: 28px;
  }

  .box_tabs {
    padding: 24px;
  }

  .slider_product_related .swiper-wrapper {
    grid-auto-columns: calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .product_page .wrap_slider--static .swiper-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 10px;
  }
  .product_page .wrap_slider--scrollable .swiper-wrapper {
    gap: 10px;
  }
  .product_page .wrap_slider--scrollable .swiper-slide {
    flex-basis: calc((100% - 10px) / 2);
    width: calc((100% - 10px) / 2);
  }

  .item_cat_product {
    height: 104px;
    padding: 10px 8px;
  }

  .item_cat_product h3 {
    font-size: 12.5px;
  }

  .product_toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .product_toolbar_right {
    justify-content: space-between;
  }

  .product_quick_search,
  .product_quick_search input {
    width: 100%;
  }

  .wrap_product {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0 0 24px;
  }

  .wrap_product .product_item {
    width: 100%;
    margin: 0;
  }

  .product_item .for_gallery .item_gallery {
    height: 230px;
  }

  .gallery-top .swiper-slide {
    height: 260px;
  }

  .gallery-thumbs .swiper-slide {
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 6px;
  }

  h1.title_product {
    font-size: 22px;
  }

  ul.list_link a {
    width: 100%;
    min-width: unset;
  }

  ul.nav_tabs li {
    font-size: 16px;
    padding: 0 14px;
  }

  .item_q_a h3 {
    font-size: 14px;
    padding: 10px 48px 10px 16px;
  }

  .slider_product_related .swiper-wrapper {
    grid-auto-columns: 85%;
  }
}

/* Shared rental, service and equipment archives on touch screens. */
@media (max-width: 1366px) {
  /* Keep archive breadcrumbs in document flow, independent of mobile menu CSS. */
  html body .hc-prod-a-wrapper > nav.hc-block-a-breadcrumb {
    display: block !important;
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 12px 0 !important;
    overflow: visible !important;
    background: #F6F9F7 !important;
    z-index: 1;
  }

  html body .hc-prod-a-wrapper .hc-block-a-breadcrumb .breadcrumb-inner {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    height: auto !important;
    min-height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px !important;
    line-height: 1.5 !important;
  }

  html body .hc-prod-a-wrapper .hc-block-a-breadcrumb a,
  html body .hc-prod-a-wrapper .hc-block-a-breadcrumb .current {
    position: static !important;
    transform: none !important;
    height: auto !important;
    max-width: 100%;
    white-space: normal !important;
    line-height: 1.5 !important;
  }

  html body .hc-prod-a-wrapper .hc-block-a-breadcrumb a {
    color: #4B5563 !important;
  }

  html body .hc-prod-a-wrapper .hc-block-a-breadcrumb .current {
    color: #064A26 !important;
  }

  .hc-catalog-archive nav.pagination_product {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 24px 0 0 !important;
    overflow: visible !important;
  }

  .hc-catalog-archive .pagination_product ul {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center;
    width: max-content !important;
    max-width: 100%;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hc-catalog-archive .pagination_product ul li {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .hc-catalog-archive #banner_gr img {
    height: clamp(180px, 28vw, 340px);
    min-height: 0;
  }

  .hc-catalog-archive .product_page {
    padding: 28px 0 48px;
  }

  .hc-catalog-archive .product_page .grid-container {
    padding-inline: clamp(16px, 3vw, 36px) !important;
  }

  .hc-catalog-archive .product_page h2.heading_title {
    font-size: clamp(20px, 2.6vw, 28px);
    line-height: 1.4;
    margin-bottom: 16px;
  }

  .hc-catalog-archive .product_page .wrap_slider {
    margin: 0 0 28px;
  }

  .hc-catalog-archive .product_page .sidebar.product {
    width: 25% !important;
    padding-right: 20px !important;
  }

  .hc-catalog-archive .product_page .grid-75 {
    width: 75% !important;
    min-width: 0;
  }

  .hc-catalog-archive .wrap_product {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }

  .hc-catalog-archive .product_item,
  .hc-catalog-archive .product_item_body {
    min-width: 0;
    box-sizing: border-box;
  }

  .hc-catalog-archive .product_item h3 {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-size: 17px;
    line-height: 1.5;
  }

  .hc-catalog-archive .product_item .for_gallery .item_gallery {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .hc-catalog-archive .hc_spec_label {
    flex-shrink: 1;
    white-space: normal;
  }

  .hc-catalog-archive .product_item .hc_spec_val {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .hc-catalog-archive .hc_spec_values {
    justify-content: flex-start;
  }

  .hc-catalog-archive .product_toolbar {
    align-items: stretch !important;
    padding: 14px !important;
    gap: 12px !important;
  }

  .hc-catalog-archive .product_toolbar_left,
  .hc-catalog-archive .product_toolbar_right {
    width: 100%;
    min-width: 0;
    flex: 1 0 100%;
    text-align: left;
  }

  .hc-catalog-archive .product_quick_search {
    width: 100% !important;
    min-width: 0;
    flex: 1 1 100% !important;
  }

  .hc-catalog-archive #productSearchInput {
    min-width: 0 !important;
    height: 44px !important;
    font-size: 16px;
  }

  .hc-catalog-archive .product_list_actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hc-catalog-archive .product_list_actions a {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .hc-catalog-archive .pagination_product a,
  .hc-catalog-archive .pagination_product span {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 1023px) {
  /* The category tiles above the list provide the same choices as the sidebar. */
  .hc-catalog-archive .product_page .sidebar.product {
    display: none !important;
  }

  .hc-catalog-archive .product_page .grid-75 {
    width: 100% !important;
  }

  .hc-catalog-archive .product_page .wrap_slider--static .swiper-wrapper {
    grid-template-columns: repeat(var(--hc-cat-count), minmax(0, 1fr));
    gap: 10px;
  }

  .hc-catalog-archive .wrap_slider--scrollable .swiper-wrapper {
    gap: 10px;
  }

  .hc-catalog-archive .wrap_slider--scrollable .swiper-slide {
    flex: 0 0 calc((100% - 40px) / 5);
    width: calc((100% - 40px) / 5);
  }

  .hc-catalog-archive .item_cat_product {
    height: 120px;
    padding: 12px 8px;
  }

  .hc-catalog-archive .item_cat_product h3 {
    font-size: 12px;
    line-height: 1.45;
  }
}

@media (max-width: 639px) {
  .hc-catalog-archive .wrap_product {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px !important;
  }

  .hc-catalog-archive .product_page .wrap_slider .swiper-wrapper {
    display: flex;
    gap: 10px;
  }

  .hc-catalog-archive .product_page .wrap_slider .slider_cat_product {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-block: 4px 12px;
  }

  .hc-catalog-archive .product_page .wrap_slider .swiper-slide {
    width: 136px;
    flex: 0 0 136px;
    scroll-snap-align: start;
  }

  .hc-catalog-archive .product_page .wrap_slider {
    margin-bottom: 16px;
  }

  .hc-catalog-archive .product_toolbar {
    flex-direction: column;
  }

  .hc-catalog-archive .product_toolbar_left,
  .hc-catalog-archive .product_toolbar_right {
    flex: auto;
  }

  .hc-catalog-archive .product_item h3 {
    font-size: 18px;
  }
}

@media (max-width: 1366px) {
  /* Longer service names keep their full text within the same category strip. */
  .hc-catalog-archive .wrap_slider--scrollable .item_cat_product {
    height: auto;
    min-height: 156px;
  }
}

/* Detail breadcrumbs must not inherit the fixed mobile navigation or its offset. */
html body .hc-pd-page > .hc-news-breadcrumb {
  background: #F6F9F7 !important;
  padding-block: 14px;
}

html body .hc-pd-page .hc-news-breadcrumb__nav,
html body .hc-pd-page .hc-news-breadcrumb__list {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100% !important;
}

html body .hc-pd-page .hc-news-breadcrumb__list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 8px;
}

.hc-pd-page .hc-news-breadcrumb__list li {
  width: auto !important;
  min-width: 0;
  flex: 0 0 auto;
  text-align: left !important;
}

html body .hc-pd-page .hc-news-breadcrumb__list li:last-child {
  flex: 1 1 0;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  display: block !important;
  color: #064A26 !important;
}

html body .hc-pd-page .hc-news-breadcrumb__nav a,
html body .hc-pd-page .hc-news-breadcrumb__nav a cite {
  color: #4B5563 !important;
}

/* Rental details share one layout across all equipment entries. */
.hc-rental-detail .hc-pd-sec1 {
  padding: clamp(24px, 3vw, 44px) 0;
}

.hc-rental-detail .hc-pd-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 44px);
}

.hc-rental-detail .hc-pd-info__title {
  font-size: clamp(24px, 2.3vw, 34px);
  line-height: 1.4;
  text-wrap: balance;
  margin-bottom: 20px;
}

.hc-rental-detail .hc-pd-info__item {
  display: grid;
  grid-template-columns: minmax(110px, 32%) minmax(0, 1fr);
  gap: 8px 16px;
  font-size: 15px;
  padding-block: 12px;
}

.hc-rental-detail .hc-pd-info__content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.hc-rental-detail .hc-pd-gallery__main {
  aspect-ratio: 4 / 3;
  padding: 8px;
}

.hc-rental-detail .hc-pd-gallery__img {
  object-fit: contain !important;
}

.hc-rental-detail .hc-pd-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
}

.hc-rental-detail .hc-pd-links li {
  margin: 0;
  flex: 1 1 180px;
}

.hc-rental-detail .hc-pd-btn {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  padding: 12px 16px;
  line-height: 1.4;
  box-sizing: border-box;
}

.hc-rental-detail .hc-pd-share {
  flex-wrap: wrap;
}

.hc-rental-detail .hc-pd-share a {
  width: 44px;
  height: 44px;
}

.hc-rental-detail .hc-pd-sec2 {
  padding-block: 24px;
}

.hc-rental-detail .hc-pd-tabs {
  max-width: none;
  margin-inline: 0;
}

.hc-rental-detail .hc-pd-heading {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.4;
}

.hc-rental-detail .hc-pd-tabs__nav {
  flex-wrap: nowrap;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 0;
}

.hc-rental-detail .hc-pd-tabs__nav li {
  flex: 0 0 auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 3px solid transparent;
}

.hc-rental-detail .hc-pd-tabs__nav li.is-active {
  border-color: #0D7C3E;
}

.hc-rental-detail .hc-pd-tabs__nav li::after {
  display: none;
}

.hc-rental-detail .hc-pd-tabs__nav li:focus-visible {
  outline: 2px solid #0D7C3E;
  outline-offset: -2px;
}

.hc-rental-detail .hc-pd-panel .entry-content {
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.hc-rental-detail .hc-pd-panel .entry-content h1,
.hc-rental-detail .hc-pd-panel .entry-content h2 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.45;
}

.hc-rental-detail .hc-pd-panel .entry-content h3 {
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.5;
}

/* WordPress converts emoji to images; they must retain inline text dimensions. */
html body .hc-rental-detail .entry-content img.emoji,
html body .hc-rental-detail .entry-content img.wp-smiley {
  display: inline !important;
  font-size: inherit !important;
  width: 1em !important;
  height: 1em !important;
  min-height: 0 !important;
  margin: 0 0.08em !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  vertical-align: -0.12em;
  transform: none !important;
}

.hc-rental-detail .hc-rental-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin-block: 20px;
}

.hc-rental-detail .hc-rental-table-scroll table {
  margin: 0;
}

.hc-rental-detail .hc-pd-specs {
  table-layout: fixed;
  overflow-wrap: anywhere;
}

.hc-rental-detail .product_related {
  padding: 32px 0 48px;
}

.hc-rental-detail .product_related .heading_title {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.4;
}

.hc-rental-detail .product_related .arrow_slider {
  width: 44px;
  height: 44px;
}

.hc-rental-detail .product_related .arrow_slider.prev { left: 0; }
.hc-rental-detail .product_related .arrow_slider.next { right: 0; }

.hc-rental-detail .product_related .product_item h3 {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  font-size: 17px;
  line-height: 1.5;
}

.hc-rental-detail .product_related .hc_spec_label {
  flex-shrink: 1;
  white-space: normal;
}

.hc-rental-detail .product_related .hc_spec_val {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
}

.hc-rental-detail .product_list_actions {
  flex-wrap: wrap;
  gap: 8px;
}

.hc-rental-detail .product_list_actions a {
  min-height: 44px;
  padding-inline: 12px;
  font-size: 12px;
}

@media (max-width: 1199px) {
  .hc-rental-detail .slider_product_related .swiper-wrapper {
    grid-auto-columns: calc((100% - 24px) / 2);
  }
}

@media (max-width: 1023px) {
  .hc-rental-detail .hc-pd-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hc-rental-detail .hc-pd-gallery__main {
    aspect-ratio: 16 / 10;
    max-height: 480px;
  }
}

@media (max-width: 639px) {
  html body .hc-rental-detail .container {
    padding-inline: 16px !important;
  }

  .hc-rental-detail .hc-pd-info__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .hc-rental-detail .hc-gallery-zoom-badge {
    bottom: 8px;
    right: 8px;
    font-size: 11px;
    padding: 6px 10px;
  }

  .hc-rental-detail .slider_product_related .swiper-wrapper {
    grid-auto-columns: 100%;
  }

  .hc-rental-detail .hc-pd-specs td {
    padding: 12px 10px;
    font-size: 14px;
  }
}

/* Trạng thái tải AJAX */
.product_page.is-loading #load_product {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.hc-prod-a__loading {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
  width: 100%;
}

.hc-prod-a__loading[hidden] {
  display: none !important;
}

.hc-prod-a__spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(6, 74, 38, 0.15);
  border-top-color: #064A26;
  border-radius: 50%;
  animation: hc-prod-spin 0.8s linear infinite;
}

@keyframes hc-prod-spin {
  to {
    transform: rotate(360deg);
  }
}
