/* ====================================
   CATALOG
==================================== */

.catalog {
    padding: 25px 24px 20px;
}
.catalog-hero {
    padding: 25px 24px 25px;
}
.catalog-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #8B95A5;
}
.catalog-breadcrumbs a {
    color: #8B95A5;
    text-decoration: none;
}
.catalog-breadcrumbs a:hover {
    color: #e77b2c;
}
.catalog-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1F2937;
}
.catalog-description {
    font-size: 14px;
    color: #8B95A5;
    line-height: 1.4;
    color:#e77b2c
}
/* ====================================
   CATALOG — подбор автомобиля
==================================== */

.car-filter {
    width: 100%;
    margin: 0;
    padding: 22px 48px 22px;
    background: #222b3a;
    border-radius: 0;
}
.car-filter__title {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}
/* ---------- Строка фильтров ---------- */

.car-filter__steps {
    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        1fr
        1fr
        220px;

    gap: 12px;
    align-items: center;
}
/* ---------- Один шаг ---------- */

.filter-step {
      width: 100%;;
}
/* Номер */

.filter-step__number {
    width: 38px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #e77b2c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px 0 0 10px;
}
/* Select */

.filter-step__select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: none;
    outline: none;
    background: #ffffff;
    color: #2f2e2d;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
}
/* Неактивные поля */

.filter-step__select:disabled {
    background: #d1d5db;
    color:  #8b95a5;
    cursor: not-allowed;
}
.filter-step {
    position: relative;
}
.filter-step__select option {
    color: #202632;
    background: #ffffff;
}
/* ---------- Кнопка ---------- */

.car-filter__button {
    width: 220px;
    height: 48px;
    margin: 0;
    padding: 0 20px;
    border: none;
    border-radius: 8px;
    background: #e77b2c;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.car-filter__button:hover {
    background: #e67e22;
}
.car-filter {
    position: relative;
}
.car-filter__reset {
    position: absolute;
    top: 16px;
    right: 30px;
    background: none;
    border: none;
    padding: 0;
    font-size: 29px;
    color: #e77b2c;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.car-filter__reset:hover {
    transform: scale(1.15);
    opacity: 0.8;
}
/* ====================================
   CATALOG PRODUCTS
==================================== */

.catalog-products {
    padding: 30px 60px 5px;
}

.catalog-products__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.catalog-products__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}
.catalog-products__count {
    font-size: 16px;
    font-weight: 400;
    color: #e77b2c;
}
/* ====================================
   PRODUCT GRID
==================================== */

.catalog-products__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    margin-top: 24px;
}

/* ====================================
   PRODUCT CARD
==================================== */

.product-card {
    height: 340px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(31, 41, 55, 0.10);
}
/* ---------- Фото ---------- */

.product-card__image {
    position: relative;
    flex: 0 0 40%;
    min-height: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: none;
    pointer-events: none;
}
/* ---------- Плашка состояния ---------- */

.product-card__condition {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 5px;
    background: #e77b2c;
    color: #ffffff;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    z-index: 20;
}
/* ---------- Избранное ---------- */

.product-card__favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    z-index: 30;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ---------- Информация ---------- */

.product-card__content {
    flex: 1;
    min-height: 0;
    padding: 12px 15px 15px;
    display: grid;
     grid-template-rows: 61px 22px 38px 1fr auto;
    gap: 0;
}
.product-card__title {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 20px;
    color: #1f2937;
    height: 60px;
    max-height: 60px;
    overflow: hidden;
    display: block;
}
.product-card__car {
    margin: 0;
    font-size: 12px;
    line-height: 22px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card__oem {
    margin: 0;
    font-size: 12px;
    line-height: 19px;
    color: #8B95A5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    height: 38px;
}
/* ---------- Цена ---------- */

.product-card__bottom {
    align-self: end;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.product-card__price {
    font-size: 15px;
    color: #1F2937;
    
}

/* Акционные цены */

.product-card__prices {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-start;
    column-gap: 8px;
    row-gap: 2px;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

.product-card__old-price {
    color: #888;
    font-size: 13px;
    text-decoration: line-through;
}
.product-card__discount {
    color: #e77b2c;
    font-size: 12px;
    font-weight: 700;
}
 
.product-card__prices .product-card__price {
    flex-basis: 100%;
    width: auto;
    margin: 0;
    padding: 0;
    color: #e77b2c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}


/* ---------- Корзина ---------- */

.product-card__cart {
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: #e77b2c;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

.product-card__cart:hover {
    background: #d9822f;
}
.catalog-products__more {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.catalog-products__more-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border: 1px solid #E8943A;
    border-radius: 10px;
    background: #ffffff;
    color: #e77b2c;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.catalog-products__more-button:hover {
    background: #e77b2c;
    color: #ffffff;
}
/* Карточки акционных товаров */
.actions-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.action-product-card {
    width: 100%;
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.action-product-card .product-card__image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.action-product-card .product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.action-product-card .product-card__bottom {
    margin-top: auto;
}

.action-product-card .product-card__prices {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 10px;
    row-gap: 4px;
}

.action-product-card .product-card__price {
    width: 100%;
    margin-top: 2px;
    color: #e77b2c;
    font-size: 22px;
    font-weight: 700;
}

@media (max-width: 600px) {
    .actions-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .action-product-card .product-card__image {
        height: 150px;
    }
}
