/* Catalog and product category rows. The existing filters keep their own styles. */
.catalog--category .catalog-benefits {
  display: flex;
  align-items: stretch;
  box-sizing: border-box;
  margin: 24px 0 0;
  padding: 14px 10px;
  border-radius: 14px;
  background: linear-gradient(105deg, #f7f5ff, #f1efff);
  color: #12183b;
}

.catalog--category .catalog-benefits__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  padding: 0 20px;
  border-right: 1px solid #d8d5f0;
  font-size: 16px;
  line-height: 1.25;
}

.catalog--category .catalog-benefits__item:last-child { border-right: 0; }
.catalog--category .catalog-benefits__item--rating { white-space: nowrap; }
.catalog--category .catalog-benefits__item--rating strong { font-size: 21px; }
.catalog--category .catalog-benefits__item--reviews { color: #4735ce; white-space: nowrap; }
.catalog--category .catalog-benefits__item--feature { flex: 1 1 0; }

.catalog--category .catalog-benefits__stars {
  position: relative;
  display: inline-block;
  color: #d1d4e1;
  font-size: 23px;
  letter-spacing: -2px;
  line-height: 1;
  white-space: nowrap;
}

.catalog--category .catalog-benefits__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #ffbd00;
  white-space: nowrap;
}

.catalog--category .catalog-benefits__icon {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  stroke: #00bd38;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 991.98px) {
  .catalog--category .catalog-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 0; }
  .catalog--category .catalog-benefits__item { justify-content: flex-start; padding: 8px 16px; border-right: 0; }
}

@media (max-width: 479.98px) {
  .catalog--category .catalog-benefits { grid-template-columns: 1fr; }
  .catalog--category .catalog-benefits__item { padding: 6px 12px; }
}

.catalog--rows .catalog-rows-heading,
.catalog--rows .catalog-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(155px, .65fr) 160px;
  align-items: center;
  column-gap: 24px;
}

.catalog--rows .catalog-rows-heading {
  margin-top: 24px;
  padding: 13px 24px;
  text-align: center;
  border: 1px solid #e1e4e8;
  border-radius: 14px 14px 0 0;
  background: #f5f6f7;
  color: #3c4456;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.catalog--rows .catalog-category-grid,
.catalog--rows .products-wrapper,
.catalog--rows .products-wrapper--grid {
  display: block;
  margin: 0;
}

.catalog--rows .catalog-row {
  min-width: 0;
  padding: 13px 24px;
  border: 1px solid #e1e4e8;
  border-top: 0;
  background: #fff;
  color: #11133d;
  transition: background-color .2s ease;
}

.catalog--rows .catalog-row:last-child {
  border-radius: 0 0 14px 14px;
}

.catalog--rows .catalog-row:hover {
  background: #faf9ff;
}

.catalog--rows .catalog-row__configuration {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.catalog--rows .catalog-row__badge {
  display: inline-flex;
  grid-column: 1;
  justify-self: start;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 64px;
  max-width: 100%;
  min-height: 44px;
  padding: 5px 14px;
  border-radius: 12px;
  background: #e5e0ff;
  color: #20156f;
  font-size: 20px;
  font-weight: 750;
  text-align: center;
  overflow-wrap: anywhere;
}

.catalog--rows .catalog-row__copy { grid-column: 2; min-width: 0; }
.catalog--rows .catalog-row__title {
  margin: 0;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 700;
  line-height: 1.25;
}
.catalog--rows .catalog-row__title a { color: inherit; text-decoration: none; }
.catalog--rows .catalog-row__title a:hover { color: #4b32d5; }
.catalog--rows .catalog-row__subtitle {
  margin: 3px 0 0;
  color: #5d6485;
  font-size: 15px;
  line-height: 1.35;
}

.catalog--rows .catalog-row__country {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding-left: 24px;
  border-left: 1px solid #e1e4e8;
  font-size: 16px;
}
.catalog--rows .catalog-row__flag { font-size: 24px; line-height: 1; }
.catalog--rows .catalog-row__flag--image { display: block; flex: 0 0 24px; width: 24px; height: 24px; object-fit: contain; }
.catalog--rows .catalog-row__missing { color: #79809c; font-size: 14px; }

.catalog--rows .catalog-row__button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid #6951eb;
  border-radius: 11px;
  color: #271775;
  font-size: 16px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.catalog--rows .catalog-row__button:hover,
.catalog--rows .catalog-row__button:focus-visible {
  background: #5638d7;
  color: #fff;
}
.catalog--rows .catalog-row__button span { font-size: 27px; line-height: .65; }

/* Both view URLs still work, but catalog archives have a single row layout. */
.catalog--rows .catalog-view-switcher { display: none; }

@media (max-width: 767.98px) {
  .catalog--rows .catalog-rows-heading { display: none; }
  .catalog--rows .catalog-category-grid,
  .catalog--rows .products-wrapper { margin-top: 20px; }
  .catalog--rows .catalog-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    margin-bottom: 10px;
    padding: 16px;
    border: 1px solid #e1e4e8;
    border-radius: 14px;
  }
  .catalog--rows .catalog-row__configuration { grid-column: 1 / -1; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
  .catalog--rows .catalog-row__badge { min-width: 52px; min-height: 42px; font-size: 17px; }
  .catalog--rows .catalog-row__country { padding: 0; border: 0; font-size: 14px; }
  .catalog--rows .catalog-row__button { min-height: 38px; padding: 6px 12px; font-size: 14px; }
}

@media (max-width: 399.98px) {
  .catalog--rows .catalog-row { grid-template-columns: 1fr; }
  .catalog--rows .catalog-row__configuration { grid-column: 1; grid-template-columns: 84px minmax(0, 1fr); }
  .catalog--rows .catalog-row__button { width: 100%; }
}

