/* KAMAZ catalog archive v4 */
body.post-type-archive-product .wd-page-title,
body.tax-product_cat .wd-page-title,
body.post-type-archive-product .page-title,
body.tax-product_cat .page-title {
  display: none !important;
}

body.post-type-archive-product .main-page-wrapper,
body.tax-product_cat .main-page-wrapper,
body.post-type-archive-product .wd-content-layout,
body.tax-product_cat .wd-content-layout,
body.post-type-archive-product .site-content,
body.tax-product_cat .site-content,
body.post-type-archive-product .wd-content-area,
body.tax-product_cat .wd-content-area,
body.post-type-archive-product .content-layout-wrapper,
body.tax-product_cat .content-layout-wrapper {
  padding-top: 0 !important;
  margin-top: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.post-type-archive-product .container,
body.tax-product_cat .container {
  max-width: none !important;
}

.kamaz-archive,
.kamaz-archive-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  font-family: inherit;
}

.kamaz-archive *,
.kamaz-archive-hero * {
  box-sizing: border-box;
}

.kamaz-archive-container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding-left: clamp(20px, 3vw, 56px) !important;
  padding-right: clamp(20px, 3vw, 56px) !important;
}

/* HERO */
.kamaz-archive-hero {
  background: rgba(0, 77, 137, 1);
  color: #fff;
  padding: 38px 0 44px;
  overflow: hidden;
}

.kamaz-archive-hero__inner {
  max-width: none !important;
}

.kamaz-archive-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 700;
}

.kamaz-archive-breadcrumbs a,
.kamaz-archive-breadcrumbs em,
.kamaz-archive-breadcrumbs span {
  color: rgba(255, 255, 255, .72);
  font-style: normal;
}

.kamaz-archive-breadcrumbs a:hover {
  color: #ffffff;
}

.kamaz-archive-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 5vw, 86px);
  line-height: .96;
  font-weight: 900;
  letter-spacing: -.045em;
  text-transform: uppercase;
}

/* LAYOUT */
.kamaz-archive {
  background: #fff;
  padding: 0 0 70px;
}

.kamaz-archive-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  max-width: none !important;
  width: 100% !important;
}

.kamaz-archive-sidebar {
  position: relative;
  z-index: 6;
  min-width: 0;
}

.kamaz-archive-sidebar__inner {
  position: sticky;
  top: 96px;
  padding: 30px 22px 34px 0;
  background: #fff;
}

.kamaz-mobile-filter-button,
.kamaz-filter-close {
  display: none;
}

/* FILTERS */
.kamaz-catalog-filters {
  display: grid;
  gap: 22px;
}

.kamaz-catalog-filters__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kamaz-catalog-filters__title {
  margin: 0;
  color: #111;
  font-size: 31px;
  line-height: 1;
  font-weight: 900;
}

.kamaz-catalog-filters__top a {
  color: #8a94a3;
  font-size: 14px;
  font-weight: 800;
}

.kamaz-filter-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  color: #111;
  text-align: left;
  cursor: pointer;
}

.kamaz-filter-group__title span {
  color: #111;
  font-size: 23px;
  line-height: 1.02;
  font-weight: 900;
}

.kamaz-filter-group__title em {
  width: 10px;
  height: 10px;
  border-right: 2px solid #0b1220;
  border-bottom: 2px solid #0b1220;
  transform: rotate(45deg) translateY(-3px);
  opacity: .45;
}

.kamaz-filter-group.is-closed .kamaz-filter-group__title em {
  transform: rotate(-45deg);
}

.kamaz-filter-group.is-closed .kamaz-filter-group__body {
  display: none;
}

.kamaz-filter-group__body {
  display: grid;
  gap: 9px;
}

.kamaz-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  color: #111;
  font-size: 16px;
  line-height: 1.25;
}

.kamaz-filter-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kamaz-filter-checkbox span {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1.5px solid #111;
  background: #fff;
}

.kamaz-filter-checkbox input:checked + span {
  background: rgba(0, 77, 137, 1);
  border-color: rgba(0, 77, 137, 1);
}

.kamaz-filter-checkbox input:checked + span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.kamaz-filter-checkbox b {
  font-weight: 500;
}

.kamaz-filter-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 6px;
  padding: 15px 20px;
  border: 0;
  background: #f2f2f2;
  color: #111;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

/* RESULTS */
.kamaz-archive-results {
  --kamaz-catalog-cols: 3;
  min-width: 0;
  width: 100% !important;
  max-width: none !important;
  padding-left: 0;
}

