/* ========== Seller Profile Page ========== */

.sp-page {
  background: #f9fafb;
  min-height: 60vh;
}

/* Hero */
.sp-hero {
  background: linear-gradient(135deg, #9333ea 0%, #2563eb 55%, #4f46e5 100%);
  color: #fff;
  padding: 64px 0;
}

.sp-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.sp-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
  min-width: 280px;
}

.sp-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.sp-avatar {
  width: 128px;
  height: 128px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border: 4px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.sp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sp-avatar-badge {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3b82f6;
  border: 4px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sp-avatar-badge svg {
  color: #fff;
}

.sp-hero-info h1 {
  margin: 0 0 8px;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.sp-username {
  margin: 0 0 12px;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
}

.sp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.sp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.sp-stats-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 24px;
}

.sp-stat {
  text-align: center;
  min-width: 72px;
}

.sp-stat-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.sp-stat-top strong {
  font-size: 1.5rem;
  font-weight: 700;
}

.sp-stat-top svg {
  color: #fbbf24;
  fill: #fbbf24;
}

.sp-stat small {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.sp-stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
}

.sp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.sp-btn-contact {
  background: #fff;
  color: #9333ea;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sp-btn-contact:hover {
  background: #f3f4f6;
}

.sp-btn-follow {
  background: linear-gradient(90deg, #f97316, #ec4899);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.sp-btn-follow:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
}

.sp-btn-follow.is-following {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Tabs */
.sp-tabs {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.sp-tabs .container-xxl {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sp-tabs .container-xxl::-webkit-scrollbar {
  display: none;
}

.sp-tab {
  background: none;
  border: none;
  border-bottom: 4px solid transparent;
  padding: 16px 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.sp-tab:hover {
  color: #111827;
}

.sp-tab.active {
  color: #9333ea;
  border-bottom-color: #9333ea;
}

/* Body */
.sp-body {
  padding: 32px 0 64px;
}

.sp-panel {
  display: none;
}

.sp-panel.active {
  display: block;
}

/* Items layout */
.sp-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

.sp-filter-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px;
  position: sticky;
  top: 136px;
}

.sp-filter-card h3 {
  margin: 0 0 24px;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.sp-filter-card h4 {
  margin: 0 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}

.sp-cat-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sp-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 0.875rem;
  color: #374151;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.sp-cat-btn em {
  font-style: normal;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.sp-cat-btn:hover {
  background: #f3f4f6;
}

.sp-cat-btn.active {
  background: #f3e8ff;
  color: #7c3aed;
  font-weight: 600;
}

.sp-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.sp-range {
  width: 100%;
  height: 8px;
  accent-color: #9333ea;
  cursor: pointer;
}

/* Toolbar */
.sp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 16px;
  margin-bottom: 24px;
}

.sp-shop-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.sp-shop-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.sp-shop-search input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.9375rem;
  outline: none;
}

.sp-shop-search input:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.sp-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #374151;
}

.sp-sort label {
  font-weight: 500;
  white-space: nowrap;
}

.sp-sort select {
  padding: 10px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.875rem;
  background: #fff;
  cursor: pointer;
  outline: none;
}

.sp-sort select:focus {
  border-color: #9333ea;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.sp-product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-product-grid .wk-product.hidden {
  display: none;
}

.sp-empty {
  grid-column: 1 / -1;
  color: #6b7280;
  margin: 8px 0 0;
  padding: 24px 0;
}

.sp-verified {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  margin-left: 8px;
}

.sp-review-title {
  font-weight: 600;
  margin: 0 0 6px;
}

.sp-review-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.sp-review-imgs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 12px;
}

/* Reviews */
.sp-reviews-summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 32px;
  margin-bottom: 24px;
  max-width: 896px;
}

.sp-reviews-score {
  text-align: center;
}

.sp-reviews-score b {
  display: block;
  font-size: 3.75rem;
  font-weight: 700;
  color: #111827;
  line-height: 1;
  margin-bottom: 8px;
}

.sp-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.sp-reviews-score p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9375rem;
}

.sp-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
}

