@charset "UTF-8";
/* ==========================================================================
   لاکین ایران — Lockin Farsi storefront
   RTL mirror of the official Lockin shop UI. Design tokens (radius, palette,
   type scale, pill buttons) are taken from the live theme; the Latin DM Sans
   is swapped for Vazirmatn so Persian text keeps the same rhythm.
   Physical properties (left/right) are avoided in favour of logical ones.
   ========================================================================== */

/* DM Sans is the brand's own typeface and stays untouched for every Latin
   glyph — wordmark, Venokey™/LockinCam™/LockinAI™, model names, specs. It has
   no Persian coverage, so Persian text falls through to Vazirmatn on its own. */
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dmsans-latin.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
  font-style: normal;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../assets/fonts/dmsans-latin-ext.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
  font-style: normal;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../assets/fonts/vazirmatn-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* palette — from the live theme's CSS custom properties */
  --fg: #3f3f3f;
  --fg-title: #1a1a1a;
  --fg-2: #6a6a6a;
  --fg-3: #a9a9a9;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --bg-dark: #1f1f1f;
  --bg-dark-2: #282828;
  --line: #e5e5e5;
  --line-dark: #353535;
  --accent: #e5e5e5;
  --btn: #1f1f1f;
  --btn-hover: #3f3f3f;
  --lilac: #e9e2ff;
  --lilac-ink: #4b3b8f;
  --sale: #c0392b;
  --ok: #1f7a4d;

  /* geometry */
  --r-btn: 100px;
  --r-main: 10px;
  --r-badge: 30px;
  --container: 1400px;
  --gutter: 24px;
  --header-h: 64px;
  --announce-h: 36px;
  --section-y: clamp(48px, 6vw, 88px);

  --font: 'DM Sans', 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

/* A `display` declaration outranks the UA style the `hidden` attribute relies
   on, so any element we toggle with `hidden` needs this to actually hide. */
[hidden] { display: none !important; }


html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  /* the root element is the scroll container, so the guard belongs here — on
     body alone an RTL page still gains inline-start scroll space */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  color: var(--fg-title);
  margin: 0 0 .5em;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(28px, 4.4vw, 56px); }
h2 { font-size: clamp(23px, 3vw, 36px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); }
p { margin: 0 0 1em; }

.container { width: min(100% - (var(--gutter) * 2), var(--container)); margin-inline: auto; }
.container-narrow { width: min(100% - (var(--gutter) * 2), 900px); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 3000;
  background: var(--btn); color: #fff; padding: 12px 22px; border-radius: 0 0 var(--r-main) var(--r-main);
}
.skip-link:focus { inset-inline-start: 12px; }

:focus-visible { outline: 2px solid var(--btn); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px;
  border-radius: var(--r-btn);
  background: var(--btn);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .01em;
  line-height: 1;
  transition: background .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(.98); }