.kamaz-archive-results > *,
.kamaz-products-fragment,
.kamaz-archive-results .products,
.kamaz-archive-results .wd-products {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.kamaz-shop-loop-head {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 18px 0 22px !important;
  border-bottom: 1px solid #e6ebf0 !important;
}

.kamaz-shop-loop-head .wd-shop-tools {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
}

.kamaz-shop-loop-head .woocommerce-result-count {
  margin: 0 !important;
}

/* hide native view switch if theme duplicates our own switch */
.kamaz-shop-loop-head .wd-products-shop-view,
.kamaz-shop-loop-head .wd-shop-view,
.kamaz-shop-loop-head .wd-products-per-row,
.kamaz-shop-loop-head .shop-view {
  display: none !important;
}

.kamaz-grid-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kamaz-grid-switch button {
  display: grid;
  grid-template-columns: repeat(var(--k-grid, 3), 7px);
  gap: 3px;
  width: auto;
  min-width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: .35;
}

.kamaz-grid-switch button[data-kamaz-cols="2"] { --k-grid: 2; }
.kamaz-grid-switch button[data-kamaz-cols="3"] { --k-grid: 3; }
.kamaz-grid-switch button[data-kamaz-cols="4"] { --k-grid: 4; }

.kamaz-grid-switch button span {
  display: block;
  width: 7px;
  height: 7px;
  border: 2px solid #003b63;
}

.kamaz-grid-switch button.is-active,
.kamaz-grid-switch button:hover {
  opacity: 1;
}

.kamaz-products-fragment {
  position: relative;
  min-height: 260px;
}

.kamaz-products-fragment.is-loading {
  opacity: .45;
  pointer-events: none;
}

.kamaz-products-fragment.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 80px;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border: 3px solid rgba(0,48,85,.18);
  border-top-color: rgba(0, 77, 137, 1);
  border-radius: 50%;
  animation: kamaz-spin .75s linear infinite;
}

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

.kamaz-archive-results .products,
.kamaz-archive-results .wd-products {
  display: grid !important;
  grid-template-columns: repeat(var(--kamaz-catalog-cols), minmax(0, 1fr)) !important;
  align-items: stretch !important;
  justify-items: stretch !important;
  gap: 0 !important;
  margin: 0 !important;
}

.kamaz-archive-results .products::before,
.kamaz-archive-results .products::after,
.kamaz-archive-results .wd-products::before,
.kamaz-archive-results .wd-products::after {
  content: none !important;
  display: none !important;
}

.kamaz-archive-results .product,
.kamaz-loop-product {
  float: none !important;
  clear: none !important;
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  animation: kamaz-card-in .42s ease both;
}

@keyframes kamaz-card-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.kamaz-product-card {
  display: grid !important;
  grid-template-rows: 270px 1fr !important;
  width: 100% !important;
  min-height: 620px !important;
  height: 100% !important;
  background: #fff;
  color: #111;
  transition: transform .22s ease, box-shadow .22s ease;
}

.kamaz-loop-product:nth-child(even) .kamaz-product-card {
  background: #f0f0f0;
}

.kamaz-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0,30,60,.14);
  z-index: 3;
}

.kamaz-product-card__image {
  display: block;
  height: 270px;
  overflow: hidden;
  background: #eef2f5;
}

.kamaz-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}

.kamaz-product-card:hover .kamaz-product-card__image img {
  transform: scale(1.055);
}

.kamaz-product-card__body {
  display: flex;
  flex-direction: column;
  min-height: 350px;
  padding: 24px 26px 26px;
}

.kamaz-product-card__status {
  color: #9aa1aa;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.kamaz-product-card__status.is-in_stock,
.kamaz-product-card__status.is-available,
.kamaz-product-card__status.is-stock,
.kamaz-product-card__status.is-instock {
  color: #68717d;
}

.kamaz-product-card__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 1.55vw, 30px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -.02em;
  text-align: left;
}

.kamaz-product-card__title a {
  color: #111;
}

.kamaz-product-card__price {
  margin-bottom: 12px;
  color: #003b63;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
}

.kamaz-product-card__specs {
  display: grid;
  gap: 7px;
  margin-top: 0;
  margin-bottom: 16px;
}

.kamaz-product-card__spec-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  color: #111;
  font-size: 12px;
  line-height: 1.25;
}

.kamaz-product-card__spec-row span {
  color: #111;
  font-weight: 400;
}

.kamaz-product-card__spec-row strong {
  color: #111;
  font-weight: 700;
  text-align: right;
}

.kamaz-product-card__spec-row small {
  margin-left: 3px;
  font-size: 11px;
  font-weight: 500;
}

.kamaz-product-card__more {
  justify-self: start;
  margin-top: auto;
  color: #111;
  font-size: 14px;
  font-weight: 800;
}

