.ukraine-catalog {
    font-family: inherit;
}

/* ===== HERO ===== */
.catalog-hero {
    padding: 40px 0;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
}

/* затемнення */
.catalog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.catalog-hero .container {
    position: relative;
    z-index: 2;
}
.catalog-hero .breadcrumbs nav {
 color: #fff;
}
.catalog-hero .breadcrumbs nav a {
 color: var(--secondary);
}
.catalog-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 0;
    color: #fff;
}

.catalog-hero p {
    color: #fff;
    opacity: 0.85;
}


/* ===== FILTER WRAPPER ===== */
.catalog-filters {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
	background: #fff;
}
.years-filter,
.state-filter {
    display: flex;
    flex-wrap: nowrap;          /* ❗ забороняє перенос */
    gap: 5px;
    overflow-x: auto;           /* 🔥 горизонтальний скрол */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 5px 2px;
}

/* щоб елементи не стискались */
/* .years-filter a,
.state-filter a {
    flex: 0 0 auto;
    white-space: nowrap;
} */

/* ===== FILTER ITEMS ===== */
.years-filter a,
.state-filter a {
    flex: 0 0 auto;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border: 1px solid #D9D6D1;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    color: #474747;
    transition: all 0.2s ease;
}
.state-filter a {
	background: #EFEBE0;
	color: #474747;
	border-radius: 12px;

}
.years-filter::-webkit-scrollbar,
.state-filter::-webkit-scrollbar {
    height: 3px;
}
.years-filter::-webkit-scrollbar-thumb,
.state-filter::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.years-filter::-webkit-scrollbar-track,
.state-filter::-webkit-scrollbar-track {
    background: transparent;
}
.years-filter {
    mask-image: linear-gradient(to right, black 90%, transparent);
}

.state-filter {
    mask-image: linear-gradient(to right, black 90%, transparent);
}
/* hover */
.years-filter a:hover,
.state-filter a:hover {
    border-color: #999;
    transform: translateY(-1px);
    transition: all 0.3s;
}

/* ===== ACTIVE STATE ===== */
.years-filter a.active {
	font-weight: 600;
    background: #1B1A16;
    color: #DCCA42;
    border-color: #D9D6D1;
    transform: scale(1.05);
}
.state-filter a.active {
	font-weight: 600;
	background: #F4C93F;
    color: #050B0B;
    transform: scale(1.05);

}
/* ===== COUNT ===== */
.catalog-count {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

.catalog-count strong {
    font-weight: 600;
}

/* ===== PRODUCTS GRID ===== */
.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

/* product card fix (Woo default) */
.products.columns-4 li {
    list-style: none;
}

/* ===== PAGINATION ===== */
.pagination,
.woocommerce-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
}

.pagination .current {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ===== EMPTY STATE ===== */
.no-products {
    padding: 40px;
    text-align: center;
    opacity: 0.6;
}

@media (max-width:960px) {
    .products.columns-4 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}
@media (max-width:600px) {
    .products.columns-4 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width:440px) {
    .products.columns-4 {
        gap: 6px;
    }
}