.home-merch,
.home-merch * {
    box-sizing: border-box;
}

.home-merch {
    width: 100%;
    max-width: 100%;
    background: #fff;
}

.home-merch__header {
    max-width: 980px;
    margin-bottom: 32px;
}

.home-merch__title {
    margin: 0 0 14px;
}

.home-merch__description {
    margin: 0;
    max-width: 900px;
    font-size: 18px;
    line-height: 1.55;
    color: #555952;
}

.home-merch__content {
    min-height: 220px;
}

.home-merch__loader,
.home-merch__error,
.home-merch__empty {
    padding: 48px 24px;
    border-radius: 24px;
    background: #f6f6f3;
    text-align: center;
    color: #62655f;
}

.home-merch__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
}

.home-merch__filter,
.home-merch__more,
.home-merch__reset {
    min-height: 44px;
    border: 1px solid #1f211f;
    border-radius: 999px;
    padding: 10px 20px;
    background: #fff;
    color: #1f211f;
    font: inherit;
    line-height: 1.15;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.home-merch__filter:hover,
.home-merch__filter:focus-visible,
.home-merch__more:hover,
.home-merch__more:focus-visible,
.home-merch__reset:hover,
.home-merch__reset:focus-visible,
.home-merch__filter.is-active {
    border-color: #d9ff16;
    background: #d9ff16;
    color: #111;
    outline: none;
}

.home-merch-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px 18px;
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
}

.home-merch-grid__item {
    display: block;
    min-width: 0;
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
}

.home-merch-grid__item[hidden] {
    display: none !important;
}

.home-merch-grid__item > .product-item-big-card,
.home-merch-grid__item .product-item-container,
.home-merch-grid__item .product-item {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.home-merch-grid__item .product-item__content,
.home-merch-grid__item .product-item__price,
.home-merch-grid__item .product-item-title,
.home-merch-grid__item .product-item-title a {
    min-width: 0;
    max-width: 100%;
}

.home-merch-grid__item .product-item-title a {
    overflow-wrap: anywhere;
}

.home-merch__more {
    display: block;
    margin: 32px auto 0;
    padding-inline: 30px;
}

.home-merch__more[hidden],
.home-merch__empty[hidden] {
    display: none !important;
}

.home-merch__note {
    margin: 24px 0 0;
    color: #666a63;
    font-size: 14px;
    line-height: 1.45;
}

@media (max-width: 1199px) {
    .home-merch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
    .home-merch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    .home-merch__header { margin-bottom: 22px; }
    .home-merch__description { font-size: 15px; line-height: 1.5; }
    .home-merch__content { min-height: 180px; }
    .home-merch__filters {
        flex-wrap: nowrap;
        margin-right: -16px;
        padding-right: 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .home-merch__filters::-webkit-scrollbar { display: none; }
    .home-merch__filter { flex: 0 0 auto; }
    .home-merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-merch__filter,
    .home-merch__more,
    .home-merch__reset { transition: none; }
}
