/* catalog.css */
.catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.catalog-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.catalog-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 700px;
}

.catalog-search {
    position: relative;
    margin-bottom: 32px;
    max-width: 500px;
}

.catalog-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--icon-tertiary);
    font-size: 20px;
}

.catalog-search input {
    width: 100%;
    padding: 16px 16px 16px 52px;
    border: 1px solid var(--border-primary);
    border-radius: 16px;
    font-size: 16px;
    background: var(--background-secondary);
    transition: border 0.2s, background 0.2s;
}

.catalog-search input:focus {
    outline: none;
    border-color: var(--border-accent);
    background: white;
}

.catalog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 40px;
}

.category-chip {
    padding: 6px 0;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s;
    position: relative;
}

.category-chip::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: background 0.2s;
}

.category-chip:hover {
    color: var(--text-primary);
}

.category-chip.active {
    color: var(--icon-accent);
    font-weight: 600;
}

.category-chip.active::after {
    background: var(--icon-accent);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.catalog-card {
    background: white;
    border: 1px solid var(--border-tertiary);
    border-radius: 24px;
    padding: 20px;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.catalog-card:hover {
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.catalog-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.catalog-card-header img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--background-secondary);
    border: 1px solid var(--border-tertiary);
}

.catalog-card-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.catalog-card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 63px;
}

.catalog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalog-price {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    background: var(--background-secondary);
    padding: 4px 10px;
    border-radius: 30px;
    border: 1px solid var(--border-tertiary);
}

.catalog-price i {
    color: #ffb347;
    font-size: 12px;
}

.catalog-users {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}

.catalog-users i {
    color: var(--icon-secondary);
    font-size: 14px;
}

@media (max-width: 768px) {
    .catalog-container {
        padding: 24px 16px 40px;
    }
    .catalog-title {
        font-size: 28px;
    }
    .catalog-grid {
        grid-template-columns: 1fr;
    }
}