/**
 * Afoomart CSS Reset & Baseline
 * Modern, clean, accessible reset tailored for e-commerce
 */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  min-height: 100vh;
  line-height: var(--af-leading-normal);
  font-family: var(--af-font-sans);
  font-size: var(--af-text-base);
  color: var(--af-color-dark-text);
  background-color: var(--af-color-bg);
  overflow-x: hidden;
}

/* Accessible focus outlines */
:focus-visible {
  outline: 2px solid var(--af-color-primary-navy);
  outline-offset: 2px;
}

/* Image & Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Form element font inheritance */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* List defaults */
ul,
ol {
  list-style: none;
}

/* Anchor tag defaults */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--af-transition-fast);
}

a:hover {
  color: var(--af-color-primary-red);
}

/* Table defaults */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* Remove animations for users who prefer reduced motion */
@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;
  }
}
