/* ====================================================================
   لیست فروشگاه‌ها - زیبایا
   ==================================================================== */

:root {
    --primary: #d63384;
    --primary-dark: #a82868;
    --primary-light: #f8d7e8;
    --secondary: #7c3aed;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #0dcaf0;
    --text-dark: #212529;
    --text-medium: #495057;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --bg-muted: #e9ecef;
    --border-color: #dee2e6;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.15);
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
}

/* ====================================================================
   هدر صفحه
   ==================================================================== */
.page-header {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 900;
}

.page-header p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.1rem;
}

/* ====================================================================
   آمار سریع
   ==================================================================== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-item {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all var(--transition-base);
    border-right: 4px solid #00b894;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* ====================================================================
   نوار جستجو اصلی
   ==================================================================== */
.main-search-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-md);
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.1rem;
}

.search-input {
    width: 100%;
    padding: 14px 45px 14px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: 'Vazirmatn', sans-serif;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
}

.search-btn {
    padding: 14px 30px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Vazirmatn', sans-serif;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ====================================================================
   فیلتر دسته‌بندی
   ==================================================================== */
.category-filter-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.filter-label {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: 25px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.category-btn:hover {
    border-color: #00b894;
    color: #00b894;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.cat-icon {
    font-size: 1.1rem;
}

.cat-count {
    background: rgba(255,255,255,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.category-btn:not(.active) .cat-count {
    background: var(--border-color);
    color: var(--text-light);
}

/* ====================================================================
   فیلترهای پیشرفته
   ==================================================================== */
.advanced-filters {
    background: white;
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label-small {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: white;
    font-family: 'Vazirmatn', sans-serif;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: #00b894;
}

.filter-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-apply-filter {
    padding: 10px 20px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: 'Vazirmatn', sans-serif;
}

.btn-apply-filter:hover {
    background: #218838;
    transform: translateY(-2px);
}

.btn-clear-filter {
    padding: 10px 20px;
    background: var(--danger);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: all var(--transition-fast);
}

.btn-clear-filter:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* ====================================================================
   اطلاعات نتایج
   ==================================================================== */
.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    gap: 10px;
}

.results-count {
    font-size: 0.95rem;
    color: var(--text-medium);
}

.results-count strong {
    color: #00b894;
    font-size: 1.1rem;
}

/* ====================================================================
   گرید فروشگاه‌ها
   ==================================================================== */
.sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.seller-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.seller-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

/* هدر کارت */
.seller-card-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.seller-logo-section {
    position: relative;
    flex-shrink: 0;
}

.seller-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.seller-logo-placeholder {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.verified-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--success);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.seller-basic-info {
    flex: 1;
}

.seller-name {
    margin: 0 0 5px;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--text-dark);
}

.seller-type {
    font-size: 0.85rem;
    color: var(--text-medium);
    margin-bottom: 5px;
}

.seller-location {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* توضیحات */
.seller-description {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

/* آمار */
.seller-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.stat-box {
    text-align: center;
}

.stat-box .stat-value {
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 3px;
}

.stat-box .stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* امتیاز */
.seller-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.stars {
    color: var(--warning);
    font-size: 1rem;
}

.rating-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* دکمه‌ها */
.seller-actions {
    display: flex;
    gap: 10px;
}

.btn-view-seller {
    flex: 2;
    padding: 12px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-align: center;
    transition: all var(--transition-fast);
}

.btn-view-seller:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.3);
}

.btn-view-products {
    flex: 1;
    padding: 12px;
    background: var(--info);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-align: center;
    transition: all var(--transition-fast);
}

.btn-view-products:hover {
    background: #0aa2c0;
    transform: translateY(-2px);
}

/* ====================================================================
   حالت خالی
   ==================================================================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-state .empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-size: 1.5rem;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1rem;
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ====================================================================
   ریسپانسیو
   ==================================================================== */
@media (max-width: 768px) {
    .page-header {
        padding: 30px 15px;
    }
    
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-btn {
        width: 100%;
    }
    
    .category-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .category-btn {
        flex-shrink: 0;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .sellers-grid {
        grid-template-columns: 1fr;
    }
    
    .seller-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .seller-actions {
        flex-direction: column;
    }
    
    .btn-view-seller,
    .btn-view-products {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .quick-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .seller-stats {
        grid-template-columns: 1fr;
    }
}