/* ==========================================================================
   Public storefront — shared primitives.
   Only `sf-*` selectors live here; every template styles its own layout under
   its `.tpl-<key>` root.
   ========================================================================== */

.sf-container {
  margin-inline: auto;
  padding-inline: var(--sf-gutter);
  width: 100%;
  max-width: var(--sf-container);
}

.sf-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1.2;
  text-transform: uppercase;
}

.sf-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--sf-radius-sm);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 700;
  gap: 0.5rem;
  justify-content: center;
  line-height: 1;
  padding: 0.85rem 1.15rem;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease,
    color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.sf-btn:hover {
  transform: translateY(-1px);
}

.sf-btn:active {
  transform: translateY(0);
}

.sf-btn--sm {
  font-size: 0.75rem;
  padding: 0.65rem 0.9rem;
}

.sf-btn--brand {
  background: var(--sf-brand);
  color: var(--sf-brand-contrast);
}

.sf-btn--brand:hover {
  opacity: 0.92;
}

.sf-btn--light {
  background: #ffffff;
  color: #0f172a;
}

.sf-btn--light:hover {
  background: #f8fafc;
}

.sf-btn--ghost {
  background: transparent;
  border-color: var(--sf-border);
  color: var(--sf-text-secondary);
}

.sf-btn--ghost:hover {
  background: var(--sf-surface-muted);
  border-color: var(--sf-border-strong);
}

.sf-btn--outline-light {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.32);
  color: #ffffff;
}

.sf-btn--outline-light:hover {
  background: rgb(255 255 255 / 0.18);
}

.sf-icon {
  flex: 0 0 auto;
  height: 1.25rem;
  width: 1.25rem;
}

.sf-empty {
  align-items: center;
  background: var(--sf-surface);
  border: 1px dashed var(--sf-border-strong);
  border-radius: var(--sf-radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  padding: 3.5rem 1.5rem;
  text-align: center;
}

.sf-empty__icon {
  align-items: center;
  background: var(--sf-surface-muted);
  border-radius: var(--sf-radius-md);
  color: var(--sf-text-muted);
  display: inline-flex;
  height: 3.25rem;
  justify-content: center;
  width: 3.25rem;
}

.sf-empty h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.sf-empty p {
  color: var(--sf-text-muted);
  font-size: 0.9rem;
  max-width: 34rem;
}

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

.sf-copy-feedback {
  color: var(--sf-brand);
  flex-basis: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
