/* ==========================================================================
   01-RESET.CSS — Al Aliyah Supermarket implementation kit
   Status: PENDING REVIEW — see ../PENDING-REVIEW.md.

   A light, modern reset. Deliberately does NOT reset WooCommerce/Elementor
   structural classes — this only normalises raw elements, so it layers on
   top of hello-elementor and Elementor's own CSS without fighting either.
   ========================================================================== */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Light only while dark mode is suppressed (00-tokens.css, "DARK MODE SUPPRESSED"). With
     `light dark` a visitor whose OS is dark got Chrome's dark native radios, checkboxes and
     scrollbars on the light page — the checkout's payment radios rendered as filled dark discs. */
  color-scheme: light;
}
:root[data-aly-dark-mode="enabled"]:not([data-theme="light"]) { color-scheme: light dark; }
:root[data-theme="dark"] { color-scheme: dark; }

html:focus-within {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}

body {
  min-height: 100svh;
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
}

img,
picture,
svg,
video,
canvas {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

img,
svg {
  vertical-align: middle;
}

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

button {
  background: none;
  border: 0;
  cursor: pointer;
  text-align: inherit;
}

button:disabled {
  cursor: not-allowed;
}

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

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding-inline-start: 0;
}

table {
  border-collapse: collapse;
  inline-size: 100%;
}

fieldset {
  border: 0;
  padding: 0;
}

/* Respect the visitor's motion preference at the reset layer too — belt and
   braces alongside the per-component `prefers-reduced-motion` blocks. */
@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;
  }
}

/* Visually-hidden utility that stays screen-reader accessible — used for
   skip links, aria-live regions and form labels that are semantically
   required but visually redundant next to a placeholder-style affix. */
.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.visually-hidden.focusable:focus,
.visually-hidden.focusable:focus-within {
  position: static;
  inline-size: auto;
  block-size: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}