.kamaz-product-card__more span {
  display: inline-block;
  transition: transform .2s ease;
}

.kamaz-product-card__more:hover span {
  transform: translateX(5px);
}

@media (min-width: 1500px) {
  .kamaz-product-card { grid-template-rows: 290px 1fr !important; min-height: 650px !important; }
  .kamaz-product-card__image { height: 290px; }
}

@media (max-width: 1280px) {
  .kamaz-archive-layout {
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 20px;
  }

  .kamaz-archive-results {
    --kamaz-catalog-cols: 2;
  }
}

@media (max-width: 768px) {
  .kamaz-archive-container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .kamaz-archive-hero {
    padding: 24px 0 28px;
  }

  .kamaz-archive-breadcrumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 14px;
    font-size: 12px;
  }

  .kamaz-archive-hero h1 {
    font-size: 34px;
    line-height: 1.02;
  }

  .kamaz-archive-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .kamaz-mobile-filter-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 14px 0;
    padding: 14px 18px;
    border: 0;
    background: #003b63;
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .kamaz-archive-sidebar__inner {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(86vw, 360px);
    z-index: 99999;
    padding: 40px 22px 28px;
    overflow-y: auto;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 18px 0 45px rgba(0,0,0,.22);
  }

  body.kamaz-filter-open .kamaz-archive-sidebar__inner {
    transform: translateX(0);
  }

  .kamaz-filter-close {
    display: block;
    position: absolute;
    right: 14px;
    top: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #111;
    font-size: 28px;
    line-height: 1;
  }

  .kamaz-shop-loop-head {
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 0 16px !important;
  }

  .kamaz-archive-results {
    --kamaz-catalog-cols: 1;
  }

  .kamaz-grid-switch {
    display: none;
  }

  .kamaz-product-card {
    grid-template-rows: 235px 1fr !important;
    min-height: auto !important;
  }

  .kamaz-product-card__image {
    height: 235px;
  }

  .kamaz-product-card__body {
    min-height: auto;
  }
}

/* ==========================================================
   KAMAZ catalog v5 additions: category switcher + toolbar/grid fixes
   ========================================================== */
.kamaz-category-nav-wrap {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: #fff;
  border-bottom: 1px solid #e6ebf0;
}

.kamaz-category-nav {
  position: relative;
  padding: 18px 0;
  overflow: hidden;
}

.kamaz-category-nav__track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.kamaz-category-nav__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  background: #f2f4f7;
  color: #111;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.kamaz-category-nav__item:hover,
.kamaz-category-nav__item.is-active {
  background: rgba(0, 77, 137, 1);
  color: #fff;
  border-color: rgba(0, 77, 137, 1);
  transform: translateY(-1px);
}

.kamaz-category-nav__item span {
  white-space: nowrap;
}

.kamaz-archive-results[data-kamaz-cols-current="2"] .products,
.kamaz-archive-results[data-kamaz-cols-current="2"] .wd-products {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.kamaz-archive-results[data-kamaz-cols-current="3"] .products,
.kamaz-archive-results[data-kamaz-cols-current="3"] .wd-products {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.kamaz-archive-results[data-kamaz-cols-current="4"] .products,
.kamaz-archive-results[data-kamaz-cols-current="4"] .wd-products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.kamaz-shop-loop-head {
  position: relative;
  z-index: 4;
}

.kamaz-grid-switch button {
  padding: 4px !important;
}

.kamaz-filter-group--empty {
  display: none;
}

@media (max-width: 1180px) {
  .kamaz-archive-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
  }

  .kamaz-archive-results[data-kamaz-cols-current="4"] .products,
  .kamaz-archive-results[data-kamaz-cols-current="4"] .wd-products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .kamaz-archive-layout {
    grid-template-columns: 1fr;
  }

  .kamaz-archive-sidebar__inner {
    position: fixed !important;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(86vw, 360px);
    z-index: 9999;
    overflow-y: auto;
    padding: 28px 22px;
    transform: translateX(-105%);
    transition: transform .24s ease;
    box-shadow: 18px 0 48px rgba(0,0,0,.18);
  }

  body.kamaz-filter-open .kamaz-archive-sidebar__inner {
    transform: translateX(0);
  }

  .kamaz-mobile-filter-button,
  .kamaz-filter-close {
    display: inline-flex !important;
  }

  .kamaz-mobile-filter-button {
    align-items: center;
    gap: 8px;
    margin: 18px 0 8px;
    padding: 14px 18px;
    border: 0;
    background: #f2f2f2;
    color: #111;
    font-weight: 900;
    text-transform: uppercase;
  }

  .kamaz-filter-close {
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 0;
    background: #f2f2f2;
    color: #111;
    font-size: 20px;
  }

  .kamaz-archive-results[data-kamaz-cols-current] .products,
  .kamaz-archive-results[data-kamaz-cols-current] .wd-products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .kamaz-archive-hero {
    padding: 28px 0 34px;
  }

  .kamaz-archive-hero h1 {
    font-size: clamp(34px, 12vw, 50px);
  }

  .kamaz-archive-breadcrumbs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
  }

  .kamaz-category-nav {
    padding: 12px 0;
  }

  .kamaz-category-nav__item {
    min-height: 42px;
    padding: 0 14px;
    font-size: 12px;
  }

  .kamaz-shop-loop-head {
    justify-content: flex-start !important;
  }

  .kamaz-archive-results[data-kamaz-cols-current] .products,
  .kamaz-archive-results[data-kamaz-cols-current] .wd-products {
    grid-template-columns: 1fr !important;
  }

  .kamaz-grid-switch {
    display: none !important;
  }
}