.sp-bar-row > span:first-child {
  width: 48px;
  color: #374151;
  font-weight: 500;
}

.sp-bar {
  flex: 1;
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.sp-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #fbbf24, #fb923c);
  border-radius: 999px;
}

.sp-bar-row em {
  width: 40px;
  text-align: right;
  font-style: normal;
  color: #6b7280;
}

.sp-review-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px;
  margin-bottom: 24px;
  max-width: 896px;
}

.sp-review-card h4 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.sp-review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.875rem;
  color: #6b7280;
}

.sp-stars-inline {
  display: inline-flex;
  gap: 2px;
}

.sp-review-card p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.6;
}

.sp-helpful {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
}

.sp-helpful:hover {
  color: #111827;
}

/* About */
.sp-about-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 32px;
  max-width: 896px;
}

.sp-about-card h2 {
  margin: 0 0 24px;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111827;
}

.sp-about-card h3 {
  margin: 24px 0 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.sp-about-card p {
  margin: 0 0 16px;
  color: #374151;
  line-height: 1.7;
  font-size: 1.0625rem;
}

.sp-check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #374151;
  line-height: 1.5;
}

.sp-check-list svg {
  color: #16a34a;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Policies */
.sp-policies-head {
  margin-bottom: 24px;
  max-width: 768px;
}

.sp-policies-head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.sp-policies-head small {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #9ca3af;
}

.sp-policies-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  max-width: 768px;
}

.sp-policy-row {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #f3f4f6;
}

.sp-policy-row:last-child {
  border-bottom: none;
}

.sp-policy-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sp-policy-icon.green {
  background: #ecfdf5;
  color: #16a34a;
}

.sp-policy-icon.purple {
  background: #faf5ff;
  color: #9333ea;
}

.sp-policy-icon.blue {
  background: #eff6ff;
  color: #2563eb;
}

.sp-policy-icon.amber {
  background: #fffbeb;
  color: #d97706;
}

.sp-policy-note {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: #9ca3af;
}

.sp-policy-tags-label {
  margin: 0 0 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
}

.sp-policy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.sp-policy-tags span {
  padding: 4px 12px;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #374151;
}

.sp-policy-secure {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 12px;
  padding: 12px 16px;
}

.sp-message-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  max-width: 768px;
  background: #faf5ff;
  border: 1px solid #f3e8ff;
  border-radius: 16px;
  padding: 16px 24px;
}

.sp-message-cta p {
  margin: 0;
  font-size: 0.875rem;
  color: #111827;
}

.sp-message-cta small {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #6b7280;
}

.sp-message-btn {
  flex-shrink: 0;
  background: #9333ea;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.sp-message-btn:hover {
  background: #7e22ce;
}

.sp-policy-row h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.sp-policy-row p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 991.98px) {
  .sp-layout {
    grid-template-columns: 1fr;
  }

  .sp-filter-card {
    position: static;
  }

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

  .sp-hero-right {
    align-items: flex-start;
    width: 100%;
  }

  .sp-stats-card {
    width: 100%;
    justify-content: space-around;
  }

  .sp-hero-actions {
    justify-content: flex-start;
  }

  .sp-reviews-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .sp-hero {
    padding: 40px 0;
  }

  .sp-hero-left {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .sp-meta {
    justify-content: center;
  }

  .sp-avatar {
    width: 96px;
    height: 96px;
    font-size: 2rem;
  }

  .sp-hero-info h1 {
    font-size: 1.75rem;
  }

  .sp-stats-card {
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
  }

  .sp-stat-divider {
    display: none;
  }

  .sp-stat {
    flex: 1;
    min-width: 80px;
  }

  .sp-product-grid {
    grid-template-columns: 1fr;
  }

  .sp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-sort {
    width: 100%;
  }

  .sp-sort select {
    flex: 1;
  }
}
