.ka-cat-hero {
  min-height: 340px !important;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 40%, rgba(0,0,0,.18) 100%),
    url('/wp-content/uploads/2026/06/khoiauto-category-lexus-bg.jpg') center center / cover no-repeat !important;
  position: relative !important;
  overflow: hidden !important;
}

.ka-cat-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .22;
}

.ka-cat-hero-row {
  min-height: 340px !important;
  position: relative !important;
  z-index: 2 !important;
}

.ka-cat-breadcrumb {
  color: rgba(255,255,255,.78) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-bottom: 22px !important;
}

.ka-cat-title h1 {
  margin: 0 0 12px !important;
  color: #fff !important;
  font-size: clamp(42px, 4.2vw, 58px) !important;
  font-weight: 900 !important;
  line-height: .95 !important;
  letter-spacing: -.03em !important;
  text-transform: uppercase !important;
}

.ka-cat-title h1 span {
  color: #e60000 !important;
}

.ka-cat-title p {
  color: rgba(255,255,255,.86) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  max-width: 520px !important;
  margin: 0 0 18px !important;
}

.ka-cat-hero-icons .col-inner {
  padding: 0 !important;
}

.ka-cat-icon-box {
  border: 1px solid rgba(255,255,255,.16) !important;
  background: rgba(0,0,0,.35) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
  backdrop-filter: blur(6px);
}