/* === ATK archive refinement v6: calmer filters + left aligned cards === */
.kamaz-archive-layout {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
}

.kamaz-archive-sidebar__inner {
  padding: 26px 18px 32px 0;
}

.kamaz-catalog-filters {
  gap: 16px;
}

.kamaz-catalog-filters__title {
  font-size: 26px;
  letter-spacing: -.03em;
}

.kamaz-catalog-filters__top a {
  font-size: 13px;
  font-weight: 750;
}

.kamaz-filter-group {
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 14px;
}

.kamaz-filter-group:last-child {
  border-bottom: 0;
}

.kamaz-filter-group__title {
  min-height: 42px;
  padding: 0 12px;
  background: #f5f6f8;
}

.kamaz-filter-group__title span {
  font-size: 16px;
  line-height: 1.05;
  letter-spacing: .01em;
  font-weight: 850;
}

.kamaz-filter-group__title em {
  width: 8px;
  height: 8px;
  border-width: 1.5px;
}

.kamaz-filter-group__body {
  gap: 8px;
  padding-top: 10px;
}

.kamaz-filter-checkbox {
  gap: 9px;
  font-size: 14px;
  line-height: 1.25;
}

.kamaz-filter-checkbox span {
  flex-basis: 15px;
  width: 15px;
  height: 15px;
  border-width: 1.2px;
}

.kamaz-filter-checkbox input:checked + span::after {
  left: 3px;
  top: 1px;
  width: 6px;
  height: 9px;
}

.kamaz-filter-checkbox b {
  font-weight: 500;
}

.kamaz-filter-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
  padding: 13px 16px;
  font-size: 13px;
  background: #f5f6f8;
}

.kamaz-product-card__body {
  align-items: flex-start;
  text-align: left;
  padding: 22px 24px 24px;
}

.kamaz-product-card__status,
.kamaz-product-card__price,
.kamaz-product-card__more {
  text-align: left;
}

.kamaz-product-card__title {
  width: 100%;
  font-size: clamp(17px, .92vw, 21px) !important;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-align: left !important;
}

.kamaz-product-card__price {
  font-size: 13px;
}

.kamaz-product-card__specs {
  width: 100%;
}

.kamaz-product-card__spec-row {
  font-size: 11.5px;
  gap: 10px;
}

@media (max-width: 1199px) {
  .kamaz-archive-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .kamaz-catalog-filters__title {
    font-size: 24px;
  }

  .kamaz-filter-group__title span {
    font-size: 15px;
  }

  .kamaz-filter-checkbox {
    font-size: 13.5px;
  }

  .kamaz-product-card__title {
    font-size: 19px !important;
  }
}

/* ==========================================================
   ATK archive refinement v7: clean filters + faster UX
   ========================================================== */

.kamaz-archive-layout {
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 32px;
}

.kamaz-archive-sidebar__inner {
  padding: 24px 10px 32px 0;
  background: transparent;
}

.kamaz-mobile-filter-button,
.kamaz-filter-close {
  display: none !important;
}

.kamaz-catalog-filters {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.kamaz-catalog-filters__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5ebf1;
}

.kamaz-catalog-filters__title {
  margin: 0;
  color: #071d33;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.04em;
}

.kamaz-catalog-filters__top a {
  color: #8a99aa;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.kamaz-catalog-filters__top a:hover {
  color: #173A63;
}

.kamaz-filter-group {
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid #e4ebf2;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(7, 29, 51, .035);
}

.kamaz-filter-group:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid #e4ebf2;
}

