/* Supplier public landing pages — mobile-first, no JS required */

.page-supplier-public {
  --sp-ink: var(--fep-ink, #0f172a);
  --sp-muted: var(--fep-ink-2, #475569);
  --sp-bg: #f8fafc;
  --sp-card: #fff;
  --sp-brand: var(--fep-brand, #e85d04);
  --sp-radius: 12px;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--sp-ink);
  background: var(--sp-bg);
  line-height: 1.55;
}

.sp-container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

.sp-preview-banner {
  background: #fef3c7;
  color: #92400e;
  text-align: center;
  padding: .5rem 1rem;
  font-weight: 600;
}

.sp-site-header {
  background: var(--sp-card);
  border-bottom: 1px solid #e2e8f0;
  padding: .75rem 0;
}

.sp-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sp-site-header nav {
  display: flex;
  gap: 1rem;
}

.sp-site-header nav a {
  color: var(--sp-ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sp-platform-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.sp-platform-link img {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(160px, 42vw);
  object-fit: contain;
}

.sp-header {
  background: var(--sp-card);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sp-header__inner {
  display: flex;
  align-items: center;
  gap: .75rem 1rem;
  padding: .75rem 0;
  flex-wrap: wrap;
}

.sp-header__supplier {
  font-weight: 700;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-header__cta {
  margin-left: auto;
}

.sp-anchor-nav {
  border-top: 1px solid #f1f5f9;
  overflow-x: auto;
}

.sp-anchor-nav .sp-container {
  display: flex;
  gap: 1rem;
  padding: .5rem 0;
}

.sp-anchor-nav a {
  color: var(--sp-muted);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.sp-hero__cover {
  max-height: 280px;
  overflow: hidden;
}

.sp-hero__cover img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.sp-hero__body {
  padding: 1.5rem 0 2rem;
}

.sp-hero__brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.sp-hero__logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: var(--sp-radius);
  background: #fff;
  border: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.sp-hero__logo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--sp-brand);
}

.sp-hero h1 {
  font-family: Poppins, Manrope, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0 0 .35rem;
  line-height: 1.2;
}

.sp-hero__tagline {
  font-size: 1.05rem;
  color: var(--sp-muted);
  margin: 0 0 .5rem;
}

.sp-hero__summary {
  margin: .85rem 0 0;
  max-width: 52ch;
  color: var(--sp-muted);
  font-size: 1rem;
}

.sp-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  list-style: none;
  padding: 0;
  margin: .75rem 0 0;
}

.sp-chip-list li {
  background: #f1f5f9;
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .85rem;
}

.sp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.25rem;
}

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: .55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: .95rem;
}

.sp-btn--primary {
  background: var(--sp-brand);
  color: #fff;
}

.sp-btn--secondary {
  background: #fff;
  color: var(--sp-ink);
  border-color: #cbd5e1;
}

.sp-btn--ghost {
  background: transparent;
  color: var(--sp-brand);
  border-color: #fed7aa;
}

.sp-btn--sm {
  min-height: 40px;
  padding: .4rem .75rem;
  font-size: .875rem;
}

.sp-section {
  padding: 2rem 0;
}

.sp-section--alt {
  background: #fff;
}

.sp-section h2 {
  font-family: Poppins, Manrope, sans-serif;
  margin: 0 0 1rem;
}

.sp-lead {
  font-size: 1.1rem;
  color: var(--sp-muted);
  max-width: 60ch;
}

.sp-prose {
  max-width: 70ch;
  color: var(--sp-muted);
}

.sp-product-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.sp-product-card {
  background: var(--sp-bg);
  border: 1px solid #e2e8f0;
  border-radius: var(--sp-radius);
  overflow: hidden;
}

.sp-product-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.sp-product-card__body {
  padding: 1rem;
}

.sp-product-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
}

.sp-price {
  font-weight: 700;
  color: var(--sp-brand);
}

.sp-facts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-facts li {
  padding: .35rem 0;
}

.sp-contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .sp-contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sp-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sp-contact-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--sp-brand);
  font-weight: 600;
}

.sp-site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 1.5rem 0;
  margin-top: 1rem;
}

.sp-site-footer a {
  color: #fff;
}

.sp-site-footer__inner p {
  margin: .25rem 0;
}

.sp-directory-hero {
  padding: 2rem 0 1rem;
}

.sp-directory-hero h1 {
  font-family: Poppins, Manrope, sans-serif;
}

.sp-filter-form {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .sp-filter-form {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
  }
}

.sp-filter-form input,
.sp-filter-form select {
  width: 100%;
  min-height: 44px;
  padding: .5rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.sp-directory-grid {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
}

.sp-directory-card a {
  display: block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sp-radius);
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 100%;
}

.sp-directory-card h2 {
  font-size: 1.05rem;
  margin: .5rem 0 .25rem;
}

.sp-directory-card img,
.sp-directory-card__placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
}

.sp-directory-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  font-weight: 700;
}

.sp-pagination {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.sp-pagination a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--sp-brand);
}

.sp-error {
  padding: 4rem 0;
  text-align: center;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: .5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--sp-brand);
  outline-offset: 2px;
}
