.dir-page {
    overflow-x: hidden;
}

.dir-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.dir-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
}

.dir-tab.is-active {
    background: #0a84ff;
    border-color: #0a84ff;
    color: #fff;
}

.dir-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: end;
}

.dir-filters input,
.dir-filters select {
    min-width: 0;
}

.dir-batches {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.15rem 0 0.4rem;
    scrollbar-width: thin;
}

.dir-batch {
    flex: 0 0 auto;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 650;
    color: #111;
    white-space: nowrap;
}

.dir-batch.is-active {
    background: #0a0a0a;
    border-color: #0a0a0a;
    color: #fff;
}

.dir-logo,
.dir-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f4f5f7;
}

.dir-logo img,
.dir-photo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.dir-card {
    min-width: 0;
}

.dir-demo {
    display: inline-flex;
    border-radius: 9999px;
    background: #fff4d6;
    color: #8a5a00;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
}

@media (max-width: 639px) {
    .dir-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .dir-filters .dir-search,
    .dir-filters select,
    .dir-filters button {
        width: 100%;
    }
}
