/* Self-hosted Persian webfonts. Only the two weights actually used
   (normal + medium/bold for headings) to keep payload small — the legacy
   theme.css loaded 5 weights per family regardless of use. */
@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/Assets/fonts/IRANSans/woff2/IRANSansWeb(FaNum).woff2") format("woff2"),
       url("/Assets/fonts/IRANSans/woff/IRANSansWeb(FaNum).woff") format("woff");
}
@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/Assets/fonts/IRANSans/woff2/IRANSansWeb(FaNum)_Medium.woff2") format("woff2"),
       url("/Assets/fonts/IRANSans/woff/IRANSansWeb(FaNum)_Medium.woff") format("woff");
}
@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/Assets/fonts/IRANSans/woff2/IRANSansWeb(FaNum)_Bold.woff2") format("woff2"),
       url("/Assets/fonts/IRANSans/woff/IRANSansWeb(FaNum)_Bold.woff") format("woff");
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--color-text);
}

h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }

p {
  color: var(--color-text-muted);
}

a {
  transition: color var(--transition-fast);
}
a:hover,
a:focus-visible {
  color: var(--color-gold-text);
}

img {
  height: auto;
}

::selection {
  background: var(--color-gold);
  color: var(--color-text-on-gold);
}

/* Layout primitives */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container--wide {
  max-width: calc(var(--container-max) + 240px);
}

.section {
  padding-block: var(--space-xl);
}

.section-title {
  text-align: center;
  margin-block-end: var(--space-md);
}
.section-title__rule {
  display: block;
  width: 64px;
  height: 2px;
  margin: var(--space-2xs) auto 0;
  background: var(--color-gold);
}

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-sm);
  top: -100px;
  z-index: var(--z-modal);
  background: var(--color-gold);
  color: var(--color-text-on-gold);
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  padding: var(--space-2xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--color-gold);
  color: var(--color-gold-text);
  transition: background var(--transition-fast), color var(--transition-fast);
}
.btn:hover,
.btn:focus-visible {
  background: var(--color-gold);
  color: var(--color-text-on-gold);
}
.btn--solid {
  background: var(--color-gold);
  color: var(--color-text-on-gold);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--color-gold-dim);
  border-color: var(--color-gold-dim);
  color: var(--color-text-on-gold);
}
.btn--block {
  display: flex;
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
  font-size: var(--fs-sm);
  text-transform: uppercase;
  color: inherit;
}
.link-arrow::after {
  content: "";
  inline-size: 18px;
  block-size: 1px;
  background: currentColor;
}

/* Generic breadcrumb — content pages (Article/News/Page/CustomOrder). Product
   pages keep their own page-scoped `.products-breadcrumb` (products.css /
   product-details.css); this is the shared version for everything else. */
.breadcrumb {
  padding-block: var(--space-sm);
}
.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3xs);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3xs);
}
.breadcrumb__list li:not(:last-child)::after {
  content: "/";
  margin-inline-start: var(--space-3xs);
  color: var(--color-border);
}
.breadcrumb__list a {
  color: var(--color-text-muted);
}
.breadcrumb__list a:hover {
  color: var(--color-gold-text);
}
.breadcrumb__list [aria-current="page"] {
  color: var(--color-text);
}

.form-field {
  display: block;
  width: 100%;
  padding: var(--space-2xs) var(--space-xs);
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
}
.form-field:focus-visible {
  border-color: var(--color-gold);
}
.form-field::placeholder {
  color: var(--color-text-muted);
}
label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-block-end: var(--space-3xs);
}

.field-error {
  color: var(--color-danger);
  font-size: var(--fs-xs);
  min-height: 1.2em;
}

.lazy-img {
  background: var(--color-bg-raised);
}

/* Inline SVG icons (used instead of an icon font — no Font Awesome/Ionicons
   dependency — so they inherit color via currentColor in both themes). */
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
