body {
  background: #fff;
}

.crumb-bar .crumb {
  font-size: 15px;
}

.products-page {
  background: #fff;
  padding: 28px 0 64px 52px;
}

.products-body {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: start;
}

.prod-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 24px;
  border-right: 1px solid #e5e5e5;
}

.cat-item {
  position: relative;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #333;
  font-size: 15px;
  line-height: 1.4;
  text-align: center;
  width: 100%;
  min-height: 118px;
  padding: 8px 10px;
}

.cat-item.active {
  color: var(--blue);
}

.cat-item.active::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--blue);
}

.cat-ico {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
}

.products-main {
  min-width: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 22px;
}

.prod-card {
  min-width: 0;
}

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

.prod-card img {
  width: 100%;
  height: 148px;
  object-fit: contain;
  background: #fff;
  display: block;
}

.prod-card h3 {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
  color: #222;
  text-align: center;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  max-width: 100%;
}

.prod-card h3 .tag-hot {
  position: relative;
  top: -1px;
  display: inline-block;
}

.prod-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 118px;
  height: 34px;
  margin: 12px auto 0;
  padding: 0 18px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #fff;
  color: #8a8a8a;
  font-size: 15px;
  letter-spacing: 0.5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.prod-more:hover {
  color: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 4px 10px rgba(47, 124, 246, 0.12);
}

.prod-card p {
  margin-top: 10px;
  color: #888;
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.consult-float {
  position: fixed;
  left: 0;
  top: 42%;
  z-index: 80;
  width: 44px;
  background: var(--blue);
  color: #fff;
  border-radius: 0 8px 8px 0;
  padding: 12px 8px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}

.consult-chat {
  writing-mode: horizontal-tb;
  width: 22px;
  height: 22px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3V4zm3 4v2h10V8H7zm0 4v2h7v-2H7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M4 4h16v12H7l-3 3V4zm3 4v2h10V8H7zm0 4v2h7v-2H7z'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .products-page {
    padding-left: 0;
  }

  .products-body {
    grid-template-columns: 1fr;
  }

  .prod-cats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
    gap: 0;
  }

  .cat-item {
    width: auto;
    min-width: 72px;
    min-height: 96px;
  }

  .cat-item.active::after {
    top: auto;
    bottom: -1px;
    right: 18%;
    left: 18%;
    width: auto;
    height: 2px;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 14px;
  }

  .consult-float {
    display: none;
  }
}
