/* Catalog navigation */
.catalog__nav {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.catalog__select-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.catalog__select {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.catalog__select:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.catalog__select.active {
    background-color: #25a56a;
    border-color: #25a56a;
    color: #fff;
}

/* Catalog filters */
.catalog-filters {
    display: flex;
    align-items: center;
    gap: 20px;
}

.catalog-filters__search {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.catalog-filters__search input {
    width: 100%;
    background-color: #222028;
    border: 1px solid transparent;
    border-radius: 6px;
    height: 40px;
    padding: 0 45px 0 15px;
    font-size: 14px;
    color: #fff;
    transition: border-color 0.3s;
}

.catalog-filters__search input:focus {
    border-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

.catalog-filters__search button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.catalog-filters__search button svg {
    width: 18px;
    height: 18px;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s;
}

.catalog-filters__search button:hover svg {
    fill: #fff;
}

.catalog-filters__wrap {
    position: relative;
}

.catalog-filters__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.catalog-filters__btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.catalog-filters__btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Filter menu */
.filter-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: #222028;
    border-radius: 6px;
    padding: 20px;
    min-width: 200px;
    z-index: 100;
    display: none;
}

.filter-menu.show {
    display: block;
}

.filter-menu__group {
    margin-bottom: 20px;
}

.filter-menu__group:last-child {
    margin-bottom: 0;
}

.filter-menu__group h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
}

.filter-menu__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-choice {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-choice:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-choice.active {
    background-color: #25a56a;
    border-color: #25a56a;
    color: #fff;
}

/* Catalog grid */
.catalog-grid {
    margin-bottom: 30px;
}

.item__cover {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
    padding-top: 150%;
    margin-bottom: 15px;
}
.item__cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Loading and load more */
.catalog-loading {
    text-align: center;
    padding: 20px;
}

.catalog-load-more {
    display: block;
    width: 100%;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.catalog-load-more:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.catalog-load-more:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Error state */
.catalog-error {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.catalog-error p {
    margin-bottom: 20px;
}

.catalog-error button {
    background-color: #25a56a;
    border: none;
    border-radius: 6px;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.catalog-error button:hover {
    background-color: #1e8f59;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .catalog-filters__search {
        max-width: none;
    }
}

@media (max-width: 575px) {
    .catalog__select-wrap {
        flex-direction: column;
    }

    .catalog__select {
        width: 100%;
        text-align: center;
    }
}
