/* ==================================================
   KHOIAUTO CATEGORY LAYOUT
================================================== */

.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: 18px !important;
}

.ka-filter-head {
  height: 52px !important;
  background: linear-gradient(135deg, #171717, #050505) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 18px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

.ka-filter-group {
  padding: 15px 16px !important;
  border-bottom: 1px solid #f0f0f0 !important;
}

.ka-filter-group:last-child {
  border-bottom: 0 !important;
}

.ka-filter-title {
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  margin-bottom: 9px !important;
}

.ka-filter-group select,
.ka-filter-group input[type="text"] {
  width: 100% !important;
  height: 38px !important;
  border: 1px solid #ddd !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 13px !important;
  padding: 0 10px !important;
  box-shadow: none !important;
}

.ka-filter-group label {
  display: block !important;
  color: #555 !important;
  font-size: 13px !important;
  margin-bottom: 8px !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: 13px !important;
  font-weight: 800 !important;
  margin-bottom: 10px !important;
}

.ka-filter-btn {
  width: 100% !important;
  height: 40px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #c90000 !important;
  color: #fff !important;
  font-size: 13px !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 72px !important;
  gap: 6px !important;
}

.ka-oem-search button {
  height: 38px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #111 !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}


/* ZALO + WHY */
.ka-zalo-card,
.ka-why-card {
  padding: 18px !important;
}

.ka-zalo-card h4,
.ka-why-card h4 {
  margin: 0 0 8px !important;
  color: #111 !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

.ka-why-card h4 span {
  color: #d00000 !important;
}

.ka-zalo-card p {
  color: #555 !important;
  font-size: 13px !important;
  margin-bottom: 12px !important;
}

.ka-zalo-card a {
  height: 42px !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: 13px !important;
}

.ka-zalo-icon {
  width: 44px !important;
  height: 44px !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: 12px !important;
  margin-bottom: 10px !important;
}

.ka-why-card ul {
  list-style: none !important;
  margin: 0 0 14px !important;
  padding: 0 !important;
}

.ka-why-card li {
  position: relative !important;
  color: #444 !important;
  font-size: 13px !important;
  padding-left: 18px !important;
  margin-bottom: 8px !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: 10px !important;
  padding: 12px !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
}

.ka-customer-count span {
  font-size: 13px !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;
}

.ka-product-grid .product-small .box-text:after {
  content: "Chat Zalo";
  display: inline-flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  margin-top: 10px;
  border: 1px solid #0068ff;
  border-radius: 6px;
  color: #0068ff;
  font-size: 12px;
  font-weight: 900;
}


/* 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;
  }
}
