:root {
  --vp-bg: #f7f9fc;
  --vp-surface: #ffffff;
  --vp-text: #172033;
  --vp-muted: #667085;
  --vp-border: #dce4ef;
  --vp-accent: #0f766e;
  --vp-accent-dark: #0a514c;
  --vp-soft: #e8f7f5;
  --vp-shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
  --vp-font: var(--seller-site-font, var(--bs-body-font-family, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif));
}

* { box-sizing: border-box; }

.public-seller-page {
  margin: 0;
  min-height: 100vh;
  background: var(--vp-bg);
  color: var(--vp-text);
  font-family: var(--vp-font);
}

.public-seller-page a {
  color: inherit;
  text-decoration: none;
}

.seller-public-hero {
  position: relative;
  min-height: 430px;
  padding: 1.25rem clamp(1rem, 3vw, 2rem) 2rem;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(13, 18, 29, 0.24), rgba(13, 18, 29, 0.84)),
    var(--cover-image, linear-gradient(135deg, #12312e, #314156 52%, #78350f));
  background-size: cover;
  background-position: center;
}

.seller-public-top,
.seller-public-profile,
.seller-public-stats,
.seller-public-products {
  width: min(1160px, 100%);
  margin-inline: auto;
}

.seller-public-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.seller-public-brand {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.seller-public-profile {
  display: grid;
  grid-template-columns: 116px minmax(0, 760px);
  gap: 1.25rem;
  align-items: end;
  min-height: 320px;
  padding-top: 4rem;
}

.seller-public-avatar {
  width: 116px;
  height: 116px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: var(--vp-surface);
  color: var(--vp-accent);
  box-shadow: var(--vp-shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 2.8rem;
  font-weight: 800;
}

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

.seller-public-title span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.6rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.seller-public-title h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.seller-public-title p {
  max-width: 760px;
  margin: 0.8rem 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.7;
}

.seller-public-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.seller-public-socials a {
  min-height: 36px;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.86rem;
  font-weight: 700;
}

.seller-public-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: -2.25rem;
  position: relative;
  z-index: 3;
  padding-inline: clamp(1rem, 3vw, 0rem);
}

.seller-public-stats div,
.seller-public-product,
.seller-public-empty {
  border: 1px solid var(--vp-border);
  border-radius: 8px;
  background: var(--vp-surface);
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.06);
}

.seller-public-stats div {
  min-height: 96px;
  padding: 1rem;
}

.seller-public-stats span {
  display: block;
  color: var(--vp-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.seller-public-stats strong {
  display: block;
  margin-top: 0.3rem;
  font-size: 1.45rem;
}

.seller-public-products {
  padding: 2rem clamp(1rem, 3vw, 0rem) 3rem;
}

.seller-public-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.seller-public-section-head h2 {
  margin: 0;
  font-size: 1.45rem;
}

.seller-public-section-head p {
  margin: 0.25rem 0 0;
  color: var(--vp-muted);
}

.seller-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.seller-public-search {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--vp-border);
  border-radius: 8px;
  background: var(--vp-surface);
}

.seller-public-search label {
  color: var(--vp-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.seller-public-search input {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--vp-border);
  border-radius: 8px;
  background: #ffffff;
  color: var(--vp-text);
  font: inherit;
  outline: none;
}

.seller-public-search input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.seller-public-search-empty {
  margin-top: 1rem;
}

.seller-public-product {
  overflow: hidden;
}

.seller-public-product-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 190px;
  max-height: 220px;
  background: linear-gradient(135deg, #edf5f4, #f3f7fb);
  color: var(--vp-accent);
  overflow: hidden;
}

.seller-public-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.seller-public-product-media span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--vp-accent);
  font-size: 2rem;
  font-weight: 800;
}

.seller-public-product > div {
  padding: 1rem;
}

.seller-public-product h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.seller-public-product p {
  min-height: 3.2em;
  margin: 0.55rem 0 0;
  color: var(--vp-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.seller-public-product dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.seller-public-product dl div {
  padding: 0.6rem;
  border-radius: 8px;
  background: #f3f7fb;
}

.seller-public-product dt {
  color: var(--vp-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.seller-public-product dd {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  font-weight: 800;
}

.seller-public-product button,
.seller-public-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  background: #2563eb;
  color: #ffffff !important;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.seller-public-product-button:hover,
.seller-public-product-button:focus {
  background: #1d4ed8;
  color: #ffffff;
}

.seller-public-product button:disabled {
  opacity: 0.72;
}

.seller-public-empty {
  padding: 1.1rem;
  color: var(--vp-muted);
}

@media (max-width: 860px) {
  .seller-public-profile {
    grid-template-columns: 1fr;
    align-items: end;
  }

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

@media (max-width: 560px) {
  .seller-public-hero {
    min-height: 520px;
  }

  .seller-public-stats,
  .seller-public-grid,
  .seller-public-product dl {
    grid-template-columns: 1fr;
  }
}