.btn--lg { padding: 17px 38px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--fg-title); border: 1px solid var(--fg-title); }
.btn--ghost:hover { background: var(--fg-title); color: #fff; }
.btn--light { background: #fff; color: var(--fg-title); }
.btn--light:hover { background: var(--accent); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }

.link-underline { border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------------------------------------------------------- announcement bar */
.announce {
  background: #000; color: #fff;
  font-size: 13px; text-align: center;
  height: var(--announce-h);
  display: flex; align-items: center; justify-content: center;
  padding-inline: 40px;
}

/* ----------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 900;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header.is-stuck { box-shadow: 0 1px 16px rgba(0, 0, 0, .07); border-color: var(--line); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
  width: min(100% - 32px, var(--container)); margin-inline: auto;
}
/* The wordmark keeps the brand's own Latin lettering and spacing. Drop the
   official artwork in at assets/images/ui/logo.png and it is used instead. */
.header__logo {
  font-family: 'DM Sans', sans-serif;
  font-size: 21px; font-weight: 700; letter-spacing: .14em; color: #111;
  direction: ltr; unicode-bidi: isolate; line-height: 1;
}
.header__logo span { display: inline-block; }
.header__logo img { height: 26px; width: auto; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; transition: background .2s var(--ease); position: relative;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.header__nav { display: flex; gap: 4px; margin-inline-start: 26px; }
.header__nav > li { position: relative; }
.header__nav > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-size: 14px; font-weight: 500;
  color: var(--fg-title); border-radius: var(--r-btn);
  transition: background .2s var(--ease);
}
.header__nav > li > a:hover { background: var(--bg-alt); }
.header__nav .caret { width: 9px; height: 9px; stroke-width: 2.2; transition: transform .25s var(--ease); }
.header__nav > li:hover .caret { transform: rotate(180deg); }

.submenu {
  position: absolute; inset-inline-start: 0; top: calc(100% + 6px);
  min-width: 230px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-main); padding: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all .22s var(--ease);
}
.header__nav > li:hover .submenu,
.header__nav > li:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.submenu a:hover { background: var(--bg-alt); }

.header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 2px; }
.cart-count {
  position: absolute; top: 2px; inset-inline-end: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--btn); color: #fff;
  font-size: 11px; line-height: 17px; text-align: center; font-weight: 600;
}
.cart-count[hidden] { display: none; }

.header__burger { display: none; }

/* --------------------------------------------------------------- drawers */
.scrim {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .42); z-index: 1000;
  opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  backdrop-filter: blur(2px);
}
.scrim.is-open { opacity: 1; visibility: visible; }

/* Closed drawers are pushed off the edge they are anchored to. `inline-end`
   is the right edge in LTR and the left edge in RTL, so each direction needs
   its own sign — a single logical value cannot express this. */
