/* What both sites draw with: the font, the reset, buttons, forms, cards, the slider, the drawer.
   Each site's own stylesheet sets the colour tokens below and lays out its own pages.
   Hand-written, no build step: the whole product is one Python image, and a Node toolchain to
   produce a few hundred lines of CSS would be the largest thing in it. */

@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); }
@font-face { font-family: Vazirmatn; font-weight: 900; font-display: swap; src: url("../fonts/Vazirmatn-Black.woff2") format("woff2"); }

:root {
  --bg: #faf9f7; --surface: #fff; --ink: #1d1b1f; --muted: #6b6670; --line: #ebe6e3;
  --brand: #444; --brand-ink: #fff; --brand-dark: #222; --brand-soft: #f1f1f1;
  --accent: #b8893a; --accent-soft: #fbf3e2;
  --ok: #23774f; --ok-soft: #e3f3ea; --warn: #8a5d0b; --warn-soft: #fcf1d8; --bad: #c4323f; --bad-soft: #fde9eb;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgb(20 10 30 / .05), 0 8px 24px -12px rgb(20 10 30 / .14);
  --wrap: 1240px; --gutter: 16px; --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.8; font-size: 16px;
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif; font-feature-settings: "ss01";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.45; margin: 0; font-weight: 800; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--surface); padding: .5rem 1rem; border-radius: 8px; }
.skip:focus { top: 8px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 18px; height: 18px; }
.icon--lg { width: 30px; height: 30px; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }

/* ---- buttons -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px;
  padding: .6rem 1.25rem; border: 1px solid transparent; border-radius: 12px; background: var(--brand);
  color: var(--brand-ink); font-weight: 700; white-space: nowrap; transition: background .18s var(--ease), transform .18s var(--ease), box-shadow .18s;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); font-weight: 600; }
.btn--ghost:hover { background: var(--brand-soft); border-color: transparent; }
.btn--soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn--soft:hover { background: color-mix(in srgb, var(--brand-soft) 70%, var(--brand) 12%); }
.btn--light { background: #fff; color: var(--brand-dark); }
.btn--light:hover { background: #fff; box-shadow: 0 6px 20px -8px rgb(0 0 0 / .35); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn--sm { min-height: 38px; padding: .35rem .9rem; font-size: .92rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: .25rem; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---- surfaces ------------------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.card--flush { padding: 0; overflow: hidden; }
.pill { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .1rem .65rem; font-size: .8rem; font-weight: 600; line-height: 1.9; }
.pill--sale { background: var(--bad); color: #fff; }
.pill--out { background: var(--line); color: var(--muted); }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--wait { background: var(--warn-soft); color: var(--warn); }
.pill--bad { background: var(--bad-soft); color: var(--bad); }
.pill--brand { background: var(--brand-soft); color: var(--brand-dark); }

.flash { padding: .8rem 1rem; border-radius: 12px; margin: 1rem 0 0; display: flex; gap: .5rem; align-items: center; }
.flash--success { background: var(--ok-soft); color: var(--ok); }
.flash--error { background: var(--bad-soft); color: var(--bad); }
.flash--warning, .flash--info { background: var(--warn-soft); color: var(--warn); }
.strip { padding: .45rem var(--gutter); text-align: center; font-size: .88rem; }
.strip--warn { background: var(--warn-soft); color: var(--warn); }

/* ---- forms ---------------------------------------------------------------------------- */
label, .label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: .35rem; }
input[type=text], input[type=tel], input[type=search], input[type=number], input[type=email], textarea, select {
  width: 100%; min-height: 48px; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 1rem; }
.hint { font-size: .84rem; color: var(--muted); margin-top: .3rem; }
.choice { display: flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--brand); }
.segmented { display: flex; flex-wrap: wrap; gap: .5rem; }
/* The label is the positioning context: an absolute input with none would be placed against the
   page, and the hidden inputs of a scrolled-away day would widen the whole page on a phone. */
.segmented label { margin: 0; position: relative; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; min-height: 42px; padding: .4rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 500; cursor: pointer; transition: all .15s; }
.segmented input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
/* The honeypot: out of sight and out of the tab order, without a far-off offset that would
   widen a right-to-left page. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---- tables --------------------------------------------------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: start; padding: .7rem .5rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* ---- headings with a «see all» link ------------------------------------------------------ */
.section { margin-block: 2.6rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }
.section-head p { margin: .2rem 0 0; color: var(--muted); font-size: .95rem; }
.eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: .85rem; letter-spacing: 0; margin-bottom: .2rem; }