.ka-cat-icon-box h4 {
  color: #fff !important;
  margin: 0 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.ka-cat-icon-box p {
  color: rgba(255,255,255,.75) !important;
  font-size: 12px !important;
  margin: 0 !important;
}


/* MAIN */
.ka-cat-main {
  background: #fff !important;
}

.ka-cat-layout {
  align-items: flex-start !important;
}

.ka-cat-sidebar {
  position: relative !important;
}

.ka-filter-card,
.ka-zalo-card,
.ka-why-card {
  background: #fff !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.05) !important;
  margin-bottom: 12px !important;
}

.ka-filter-head {
  height: 42px !important;
  background: linear-gradient(135deg, #171717, #050505) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.ka-filter-group {
  padding: 10px 13px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.ka-filter-group:last-child {
  border-bottom: 0 !important;
}

.ka-filter-title {
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
}

.ka-filter-group select,
.ka-filter-group input[type="text"] {
  width: 100% !important;
  height: 34px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 12px !important;
  padding: 0 8px !important;
  box-shadow: none !important;
}

.ka-filter-group label {
  display: block !important;
  color: #555 !important;
  font-size: 12px !important;
  margin-bottom: 5px !important;
  line-height: 1.35 !important;
}

.ka-filter-group input[type="checkbox"] {
  margin-right: 6px !important;
}

.ka-price-line {
  display: flex !important;
  justify-content: space-between !important;
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  margin-bottom: 7px !important;
}

.ka-filter-btn {
  width: 100% !important;
  height: 36px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #c90000 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
}

.ka-filter-more {
  color: #0068ff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.ka-oem-search {
  display: grid !important;
  grid-template-columns: 1fr 68px !important;
  gap: 5px !important;
}

.ka-oem-search button {
  height: 34px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}
.ka-zalo-card,
.ka-why-card {
  padding: 14px !important;
}

.ka-zalo-card h4,
.ka-why-card h4 {
  margin: 0 0 6px !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.ka-why-card h4 span {
  color: #d00000 !important;
}

.ka-zalo-card p {
  color: #555 !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  margin-bottom: 9px !important;
}

.ka-zalo-card a {
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0068ff !important;
  color: #fff !important;
  border-radius: 7px !important;
  font-weight: 900 !important;
  font-size: 12px !important;
}

.ka-zalo-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  border: 1px solid #dbe8ff !important;
  color: #0068ff !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 900 !important;
  font-size: 10px !important;
  margin-bottom: 7px !important;
}

.ka-why-card ul {
  list-style: none !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
}
.ka-why-card li {
  position: relative !important;
  color: #444 !important;
  font-size: 12px !important;
  padding-left: 15px !important;
  margin-bottom: 5px !important;
  line-height: 1.35 !important;
}

.ka-why-card li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #c90000;
  font-weight: 900;
}

.ka-customer-count {
  background: #c90000 !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 9px 10px !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}
.ka-customer-count span {
  font-size: 11px !important;
  font-weight: 700 !important;
}


/* CONTENT HEADING */
.ka-cat-heading {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 18px !important;
}

.ka-cat-heading h2 {
  color: #111 !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  margin: 0 0 8px !important;
}

.ka-cat-heading p {
  color: #666 !important;
  margin: 0 !important;
  font-size: 14px !important;
}

.ka-cat-sort {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ka-cat-sort select {
  height: 38px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  box-shadow: none !important;
}

.ka-cat-sort span {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  display: grid !important;
  place-items: center !important;
  color: #444 !important;
}


/* MODEL CARDS */
.ka-model-row {
  margin-bottom: 20px !important;
}

.ka-model-card {
  border: 1px solid #e7e7e7 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: 12px 8px !important;
  text-align: center !important;
  min-height: 126px !important;
  transition: .2s ease !important;
}

.ka-model-card:hover {
  border-color: #d00000 !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.08) !important;
  transform: translateY(-2px);
}

.ka-model-card img {
  height: 54px !important;
  width: auto !important;
  object-fit: contain !important;
  margin: 0 auto 8px !important;
}

.ka-model-card h4 {
  color: #111 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  margin: 0 0 3px !important;
}

.ka-model-card p {
  color: #666 !important;
  font-size: 12px !important;
  margin: 0 !important;
}


/* PRODUCT BOX FLATSOME */
.ka-product-grid .product-small .box {
  border: 1px solid #e7e7e7 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.045) !important;
  transition: .2s ease !important;
}

.ka-product-grid .product-small .box:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(0,0,0,.09) !important;
  border-color: #ddd !important;
}

.ka-product-grid .product-small .box-image {
  background: #f7f7f7 !important;
}

.ka-product-grid .product-small .box-text {
  padding: 12px 13px 14px !important;
}

.ka-product-grid .product-title a {
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.ka-product-grid .price {
  color: #d00000 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
}
/* RED BENEFITS */
.ka-red-benefits {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0 !important;
  background: linear-gradient(135deg, #d40000, #9d0000) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin: 28px 0 20px !important;
  box-shadow: 0 16px 38px rgba(160,0,0,.18) !important;
}

.ka-red-benefit {
  padding: 20px 22px !important;
  border-right: 1px solid rgba(255,255,255,.22) !important;
}

.ka-red-benefit:last-child {
  border-right: 0 !important;
}

.ka-red-benefit b {
  color: #fff !important;
  display: block !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  margin-bottom: 5px !important;
}

.ka-red-benefit span {
  color: rgba(255,255,255,.82) !important;
  font-size: 12px !important;
}


/* PAGINATION FAKE */
.ka-pagination-demo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 10px 0 30px !important;
}

.ka-pagination-demo a,
.ka-pagination-demo span {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid #ddd !important;
  border-radius: 7px !important;
  display: grid !important;
  place-items: center !important;
  color: #333 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.ka-pagination-demo .active {
  background: #c90000 !important;
  color: #fff !important;
  border-color: #c90000 !important;
}


/* SEO BOX */
.ka-cat-seo-box {
  border: 1px solid #e5e5e5 !important;
  border-radius: 14px !important;
  padding: 18px !important;
  margin-bottom: 34px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.045) !important;
}

.ka-cat-seo-box h3 {
  color: #111 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  margin: 0 0 10px !important;
}

.ka-cat-seo-box p,
.ka-cat-seo-box li {
  color: #444 !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.ka-cat-seo-box ul {
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

.ka-cat-seo-box li {
  position: relative !important;
  padding-left: 20px !important;
}

.ka-cat-seo-box li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d00000;
  font-weight: 900;
}


/* RESPONSIVE */
@media (max-width: 849px) {
  .ka-cat-hero {
    min-height: auto !important;
    padding: 44px 0 !important;
  }

  .ka-cat-hero-row {
    min-height: auto !important;
  }

  .ka-cat-title h1 {
    font-size: 42px !important;
  }

  .ka-cat-heading {
    display: block !important;
  }

  .ka-cat-sort {
    margin-top: 14px !important;
  }

  .ka-red-benefits {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 549px) {
  .ka-red-benefits {
    grid-template-columns: 1fr !important;
  }

  .ka-red-benefit {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.22) !important;
  }
}
.ka-cat-main {
  background: #fff !important;
  padding-top: 34px !important;
}

/* Row cha chứa sidebar + content */
.ka-cat-layout.row,
.row.ka-cat-layout {
  width: min(1240px, calc(100% - 32px)) !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
}

/* Reset cột trực tiếp trong row này */
.ka-cat-layout > .col {
  float: none !important;
  clear: none !important;
  box-sizing: border-box !important;
}

/* Cột trái: bộ lọc */
.ka-cat-layout > .col.ka-cat-sidebar,
.ka-cat-layout > .col:first-child {
  flex: 0 0 280px !important;
  width: 280px !important;
  max-width: 280px !important;
  padding-left: 0 !important;
  padding-right: 24px !important;
}

/* Cột phải: sản phẩm */
.ka-cat-layout > .col.ka-cat-content,
.ka-cat-layout > .col:nth-child(2) {
  flex: 1 1 calc(100% - 280px) !important;
  width: calc(100% - 280px) !important;
  max-width: calc(100% - 280px) !important;
  min-width: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Col-inner không được tự co bóp */
.ka-cat-layout > .col > .col-inner {
  width: 100% !important;
  max-width: 100% !important;
}

/* Heading bên phải */
.ka-cat-heading {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 20px !important;
  margin-bottom: 18px !important;
}

.ka-cat-sort {
  flex: 0 0 auto !important;
}

/* Dòng model xe: để Flatsome chia cột, chỉ chỉnh khoảng cách */
.ka-model-row {
  margin-left: -7px !important;
  margin-right: -7px !important;
  margin-bottom: 20px !important;
}

.ka-model-row > .col {
  padding-left: 7px !important;
  padding-right: 7px !important;
}

/* Product grid: không đổi display của .products */
.ka-product-grid .product-small .box {
  border: 1px solid #e7e7e7 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.045) !important;
}

.ka-product-grid .box-image img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .ka-cat-layout > .col.ka-cat-sidebar,
  .ka-cat-layout > .col:first-child {
    flex-basis: 250px !important;
    width: 250px !important;
    max-width: 250px !important;
    padding-right: 18px !important;
  }

  .ka-cat-layout > .col.ka-cat-content,
  .ka-cat-layout > .col:nth-child(2) {
    width: calc(100% - 250px) !important;
    max-width: calc(100% - 250px) !important;
  }
}

/* Mobile */
@media (max-width: 849px) {
  .ka-cat-layout.row,
  .row.ka-cat-layout {
    display: block !important;
    width: calc(100% - 24px) !important;
    max-width: calc(100% - 24px) !important;
  }

  .ka-cat-layout > .col.ka-cat-sidebar,
  .ka-cat-layout > .col.ka-cat-content,
  .ka-cat-layout > .col:first-child,
  .ka-cat-layout > .col:nth-child(2) {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .ka-cat-heading {
    display: block !important;
  }

  .ka-cat-sort {
    margin-top: 12px !important;
  }
}
.ka-wc-price-slider .ka-price-widget {
  margin: 0 !important;
}

.ka-wc-price-slider .widget_price_filter form {
  margin: 0 !important;
}

.ka-wc-price-slider .price_slider_wrapper {
  padding-top: 8px !important;
}

.ka-wc-price-slider .price_slider {
  margin: 0 8px 18px !important;
}

.ka-wc-price-slider .price_slider_amount {
  display: flex !important;
  flex-direction: column-reverse !important;
  gap: 10px !important;
  text-align: left !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.ka-wc-price-slider .price_slider_amount .button {
  width: 100% !important;
  height: 36px !important;
  border-radius: 7px !important;
  background: #c90000 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  border: 0 !important;
  margin: 0 !important;
}

.ka-wc-price-slider .price_label {
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.ka-wc-price-slider .ui-slider {
  background: #e5e5e5 !important;
  border: 0 !important;
  height: 5px !important;
  border-radius: 99px !important;
}

.ka-wc-price-slider .ui-slider-range {
  background: #c90000 !important;
}

.ka-wc-price-slider .ui-slider-handle {
  width: 16px !important;
  height: 16px !important;
  top: -6px !important;
  border-radius: 50% !important;
  background: #c90000 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
}
/* ==================================================
   KHOIAUTO CATEGORY - PRICE RANGE + PRODUCT CARD FIX
================================================== */

.ka-price-range-form {
  margin: 0 !important;
}

.ka-price-range-values {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
  color: #111 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.ka-price-range-wrap {
  position: relative !important;
  height: 28px !important;
  margin: 0 4px 14px !important;
}

.ka-price-range-wrap input[type="range"] {
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  width: 100% !important;
  height: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #e5e5e5 !important;
  border: 0 !important;
  border-radius: 99px !important;
  pointer-events: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ka-price-range-wrap input[type="range"]::-webkit-slider-thumb {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #c90000 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.ka-price-range-wrap input[type="range"]::-moz-range-thumb {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
  background: #c90000 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.25) !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

.ka-price-empty {
  margin: 0 !important;
  color: #666 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
}

/* Product card mới */
.ka-custom-product-grid {
  margin-top: 12px !important;
}

.ka-product-card {
  border: 1px solid #e7e7e7 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.045) !important;
  transition: .2s ease !important;
}

.ka-product-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.09) !important;
}

.ka-product-image {
  background: #f7f7f7 !important;
}

.ka-product-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

.ka-product-text {
  padding: 12px 13px 14px !important;
}

.ka-product-cat,
.ka-product-cat a {
  color: #777 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  margin-bottom: 5px !important;
}

.ka-product-title {
  margin: 0 0 10px !important;
  min-height: 40px !important;
}

.ka-product-title a {
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.ka-card-action-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.ka-card-price {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  color: #d00000 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

.ka-card-price .amount {
  color: #d00000 !important;
  font-weight: 900 !important;
}

.ka-order-label {
  display: inline-flex !important;
  align-items: center !important;
  height: 30px !important;
  color: #d00000 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.ka-card-zalo {
  flex: 0 0 auto !important;
  height: 30px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  border: 1px solid #0068ff !important;
  border-radius: 6px !important;
  color: #0068ff !important;
  background: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.ka-card-zalo:hover {
  background: #0068ff !important;
  color: #fff !important;
}
/* ==================================================
   KHOIAUTO - EQUAL HEIGHT PRODUCT CARD
================================================== */

.ka-custom-product-grid > .col {
  display: flex !important;
}

.ka-custom-product-grid > .col > .col-inner {
  display: flex !important;
  width: 100% !important;
}

.ka-custom-product-grid .ka-product-card {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 100% !important;
}

.ka-custom-product-grid .ka-product-image {
  flex: 0 0 auto !important;
}

.ka-custom-product-grid .ka-product-image a {
  display: block !important;
  width: 100% !important;
}

.ka-custom-product-grid .ka-product-image img {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  display: block !important;
}

.ka-custom-product-grid .ka-product-text {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}

.ka-custom-product-grid .ka-product-cat {
  min-height: 18px !important;
}

.ka-custom-product-grid .ka-product-title {
  min-height: 58px !important;
  margin-bottom: 12px !important;
}

.ka-custom-product-grid .ka-card-action-row {
  margin-top: auto !important;
}

/* ==================================================
   KHOIAUTO - PRODUCT IMAGE FRAME FIX
   Ép ảnh sản phẩm nằm đều trong cùng một khung
================================================== */

.ka-custom-product-grid .ka-product-image {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  background: #f7f7f7 !important;
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
}

.ka-custom-product-grid .ka-product-image a {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.ka-custom-product-grid .ka-product-image img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}
/* ==================================================
   KHOIAUTO - CHILD CATEGORY MODEL STRIP
   10 danh mục con / hàng, không dùng card nặng
================================================== */

.ka-model-strip {
  display: grid !important;
  grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
  margin: 16px 0 26px !important;
}

.ka-model-strip-item {
  display: block !important;
  text-align: center !important;
  text-decoration: none !important;
  color: #111 !important;
  min-width: 0 !important;
}

.ka-model-strip-img {
  width: 100% !important;
  height: 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 7px !important;
  overflow: hidden !important;
}

.ka-model-strip-img img {
  max-width: 100% !important;
  max-height: 54px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  transition: transform .2s ease !important;
}

.ka-model-strip-item:hover .ka-model-strip-img img {
  transform: translateY(-2px) scale(1.04) !important;
}

.ka-model-strip-info {
  display: block !important;
  line-height: 1.25 !important;
}

.ka-model-strip-info strong {
  display: block !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ka-model-strip-info em {
  display: block !important;
  margin-top: 2px !important;
  color: #666 !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .ka-model-strip {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }
}

/* Mobile */
@media (max-width: 549px) {
  .ka-model-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
  }

  .ka-model-strip-img {
    height: 46px !important;
  }

  .ka-model-strip-img img {
    max-height: 46px !important;
  }

  .ka-model-strip-info strong {
    font-size: 12px !important;
  }

  .ka-model-strip-info em {
    font-size: 10px !important;
  }
}
/* ==================================================
   KHOIAUTO - CATEGORY SORT BAR FIX
================================================== */

.ka-cat-heading {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin-bottom: 18px !important;
}

.ka-cat-heading-text {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.ka-cat-heading-text h2 {
  margin: 0 0 6px !important;
  font-size: 28px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  color: #111 !important;
}

.ka-cat-heading-text p {
  margin: 0 !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  color: #555 !important;
}

.ka-cat-sort {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  margin-top: 0 !important;
}

.ka-cat-sort form {
  margin: 0 !important;
}

.ka-cat-sort select {
  width: auto !important;
  min-width: 142px !important;
  max-width: 160px !important;
  height: 34px !important;
  line-height: 34px !important;
  padding: 0 28px 0 10px !important;
  border: 1px solid #ddd !important;
  border-radius: 7px !important;
  background-color: #fff !important;
  color: #333 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  margin: 0 !important;
}

.ka-cat-sort span {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border: 1px solid #ddd !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #333 !important;
  background: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: .18s ease !important;
}

.ka-cat-sort span:hover {
  border-color: #c90000 !important;
  color: #c90000 !important;
  background: #fff5f5 !important;
}

/* Mobile */
@media (max-width: 849px) {
  .ka-cat-heading {
    display: block !important;
  }

  .ka-cat-sort {
    justify-content: flex-start !important;
    margin-top: 12px !important;
    flex-wrap: wrap !important;
  }

  .ka-cat-sort select {
    min-width: 150px !important;
  }
}
/* ==================================================
   KHOIAUTO - VIEW SWITCHER BUTTONS
================================================== */

.ka-cat-sort .ka-view-btn {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border: 1px solid #ddd !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #333 !important;
  background: #fff !important;
  font-size: 14px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: .18s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

.ka-cat-sort .ka-view-btn:hover,
.ka-cat-sort .ka-view-btn.is-active {
  border-color: #c90000 !important;
  color: #c90000 !important;
  background: #fff5f5 !important;
}

/* 3 cột lớn */
.ka-custom-product-grid.ka-view-grid-3 > .col {
  flex-basis: 33.3333% !important;
  max-width: 33.3333% !important;
}

/* 4 cột */
.ka-custom-product-grid.ka-view-grid-4 > .col {
  flex-basis: 25% !important;
  max-width: 25% !important;
}

/* Compact/list gọn */
.ka-custom-product-grid.ka-view-compact > .col {
  flex-basis: 50% !important;
  max-width: 50% !important;
}

.ka-custom-product-grid.ka-view-compact .ka-product-card {
  display: grid !important;
  grid-template-columns: 120px 1fr !important;
  min-height: 130px !important;
}

.ka-custom-product-grid.ka-view-compact .ka-product-image {
  height: 100% !important;
  aspect-ratio: auto !important;
  border-radius: 12px 0 0 12px !important;
}

.ka-custom-product-grid.ka-view-compact .ka-product-image img {
  height: 100% !important;
  object-fit: cover !important;
}

.ka-custom-product-grid.ka-view-compact .ka-product-text {
  padding: 12px !important;
}

.ka-custom-product-grid.ka-view-compact .ka-product-title {
  min-height: auto !important;
}

/* Tablet */
@media (max-width: 1024px) {
  .ka-custom-product-grid.ka-view-grid-3 > .col,
  .ka-custom-product-grid.ka-view-grid-4 > .col {
    flex-basis: 33.3333% !important;
    max-width: 33.3333% !important;
  }
}

/* Mobile */
@media (max-width: 549px) {
  .ka-custom-product-grid.ka-view-grid-3 > .col,
  .ka-custom-product-grid.ka-view-grid-4 > .col,
  .ka-custom-product-grid.ka-view-compact > .col {
    flex-basis: 50% !important;
    max-width: 50% !important;
  }

  .ka-custom-product-grid.ka-view-compact .ka-product-card {
    display: flex !important;
    flex-direction: column !important;
  }

  .ka-custom-product-grid.ka-view-compact .ka-product-image {
    aspect-ratio: 1 / 1 !important;
    border-radius: 12px 12px 0 0 !important;
  }
}
/* ==================================================
   KHOIAUTO - SIDEBAR PRODUCT CATEGORIES
================================================== */

.ka-sidebar-cat-list {
  padding-bottom: 8px !important;
}

.ka-sidebar-cats {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ka-sidebar-cat-item {
  margin: 0 !important;
  padding: 0 !important;
}

.ka-sidebar-cat-item a {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 8px 0 !important;
  color: #222 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  border-bottom: 1px dashed #eee !important;
}

.ka-sidebar-cat-item:last-child a {
  border-bottom: 0 !important;
}

.ka-sidebar-cat-item a:hover,
.ka-sidebar-cat-item.is-active a {
  color: #d00000 !important;
}

.ka-sidebar-cat-item span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.ka-sidebar-cat-item em {
  flex: 0 0 auto !important;
  min-width: 24px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 99px !important;
  background: #f3f3f3 !important;
  color: #555 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-style: normal !important;
  font-weight: 800 !important;
}

.ka-sidebar-cat-item.is-active em,
.ka-sidebar-cat-item a:hover em {
  background: #d00000 !important;
  color: #fff !important;
}

.ka-sidebar-cat-empty {
  margin: 0 !important;
  color: #777 !important;
  font-size: 12px !important;
}
/* ==================================================
   KHOIAUTO - CATEGORY INTRO ALIGN LEFT
================================================== */

.ka-cat-heading-text,
.ka-cat-intro {
  text-align: left !important;
}

.ka-cat-intro h1,
.ka-cat-intro h2,
.ka-cat-intro h3,
.ka-cat-intro p,
.ka-cat-count {
  text-align: left !important;
}

.ka-cat-intro h1,
.ka-cat-intro h2,
.ka-cat-intro h3 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.tax-product_cat .woocommerce-result-count,
.tax-product_cat .woocommerce-ordering {
  display: none !important;
}

