/* ══════════════════════════════════════════
   PROFILE PAGE
   ══════════════════════════════════════════ */

/* ── Хедер без строки поиска ── */
.header-search { display: none; }

/* ── Обёртка поиска ── */
.profile-search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.profile-search-wrap .profile-search {
  flex: 1;
  min-height: 44px;
}

/* Микрофон — скрыт на десктопе */
.profile-search-mic { display: none; }

@media (max-width: 860px) {
  /* Поле становится пилюлей */
  .profile-search-wrap .profile-search {
    border-radius: 100px;
  }
  /* Кнопка «найти» → микрофон */
  .profile-search-btn { display: none; }
  .profile-search-mic { display: flex; flex-shrink: 0; }
}

/* ── Лейаут ── */
.profile-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 28px 0 32px;
}

/* ══════════════════════════════
   САЙДБАР
   ══════════════════════════════ */
.profile-sidebar {
  flex: 0 0 300px;
  position: sticky;
  top: 80px; /* 68px header + 12px зазор */
  max-height: calc(100vh - 92px);
  overflow-y: auto;
  scrollbar-width: none;
}
.profile-sidebar::-webkit-scrollbar { display: none; }

.profile-card {
  background: var(--bg-card);
  border-radius: 18px;
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Аватар */
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5df6 0%, #6b3fd4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  margin-bottom: 16px;
}

/* Имя */
.profile-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  text-align: center;
}

/* Верификация */
.profile-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #4ade80;
  margin-bottom: 20px;
}

.profile-unverified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  color: #f87171;
  margin-bottom: 20px;
}
.profile-verified svg { flex-shrink: 0; }

/* Рейтинг */
.profile-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.profile-rating-star {
  font-size: 18px;
  color: #fee06d;
  line-height: 1;
}

.profile-rating-score {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.profile-rating-count {
  font-size: 13px;
  color: var(--white-40);
}

/* Статы */
.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: 100%;
  background: var(--white-08);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}

.profile-stat {
  background: var(--bg-card);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.profile-stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.profile-stat-label {
  font-size: 11px;
  color: var(--white-40);
  text-align: center;
}

/* Мета */
.profile-meta {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--white-70);
}

.profile-meta-item svg { flex-shrink: 0; color: var(--white-40); }

/* О себе */
.profile-bio {
  width: 100%;
  border-top: 1px solid var(--white-08);
  padding-top: 18px;
  margin-bottom: 20px;
}

.profile-bio-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--white-40);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.profile-bio p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--white-70);
}

/* Кнопки */
.profile-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-btn-msg {
  width: 100%;
  padding: 14px 20px;
  border-radius: 11px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #8b5df6 0%, #6b3fd4 100%);
  color: #fff;
  box-shadow: 0 2px 14px rgba(139, 93, 246, 0.28);
  transition: box-shadow 0.18s, filter 0.18s;
}
.profile-btn-msg:hover {
  filter: brightness(1.08);
  box-shadow: 0 4px 20px rgba(139, 93, 246, 0.4);
}

.profile-btn-report {
  width: 100%;
  padding: 12px 20px;
  border-radius: 11px;
  border: 1px solid var(--white-08);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--white-40);
  transition: border-color 0.18s, color 0.18s;
  text-align: center;
}
.profile-btn-report:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--white-70);
}

/* ══════════════════════════════
   ОСНОВНОЙ КОНТЕНТ
   ══════════════════════════════ */
.profile-main {
  flex: 1;
  min-width: 0;
}

.profile-main-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-main-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.profile-main-count {
  font-size: 13px;
  color: var(--white-40);
}

/* Тулбар: табы */
.profile-toolbar {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 20px;
}

/* Поиск внутри профиля продавца */
.profile-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--white-08);
  border-radius: 10px;
  padding: 0 0 0 14px;
  transition: border-color 0.18s;
}

.profile-search:focus-within {
  border-color: rgba(139, 93, 246, 0.4);
}

.profile-search svg {
  flex-shrink: 0;
  color: var(--white-40);
}

.profile-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--white);
  min-width: 0;
}

.profile-search-input::placeholder {
  color: var(--white-40);
}

.profile-search-btn {
  flex-shrink: 0;
  padding: 0 14px;
  margin: 5px 5px 5px 0;
  border-radius: 7px;
  border: 1px solid rgba(139, 93, 246, 0.5);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: rgba(139, 93, 246, 0.12);
  color: var(--purple);
  align-self: stretch;
  transition: background 0.18s, border-color 0.18s;
}
.profile-search-btn:hover { background: rgba(139, 93, 246, 0.22); border-color: var(--purple); }

/* Табы */
.profile-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}

.profile-tab {
  padding: 8px 18px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--white-40);
  transition: background 0.18s, color 0.18s;
}
.profile-tab.active { background: var(--purple); color: #fff; }
.profile-tab:hover:not(.active) { color: var(--white-70); background: var(--white-08); }

/* Карточки — 3 колонки в контексте профиля */
.profile-main .products-grid {
  grid-template-columns: repeat(3, 1fr);
}


/* ══════════════════════════════
   АДАПТИВ
   ══════════════════════════════ */
@media (max-width: 1024px) {
  .profile-main .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .profile-tabs { width: 100%; }
  .profile-tab { flex: 1; text-align: center; padding: 8px 10px; }
}

@media (max-width: 860px) {
  .profile-layout {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .profile-sidebar {
    flex: none;
    width: 100%;
    max-width: 520px;
    position: static;
    max-height: none;
  }

  .profile-main {
    width: 100%;
    max-width: 520px;
  }

  .profile-stats { grid-template-columns: repeat(4, 1fr); }

  .profile-actions { flex-direction: row; }
  .profile-btn-msg,
  .profile-btn-report { flex: 1; }

  .profile-main .products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 560px) {
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .profile-actions { flex-direction: column; }
  .profile-main-header { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 444px) {
  .profile-main .products-grid { grid-template-columns: repeat(2, 1fr); }
}
