/* Save Goods — Shared Storefront Styles (Anti-Slop + Better Typography & Accessibility) */
:root {
  --brand-emerald: #23CE6B;
  --brand-emerald-dark: #1AAE58;
  --brand-dark: #272D2D;
  --brand-canvas: #F6F8FF;
  --brand-surface: #FFFFFF;
  --brand-muted: #5A6565;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--brand-canvas);
  color: var(--brand-dark);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Accessible focus ring (WCAG 2.2) */
:focus-visible {
  outline: 2px solid var(--brand-emerald-dark);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand-dark);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0 0 0.75rem 0;
}
.skip-link:focus {
  left: 0;
}

/* Marquee (max 1 per page) */
@keyframes sg-marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.sg-marquee-track {
  display: flex;
  width: max-content;
  animation: sg-marquee 30s linear infinite;
}

.sg-marquee-track:hover {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .sg-marquee-track {
    animation: none;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
