/* =========================================
   MiniTiendAI — Shared Reset & Base Styles
   Loaded after tokens.css on every page.
   ========================================= */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: var(--leading-tight);
  text-wrap: balance;
}

h1 { font-weight: 800; letter-spacing: -0.025em; }
h2 { font-weight: 700; letter-spacing: -0.02em; }
h3 { font-weight: 600; letter-spacing: -0.015em; }
h4, h5, h6 { font-weight: 600; letter-spacing: -0.01em; }

p {
  color: var(--text-secondary);
  text-wrap: pretty;
}

li {
  text-wrap: pretty;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.prose {
  max-inline-size: 65ch;
}

button {
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
}

.price,
.product-price,
.order-total,
.order-total-amount,
.price-amount,
.cart-total,
.cart-total-price,
.stat-value,
.stat-content h3,
[data-price] {
  font-variant-numeric: tabular-nums;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv01' 1, 'ss01' 1;
  line-height: var(--leading-normal);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: color-mix(in oklch, var(--primary-color) 25%, transparent);
  color: var(--text-primary);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
