/* Стили для каталога */
.katalog-modal .modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 85vh;
}

.katalog-categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 10px;
}

.katalog-category {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.katalog-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: var(--bg-hover);
}

.katalog-category-icon {
    font-size: 32px;
    margin-bottom: 10px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: 50%;
}

.katalog-category-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.katalog-category-count {
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Стили для списка товаров */
.katalog-products {
    padding: 10px;
}

.katalog-product {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.katalog-product:hover {
    background: var(--bg-hover);
    transform: translateX(5px);
}

.katalog-product-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 15px;
    flex-shrink: 0;
    overflow: hidden;
}

.katalog-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.katalog-product-info {
    flex: 1;
}

.katalog-product-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
    font-size: 16px;
}

.katalog-product-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.katalog-product-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 18px;
    margin-bottom: 10px;
}

.katalog-product-actions {
    display: flex;
    gap: 10px;
}

.katalog-buy-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.katalog-buy-btn:hover {
    background: var(--accent-hover);
}

.katalog-details-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.katalog-details-btn:hover {
    background: var(--bg-hover);
}

/* Состояния загрузки */
.katalog-loading {
    text-align: center;
    padding: 40px 20px;
}

.katalog-loading .loading-icon {
    font-size: 40px;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

.katalog-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.katalog-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}