.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);
}

.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-report-link {
  border-color: rgba(15, 23, 42, 0.08);
  background: rgba(15, 23, 42, 0.035);
  color: var(--muted);
}

.seller-report-link:hover {
  border-color: rgba(0, 119, 130, 0.22);
  background: rgba(0, 119, 130, 0.06);
  color: #007782;
}

body.dark .seller-report-link {
  border-color: rgba(244, 241, 232, 0.1);
  background: rgba(244, 241, 232, 0.04);
  color: #cbd5e1;
}

body.dark .seller-report-link:hover {
  border-color: rgba(71, 196, 184, 0.22);
  background: rgba(71, 196, 184, 0.08);
  color: #8ee3d8;
}

.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-card {
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.07), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.seller-product-card .product-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.seller-product-card .product-image-wrap {
  aspect-ratio: 4 / 5;
}

.seller-product-card .product-badge {
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.94), rgba(20, 184, 166, 0.9));
  color: #ffffff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.seller-card-meta-row {
  display: grid;
  gap: 8px;
  font-size: 0;
}

.seller-card-seller-line {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-card-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.seller-card-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-lead-chip {
  border-color: rgba(15, 23, 42, 0.1);
  background: #fff7ed;
  color: #9a3412;
}

.product-card-price-stack {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.product-card-price-note {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.seller-card-category-icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.seller-card-category-icon svg {
  width: 15px;
  height: 15px;
}

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

.seller-product-image {
  width: 100%;
  height: 100%;
  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);
}

body.dark .seller-product-card {
  background:
    radial-gradient(circle at 12% 0%, rgba(96, 165, 250, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(46, 47, 56, 0.98), rgba(35, 36, 44, 0.96));
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .seller-card-category-chip {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .product-card-lead-chip {
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.22);
  color: #fdba74;
}

.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) {
  #productsList.grid.seller-products-grid-2,
  .seller-products-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

@media (max-width: 640px) {
  #productsList.grid.seller-products-grid-2,
  .seller-products-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .seller-product-image {
    height: 100%;
  }

  .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;
  }

  .seller-products-grid-2 .product-title {
    font-size: 13px;
    line-height: 1.32;
    min-height: 34px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .seller-products-grid-2 .product-body {
    gap: 6px;
    padding: 9px;
  }

  .seller-products-grid-2 .price {
    font-size: 15px;
  }

  .seller-products-grid-2 .product-bottom {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .seller-products-grid-2 .product-bottom .btn {
    width: 100%;
    min-height: 34px;
    padding: 8px 10px;
    font-size: 12px;
  }

  .seller-card-category-chip {
    display: none;
    min-height: 24px;
    padding: 0 8px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  #productsList.grid.seller-products-grid-2,
  .seller-products-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Seller location + map */
.seller-location-block {
  margin-bottom: 28px;
}
.seller-location-title {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}
.seller-map-box {
  width: 100%;
  height: 240px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 18% 16%, rgba(37, 99, 235, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(255, 255, 255, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 16px 32px rgba(15, 23, 42, 0.08);
}
.seller-map-box-sm {
  height: 180px;
  margin-top: 10px;
}
.product-seller-city {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  margin-bottom: 6px;
}

.seller-map-fallback {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.seller-map-fallback-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 23, 42, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
}

.seller-map-fallback-art span {
  position: absolute;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
}

.seller-map-fallback-art span:nth-child(1) {
  width: 120px;
  height: 120px;
  left: 8%;
  top: 12%;
}

.seller-map-fallback-art span:nth-child(2) {
  width: 180px;
  height: 180px;
  right: -34px;
  bottom: -62px;
}

.seller-map-fallback-art span:nth-child(3) {
  width: 18px;
  height: 18px;
  left: 50%;
  top: 42%;
  background: #2563eb;
  box-shadow: 0 0 0 12px rgba(37, 99, 235, 0.15);
}

.seller-map-fallback-content {
  max-width: 250px;
  padding: 18px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  text-align: center;
}

.seller-map-fallback-kicker {
  margin-bottom: 4px;
  color: var(--primary, #2563eb);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seller-map-fallback-content strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.seller-map-fallback-content p {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.seller-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: #1f2937;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

body.dark .seller-map-box {
  background:
    radial-gradient(circle at 18% 16%, rgba(96, 165, 250, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 32px rgba(2, 6, 23, 0.24);
}

body.dark .seller-map-fallback-content {
  background: rgba(15, 23, 42, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
}
