/* Стили для страницы продавца */

/* Базовые стили */
.seller-info-header {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.seller-info-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    text-align: left;
    margin: 0;
}

.seller-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.seller-reputation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
}

.seller-ratings-count {
    color: #718096;
    font-size: 0.9rem;
}

/* Категории */
.seller-categories {
    margin: 20px 0;
    max-width: 100%;
    width: 100%;
}

.category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
}

.category-link {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid #e9ecef;
}

.category-link:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-1px);
}

.category-link.active {
    background: #ff6600 !important;
    color: white !important;
    border-color: #ff6600;
}

/* Сортировка */
.seller-sort-compact {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    width: 100%;
}

.seller-sort-compact select {
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #f8f9fa;
    color: #495057;
    min-width: 160px;
    transition: all 0.3s ease;
}

.seller-sort-compact select:focus {
    outline: none;
    border-color: #ff6600 !important;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

/* Мобильное меню категорий */
.mobile-category-dropdown {
    display: none;
    margin-bottom: 15px;
}

.mobile-category-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    background: #f8f9fa;
    color: #495057;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Пагинация */
#paginationContainer {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.pagination-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn {
    padding: 10px 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.pagination-btn.active {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn.disabled:hover {
    background: #f8f9fa;
    border-color: #e9ecef;
    color: #495057;
    transform: none;
    box-shadow: none;
}

/* Индикатор загрузки */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #6b7280;
    font-size: 14px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #ff6600;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сообщения */
.error-message, .empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
}

.error-message {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.error-message:before {
    content: "⚠ ";
    color: #dc2626;
}

/* Адаптивность */
@media (max-width: 768px) {
    .seller-info-header h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .seller-stats {
        justify-content: center;
    }
    
    .category-links {
        display: none !important;
    }
    
    .mobile-category-dropdown {
        display: block;
    }
    
    .seller-categories {
        padding: 0 15px;
    }
    
    .seller-sort-compact {
        padding: 0 15px;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    
    .seller-sort-compact select {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .seller-categories {
        padding: 0;
    }
    
    .seller-sort-compact {
        padding: 0;
    }
}
