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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

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

/* Global focus-visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

fieldset {
  border: none;
}

/* === Scroll reveal animations === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger gallery items */
.product-view__gallery-item.reveal { transition-delay: 0s; }
.product-view__gallery-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.product-view__gallery-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.product-view__gallery-item.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Stagger category cards */
.catalog-categories__item.reveal:nth-child(2) { transition-delay: 0.1s; }
.catalog-categories__item.reveal:nth-child(3) { transition-delay: 0.15s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
