/* Maxmart redesign — base. Global typography and helpers.
   Loaded after the legacy combined.min.css, so these rules win over the old body styles. */

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

a { color: var(--mm-brand); }
a:hover { color: var(--mm-brand-dark); }

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

:focus-visible { outline: none; box-shadow: var(--mm-focus); }

.mm-icon {
  display: inline-block;
  flex: none;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mm-container {
  max-width: var(--mm-container);
  margin: 0 auto;
  padding-left: var(--mm-gutter);
  padding-right: var(--mm-gutter);
  box-sizing: border-box;
}

.mm-page {
  display: flex;
  flex-direction: column;
  gap: var(--mm-section-gap);
  padding-top: 24px;
  padding-bottom: 64px;
}

/* Typography */
.mm-display, .mm-h1, .mm-h2, .mm-h3, .mm-price {
  font-family: var(--mm-font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: inherit;
}
.mm-h1 { margin: 0; font-size: var(--mm-fs-h1); line-height: 1.1; letter-spacing: -0.02em; }
.mm-h2 { margin: 0; font-size: var(--mm-fs-h2); line-height: 1.15; }
.mm-h3 { margin: 0; font-size: var(--mm-fs-h3); line-height: 1.2; font-weight: 700; }
.mm-eyebrow {
  font-size: var(--mm-fs-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mm-muted { color: var(--mm-muted); }
.mm-small { font-size: var(--mm-fs-sm); }

.mm-section { display: flex; flex-direction: column; gap: 20px; }
.mm-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.mm-section__link { font-weight: 600; white-space: nowrap; }

.mm-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* Each helper only hides, so an element keeps its own display (flex, grid…) where it shows. */
@media (min-width: 768px) {
  .mm-only-mobile { display: none !important; }
}
@media (max-width: 767.98px) {
  .mm-hide-mobile { display: none !important; }
}

/* Accessibility pass (Phase 9): small text links and text buttons get a 24px-high hit area
   (WCAG 2.2 target size) without changing how they look. */
.mm-link-btn, .mm-section__link, .mm-topbar a, .mm-lang__item, .mm-menu-link,
.mm-pdp__rating, .mm-pdp__brand, .mm-account-card__head a {
  min-height: 24px; display: inline-flex; align-items: center;
}
/* A sentence with a <strong> in it: inline-flex would drop the spaces around it. */
.mm-buy__credit-line { min-height: 24px; padding: 2px 0; }
