/* Catalog Page (Каталог вилочных погрузчиков) */

/* Catalog Section */
.catalog-section {
  padding: 30px 0 60px;
}

.catalog-section__layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

.catalog-section__content {
  flex: 1 1 auto;
}

.catalog-section .product-cards__container {
  grid-template-columns: repeat(3, 1fr);
}

.catalog-section__title {
  font-size: 30px;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 30px;
}

/* Catalog Filters */
.catalog-filters {
  flex: 0 0 260px;
  max-width: 260px;
  position: sticky;
  top: calc(var(--header-height, 70px) + 20px);
  align-self: flex-start;
  max-height: calc(100vh - (var(--header-height, 70px) + 20px));
  height: 100%;
  overflow-y: auto;
}

.catalog-filters__form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: max-content;
  padding-bottom: 32px;
}

.catalog-filters__group {
  margin: 0;
  padding: 0 0 16px;
  border: none;
  border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
}

.catalog-filters__group:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.catalog-filters__legend {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary, #174783);
}

.catalog-filters__options-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.catalog-filters__option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  cursor: pointer;
  font-size: 16px;
}

.catalog-filters__input {
  width: 16px;
  height: 16px;
  cursor: pointer;
  appearance: none;
  border: var(--color-primary) 1px solid;
  border-radius: 2px;
  position: relative;
  transition: all var(--transition-base);
}
.catalog-filters__input:after {
  content: '';
  background-image: url("../../img/icons/check.svg");
  background-size: 11px;
  width: 11px;
  height: 11px;
  background-position: center;
  background-repeat: no-repeat;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.catalog-filters__input:checked {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
}
.catalog-filters__input:checked:after {
  opacity: 1;
}
.catalog-filters__input:checked:hover {
  border-color: var(--color-accent-hover);
  background-color: var(--color-accent-hover);
}
.catalog-filters__input:disabled{
  border-color: #c7c7c7;
  cursor: not-allowed !important;
}

.catalog-filters__label-text {
  cursor: pointer;
}

/* Catalog Hero (banner image) */
.catalog-hero-section {
  padding-top: 10px;
  padding-bottom: 10px;
}

.catalog-hero {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(23, 71, 131, 0.06);
}

.catalog-hero__image {
  display: block;
  width: 100%;
  height: auto;
}

/* Similar Products Section */
.similar-products-section {
  padding: 60px 0;
}

.similar-products-section__title {
  font-size: 34px;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 30px;
}

.similar-products {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.similar-products__item {
  list-style: none;
}

.similar-products__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 18px 28px;
  border-radius: 14px;
  background: rgba(20, 38, 52, 0.07);
  color: var(--color-primary, #174783);
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.similar-products__link:hover {
  background: rgba(20, 38, 52, 0.12);
}

/* Info Card Section */
.info-card-section {
  padding: 60px 0;
}

.info-card-section__card {
  background: rgba(23, 71, 131, 0.06);
  border-radius: 32px;
  padding: 60px 70px;
}
.info-card-section__card + .info-card-section__card {
  margin-top: 32px; 
}

.info-card-section__card h2{
  margin: 0 0 24px;
  margin-bottom: 0;
  font-size: 34px;
  font-weight: 500;
  color: var(--color-primary);
}

/* Forklifts Info Section */
.forklifts-info-section {
  padding-top: 30px;
}

.forklifts-info-section__title {
  color: var(--color-primary);
  font-weight: 500;
  text-align: left;
  margin: 0;
}

@media screen and (min-width: 480px) {
  .forklifts-info-section__title {
    font-size: 30px;
  }
}

.forklifts-info-section__description {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 0;
}

/* Forklifts Details Section */
.forklifts-details-section {
  padding-top: 15px;
}

.forklifts-details-section .page-content {
  font-size: 16px;
}

.forklifts-details-section .page-content p {
  margin-bottom: 0;
}

.forklifts-details-section .page-content p + p {
  margin-top: 0;
}

/* Mobile Filters Toggle Button */
.catalog-filters__mobile-toggle {
  display: none;
}

/* Filters Popup */
.catalog-filters-popup {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.catalog-filters-popup.is-open {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.catalog-filters-popup__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.catalog-filters-popup__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 1;
}

.catalog-filters-popup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  flex-shrink: 0;
}

.catalog-filters-popup__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--color-primary, #174783);
}

.catalog-filters-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text, #333);
  transition: color 0.2s ease;
}

.catalog-filters-popup__close:hover {
  color: var(--color-primary, #174783);
}

.catalog-filters-popup__content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
  min-height: 0; /* Important for flex scrolling */
}

.catalog-filters__form--popup {
  padding-bottom: 0;
}

.catalog-filters-popup__footer {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
  flex-shrink: 0;
  background: #fff;
}

.catalog-filters-popup__button {
  flex: 1 1 auto;
  min-height: 50px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.catalog-filters-popup__button--reset {
  background: rgba(23, 71, 131, 0.08);
  color: var(--color-primary, #174783);
}

.catalog-filters-popup__button--reset:hover {
  background: rgba(23, 71, 131, 0.12);
}

.catalog-filters-popup__button--apply {
  background: var(--color-primary, #174783);
  color: #fff;
}

.catalog-filters-popup__button--apply:hover {
  background: rgba(23, 71, 131, 0.9);
}

/* Responsive tweaks */
@media screen and (max-width: 980px) {
  .catalog-section {
    padding: 32px 0 30px;
  }

  .catalog-section__title {
    font-size: 24px;
  }

  .catalog-section__layout {
    flex-direction: column;
    gap: 0;
  }

  .catalog-filters {
    display: none;
  }

  .catalog-filters__mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 24px;
    margin-bottom: 20px;
    border: 1px solid var(--color-border, rgba(0, 0, 0, 0.1));
    border-radius: 12px;
    background: #fff;
    color: var(--color-primary, #174783);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .catalog-filters__mobile-toggle:hover {
    background: rgba(23, 71, 131, 0.08);
  }

  .catalog-section .product-cards__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .similar-products-section {
    padding: 40px 0;
  }

  .similar-products-section__title {
    font-size: 28px;
  }

  .similar-products {
    gap: 16px;
  }

  .similar-products__link {
    min-height: 64px;
    padding: 16px 20px;
    font-size: 16px;
  }

  .info-card-section {
    padding: 40px 0;
  }

  .info-card-section__card {
    padding: 30px 20px;
    border-radius: 24px;
  }

  .info-card-section__card h2{
    font-size: 28px;
  }
}
@media screen and (max-width: 576px) {
  .catalog-section .product-cards__container{
    grid-template-columns:  1fr;

  }
  .catalog-hero__image{
    object-fit: cover;
    height: 75px;
  }
}
@media screen and (max-width: 640px) {
  
  .info-card-section__card h2{
    font-size: 24px;
    margin-bottom: 12px;
  }
}

/* Product Cards – базовая верстка для каталога (скопирована из home.css) */
.product-cards__text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.product-cards__title {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 12px;
  line-height: 1.3;
}

.product-cards__specs {
  margin-bottom: 16px;
}

.product-cards__spec {
  font-size: 15px;
  line-height: 1.5;
  color: #666;
  margin: 0 0 4px;
}

.product-cards__spec:last-child {
  margin-bottom: 0;
}

.product-cards__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary, #174783);
  margin-bottom: 20px;
  line-height: 1.2;
}

.product-cards__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 0;
}

.product-cards__button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

.product-cards__button--primary {
  background: var(--color-accent);
  color: #fff;
}

.product-cards__button--primary:hover {
  color: #fff;
  background: var(--color-accent-hover);
}

/* При наведении на всю карточку — эффект как при ховере на кнопку "Подробнее" */
.product-cards__item:hover .product-cards__button--primary,
.product-cards__link:hover .product-cards__button--primary,
.product-cards__link:focus-visible .product-cards__button--primary {
  color: #fff;
  background: var(--color-accent-hover);
}

.product-cards__button--secondary {
  background: #fff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.product-cards__button--secondary:hover {
  background: #2160ac;
  border-color: #2160ac;
  color: #fff;
}

