/* ==========================================================================
   MZF Store — base stylesheet (Phase 1)
   RTL-first, light theme, Vazirmatn. Layout sections land in later phases.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--bg);
  direction: rtl;
  text-align: right;
}

/* Headings */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }

p { margin: 0 0 1em; }

a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--brand-700); }

img { max-width: 100%; height: auto; display: block; }

/* Form controls never inherit the page font in any browser — set it globally so
   every input/textarea/select/button across the theme and WooCommerce renders
   in Vazirmatn instead of the UA default. */
input, textarea, select, button, optgroup, option {
  font-family: var(--font);
  font-size: inherit;
}

/* Layout container */
.mzf-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 32px);
}

/* Buttons */
.mzf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  line-height: 1;
  padding: .85em 1.6em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .05s ease;
}
.mzf-btn:active { transform: translateY(1px); }

.mzf-btn--primary { background: var(--brand); color: var(--brand-contrast); box-shadow: var(--shadow-brand); }
.mzf-btn--primary:hover { background: var(--brand-600); color: #fff; }

.mzf-btn--ghost { background: #fff; color: var(--brand); border-color: var(--line-strong); }
.mzf-btn--ghost:hover { border-color: var(--brand); }

.mzf-btn--block { width: 100%; }

/* Cards */
.mzf-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

/* Utility */
.mzf-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.mzf-section { padding-block: clamp(32px, 5vw, 64px); }
.mzf-section__title { text-align: center; margin-bottom: 1.5em; }

/* Skip link */
.mzf-skip-link {
  position: absolute; right: -9999px; top: 0;
  background: var(--brand); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--r) 0; z-index: 1000;
}
.mzf-skip-link:focus { right: 0; }

/* Focus visibility for accessibility */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Placeholder homepage notice for Phase 1 */
.mzf-phase-note {
  margin: 40px auto;
  max-width: 720px;
  padding: 32px;
  text-align: center;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink-muted);
}
