/* بخش‌های مشترک سایت -- بازطراحی ۱۴۰۵/۰۷/۲۲: پای صفحه (templates/shop/_footer.html) و صفحه‌های جدای
   «دربارهٔ ما»، «تماس با ما» و «حریم خصوصی» (templates/shop/site_page.html). کلاس‌ها پیشوند دارند (sf، page)
   تا با app.css و tailwind صفحه‌های دیگر قاطی نشوند. */

/* ── پای صفحه ─────────────────────────────────────────────────────────── */
.sf { --sf-bg: #1b0c0e; --sf-ink: #f7ece9; --sf-muted: rgba(247, 236, 233, .62); --sf-line: rgba(255, 255, 255, .1); --sf-red: #d2242f; --sf-gold: #ffd08a;
  position: relative; margin-top: clamp(56px, 8vw, 96px); padding: 0 clamp(16px, 4vw, 40px) calc(24px + env(safe-area-inset-bottom)); background: var(--sf-bg); color: var(--sf-ink);
  font: 14.5px/1.85 Vazirmatn, Tahoma, sans-serif; direction: rtl; }
.sf * { box-sizing: border-box; }
:where(.sf) a { color: inherit; text-decoration: none; }
.sf svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sf h2 { margin: 0 0 14px; font-size: 15px; font-weight: 900; color: #fff; }
.sf ul { margin: 0; padding: 0; list-style: none; }
.sf p { margin: 0; }
.sf__wrap { max-width: 1240px; margin: 0 auto; }

/* نوار «سفارش آنلاین» -- روی لبهٔ بالای پای صفحه سوار است */
.sf__cta { position: relative; top: calc(-1 * clamp(36px, 5vw, 48px)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 32px); border-radius: 24px; background: radial-gradient(120% 140% at 85% 0%, #d42a36 0%, #a51d2d 45%, #6d0a14 100%);
  box-shadow: 0 24px 50px rgba(109, 10, 20, .32); overflow: hidden; }
.sf__cta::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .06); pointer-events: none; }
.sf__cta-copy { display: grid; gap: 4px; position: relative; z-index: 1; }
.sf__cta-copy span { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.sf__cta-copy span i { width: 8px; height: 8px; border-radius: 50%; background: #7dff9e; box-shadow: 0 0 0 4px rgba(125, 255, 158, .2); }
.sf__cta-copy b { font-size: clamp(19px, 2.6vw, 27px); font-weight: 900; line-height: 1.4; color: #fff; text-wrap: balance; }
.sf__cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.sf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.sf-btn:active { transform: scale(.97); }
.sf-btn svg { width: 18px; height: 18px; flex: none; }
.sf-btn--light { background: #fff; color: #6d0a14; }
.sf-btn--light:hover { background: #fff5f0; }
.sf-btn--ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.sf-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.sf-btn--ghost span { font-variant-numeric: tabular-nums; letter-spacing: .3px; }
.sf-btn--red { background: #a51d2d; color: #fff; }
.sf-btn--red:hover { background: #8f1826; }
.sf-btn--line { border-color: #eadfdb; background: #fff; color: #221b1a; }
.sf-btn--line:hover { border-color: #a51d2d; color: #a51d2d; }

.sf__grid { display: grid; gap: 30px 24px; margin-top: calc(-1 * clamp(8px, 2vw, 16px)); padding-bottom: 30px; border-bottom: 1px solid var(--sf-line); }
@media (max-width: 699px) { .sf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sf__brand, .sf__contact { grid-column: 1 / -1; } }
@media (min-width: 700px) { .sf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sf__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.25fr); } }
.sf__logo { display: inline-flex; align-items: center; gap: 12px; }
.sf__logo img { width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.sf__logo span { display: grid; line-height: 1.4; }
.sf__logo b { font-size: 17px; font-weight: 900; color: #fff; }
.sf__logo small { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--sf-gold); }
.sf__brand > p { margin-top: 14px; max-width: 360px; color: var(--sf-muted); font-size: 13.5px; text-wrap: pretty; }
.sf__brand .sf__only { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 6px 14px 6px 12px; border: 1px solid rgba(255, 208, 138, .35); border-radius: 999px;
  background: rgba(255, 208, 138, .08); color: var(--sf-gold); font-size: 13px; font-weight: 800; }
.sf__only svg { width: 16px; height: 16px; flex: none; }
.sf__trust { margin-top: 16px; }
.sf__trust img { max-height: 92px; width: auto; border-radius: 12px; background: #fff; padding: 4px; }
.sf__col ul { display: grid; gap: 6px; }
.sf__col li a { display: inline-flex; align-items: center; gap: 8px; color: var(--sf-muted); font-weight: 700; transition: color .2s ease, transform .2s ease; }
.sf__col li a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .22); transition: background .2s ease; }
.sf__col li a:hover { color: #fff; transform: translateX(-3px); }
.sf__col li a:hover::before { background: var(--sf-red); }
.sf__phones { display: grid; gap: 8px; margin-bottom: 12px; }
.sf__col .sf__phones a::before { content: none; }
.sf__col .sf__phones a:hover { transform: none; }
.sf__col .sf__phones a { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 14px; color: #fff; border: 1px solid var(--sf-line); border-radius: 14px; background: rgba(255, 255, 255, .03);
  transition: border-color .2s ease, background .2s ease; }
.sf__phones a:hover { border-color: rgba(210, 36, 47, .6); background: rgba(210, 36, 47, .08); }
.sf__phones small { color: var(--sf-muted); font-size: 12px; font-weight: 700; }
.sf__col .sf__phones span { font-size: 16px; font-weight: 900; letter-spacing: .4px; font-variant-numeric: tabular-nums; }
.sf__address, .sf__hours { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; color: var(--sf-muted); font-size: 13px; }
.sf__address svg, .sf__hours svg { width: 17px; height: 17px; margin-top: 4px; flex: none; color: var(--sf-gold); }
.sf__maps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sf__maps a { padding: 6px 14px; border: 1px solid var(--sf-line); border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; }
.sf__maps a:hover { border-color: var(--sf-gold); color: var(--sf-gold); }

.sf__apps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--sf-line); }
.sf__apps > span { color: var(--sf-muted); font-size: 13.5px; }
.sf__apps > span b { margin-inline-end: 6px; color: #fff; font-size: 15px; font-weight: 900; }
.sf__apps > div { display: flex; flex-wrap: wrap; gap: 10px; }
.sf__apps a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; border: 1px solid var(--sf-line); border-radius: 14px; background: rgba(255, 255, 255, .04); transition: border-color .2s ease, background .2s ease; }
.sf__apps a:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); }
.sf__apps a svg { width: 24px; height: 24px; color: var(--sf-gold); flex: none; }
.sf__apps a span { display: grid; line-height: 1.35; font-size: 14px; font-weight: 900; }
.sf__apps a em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--sf-muted); }

.sf__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding-top: 18px; color: var(--sf-muted); font-size: 12.5px; }
.sf__bottom a { font-weight: 700; }
.sf__bottom a:hover { color: #fff; }
.sf__credit b { color: #fff; }
@media (max-width: 699px) { .sf__bottom { justify-content: center; text-align: center; } .sf__cta-actions, .sf__cta-actions .sf-btn { width: 100%; } }
/* صفحهٔ اصلی روی گوشی دکمهٔ چسبان «سبد خرید» پایین دارد؛ پای صفحه زیرش نماند. */
body.landing .sf { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.landing .sf { padding-bottom: 28px; } }

/* ── صفحه‌های جدا: دربارهٔ ما، تماس، حریم خصوصی ─────────────────────────── */
body.page-body { margin: 0; background: #faf6f3; color: #221b1a; font: 15px/1.85 Vazirmatn, Tahoma, sans-serif; -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.page-body *, .page-body *::before, .page-body *::after { box-sizing: border-box; }
:where(.page-body) img { max-width: 100%; height: auto; display: block; }
:where(.page-body) a { color: inherit; }
:where(.page-body) svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html:has(body.page-body) { scroll-behavior: smooth; scroll-padding-top: 84px; }

.page-hero { position: relative; overflow: hidden; padding: calc(var(--top-h) + clamp(34px, 6vw, 72px)) clamp(16px, 5vw, 64px) clamp(46px, 7vw, 86px); color: #fff;
  background: radial-gradient(120% 90% at 75% 20%, #cf2130 0%, #9c1120 48%, #5e0810 100%); }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 15% 90%, rgba(0, 0, 0, .35), transparent 70%); pointer-events: none; }
.page-hero::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 0 0 40px rgba(255, 255, 255, .03), 0 0 0 90px rgba(255, 255, 255, .02); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; }
.page-crumbs { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, .75); }
.page-crumbs a { text-decoration: none; } .page-crumbs a:hover { color: #fff; }
.page-hero h1 { margin: 0; max-width: 820px; font-size: clamp(32px, 5.4vw, 64px); line-height: 1.15; font-weight: 900; text-wrap: balance; }
.page-hero h1 em { font-style: normal; color: #ffd08a; }
.page-hero p { margin: 16px 0 0; max-width: 640px; font-size: clamp(15px, 1.6vw, 18.5px); color: rgba(255, 255, 255, .88); text-wrap: pretty; }
.page-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.page-hero__chips span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: rgba(0, 0, 0, .16); font-size: 13px; font-weight: 800; }
.page-hero__chips svg { width: 16px; height: 16px; }

.page { max-width: 1180px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) clamp(16px, 4vw, 40px) 0; display: grid; gap: clamp(44px, 7vw, 88px); }
.page-sec { display: grid; gap: 22px; }
.page-head { display: grid; gap: 6px; max-width: 760px; }
.page-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #a51d2d; font-size: 12.5px; font-weight: 800; }
.page-eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: currentColor; }
.page-head h2 { margin: 0; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.25; font-weight: 900; text-wrap: balance; }
.page-head p { margin: 4px 0 0; color: #857a76; font-size: 15.5px; text-wrap: pretty; }
.pcard { padding: clamp(18px, 2.6vw, 26px); border: 1.5px solid #eadfdb; border-radius: 22px; background: #fff; }
.page-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(22px, 3.4vw, 36px); border-radius: 26px;
  background: linear-gradient(135deg, #fff, #fbf1ee); border: 1.5px solid #f0e2de; }
.page-cta b { display: block; font-size: clamp(19px, 2.4vw, 26px); font-weight: 900; }
.page-cta span { color: #857a76; }
.page-cta div:last-child { display: flex; flex-wrap: wrap; gap: 10px; }

/* دربارهٔ ما */
.story { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .story { grid-template-columns: 1.1fr 1fr; gap: 54px; } }
.story__copy h2 { margin: 6px 0 16px; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.3; font-weight: 900; text-wrap: balance; }
.story__copy p { margin: 0 0 14px; color: #5f5552; font-size: 16px; text-wrap: pretty; }
.story__copy p strong { color: #221b1a; }
.story__media { position: relative; border-radius: 26px; overflow: hidden; background: #f5ece8; }
.story__media video, .story__media iframe { display: block; width: 100%; aspect-ratio: 16 / 10; border: 0; object-fit: cover; }
.about__play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #a51d2d; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.about__play svg { width: 28px; height: 28px; margin: auto; fill: currentColor; stroke: none; }
.about__play .is-pause, .story__media.is-playing .about__play .is-play { display: none; }
.story__media.is-playing .about__play .is-pause { display: block; }
.story__media.is-playing .about__play { opacity: 0; } .story__media.is-playing:hover .about__play { opacity: 1; }
.story-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; padding: 18px; list-style: none; background: linear-gradient(135deg, #6d0a14, #a51d2d); color: #fff; counter-reset: step; }
.story-steps li { display: grid; padding: 18px 16px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 18px; background: rgba(255, 255, 255, .08); counter-increment: step; }
.story-steps li::before { content: counter(step); margin-bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: #ffd08a; color: #6d0a14; font-size: 15px; font-weight: 900; line-height: 32px; text-align: center; }
.story-steps b { font-size: 16px; font-weight: 900; }
.story-steps small { font-size: 12.5px; opacity: .82; }

.values { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { display: grid; gap: 6px; align-content: start; padding: 20px; border: 1.5px solid #eadfdb; border-radius: 22px; background: #fff; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.values li:hover { border-color: #e2b8bd; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(109, 10, 20, .08); }
.values i { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 15px; background: #fbf1ee; color: #a51d2d; }
.values i svg { width: 25px; height: 25px; }
.values b { font-size: 16.5px; font-weight: 900; }
.values span { color: #857a76; font-size: 13.5px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: clamp(18px, 3vw, 28px); border-radius: 26px; background: #1b0c0e; color: #fff; }
.stats div { display: grid; gap: 2px; padding: 8px 10px; }
.stats b { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 900; color: #ffd08a; font-variant-numeric: tabular-nums; }
.stats span { color: rgba(255, 255, 255, .7); font-size: 13.5px; font-weight: 700; }

/* تماس */
.reach { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.reach__call { position: relative; display: grid; gap: 4px; padding: 22px; border: 1.5px solid #eadfdb; border-radius: 22px; background: #fff; text-decoration: none; overflow: hidden;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.reach__call:hover { border-color: #a51d2d; transform: translateY(-3px); box-shadow: 0 16px 34px rgba(109, 10, 20, .1); }
.reach__call i { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 8px; border-radius: 15px; background: #ecf8f0; color: #1a7f4b; }
.reach__call i svg { width: 23px; height: 23px; }
.reach__call small { color: #857a76; font-size: 13px; font-weight: 700; }
.reach__call span { font-size: 23px; font-weight: 900; letter-spacing: .5px; text-align: right; font-variant-numeric: tabular-nums; }
.reach__call em { margin-top: 6px; font-style: normal; color: #a51d2d; font-size: 13.5px; font-weight: 800; }
.reach__call.is-main { background: linear-gradient(135deg, #6d0a14, #b91f2d); border-color: transparent; color: #fff; }
.reach__call.is-main small, .reach__call.is-main em { color: rgba(255, 255, 255, .82); }
.reach__call.is-main i { background: rgba(255, 255, 255, .14); color: #fff; }
.visit { display: grid; gap: 14px; }
@media (min-width: 900px) { .visit { grid-template-columns: 1.3fr 1fr; } }
.visit__place { display: grid; gap: 12px; align-content: start; }
.visit__place h3, .visit__hours h3 { margin: 0; font-size: 18px; font-weight: 900; }
.visit__place p { margin: 0; color: #5f5552; font-size: 15.5px; }
.visit__maps { display: flex; flex-wrap: wrap; gap: 10px; }
.visit__hours { display: grid; gap: 10px; align-content: start; background: #fffaf3; border-color: #f3e2c7; }
.visit__hours b { font-size: 22px; font-weight: 900; color: #6d0a14; }
.visit__hours p { margin: 0; color: #857a76; font-size: 14px; }
.only-branch { display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 7px 14px 7px 16px; border: 1px solid rgba(165, 29, 45, .22); border-radius: 999px; background: #fdf1f1;
  color: #a51d2d; font-size: 13.5px; font-weight: 800; }
.only-branch svg { width: 17px; height: 17px; flex: none; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1.5px solid #eadfdb; border-radius: 18px; background: #fff; transition: border-color .2s ease; }
.faq details[open] { border-color: #e2b8bd; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-size: 15.5px; font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fbf1ee; color: #a51d2d; font-size: 20px; font-weight: 700; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 18px; color: #5f5552; font-size: 15px; text-wrap: pretty; }

/* حریم خصوصی و متن‌های بلند */
.doc { max-width: 760px; }
.doc h2 { margin: 26px 0 6px; font-size: 18px; font-weight: 900; color: #a51d2d; }
.doc p, .doc li { margin: 0 0 6px; }
.doc ul { margin: 0; padding-inline-start: 20px; }
.doc a { color: #a51d2d; font-weight: 700; }

/* ظاهر شدن آرام با اسکرول (js/site.js)؛ بی JS همه‌چیز از اول دیده می‌شود. */
html.has-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 60ms); }
html.has-reveal [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; } html:has(body.page-body) { scroll-behavior: auto; } }

/* داخل اپ نصب‌شده، دعوت به دانلود اپ معنی ندارد (js/pwa.js). */
html.is-installed-app .sf__apps, html.is-installed-app .appband { display: none; }
