.seller-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.seller-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.seller-avatar,
.avatar-box {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  flex-shrink: 0;
}

.seller-avatar {
  object-fit: cover;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.avatar-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #111827, #2563eb);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.seller-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.title-24 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.seller-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.seller-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.seller-meta-line:last-child {
  border-bottom: none;
}

.seller-meta-label {
  color: var(--muted);
}

.seller-meta-value {
  font-weight: 600;
  text-align: right;
}

.seller-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.seller-stat {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  text-align: center;
  background: rgba(248, 250, 252, 0.85);
}

body.dark .seller-stat {
  background: rgba(255, 255, 255, 0.04);
}

.seller-stat strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 8px;
}

.seller-stat p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.seller-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.seller-reviews-block {
  margin-top: 24px;
}

.seller-review-card {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.38);
}

body.dark .seller-review-card {
  background: rgba(255, 255, 255, 0.04);
}

.seller-review-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.seller-review-author {
  font-weight: 700;
}

.seller-review-date {
  color: var(--muted);
  font-size: 13px;
}

.seller-review-text {
  line-height: 1.7;
  white-space: pre-wrap;
}

.seller-empty-note {
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.28);
}

body.dark .seller-empty-note {
  background: rgba(255, 255, 255, 0.03);
}

.seller-products-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-products-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.seller-product-image-wrap {
  position: relative;
}

.seller-product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.seller-product-image:not(img) {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.favorite-fab {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.7);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: transform 0.16s ease;
}

.favorite-fab:hover {
  transform: translateY(-1px);
}

.sold-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.product-card-sold .product-title,
.product-card-sold .price {
  opacity: 0.82;
}

.review-stars {
  letter-spacing: 0.08em;
  color: #f59e0b;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .seller-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .seller-products-grid-2 {
    grid-template-columns: 1fr;
  }

  .seller-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Collapsible filters toggle — hidden on desktop, shown on mobile */
.search-filters-toggle {
  display: none;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  justify-content: space-between;
  align-items: center;
}

.search-filters-toggle-icon {
  font-size: 12px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.search-filters-toggle.open .search-filters-toggle-icon {
  transform: rotate(180deg);
}

.search-filters-body {
  /* no changes on desktop */
}

@media (max-width: 640px) {
  .search-filters-toggle {
    display: flex;
  }

  .search-filters-body {
    display: none;
    margin-top: 14px;
  }

  .search-filters-body.open {
    display: block;
  }
}

/* ── Search results meta row ─────────────────────────────── */
.search-results-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  min-height: 28px;
}

.search-results-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  color: var(--text);
  backdrop-filter: blur(10px);
  animation: chip-in 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.dark .search-results-count {
  background: rgba(255, 255, 255, 0.06);
}

.search-results-count-num {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
}

/* Active filter chips */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.26);
  color: var(--accent);
  backdrop-filter: blur(10px);
  animation: chip-in 0.18s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes chip-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

.active-filter-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(37, 99, 235, 0.14);
  border-radius: 50%;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 0;
  transition: background 0.14s ease;
}

.active-filter-remove:hover {
  background: rgba(37, 99, 235, 0.28);
}

.active-filters-clear-all {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s;
}

.active-filters-clear-all:hover {
  color: var(--text);
  border-color: var(--muted);
}

.search-empty-state {
  padding: 28px 20px;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.search-empty-icon {
  font-size: 32px;
  line-height: 1;
}

.search-empty-title {
  font-size: 20px;
  font-weight: 700;
}

.search-empty-text {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .seller-stats {
    grid-template-columns: 1fr;
  }

  .seller-meta-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .seller-meta-value {
    text-align: left;
  }

  .seller-action-row .btn,
  .seller-products-filters .btn {
    width: 100%;
  }

  .seller-top {
    align-items: flex-start;
  }
}
