/* Hero search */
.catalog-hero {
  background: var(--color-bg-hero);
  color: var(--color-white);
  padding: 40px 0 48px;
}

.catalog-hero__title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 24px;
}

.catalog-hero__search {
  display: flex;
  gap: 0;
  max-width: 100%;
}

.catalog-hero__search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: 15px;
  color: black;
}

.catalog-hero__search .btn {
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 28px;
  flex-shrink: 0;
}

.catalog-hero__hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.85;
}

.catalog-hero__hints a,
.catalog-hero__hint {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.catalog-hero__hints a:hover,
.catalog-hero__hint:hover {
  opacity: 1;
  text-decoration: none;
}

.catalog-content--full {
  width: 100%;
}

.catalog-search-empty {
  margin: 24px 0;
  font-size: 16px;
  font-weight: 500;
}

/* Benefits */
.benefits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.benefit__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

/* Catalog layout */
.catalog-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 32px 0 48px;
}

/* Sidebar filters */
.filters {
  position: sticky;
  top: 20px;
  align-self: start;
}

.filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.filters__title {
  font-size: 18px;
  font-weight: 700;
}

.filters__reset {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

.filters__reset:hover {
  text-decoration: underline;
}

.filters__group {
  margin-bottom: 24px;
}

.filters__group-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.filters__submit {
  margin-top: 8px;
}

.filters-mobile-btn {
  display: none;
  width: 100%;
  margin-bottom: 16px;
}

/* Catalog toolbar */
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.catalog-toolbar__count {
  font-size: 15px;
  color: var(--color-text-muted);
}

.catalog-toolbar__count strong {
  color: var(--color-text);
  font-weight: 600;
}

.catalog-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.catalog-toolbar__sort select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  cursor: pointer;
}

/* Product list card */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-card {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: box-shadow var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-card);
}

.product-card__image {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.product-card__image .no-photo {
  width: 100%;
  height: 100%;
}

.product-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card__title a:hover {
  color: var(--color-primary);
}

.product-card__meta {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.product-card__meta strong {
  color: var(--color-text);
  font-weight: 500;
}

.product-card__desc {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-top: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  min-width: 160px;
}

.product-card__actions .btn {
  min-width: 160px;
}

/* Mobile product card */
@media (max-width: 1023px) {
  .benefits {
    grid-template-columns: repeat(3, 1fr);
  }

  .catalog-main {
    grid-template-columns: 1fr;
  }

  .filters {
    display: none;
  }

  .filters-mobile-btn {
    display: flex;
  }
}

@media (max-width: 767px) {
  .header__top,
  .header__nav {
    display: none;
  }

  .header-mobile {
    display: flex;
  }

  .catalog-hero {
    padding: 24px 0 32px;
  }

  .catalog-hero__search {
    flex-direction: column;
    gap: 12px;
  }

  .catalog-hero__search .search-wrapper {
    width: 100%;
  }

  .catalog-hero__search input {
    border-radius: var(--radius);
  }

  .catalog-hero__search .btn {
    border-radius: var(--radius);
    width: 100%;
  }

  .benefits {
    display: none;
  }

  .product-card {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    gap: 12px 16px;
    padding: 16px;
  }

  .product-card__image {
    width: 80px;
    height: 80px;
    grid-row: 1 / 3;
  }

  .product-card__body {
    grid-column: 2;
  }

  .product-card__title {
    font-size: 15px;
  }

  .product-card__desc {
    display: none;
  }

  .product-card__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: stretch;
    min-width: 0;
    width: 100%;
  }

  .product-card__actions .status {
    margin-right: auto;
  }

  .product-card__actions .btn {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }

  .footer-cta__top {
    flex-direction: column;
    text-align: center;
  }

  .footer-cta__request {
    flex-direction: column;
    align-items: center;
  }

  .footer-cta__btn {
    width: 100%;
  }

  .footer-cta__phone {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .footer-cta__bottom {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }

  .footer-cta__copy,
  .footer-cta__nav,
  .footer-cta__dev {
    justify-self: center;
  }
}