.crumbs { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; font-size: .88rem; color: var(--muted); margin: 1.2rem 0 .8rem; }
.crumbs a:hover { color: var(--brand); }
.crumbs .icon { width: 14px; height: 14px; }

.pager { display: flex; gap: .4rem; justify-content: center; align-items: center; margin-top: 2rem; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; padding: 0 .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.pager .on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 700; }

/* ---- rich text written in the admin -------------------------------------------------- */
.prose { font-size: 1.02rem; line-height: 2.05; }
.prose h2 { font-size: 1.3rem; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 1.1rem; margin: 1.5em 0 .5em; }
.prose ul, .prose ol { padding-inline-start: 1.3rem; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 4px; }
.prose .note { background: var(--accent-soft); border-inline-start: 4px solid var(--accent); padding: .9rem 1.1rem; border-radius: 12px; margin: 0 0 1em; }
.prose > :first-child { margin-top: 0; }

/* ---- accordion (FAQ) ------------------------------------------------------------------ */
.qa { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.qa + .qa { margin-top: .6rem; }
.qa summary { list-style: none; cursor: pointer; padding: 1rem 1.1rem; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .icon { transition: transform .2s var(--ease); color: var(--muted); }
.qa[open] summary .icon { transform: rotate(180deg); }
.qa .qa-body { padding: 0 1.1rem 1.1rem; color: var(--muted); line-height: 2; }

/* ---- the banner slider ----------------------------------------------------------------- */
.slider { position: relative; border-radius: 22px; overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.slider-dots { position: absolute; bottom: 14px; inset-inline: 0; display: flex; justify-content: center; gap: 6px; }
.slider-dots button { width: 9px; height: 9px; padding: 0; border-radius: 99px; border: 0; background: rgb(255 255 255 / .55); transition: width .25s var(--ease), background .25s; }
.slider-dots button[aria-current="true"] { width: 26px; background: #fff; }
.slider-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; display: none; place-items: center; background: rgb(255 255 255 / .85); color: var(--ink); box-shadow: var(--shadow); }
.slider-arrow--prev { inset-inline-start: 14px; }
.slider-arrow--next { inset-inline-end: 14px; }
@media (min-width: 900px) { .slider-arrow { display: grid; } }

/* ---- horizontal rails of cards ---------------------------------------------------------- */
.rail { position: relative; }
.rail-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 46%); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.rail-track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail-track { grid-auto-columns: minmax(190px, 31%); } }
@media (min-width: 1000px) { .rail-track { grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; } }
.rail-btn { position: absolute; top: 38%; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: none; place-items: center; box-shadow: var(--shadow); }
.rail-btn--prev { inset-inline-start: -14px; }
.rail-btn--next { inset-inline-end: -14px; }
@media (min-width: 1000px) { .rail-btn { display: grid; } }

/* ---- the mobile drawer -------------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgb(15 10 20 / .45); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 360px); background: var(--surface); overflow-y: auto; transform: translateX(100%); transition: transform .28s var(--ease); padding: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: .6rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.drawer a.d-link, .drawer summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 .5rem; border-radius: 10px; font-weight: 600; }
.drawer a.d-link:hover, .drawer summary:hover { background: var(--brand-soft); }
.drawer details summary { list-style: none; cursor: pointer; }
.drawer details summary::-webkit-details-marker { display: none; }
.drawer details[open] > summary .icon { transform: rotate(180deg); }
.drawer details .d-sub { padding-inline-start: .8rem; border-inline-start: 2px solid var(--line); margin: 0 .5rem .4rem; }
.drawer details .d-sub a { display: block; padding: .45rem .5rem; color: var(--muted); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: inherit; position: relative; }
.icon-btn:hover { background: var(--brand-soft); }
.no-scroll { overflow: hidden; }

/* ---- placeholder art when there is no photo ------------------------------------------------ */
.ph { display: grid; place-items: center; background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 55%, transparent); }
.ph .icon { width: 42%; height: 42%; max-width: 72px; max-height: 72px; stroke-width: 1.2; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { width: 44px; height: 44px; margin: 0 auto .6rem; color: var(--brand); opacity: .6; }

.reveal { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print { .site-head, .site-foot, .bottom-nav, .drawer { display: none !important; } }
/* A separator dot drawn, not typed: «·» beside Persian digits reads as the digit zero «۰». */
.dot { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; vertical-align: middle; }
/* A grid or flex child defaults to `min-width: auto`, so a rail inside one would stretch the page
   to the rail's full scroll width instead of scrolling inside it. */
.rail, .slider, .cat-circles, .brand-strip, .subcats { min-width: 0; }
.section-head .link { white-space: nowrap; flex: none; }
