/* ── Catalog AJAX filter styles ── */
.st-cf {
    margin: 1.5rem 0;
}
.st-cf__filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: flex-end;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}
.st-cf__search {
    flex: 1 1 250px;
}
.st-cf__input {
    width: 100%;
    padding: .6rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: .95rem;
    outline: none;
    transition: border-color .2s;
}
.st-cf__input:focus {
    border-color: #2e7d32;
}
.st-cf__filter-group {
    flex: 0 1 auto;
}
.st-cf__label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: .25rem;
}
.st-cf__select {
    padding: .6rem .75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: .9rem;
    outline: none;
    background: #fff;
    cursor: pointer;
    min-width: 160px;
}
.st-cf__select:focus {
    border-color: #2e7d32;
}
.st-cf__reset {
    padding: .6rem 1.2rem;
    background: none;
    border: 2px solid #ccc;
    border-radius: 8px;
    color: #666;
    font-size: .9rem;
    cursor: pointer;
    transition: all .2s;
}
.st-cf__reset:hover {
    border-color: #e53935;
    color: #e53935;
}

/* Count */
.st-cf__count {
    font-size: .9rem;
    color: #666;
    margin-bottom: .75rem;
}

/* Grid */
.st-cf__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}
.st-cf__loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #999;
}
.st-cf__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 1.1rem;
}

/* Card */
.st-cf__card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1.25rem;
    transition: box-shadow .2s, transform .15s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.st-cf__card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transform: translateY(-2px);
}
.st-cf__card-badge {
    position: absolute;
    top: .75rem;
    right: .75rem;
    padding: .2rem .6rem;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
}
.st-cf__card-badge--lider {
    background: #fff3e0;
    color: #e65100;
}
.st-cf__card-badge--novinka {
    background: #e3f2fd;
    color: #1565c0;
}
.st-cf__card-badge--hit {
    background: #fce4ec;
    color: #c62828;
}
.st-cf__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .5rem;
    color: #1b5e20;
}
.st-cf__card-meta {
    font-size: .85rem;
    color: #777;
    margin-bottom: .3rem;
}
.st-cf__card-desc {
    font-size: .9rem;
    color: #555;
    flex: 1;
    margin-bottom: .75rem;
}
.st-cf__card-link {
    display: inline-block;
    margin-top: auto;
    font-size: .9rem;
    font-weight: 600;
    color: #2e7d32;
    text-decoration: none;
}
.st-cf__card-link:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .st-cf__filters {
        flex-direction: column;
        padding: 1rem;
        gap: .6rem;
    }
    .st-cf__search {
        flex: none;
        width: 100%;
    }
    .st-cf__input {
        font-size: 16px; /* prevent iOS zoom on focus */
    }
    .st-cf__filter-group {
        width: 100%;
    }
    .st-cf__select {
        width: 100%;
    }
    .st-cf__reset {
        width: 100%;
        padding: .7rem 1rem;
    }
    .st-cf__grid {
        grid-template-columns: 1fr;
    }
    .st-cf__card {
        padding: 1rem;
    }
}
