/* ==========================================================================
   base.css — Base / reset
   Page reset, body, images, links, buttons, focus outline, text selection. The only file every page shares.
   Self-contained: every value is written out (no CSS variables) and every
   selector has its own rule, so changing one block never touches another.
   ========================================================================== */

/* ── * ── */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

/* ── html ── */
html {
  scroll-behavior: smooth;
}

/* ── body ── */
body {
  font-family: "Jost", sans-serif;
  background: #f9f0fa;
  color: #4a154b;
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ── a ── */
a {
  color: inherit;
  text-decoration: none;
}

/* ── ul ── */
ul {
  list-style: none;
}

/* ── button ── */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── .container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── body ── */
body {
  background: #f9f0fa;
  color: #4a154b;
}

/* ── ::selection ── */
::selection {
  background: #4a154b;
  color: #fff;
}

/* ── ::placeholder ── */
::placeholder {
  color: #4a154b73;
}

/* ── a ── */
a {
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease, text-decoration-color .25s ease;
}

/* ── button ── */
button {
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease, text-decoration-color .25s ease;
}

/* ── :focus-visible ── */
:focus-visible {
  outline: 3px solid #4a154b;
  outline-offset: 2px;
}

/* ── section ── */
section[style*="background:#4a154b"] a:not(.btn):hover {
  color: #f7d4e6;
}

@media (hover: none) {
  /* ── a ── */
  a:not(.btn):hover {
    text-decoration: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  /* ── * ── */
  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  /* the marquees are scroll-driven, not time-driven: stop them rather than let them flicker */
  .eg-logo-track,
  .eg-ticker-item,
  #eg-ticker-track {
    animation: none !important;
  }

}

/* ── body ── */
body.cart-open {
  overflow: hidden;
}

/* ── iPhone fix: any field under 16px makes iOS Safari zoom in when tapped ── */
@media (max-width: 900px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}
