/* shop-products.css — страница товаров магазина */

.shop-products {
    width: 100%;
    padding: 180px 120px 120px 120px;
    box-sizing: border-box;
    background-color: #CED3D6;
    color: #151618;
    min-height: 100vh;
}

/* === Хлебные крошки === */
.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 15px;
    margin-bottom: 40px;
}
.breadcrumbs__link { color: #151618; text-decoration: none; opacity: 0.6; }
.breadcrumbs__link:hover { opacity: 1; }
.breadcrumbs__separator { color: #62676B; opacity: 0.5; }
.breadcrumbs__current { color: #151618; }

/* === Шапка === */
.shop-products__head { margin-bottom: 60px; }

.shop-products__title {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 96px;
    line-height: 1.05;
    margin: 0 0 24px 0;
    color: #151618;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.shop-products__count {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 40px;
    line-height: 1;
    color: #62676B;
    margin-top: 12px;
}

.shop-products__desc {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.6;
    color: #151618;
    max-width: 900px;
    margin: 0 0 32px 0;
}

.shop-products__actions {
    display: flex;
    gap: 12px;
}

.shop-products__btn {
    display: inline-block;
    padding: 18px 32px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 17px;
    text-decoration: none;
    text-align: center;
    border-radius: 0;
}

.shop-products__btn--primary {
    background-color: #151618;
    color: #CED3D6;
    border: 1px solid #151618;
}
.shop-products__btn--primary:hover { background-color: #3C4449; border-color: #3C4449; }

.shop-products__btn--outline {
    background-color: transparent;
    color: #151618;
    border: 2px solid #151618;
}
.shop-products__btn--outline:hover { background-color: #151618; color: #CED3D6; }

/* === Фильтры === */
.shop-products__filters {
    margin-bottom: 60px;
    padding: 32px 0;
    border-top: 2px solid rgba(21,22,24,0.2);
    border-bottom: 2px solid rgba(21,22,24,0.2);
}

.shop-products__filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-end;
}

.shop-products__filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.shop-products__filter-label {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #151618;
}

.shop-products__filter-select {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 17px;
    color: #151618;
    background: transparent;
    border: none;
    border-bottom: 1px solid #151618;
    padding: 8px 24px 8px 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23151618' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 16px;
}
.shop-products__filter-select:focus { outline: none; opacity: 0.7; }

/* === Сетка товаров — 4 в ряд === */
.shop-products__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px 32px;
    margin-bottom: 60px;
}

/* === Карточка товара === */
.product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    gap: 8px;
}

.product-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #DDE1E3;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__image img {
    transform: scale(1.03);
}

.product-card__placeholder {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 48px;
    color: #151618;
    opacity: 0.4;
}

.product-card__name {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.3;
    color: #151618;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}

.product-card__price {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 20px;
    color: #151618;
    margin-top: 4px;
}

.product-card__btn {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 15px;
    color: #151618;
    margin-top: auto;
    padding-top: 8px;
    border-bottom: 2px solid transparent;
    align-self: flex-start;
    transition: border-color 0.2s;
}

.product-card:hover .product-card__btn {
    border-bottom-color: #151618;
}

/* === Пагинация === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 40px;
    border-top: 2px solid rgba(21,22,24,0.2);
}

.pagination__link {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 15px;
    color: #151618;
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid rgba(21,22,24,0.25);
}

.pagination__link:hover { background-color: #151618; color: #CED3D6; border-color: #151618; }
.pagination__link--disabled { opacity: 0.3; pointer-events: none; }
.pagination__link--active { background-color: #151618; color: #CED3D6; border-color: #151618; }

.pagination__pages {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* === Пусто === */
.shop-products__empty {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: 17px;
    color: #62676B;
    padding: 60px 0;
    grid-column: 1 / -1;
    text-align: center;
}

/* === Адаптив === */
@media (max-width: 1400px) {
    .shop-products { padding: 160px 80px 80px 80px; }
    .shop-products__title { font-size: 80px; }
    .shop-products__grid { gap: 50px 24px; }
}

@media (max-width: 1024px) {
    .shop-products { padding: 140px 60px 60px 60px; }
    .shop-products__title { font-size: 64px; }
    .shop-products__count { font-size: 28px; margin-top: 8px; }
    .shop-products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 20px;
    }
    .product-card__name { font-size: 16px; }
    .product-card__price { font-size: 18px; }
}

@media (max-width: 768px) {
    .shop-products { padding: 120px 40px 40px 40px; }
    .shop-products__head { margin-bottom: 40px; }
    .shop-products__title { font-size: 48px; }
    .shop-products__actions { flex-direction: column; }
    .shop-products__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
    }
    .pagination { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
    .shop-products { padding: 100px 20px 40px 20px; }
    .shop-products__title { font-size: 36px; }
    .shop-products__grid { grid-template-columns: 1fr; gap: 32px; }
}