.drawer {
  position: fixed; top: 0; inset-inline-end: 0; z-index: 1010;
  width: min(420px, 100%); height: 100dvh; background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .34s var(--ease), visibility .34s var(--ease);
}
.drawer--start { inset-inline-end: auto; inset-inline-start: 0; transform: translateX(-100%); }
html[dir="rtl"] .drawer { transform: translateX(-100%); }
html[dir="rtl"] .drawer--start { transform: translateX(100%); }
.drawer.is-open { transform: none !important; visibility: visible; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.drawer__title { font-size: 16px; font-weight: 700; color: var(--fg-title); margin: 0; }
.drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 18px 22px; }
.drawer__foot { flex: 0 0 auto; padding: 20px 22px; border-top: 1px solid var(--line); background: #fff; }

.mobile-nav > li { border-bottom: 1px solid var(--line); }
.mobile-nav > li > a,
.mobile-nav__toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 15px 2px; font-size: 16px; font-weight: 500; color: var(--fg-title); text-align: start;
}
.mobile-nav__sub { display: none; padding: 0 0 12px; }
.mobile-nav__sub a { display: block; padding: 9px 14px; font-size: 15px; color: var(--fg-2); }
.mobile-nav li.is-open .mobile-nav__sub { display: block; }
.mobile-nav li.is-open .mobile-nav__toggle svg { transform: rotate(180deg); }
.mobile-nav__toggle svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .25s var(--ease); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--bg-alt); }
.hero__slides { position: relative; }
.hero__slide {
  position: relative; display: none;
  min-height: clamp(430px, 62vh, 660px);
}
.hero__slide.is-active { display: block; animation: fade .6s var(--ease); }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, .05), rgba(0, 0, 0, .55));
}
html[dir="rtl"] .hero__media::after {
  background: linear-gradient(to right, rgba(0, 0, 0, .05), rgba(0, 0, 0, .58));
}
.hero__content {
  position: relative; z-index: 2;
  width: min(100% - 40px, var(--container)); margin-inline: auto;
  min-height: clamp(430px, 62vh, 660px);
  display: flex; flex-direction: column; justify-content: center;
  max-width: 100%; padding-block: 50px;
}
.hero__text { max-width: 620px; color: #fff; }
/* only the first slide carries the page's h1; the rest are h2 so the document
   keeps one top-level heading, and this class keeps them visually identical */
.hero__title {
  color: #fff; margin-bottom: .35em; line-height: 1.3;
  font-size: clamp(28px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.01em;
}
.hero__text p { font-size: clamp(15px, 1.3vw, 18px); color: rgba(255, 255, 255, .92); margin-bottom: 1.8em; max-width: 50ch; }

.hero__dots {
  position: absolute; inset-inline-end: 26px; top: 50%; transform: translateY(-50%);
  z-index: 3; display: flex; flex-direction: column; gap: 10px;
}
.hero__dots button {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255, 255, 255, .5); transition: all .25s var(--ease);
}
.hero__dots button.is-active { background: #fff; transform: scale(1.35); }

/* ------------------------------------------------------------- press strip */
.press { padding-block: clamp(34px, 4vw, 56px); }
.press h2 { font-size: clamp(19px, 2vw, 26px); margin-bottom: 1.2em; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 62px; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.press__logo {
  font-size: 21px; font-weight: 600; letter-spacing: .04em;
  color: var(--fg-3); white-space: nowrap; opacity: .85;
  font-family: 'Vazirmatn', system-ui, sans-serif;
}

/* ----------------------------------------------------------------- stats */
.stats h2 { margin-bottom: 1.1em; }
.stats__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 34px 26px; border-top: 1px solid var(--line); padding-top: 40px;
}
.stat__n { font-size: clamp(20px, 2vw, 26px); font-weight: 700; color: var(--fg-title); line-height: 1.3; margin-bottom: 4px; }
.stat__d { font-size: 14px; color: var(--fg-2); line-height: 1.7; margin: 0; }

/* -------------------------------------------------------- feature cards */
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.feature-card {
  position: relative; border-radius: var(--r-main); overflow: hidden;
  min-height: clamp(380px, 44vw, 560px); display: flex; align-items: flex-end;
  background: var(--bg-alt);
}
.feature-card__media { position: absolute; inset: 0; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feature-card:hover .feature-card__media img { transform: scale(1.04); }
.feature-card__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .62), rgba(0, 0, 0, .05) 55%);
}
.feature-card__body { position: relative; z-index: 2; padding: 34px; color: #fff; width: 100%; }
.feature-card__body h3 { color: #fff; font-size: clamp(22px, 2.4vw, 32px); margin-bottom: .25em; }
.feature-card__body p { color: rgba(255, 255, 255, .9); font-size: 15px; margin-bottom: 1.3em; }
.feature-card__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.feature-card__price { color: #fff; font-weight: 600; font-size: 15px; }

/* ------------------------------------------------------------ guarantees */
.guarantees { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-main); overflow: hidden; }
.guarantee { padding: 30px 28px; border-inline-end: 1px solid var(--line); }
.guarantee:last-child { border-inline-end: 0; }
.guarantee h3 { font-size: 17px; margin-bottom: .5em; }
.guarantee p { font-size: 14px; color: var(--fg-2); margin: 0; }

/* ------------------------------------------------------------------ tech */
.tech__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.tech__badge {
  display: inline-block; background: var(--lilac); color: var(--lilac-ink);
  border-radius: var(--r-badge); padding: 7px 20px; font-size: 14px; font-weight: 600;
  margin-bottom: 26px; letter-spacing: .01em;
  /* a Latin wordmark ending in ™ must not be reordered by the RTL paragraph */
  direction: ltr; unicode-bidi: isolate;
}
.tech__media { border-radius: var(--r-main); overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 3; margin-bottom: 22px; }
.tech__media img { width: 100%; height: 100%; object-fit: cover; }
.tech__item { display: flex; gap: 14px; }
.tech__num {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); display: grid; place-items: center;
  font-size: 12px; color: var(--fg-2); margin-top: 3px;
}
.tech__item h3 { font-size: 16px; margin-bottom: .35em; }
.tech__item p { font-size: 14px; color: var(--fg-2); margin: 0; }

/* -------------------------------------------------------------- personas */
.personas__layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: start; }
.persona-tabs { border-top: 1px solid var(--line); }
.persona-tab { border-bottom: 1px solid var(--line); }
.persona-tab__btn {
  width: 100%; text-align: start; padding: 20px 2px;
  font-size: clamp(18px, 1.8vw, 23px); font-weight: 600; color: var(--fg-3);
  transition: color .25s var(--ease); display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.persona-tab.is-active .persona-tab__btn { color: var(--fg-title); }
.persona-tab__panel { display: none; padding-bottom: 24px; }
.persona-tab.is-active .persona-tab__panel { display: block; animation: fade .4s var(--ease); }
.persona-tab__panel p { font-size: 15px; color: var(--fg-2); }
.personas__media { border-radius: var(--r-main); overflow: hidden; background: var(--bg-alt); aspect-ratio: 1 / 1; position: sticky; top: calc(var(--header-h) + 24px); }
.personas__media img { width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- carousels */
.rail-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.rail-nav button:hover { background: var(--btn); color: #fff; border-color: var(--btn); }
.rail-nav svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 6px;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.influencer { border: 1px solid var(--line); border-radius: var(--r-main); overflow: hidden; background: #fff; }
.influencer__media { aspect-ratio: 4 / 5; background: var(--bg-alt); }
.influencer__media img { width: 100%; height: 100%; object-fit: cover; }
.influencer__body { padding: 20px; }
.influencer__name { font-weight: 700; color: var(--fg-title); font-size: 15px; margin-bottom: 2px; }
.influencer__followers { font-size: 13px; color: var(--fg-3); margin-bottom: 10px; }
.influencer__quote { font-size: 14px; color: var(--fg-2); margin: 0; }

.review { border: 1px solid var(--line); border-radius: var(--r-main); padding: 28px; background: #fff; }
.review__stars { color: #111; font-size: 14px; font-weight: 700; margin-bottom: 14px; letter-spacing: .1em; }
.review__text { font-size: 15px; color: var(--fg-2); margin-bottom: 18px; }
.review__name { font-weight: 600; color: var(--fg-title); font-size: 14px; }

/* -------------------------------------------------------------- accordion */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 2px; text-align: start; font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 600; color: var(--fg-title);
}
.accordion__btn svg { flex: 0 0 auto; width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .3s var(--ease); }
.accordion__item.is-open .accordion__btn svg { transform: rotate(45deg); }
.accordion__panel { display: none; padding: 0 2px 24px; }
.accordion__item.is-open .accordion__panel { display: block; }
.accordion__panel p { font-size: 15px; color: var(--fg-2); margin: 0; }

/* ------------------------------------------------------------- newsletter */
.newsletter { background: var(--bg-alt); }
.newsletter__kicker { font-size: 14px; color: var(--fg-2); margin-bottom: .5em; }
.newsletter h2 { margin-bottom: .9em; }
.newsletter__form { display: flex; gap: 10px; max-width: 520px; margin-inline: auto; flex-wrap: wrap; }
.newsletter__form input[type="email"] {
  flex: 1 1 240px; padding: 15px 22px; border: 1px solid var(--line);
  border-radius: var(--r-btn); background: #fff; font-size: 15px;
}
.newsletter__form input[type="email"]:focus { outline: none; border-color: var(--fg-title); }
.newsletter__legal { font-size: 12px; color: var(--fg-3); margin-top: 16px; }
.newsletter__optin { font-size: 13px; color: var(--fg-2); display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; }

.footnote { font-size: 12px; color: var(--fg-3); line-height: 1.9; }

/* ------------------------------------------------------------------ about */
.about-band { background: var(--bg-dark); color: #fff; }
.about-band h2 { color: #fff; }
.about-band p { color: rgba(255, 255, 255, .78); max-width: 62ch; margin-inline: auto; }

/* ----------------------------------------------------------------- footer */
.footer { background: var(--bg-dark); color: #e5e5e5; padding-block: clamp(46px, 5vw, 70px) 0; }
.footer a { color: #b9b9b9; transition: color .2s var(--ease); }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 38px 28px; }
.footer__brand .header__logo { color: #fff; margin-bottom: 14px; display: inline-block; }
.footer__brand p { font-size: 14px; color: #9a9a9a; max-width: 34ch; }
.footer h3 { color: #fff; font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.footer li { margin-bottom: 10px; font-size: 14px; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-dark);
  display: grid; place-items: center; transition: all .2s var(--ease);
}
.footer__social a:hover { background: #fff; color: #1f1f1f; border-color: #fff; }
.footer__social svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.footer__bottom {
  margin-top: 44px; border-top: 1px solid var(--line-dark); padding-block: 22px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: #8d8d8d;
}

/* ----------------------------------------------------------- product card */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 20px; }
.product-card { display: flex; flex-direction: column; }
.product-card__media {
  position: relative; border-radius: var(--r-main); overflow: hidden;
  background: var(--bg-alt); aspect-ratio: 1 / 1; margin-bottom: 16px;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badge {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  background: #fff; color: var(--fg-title); border-radius: var(--r-badge);
  padding: 5px 14px; font-size: 12px; font-weight: 600;
}
.product-card__title { font-size: 16px; font-weight: 600; color: var(--fg-title); margin-bottom: 3px; }
.product-card__sub { font-size: 13px; color: var(--fg-2); margin-bottom: 10px; flex: 1 1 auto; }
.product-card__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-weight: 700; color: var(--fg-title); font-size: 16px; }
.price--old { font-weight: 400; color: var(--fg-3); text-decoration: line-through; font-size: 14px; }
.price--sale { color: var(--sale); }
.unit { font-size: 13px; font-weight: 400; color: var(--fg-2); }

/* --------------------------------------------------------- page furniture */
.page-head { padding-block: clamp(36px, 4vw, 60px) 0; }
.crumbs { font-size: 13px; color: var(--fg-3); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--fg-title); }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--fg-2); max-width: 62ch; }

.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-inline-start: 20px; margin-bottom: 8px; color: var(--fg-2); }
.prose ul li::before {
  content: ''; position: absolute; inset-inline-start: 4px; top: 13px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--fg-3);
}

/* ------------------------------------------------------------ product page */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: 54px; align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__main {
  border-radius: var(--r-main); overflow: hidden; background: var(--bg-alt);
  aspect-ratio: 1 / 1; margin-bottom: 14px;
}
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.pdp__thumb {
  border-radius: 8px; overflow: hidden; background: var(--bg-alt);
  aspect-ratio: 1 / 1; border: 1.5px solid transparent; transition: border-color .2s var(--ease);
}
.pdp__thumb.is-active { border-color: var(--fg-title); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pdp__title { margin-bottom: .2em; }
.pdp__sub { color: var(--fg-2); font-size: 16px; margin-bottom: 18px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.pdp__price .price { font-size: 26px; }
.pdp__vat { font-size: 13px; color: var(--fg-3); margin-bottom: 24px; }

.opt-label { font-size: 13px; font-weight: 600; color: var(--fg-title); margin-bottom: 10px; }
.opts { display: grid; gap: 9px; margin-bottom: 26px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  border: 1.5px solid var(--line); border-radius: var(--r-main);
  padding: 14px 18px; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
  font-size: 14px;
}
.opt:hover { border-color: var(--fg-3); }
.opt.is-active { border-color: var(--fg-title); background: var(--bg-alt); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__price { font-weight: 700; color: var(--fg-title); white-space: nowrap; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-btn); overflow: hidden; }
.qty button { width: 44px; height: 48px; font-size: 19px; color: var(--fg-title); }
.qty button:hover { background: var(--bg-alt); }
.qty input { width: 46px; height: 48px; text-align: center; border: 0; background: none; font-size: 15px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { appearance: none; margin: 0; }

.pdp__buy { display: flex; gap: 12px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
.pdp__buy .btn { flex: 1 1 200px; height: 50px; }

.trust-row { display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; }
.trust-row div { display: flex; gap: 10px; font-size: 14px; color: var(--fg-2); align-items: flex-start; }
.trust-row svg { flex: 0 0 auto; width: 18px; height: 18px; stroke: var(--ok); fill: none; stroke-width: 1.9; margin-top: 3px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th {
  text-align: start; font-weight: 600; color: var(--fg-title);
  padding: 14px 0; width: 38%; vertical-align: top;
}
.spec-table td { padding: 14px 0; color: var(--fg-2); }

.feature-list { display: grid; gap: 22px; }
.feature-list__item { display: flex; gap: 14px; }
.feature-list__item h3 { font-size: 16px; margin-bottom: .3em; }
.feature-list__item p { font-size: 14px; color: var(--fg-2); margin: 0; }

/* ------------------------------------------------------------------- cart */
.cart-line { display: flex; gap: 14px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.cart-line__media { flex: 0 0 78px; width: 78px; height: 78px; border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__body { flex: 1 1 auto; min-width: 0; }
.cart-line__title { font-size: 14px; font-weight: 600; color: var(--fg-title); margin-bottom: 2px; }
.cart-line__variant { font-size: 12px; color: var(--fg-3); margin-bottom: 8px; }
.cart-line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-line .qty button { width: 32px; height: 32px; font-size: 16px; }
.cart-line .qty input { width: 34px; height: 32px; font-size: 14px; }
.cart-line__remove { font-size: 12px; color: var(--fg-3); text-decoration: underline; }
.cart-line__remove:hover { color: var(--sale); }

.cart-empty { text-align: center; padding-block: 60px; color: var(--fg-2); }
.cart-total { display: flex; justify-content: space-between; font-size: 16px; font-weight: 700; color: var(--fg-title); margin-bottom: 6px; }
.cart-note { font-size: 12px; color: var(--fg-3); margin-bottom: 14px; }

.toast {
  position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 2000;
  background: var(--fg-title); color: #fff; padding: 13px 22px; border-radius: var(--r-btn);
  font-size: 14px; opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: all .3s var(--ease);
}
.toast.is-open { opacity: 1; transform: none; }

/* ----------------------------------------------------------------- forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--fg-title); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 18px; border: 1px solid var(--line);
  border-radius: var(--r-main); background: #fff; font-size: 15px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--fg-title); }

.info-card { border: 1px solid var(--line); border-radius: var(--r-main); padding: 26px; }
.info-card h3 { font-size: 16px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; gap: 34px; }
  .pdp__gallery { position: static; }
  .personas__layout { grid-template-columns: 1fr; }
  .personas__media { position: static; aspect-ratio: 16 / 10; }
}

@media (max-width: 900px) {
  .header__nav { display: none; }
  .header__burger { display: grid; }
  .tech__grid { grid-template-columns: 1fr; gap: 40px; }
  .guarantees { grid-template-columns: 1fr; }
  .guarantee { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .guarantee:last-child { border-bottom: 0; }
  .feature-cards { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --gutter: 16px; }
  /* the hero art fills the frame on a phone, so the scrim has to carry the
     text contrast on its own, and the dots move out from under the copy */
  .hero__media::after,
  html[dir="rtl"] .hero__media::after {
    background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35));
  }
  .hero__content { justify-content: flex-end; padding-bottom: 74px; }
  .hero__text p { margin-bottom: 1.4em; }
  .hero__dots {
    inset-inline-end: auto; inset-block-start: auto; bottom: 22px;
    top: auto; transform: none; flex-direction: row;
    inset-inline-start: 50%; translate: -50% 0;
  }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .pdp__thumbs { grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .hero__dots { inset-inline-end: 14px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .product-card__title { font-size: 14px; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   فروشگاه پویا — ورود، حساب کاربری، تسویه، پیگیری سفارش
   Commerce screens. Same tokens as the rest of the site; nothing new invented.
   ========================================================================== */

.auth-wrap { display: flex; justify-content: center; }
.auth-card {
  width: min(100%, 440px); border: 1px solid var(--line);
  border-radius: var(--r-main); padding: 34px;
}
.auth-card h1 { font-size: 26px; margin-bottom: .3em; }
.auth-lede { font-size: 14px; color: var(--fg-2); margin-bottom: 24px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-alt); border-radius: var(--r-btn); padding: 4px; margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 10px; border-radius: var(--r-btn); font-size: 14px;
  font-weight: 500; color: var(--fg-2); transition: all .2s var(--ease);
}
.auth-tab.is-active { background: #fff; color: var(--fg-title); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.auth-pane { display: none; }
.auth-pane.is-active { display: block; }
.auth-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--fg-2); margin-bottom: 16px; }
.auth-meta button:disabled { opacity: .45; cursor: default; }
.auth-legal { font-size: 12px; color: var(--fg-3); margin: 20px 0 0; text-align: center; }
.otp-input { letter-spacing: .7em; text-align: center; font-size: 20px; direction: ltr; }
.opt-note { font-weight: 400; color: var(--fg-3); }

.form-error {
  background: #fdf0ee; color: var(--sale); border-radius: var(--r-main);
  padding: 11px 16px; font-size: 13px; margin-bottom: 14px;
}
.form-note { font-size: 13px; color: var(--fg-2); margin: 8px 0 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ------------------------------------------------------------- account */
.account-grid { display: grid; grid-template-columns: 320px 1fr; gap: 34px; align-items: start; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--r-main);
  padding: 18px 22px; margin-bottom: 12px; transition: border-color .2s var(--ease);
}
.order-row:hover { border-color: var(--fg-title); }
.order-row__code { font-weight: 700; color: var(--fg-title); direction: ltr; unicode-bidi: isolate; }
.order-row__date { font-size: 13px; color: var(--fg-3); }

.badge {
  border-radius: var(--r-badge); padding: 6px 16px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  background: var(--bg-alt); color: var(--fg-2);
}
.badge--pending { background: #fff6e5; color: #8a5a00; }
.badge--paid, .badge--processing { background: #e7f1ff; color: #14509b; }
.badge--shipped { background: #eae2ff; color: var(--lilac-ink); }
.badge--delivered { background: #e6f5ec; color: var(--ok); }
.badge--cancelled, .badge--refunded, .badge--returned { background: #fdeceb; color: var(--sale); }

/* ------------------------------------------------------------ checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 400px; gap: 26px; align-items: start; }
.checkout-aside { position: sticky; top: calc(var(--header-h) + 20px); }
.discount-row { display: flex; gap: 8px; }
.discount-row input { flex: 1 1 auto; }

.sum-line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sum-line__media { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
.sum-line__media img { width: 100%; height: 100%; object-fit: cover; }
.sum-line__body { flex: 1 1 auto; min-width: 0; }
.sum-line__title { font-size: 14px; font-weight: 600; color: var(--fg-title); }
.sum-line__variant, .sum-line__qty { font-size: 12px; color: var(--fg-3); }

.totals { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 14px; }
.totals dt { color: var(--fg-2); margin: 0; }
.totals dd { margin: 0; color: var(--fg-title); font-weight: 500; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; font-size: 17px; }
.totals .grand dt, .totals .grand dd { font-weight: 700; color: var(--fg-title); }

/* -------------------------------------------------------- order detail */
.track-form { border: 1px solid var(--line); border-radius: var(--r-main); padding: 26px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }

.timeline { display: flex; justify-content: space-between; gap: 6px; margin: 0 0 24px; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: 7px; inset-inline: 12px;
  height: 2px; background: var(--line);
}
.timeline li {
  position: relative; z-index: 1; flex: 1 1 0; text-align: center;
  font-size: 12px; color: var(--fg-3);
}
.timeline .dot {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); margin: 0 auto 8px;
}
.timeline li.is-done { color: var(--fg-title); font-weight: 600; }
.timeline li.is-done .dot { background: var(--fg-title); border-color: var(--fg-title); }

.result-mark {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; font-size: 36px; font-weight: 700;
}
.result-mark--ok { background: #e6f5ec; color: var(--ok); }
.result-mark--fail { background: #fdeceb; color: var(--sale); }
.order-code { font-size: 15px; direction: ltr; unicode-bidi: isolate; }

@media (max-width: 980px) {
  .checkout-grid, .account-grid { grid-template-columns: 1fr; }
  .checkout-aside { position: static; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .order-row { flex-wrap: wrap; }
  .timeline li { font-size: 10px; }
}

/* ==========================================================================
   پرداخت — روش پرداخت در تسویه و واریز به حساب در صفحهٔ سفارش
   ========================================================================== */
.pay-methods { display: grid; gap: 10px; margin-bottom: 14px; }
.pay-method {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--r-main); padding: 14px 16px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.pay-method.is-active { border-color: var(--fg-title); background: var(--bg-alt); }
.pay-method input { margin-top: 6px; accent-color: var(--fg-title); }
.pay-method__body { display: grid; gap: 2px; }
.pay-method__label { font-weight: 600; color: var(--fg-title); }
.pay-method__desc { font-size: 13px; color: var(--fg-2); line-height: 1.8; }

.pay-panel { margin-top: 26px; border-width: 2px; border-color: var(--fg-title); }
.pay-panel h3 { font-size: 18px; }
.pay-state { border-radius: var(--r-main); padding: 14px 16px; margin-bottom: 18px; font-size: 14px; }
.pay-state p { margin: 6px 0 0; }
.pay-state--ok { background: #e6f5ec; color: var(--ok); }
.pay-state--wait { background: #e7f1ff; color: #14509b; }
.pay-state--bad { background: #fdeceb; color: var(--sale); }

.pay-amount {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--fg-title); color: #fff; border-radius: var(--r-main);
  padding: 16px 20px; margin: 16px 0;
}
.pay-amount strong { font-size: 22px; }
.pay-bank { margin: 0 0 20px; }
.pay-bank div {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.pay-bank dt { color: var(--fg-2); font-size: 14px; }
.pay-bank dd { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--fg-title); }
.ltr { direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; }
.num { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }
.copy-btn {
  border: 1px solid var(--line); border-radius: var(--r-btn); padding: 4px 12px;
  font-size: 12px; color: var(--fg-2); background: #fff;
}
.copy-btn:hover { border-color: var(--fg-title); color: var(--fg-title); }
.transfer-form { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }

/* ==========================================================================
   شبکهٔ فروشگاه‌ها — بنر «محصولاتی که شاید بپسندید» پایین همهٔ صفحه‌ها
   Desktop: a carousel with arrows. Touch screens: the same row scrolls with a
   swipe and snaps card by card; the arrows are hidden.
   ========================================================================== */
.network { background: var(--bg-alt); padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.network .rail-head h2 { font-size: clamp(20px, 2.4vw, 28px); margin: 0; }
.network__rail {
  grid-auto-columns: calc((100% - 3 * 18px) / 4);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.network-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--r-main);
  border: 1px solid var(--line); overflow: hidden; transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.network-card:hover { border-color: var(--fg-title); transform: translateY(-2px); }
.network-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-alt); }
.network-card__media img { width: 100%; height: 100%; object-fit: cover; }
.network-card__site {
  position: absolute; top: 10px; inset-inline-start: 10px; background: var(--fg-title); color: #fff;
  border-radius: var(--r-badge); padding: 4px 12px; font-size: 12px; font-weight: 600;
}
.network-card__title { padding: 12px 14px 4px; font-size: 14px; font-weight: 600; color: var(--fg-title); line-height: 1.7; }
.network-card__price { padding: 0 14px 14px; font-size: 14px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.network-card__price .price { font-size: 15px; }

@media (max-width: 1100px) { .network__rail { grid-auto-columns: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 760px) {
  .network__rail { grid-auto-columns: 62%; gap: 12px; }
  .network .rail-nav { display: none; }
}
@media (hover: none) { .network .rail-nav { display: none; } }
