@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #151513;
  --muted: #6b665f;
  --line: #e8e1d5;
  --paper: #fffdf8;
  --soft: #f7f1e8;
  --gold: #d4af37;
  --gold-2: #f1cf6b;
  --green: #143d33;
  --danger: #b42318;
  --shadow: 0 20px 60px rgba(21, 21, 19, .10);
  --radius: 14px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-hero: clamp(30px, 5vw, 52px);
  --fs-h2: clamp(24px, 3.5vw, 34px);
  --fs-h3: clamp(18px, 2vw, 22px);
  --fs-form-title: clamp(21px, 3vw, 24px);
  --fs-stat: clamp(22px, 3vw, 28px);
}

* { box-sizing: border-box; }
html { direction: rtl; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.9;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; max-width: 100%; }
.icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-line,
.contact-item,
.price,
.admin-sidebar a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.skip { position: absolute; top: -80px; right: 16px; background: var(--ink); color: white; padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232, 225, 213, .75);
  transition: box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 253, 248, .96);
  border-color: rgba(21, 21, 19, .08);
  box-shadow: 0 14px 36px rgba(21, 21, 19, .08);
}
.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: 0; min-width: 0; }
.brand > span:last-child { min-width: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink), #37322c);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(21, 21, 19, .18);
}
.brand small { display: block; color: var(--muted); font-weight: 700; line-height: 1.1; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  min-height: 44px;
  padding: 9px 13px;
  border-radius: 999px;
  color: #393631;
  font-weight: 700;
}
.nav-links a:hover, .nav-links a:focus { background: var(--soft); outline: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .menu-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.icon-btn:hover, .icon-btn:focus-visible, .menu-toggle:hover, .menu-toggle:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(21, 21, 19, .08);
  transform: translateY(-1px);
  outline: none;
}
.menu-toggle { display: none; }
.cta, .btn, .btn-secondary, .btn-danger {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cta, .btn {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #1d1707;
  box-shadow: 0 12px 28px rgba(212, 175, 55, .24);
}
.btn-secondary { background: var(--ink); color: white; }
.btn-danger { background: #fff0ee; color: var(--danger); border: 1px solid #ffd4cf; }
.cta:hover, .btn:hover, .btn-secondary:hover { transform: translateY(-2px); }
.cta:focus-visible, .btn:focus-visible, .btn-secondary:focus-visible, .btn-danger:focus-visible {
  outline: 3px solid rgba(212, 175, 55, .34);
  outline-offset: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 78px 0 auto 0;
  z-index: 60;
  background: rgba(255, 253, 248, .98);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 18px;
}
.mobile-menu.is-open { display: grid; gap: 8px; }
.mobile-menu a { min-height: 48px; padding: 10px 14px; border-radius: 12px; background: var(--soft); font-weight: 700; transition: background .2s ease, transform .2s ease; }
.mobile-menu a:hover, .mobile-menu a:focus-visible { background: #fff; transform: translateX(-2px); outline: 2px solid rgba(212, 175, 55, .28); }

.hero {
  min-height: 650px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: white;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.68)), var(--hero-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero-content { position: relative; padding: 96px 0 86px; max-width: 720px; }
.eyebrow { color: var(--gold-2); font-weight: 700; margin-bottom: 10px; }
h1, h2, h3 { margin: 0; line-height: 1.35; letter-spacing: 0; }
h1 { font-size: var(--fs-hero); max-width: 760px; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
.section h1 { font-size: var(--fs-h2); }
.hero h1 { font-size: var(--fs-hero); }
.panel h1,
.panel h2,
.form-grid h1,
.form-grid h2,
.admin-main h1,
.admin-main h2,
.admin-sidebar h2 {
  font-size: var(--fs-form-title);
  line-height: 1.45;
}
.lead { color: rgba(255,255,255,.84); font-size: 1.15rem; max-width: 630px; }
.section { padding: 76px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head > * { min-width: 0; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 620px; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card, .product-card, .panel, .admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(21, 21, 19, .06);
}
.card, .product-card, .panel, .admin-card, .feature { min-width: 0; }
.product-card { overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--soft); }
.product-body { padding: 16px; }
.meta { color: var(--muted); font-size: var(--fs-small); }
.price { color: var(--green); font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { padding: 6px 10px; border-radius: 999px; background: var(--soft); color: #443f38; font-weight: 700; font-size: .86rem; }
.feature { padding: 24px; }
.feature strong { display: block; font-size: 1.15rem; margin-bottom: 8px; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 14px;
  color: #4b3906;
  background: linear-gradient(135deg, rgba(212, 175, 55, .24), rgba(241, 207, 107, .12));
  border: 1px solid rgba(212, 175, 55, .22);
}
.feature-icon .icon { width: 24px; height: 24px; flex-basis: 24px; }
.band { background: var(--ink); color: white; }
.band .meta, .band .section-head p { color: rgba(255,255,255,.72); }
.gallery-img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.form-grid { display: grid; gap: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(212, 175, 55, .25); border-color: var(--gold); }
.notice { padding: 12px 14px; border-radius: 12px; background: #edf8f2; color: #135c38; border: 1px solid #bfe8d0; margin-bottom: 16px; }
.error { padding: 12px 14px; border-radius: 12px; background: #fff0ee; color: var(--danger); border: 1px solid #ffd4cf; margin-bottom: 16px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.filters { padding: 18px; margin-bottom: 24px; }
.filters form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; }
th { background: var(--soft); font-weight: 700; }
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: #111; color: white; padding: 22px; position: sticky; top: 0; height: 100vh; }
.admin-sidebar h2 { overflow-wrap: anywhere; margin-bottom: 14px; }
.admin-sidebar a { padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.82); font-weight: 700; }
.admin-sidebar a:hover { background: rgba(255,255,255,.10); color: white; }
.admin-main { padding: 28px; background: #fbf7ef; }
.admin-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.admin-card { padding: 18px; }
.stat-card h2 { font-size: var(--fs-stat); font-variant-numeric: tabular-nums; }
.thumb { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer { background: #111; color: white; padding: 52px 0 20px; }
.publish-token { display: none; }
.footer a { color: white; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 34px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: rgba(255,255,255,.86);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: white; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  width: 100%;
  align-items: flex-start;
  color: inherit;
  text-decoration: none;
}
.footer .contact-item { text-decoration: none; }
.contact-item small {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  line-height: 1.4;
}
.contact-item strong {
  display: block;
  color: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.card .contact-item small,
.panel .contact-item small { color: var(--muted); }
.trust { display: flex; gap: 10px; flex-wrap: wrap; }
.trust img { width: 76px; background: white; border-radius: 10px; padding: 4px; }
.trust-meta { margin-top: 12px; color: rgba(255,255,255,.74); font-size: var(--fs-small); line-height: 1.9; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; color: rgba(255,255,255,.72); font-size: .9rem; }

@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .footer-grid, .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .filters form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 24px, 1180px); }
  .hero { min-height: 590px; }
  .hero-content { padding: 74px 0 58px; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-head { display: block; }
  .filters form { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .nav-actions .cta { display: none; }
  .admin-main { padding: 18px 12px; }
  .admin-top { align-items: stretch; flex-direction: column; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 20px, 1180px); }
  .nav { min-height: 70px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-mark, .icon-btn, .menu-toggle { width: 40px; height: 40px; border-radius: 10px; }
  .nav-actions { gap: 6px; }
  .mobile-menu { inset-block-start: 70px; }
  .feature, .product-body, .filters { padding: 14px; }
  .actions { align-items: stretch; }
  .actions > .btn, .actions > .btn-secondary, .actions > .btn-danger { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
/* #B64 mobile-reachability fix 2026-09-03 */
@media (max-width:860px){
  main.admin-main{min-width:0}
  div.admin-top{flex-wrap:wrap;row-gap:8px}
}