.kamaz-filter-group__title {
  min-height: 44px;
  width: 100%;
  padding: 0 13px;
  border: 0;
  background: #f7f9fb;
  color: #071d33;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

.kamaz-filter-group__title:hover {
  background: #eef4f8;
}

.kamaz-filter-group__title span {
  color: #071d33;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.kamaz-filter-group__title em {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 1.6px solid #65758a;
  border-bottom: 1.6px solid #65758a;
  transform: rotate(45deg) translateY(-2px);
  opacity: .75;
  transition: transform .18s ease;
}

.kamaz-filter-group.is-closed .kamaz-filter-group__title em {
  transform: rotate(-45deg) translateY(1px);
}

.kamaz-filter-group__body {
  display: grid;
  gap: 7px;
  padding: 12px 13px 14px;
  background: #fff;
}

.kamaz-filter-group.is-closed .kamaz-filter-group__body {
  display: none;
}

.kamaz-filter-checkbox {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-height: 21px;
  color: #172638;
  cursor: pointer;
  user-select: none;
  font-size: 13px;
  line-height: 1.28;
}

.kamaz-filter-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kamaz-filter-checkbox span {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1.4px solid #b5c1ce;
  border-radius: 3px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease;
}

.kamaz-filter-checkbox input:checked + span {
  background: #173A63;
  border-color: #173A63;
}

.kamaz-filter-checkbox input:checked + span::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.kamaz-filter-checkbox b {
  min-width: 0;
  color: #172638;
  font-size: inherit;
  font-weight: 500;
}

.kamaz-filter-checkbox:hover b {
  color: #173A63;
}

.kamaz-filter-submit {
  display: none !important;
}

.kamaz-products-fragment {
  transition: opacity .16s ease;
}

.kamaz-products-fragment.is-loading {
  opacity: .48;
  pointer-events: none;
}

.kamaz-archive.is-filtering .kamaz-catalog-filters {
  cursor: progress;
}

@media (max-width: 1199px) {
  .kamaz-archive-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .kamaz-archive-sidebar__inner {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    z-index: auto !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  .kamaz-catalog-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
  }

  .kamaz-catalog-filters__top {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }
}

@media (max-width: 767px) {
  .kamaz-catalog-filters {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .kamaz-catalog-filters__title {
    font-size: 22px;
  }

  .kamaz-filter-group__title {
    min-height: 42px;
  }

  .kamaz-filter-group__title span {
    font-size: 12.5px;
  }

  .kamaz-filter-checkbox {
    font-size: 13px;
  }
}

/* v9 filter behavior fixes: sticky sidebar without internal scrollbar */
.kamaz-archive-sidebar {
  align-self: start;
  overflow: visible !important;
}

.kamaz-archive-sidebar__inner {
  position: sticky !important;
  top: var(--kamaz-filter-sticky-top, 120px) !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  scrollbar-width: auto;
}

.kamaz-catalog-filters .kamaz-filter-checkbox b {
  text-transform: none;
}

@media (max-width: 1199px) {
  .kamaz-archive-sidebar__inner {
    position: static !important;
    top: auto !important;
  }
}

/* === ATK archive refinement v10: JS-fixed filter sidebar === */
@media (min-width: 1200px) {
  .kamaz-archive-layout,
  .kamaz-archive-sidebar {
    overflow: visible !important;
  }

  .kamaz-archive-sidebar {
    position: relative !important;
    align-self: stretch;
  }

  .kamaz-archive-sidebar__inner {
    position: relative;
    top: auto;
    will-change: top, left, width;
  }

/*   .kamaz-archive-sidebar__inner.kamaz-sidebar-fixed,
  .kamaz-archive-sidebar__inner.kamaz-sidebar-bottom {
    box-shadow: 0 18px 45px rgba(7, 29, 51, .08);
  } */

  .kamaz-archive-sidebar__inner.kamaz-sidebar-fixed {
    background: #fff;
  }

  .kamaz-archive-sidebar__inner.kamaz-sidebar-bottom {
    background: #fff;
  }
}

@media (max-width: 1199px) {
  .kamaz-archive-sidebar,
  .kamaz-archive-sidebar__inner {
    min-height: 0 !important;
  }
}

.kamaz-archive-sidebar.is-fixed,
.kamaz-archive-sidebar.is-bottom,
.kamaz-archive-sidebar__inner.is-fixed,
.kamaz-archive-sidebar__inner.is-bottom {
  background: transparent !important;
  box-shadow: none !important;
}

.kamaz-filter {
  background: transparent !important;
}

.kamaz-filter__group,
.kamaz-filter-section,
.kamaz-filter-panel {
  background: #f3f5f7 !important;
}
