/* ===== آریو پک — استایل اصلی ===== */
@font-face {
  font-family: Vazirmatn;
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  /* پالت برند آریو پک — سبز جنگلی + شنی */
  --brand: #0d3f34;
  --brand-2: #17594a;
  --brand-3: #226f5b;
  --sand: #f6daaf;
  --sand-2: #ebc78f;
  --sand-3: #d9ad6a;
  --sand-ink: #7a5326;

  --bg: #fbf3e4;
  --bg2: #fffcf4;
  --ink: #0e2b23;
  --muted: #5d6c63;
  --line: #e6d6b8;
  --card: rgba(255, 252, 244, 0.94);
  --accent: var(--sand-ink);
  --accent2: var(--sand-2);
  --shadow: 0 20px 44px -26px rgba(13, 63, 52, 0.45);
  --shadow-soft: 0 10px 26px -18px rgba(13, 63, 52, 0.35);
  --radius: 20px;
  --ring: 0 0 0 3px rgba(246, 218, 175, 0.65);
}
html[data-theme='dark'] {
  --bg: #06231c;
  --bg2: #0a2f26;
  --ink: #f7efdd;
  --muted: #b8c7bd;
  --line: #17453a;
  --card: rgba(10, 47, 38, 0.78);
  --shadow: 0 26px 60px -32px rgba(0, 0, 0, 0.9);
  --shadow-soft: 0 14px 32px -22px rgba(0, 0, 0, 0.8);
  --ring: 0 0 0 3px rgba(246, 218, 175, 0.35);
}
/* برندهای قابل استفاده در بقیه استایل‌ها */
:root {
  --brand2: var(--brand-3);
  --sand-soft: rgba(246, 218, 175, 0.35);
}
html[data-theme='dark'] {
  --brand: #17594a;
  --brand-2: #226f5b;
  --brand-3: #2f8a71;
  --brand2: #2f8a71;
  --accent: var(--sand);
  --accent2: var(--sand-2);
  --sand-ink: #f6daaf;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Vazirmatn, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(13, 63, 52, 0.14), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(246, 218, 175, 0.45), transparent 55%), var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1, h2, h3, h4 {
  line-height: 1.45;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  font-weight: 700;
}
h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
}
h3 {
  font-size: 1.08rem;
}
p {
  margin: 0 0 1em;
}
ul {
  padding-inline-start: 1.1em;
}
code {
  font-family: ui-monospace, Menlo, monospace;
  background: rgba(13, 63, 52, 0.1);
  border-radius: 8px;
  padding: 0.1em 0.4em;
  font-size: 0.9em;
  direction: ltr;
  display: inline-block;
}
.muted {
  color: var(--muted);
}
.sm {
  font-size: 0.86rem;
}
.center {
  text-align: center;
}
.mt {
  margin-top: 1.2rem;
}
.wrap {
  width: min(1200px, 100% - 2.4rem);
  margin-inline: auto;
}
.pad {
  padding-block: clamp(2rem, 5vw, 4rem);
}
.band {
  padding-block: clamp(2rem, 5vw, 3.5rem);
  background: linear-gradient(180deg, rgba(13, 63, 52, 0.06), transparent);
  border-block: 1px solid var(--line);
}
.band.soft {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.08), transparent);
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding-block: 1.5rem;
}
.grid4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.4rem;
}
.row.gap {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ---------------- هدر ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-weight: 700;
  color: var(--sand);
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(246, 218, 175, 0.28);
}
.brandtext {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.brandtext b {
  font-size: 1rem;
}
.brandtext small {
  color: var(--muted);
  font-size: 0.72rem;
}
.nav {
  display: flex;
  gap: 0.25rem;
  margin-inline-start: auto;
  flex-wrap: wrap;
}
.nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: 0.2s;
}
.nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.baract {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.iconbtn {
  position: relative;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.18s;
}
.iconbtn:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}
.badge {
  position: absolute;
  top: -6px;
  inset-inline-start: -6px;
  background: var(--sand);
  color: var(--brand);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding-inline: 4px;
  box-shadow: 0 0 0 1px rgba(13, 63, 52, 0.15);
}
.onlyMobile {
  display: none;
}

/* ---------------- دکمه‌ها ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.1rem;
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #f9ecd4;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: 0.18s;
  box-shadow: 0 12px 26px -16px rgba(13, 63, 52, 0.85), inset 0 1px 0 rgba(246, 218, 175, 0.22);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -18px rgba(13, 63, 52, 0.9), 0 0 0 3px rgba(246, 218, 175, 0.45);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: var(--sand-3);
  background: color-mix(in srgb, var(--sand) 38%, transparent);
}
.btn.lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}
.btn.sm {
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
  border-radius: 11px;
}
.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: color-mix(in srgb, var(--sand) 45%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--sand-3) 55%, transparent);
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.pill.sm {
  font-size: 0.74rem;
  padding: 0.22rem 0.6rem;
}
.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: linear-gradient(135deg, var(--sand), var(--sand-2));
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--sand-3) 60%, transparent);
}

/* ---------------- کارت ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.6rem);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.cardHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}
.more {
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 600;
}
.flash {
  background: color-mix(in srgb, var(--brand2) 18%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand2) 40%, transparent);
  padding: 0.7rem 1rem;
  border-radius: 14px;
  margin-block: 0.8rem;
  font-size: 0.9rem;
}


/* ---------------- هیرو ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
}
.herogrid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}
.herotext h1 {
  margin-top: 0.8rem;
}
.herotext h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--brand2), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.herotext p {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
}
.cta {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 1.2rem 0 1.6rem;
}
.heroFacts {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.heroFacts b {
  display: block;
  font-size: 1.3rem;
  color: var(--brand);
}
.heroFacts span {
  color: var(--muted);
  font-size: 0.82rem;
}
.heroart {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  perspective: 900px;
}
.mugwrap {
  position: relative;
  transform-style: preserve-3d;
  animation: floaty 7s ease-in-out infinite;
}
.mug {
  position: relative;
  width: 190px;
  height: 210px;
  border-radius: 16px 16px 46px 46px / 12px 12px 70px 70px;
  background: linear-gradient(100deg, #fbf3e4 0%, #ffffff 38%, #ece7dc 62%, #f7f4ec 100%);
  box-shadow: inset -14px 0 26px rgba(0, 0, 0, 0.09), inset 14px 0 22px rgba(255, 255, 255, 0.9), 0 40px 60px -34px rgba(16, 24, 40, 0.55);
  display: grid;
  place-items: center;
}
.mug::before {
  content: '';
  position: absolute;
  top: -9px;
  left: 8%;
  width: 84%;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #5b4632, #8a6a4b);
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.5);
}
.mug::after {
  content: '';
  position: absolute;
  inset-inline-end: -46px;
  top: 42px;
  width: 62px;
  height: 96px;
  border-radius: 50%;
  border: 16px solid #efeae0;
  border-inline-start-color: transparent;
  box-shadow: 6px 6px 0 -4px rgba(0, 0, 0, 0.06);
}
.mugprint {
  font-weight: 700;
  letter-spacing: 0.25em;
  font-size: 1.3rem;
  color: #0d3f34;
  transform: rotate(-4deg);
  opacity: 0.9;
}
.mugshadow {
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%) rotateX(70deg);
  width: 230px;
  height: 60px;
  background: radial-gradient(closest-side, rgba(16, 24, 40, 0.28), transparent 70%);
  filter: blur(6px);
}
.floatcard {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: floaty 6s ease-in-out infinite;
}
.floatcard.c1 {
  top: 12%;
  inset-inline-start: 2%;
}
.floatcard.c2 {
  bottom: 22%;
  inset-inline-start: 0;
  animation-delay: 1.2s;
}
.floatcard.c3 {
  top: 46%;
  inset-inline-end: 0;
  animation-delay: 0.6s;
}
@keyframes floaty {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---------------- دسته‌ها / محصولات ---------------- */
.secHead {
  text-align: center;
  margin-bottom: 1.6rem;
}
.secHead p {
  color: var(--muted);
}
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}
.cat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: 0.2s;
}
.cat:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}
.catemoji {
  font-size: 1.6rem;
}
.cat small {
  color: var(--muted);
  font-size: 0.78rem;
}
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.pcard {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.22s;
}
.pcard:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}
.pimg {
  position: relative;
  display: grid;
  place-items: center;
  height: 170px;
  background: radial-gradient(circle at 50% 120%, rgba(20, 184, 166, 0.18), transparent 65%), linear-gradient(160deg, #fffcf4, #f3e7cd);
}
html[data-theme='dark'] .pimg {
  background: radial-gradient(circle at 50% 120%, rgba(45, 212, 191, 0.22), transparent 65%), linear-gradient(160deg, #0a2f26, #06231c);
}
.tag {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: var(--accent2);
  color: #2a1c00;
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-weight: 600;
}
.pbody {
  padding: 0.9rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}
.pbody h3 {
  margin: 0;
  font-size: 1rem;
}
.prow {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.price {
  font-weight: 700;
  color: var(--brand);
}
.pactions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.6rem;
}
.pactions form {
  display: contents;
}

/* اشکال CSS محصول (fallback) */
.shape {
  display: block;
  width: 84px;
  height: 104px;
  position: relative;
  background: linear-gradient(100deg, #efe9dd, #fffcf4 45%, #e3ddcf);
  box-shadow: inset -8px 0 14px rgba(0, 0, 0, 0.07), inset 8px 0 12px rgba(255, 255, 255, 0.85), 0 16px 26px -18px rgba(16, 24, 40, 0.5);
}
.shape-cup {
  border-radius: 8px 8px 26px 26px / 6px 6px 42px 42px;
}
.shape-cup::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 6%;
  width: 88%;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(180deg, #b9ac95, #ded5c4);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.35);
}
.shape-cup::after {
  content: '';
  position: absolute;
  inset-inline-end: -22px;
  top: 26px;
  width: 30px;
  height: 46px;
  border-radius: 50%;
  border: 8px solid #ece5d8;
  border-inline-start-color: transparent;
}
.shape-bowl {
  width: 104px;
  height: 70px;
  border-radius: 10px 10px 52px 52px / 8px 8px 62px 62px;
}
.shape-cone {
  width: 78px;
  height: 112px;
  clip-path: polygon(12% 0, 88% 0, 56% 100%, 44% 100%);
  background: repeating-linear-gradient(58deg, #e7d3b2 0 6px, #f6e8d2 6px 12px);
}
.shape-box {
  width: 104px;
  height: 84px;
  border-radius: 8px;
  transform: perspective(420px) rotateX(6deg) rotateY(-14deg);
}
.shape-box::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 18px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, #e2d8c6, #f3ebdd);
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}
.shape-bag {
  width: 96px;
  height: 96px;
  border-radius: 6px 6px 10px 10px;
  clip-path: polygon(0 12%, 100% 12%, 100% 100%, 0 100%);
}
.shape-bag::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 22%;
  width: 56%;
  height: 22px;
  border: 4px solid #d8cbaf;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}
html[data-theme='dark'] .shape {
  background: linear-gradient(100deg, #14493a, #1d5a48 45%, #103a2e);
  box-shadow: inset -8px 0 14px rgba(0, 0, 0, 0.35), inset 8px 0 12px rgba(255, 255, 255, 0.08), 0 16px 26px -18px rgba(0, 0, 0, 0.9);
}

/* ---------------- فیلترها، صفحه‌سر ---------------- */
.pageHead {
  padding-block: clamp(1.6rem, 4vw, 2.8rem) 0.6rem;
}
.pageHead.slim {
  padding-block: 1.2rem 0;
}
.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.crumbs a:hover {
  color: var(--brand);
}
.filters {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.chip {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.84rem;
  color: var(--muted);
  transition: 0.18s;
}
.chip:hover {
  border-color: var(--brand);
  color: var(--ink);
}
.chip.on {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #04211d;
  border-color: transparent;
  font-weight: 600;
}

/* ---------------- صفحه محصول ---------------- */
.pdp {
  align-items: start;
}
.viewer {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.c3d {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: radial-gradient(circle at 50% 15%, rgba(13, 63, 52, 0.14), transparent 60%), linear-gradient(160deg, #fbf5e9, #e6d6b8);
  touch-action: none;
  cursor: grab;
}
html[data-theme='dark'] .c3d {
  background: radial-gradient(circle at 50% 15%, rgba(246, 218, 175, 0.22), transparent 60%), linear-gradient(160deg, #0e2b23, #070d18);
}
.c3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.cnofallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 0.6rem;
  text-align: center;
  padding: 1rem;
}
.viewerBar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.upload {
  cursor: pointer;
}
.swatches {
  display: flex;
  gap: 0.4rem;
}
.sw {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: 0.18s;
  position: relative;
  display: grid;
  place-items: center;
}
.sw.on {
  border-color: var(--brand);
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5px var(--brand-3);
}
.sw.on::after {
  content: '✓';
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  mix-blend-mode: difference;
}
.pdpinfo h1 {
  margin-bottom: 0.3rem;
}
.pdpPrice {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.6rem 0 0.2rem;
}
.pdpPrice b {
  font-size: 1.5rem;
  color: var(--brand);
}
.addbox {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin: 1rem 0;
  padding: 1rem;
  border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--line));
  border-radius: 16px;
}
.addbox label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.addbox input {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink);
}
.trust {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.pdpBody {
  color: var(--muted);
}
.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.specs th,
.specs td {
  text-align: start;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
}
.specs th {
  color: var(--muted);
  font-weight: 500;
  width: 42%;
}

/* ---------------- فرم‌ها، سبد، چک‌اوت ---------------- */
.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  font-size: 0.88rem;
  color: var(--muted);
}
input,
select,
textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.62rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg2);
  color: var(--ink);
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent);
  border-color: var(--brand);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.checkline {
  flex-direction: row !important;
  align-items: center;
  gap: 0.5rem !important;
}
.checkline input {
  width: auto;
}
.inline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.inline input,
.inline select {
  width: auto;
  flex: 1 1 160px;
}
.cartgrid {
  align-items: start;
}
.cartRow {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 0.8rem;
}
.mini {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fffcf4, #f3e7cd);
}
html[data-theme='dark'] .mini {
  background: linear-gradient(160deg, #0a2f26, #06231c);
}
.mini .shape {
  transform: scale(0.62);
}
.cInfo h3 {
  margin: 0 0 0.2rem;
  font-size: 0.98rem;
}
.qtyform {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin-top: 0.3rem;
}
.qtyform input {
  width: 64px;
  text-align: center;
  padding: 0.3rem;
}
.qtyform .iconbtn {
  width: 30px;
  height: 30px;
}
.cSide {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
}
.summary {
  position: sticky;
  top: 84px;
}
.srow {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 0.45rem;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
}
.srow.total {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding-top: 0.8rem;
}
.summary .btn {
  width: 100%;
  margin-top: 0.6rem;
}

/* ---------------- باشگاه، وبلاگ، تماس ---------------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.7rem;
}
.tier {
  border-radius: 16px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
}
.tier b {
  display: block;
}
.tier small {
  color: var(--muted);
  font-size: 0.76rem;
}
.tier p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0.5rem 0 0;
}
.tier.b {
  border-color: #b9a48a;
}
.tier.s,
.tier.t1 {
  border-color: #9aa6b8;
}
.tier.g,
.tier.t2 {
  border-color: #d9a93b;
}
.tier.p,
.tier.t3 {
  border-color: #8b7dd8;
}
.tiers.big {
  margin-block: 1.5rem;
}
.clubCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.bgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.bcard {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: var(--card);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.bcard h3 {
  margin: 0;
  font-size: 1rem;
}
.brow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.article {
  max-width: 820px;
}
.prose p {
  color: var(--ink);
  opacity: 0.92;
}
.ctaBox {
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.2rem, 3vw, 2.2rem);
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 12%, transparent), transparent);
  margin-top: 1.5rem;
}
.ctaBox .inline {
  justify-content: center;
  max-width: 560px;
  margin-inline: auto;
}
.mapMock {
  margin-top: 1rem;
  height: 160px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  background: repeating-linear-gradient(45deg, rgba(13, 63, 52, 0.06) 0 12px, transparent 12px 24px);
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: center;
}
.stats b {
  display: block;
  font-size: 1.6rem;
  color: var(--brand);
}
.stats span {
  color: var(--muted);
  font-size: 0.8rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.step {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  background: var(--card);
  box-shadow: var(--shadow);
}
.step b {
  color: var(--accent);
  font-size: 1.2rem;
}
.step h3 {
  margin: 0.4rem 0;
  font-size: 1rem;
}
.step p {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0;
}
.previewMock {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}
.mockcup {
  width: 190px;
  height: 220px;
  border-radius: 14px 14px 44px 44px / 10px 10px 64px 64px;
  background: linear-gradient(100deg, #fbf3e4 0%, #ffffff 40%, #e9e3d6 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 34px 50px -30px rgba(16, 24, 40, 0.45), inset -12px 0 24px rgba(0, 0, 0, 0.07);
}
.mockcup span {
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--brand);
  transform: rotate(-6deg);
}
.mockglow {
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  background: radial-gradient(closest-side, rgba(20, 184, 166, 0.25), transparent);
  filter: blur(18px);
  z-index: -1;
}
.fab {
  position: fixed;
  bottom: 18px;
  inset-inline-start: 18px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #04211d;
  font-size: 1.3rem;
  box-shadow: 0 18px 30px -18px rgba(15, 118, 110, 0.9);
  z-index: 30;
}

/* ---------------- داشبورد ---------------- */
.dash {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.2rem;
  width: min(1300px, 100% - 2rem);
  margin-inline: auto;
  padding-block: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}
.dside {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.dside .me {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.9rem;
}
.dnav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.4rem;
  background: var(--card);
}
.dnav a {
  padding: 0.55rem 0.7rem;
  border-radius: 11px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: 0.16s;
}
.dnav a:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--ink);
}
.dnav a.on {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #04211d;
  font-weight: 600;
}
.dmain {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.dhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dhead h1 {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  margin: 0;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}
.kpi {
  padding: 0.9rem 1rem;
}
.kpi span {
  font-size: 0.78rem;
  color: var(--muted);
}
.kpi b {
  display: block;
  font-size: 1.25rem;
  margin-top: 0.15rem;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.table th,
.table td {
  padding: 0.55rem 0.5rem;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}
.table tr:last-child td {
  border-bottom: none;
}
.table a {
  color: var(--brand);
}
.st {
  font-size: 0.74rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
  white-space: nowrap;
}
.st-new {
  background: color-mix(in srgb, #226f5b 22%, transparent);
}
.st-review,
.st-confirmed {
  background: color-mix(in srgb, #e0b878 26%, transparent);
}
.st-production,
.st-ready {
  background: color-mix(in srgb, #7a5326 24%, transparent);
}
.st-shipped {
  background: color-mix(in srgb, #2f8a71 24%, transparent);
}
.st-done {
  background: color-mix(in srgb, #10b981 26%, transparent);
}
.st-canceled {
  background: color-mix(in srgb, #b4452c 24%, transparent);
}
.chat {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.msg {
  max-width: 78%;
  padding: 0.7rem 0.9rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.msg p {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
}
.msg.admin {
  align-self: flex-start;
  background: color-mix(in srgb, var(--accent2) 16%, transparent);
}
.msg.me {
  align-self: flex-end;
}
.dgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
}
.dfile {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg2);
}
.dfile img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}
.dfile figcaption {
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
}
.authWrap {
  display: grid;
  place-items: center;
  min-height: 60vh;
}
.authCard {
  width: min(430px, 100%);
}
.authCard h1 {
  font-size: 1.4rem;
}

.quote {
  border-inline-start: 3px solid var(--brand);
}
.quote p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}
.faq {
  display: grid;
  gap: 0.6rem;
  max-width: 880px;
  margin-inline: auto;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: var(--card);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.94rem;
}
.faq details p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------------- فوتر ---------------- */
.footer {
  margin-top: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  padding-block: 2.2rem 1rem;
  background: color-mix(in srgb, var(--bg2) 60%, transparent);
}
.footer h4 {
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.86rem;
}
.links a:hover {
  color: var(--brand);
}
.copy {
  border-top: 1px solid var(--line);
  margin-top: 1.6rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* ---------------- انیمیشن ورود ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mugwrap,
  .floatcard {
    animation: none;
  }
}

/* ---------------- ریسپانسیو ---------------- */
@media (max-width: 1024px) {
  .herogrid {
    grid-template-columns: 1fr;
  }
  .heroart {
    order: -1;
    min-height: 300px;
  }
  .dash {
    grid-template-columns: 1fr;
  }
  .dside {
    position: static;
  }
  .dnav {
    flex-direction: row;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .dnav a {
    white-space: nowrap;
  }
  .viewer,
  .summary {
    position: static;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 15px;
  }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 68px;
    flex-direction: column;
    padding: 0.8rem;
    background: var(--bg2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 50;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    padding: 0.7rem;
  }
  .onlyMobile {
    display: grid;
  }
  .bar {
    gap: 0.5rem;
  }
  .brandtext small {
    display: none;
  }
  .two {
    grid-template-columns: 1fr;
  }
  .cartRow {
    grid-template-columns: 68px 1fr;
    grid-template-areas: 'mini info' 'mini side';
  }
  .cartRow .mini {
    grid-area: mini;
    width: 68px;
    height: 68px;
  }
  .cSide {
    grid-area: side;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .heroFacts {
    gap: 1.1rem;
  }
  .kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dhead {
    align-items: flex-start;
  }
  .fab {
    bottom: 14px;
    inset-inline-start: 14px;
  }
  .table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
@media (max-width: 420px) {
  .wrap {
    width: calc(100% - 1.6rem);
  }
  .floatcard {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }
}


/* ===== بخش‌های تازه: PWA، ابزار پس‌زمینه، جدول قیمت، وبلاگ ===== */
body { background-image: radial-gradient(1200px 500px at 90% -10%, rgba(13, 63, 52, 0.10), transparent 60%), radial-gradient(900px 420px at -10% 10%, rgba(246, 218, 175, 0.45), transparent 60%); background-attachment: fixed; }
html[data-theme='dark'] body { background-image: radial-gradient(1200px 500px at 90% -10%, rgba(246, 218, 175, 0.12), transparent 60%), radial-gradient(900px 420px at -10% 10%, rgba(246, 218, 175, 0.08), transparent 60%); }

.topsearch { display: flex; }
.topsearch input { width: 150px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-family: inherit; font-size: 13px; }
.topsearch input:focus { outline: 2px solid var(--brand2); outline-offset: 1px; width: 190px; transition: width .2s; }
.onlyMobile { display: none; }

.bottomNav { display: none; }
@media (max-width: 720px) {
  .bottomNav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 70;
    background: color-mix(in srgb, var(--bg2) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottomNav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); position: relative; padding: 4px 0; border-radius: 12px; }
  .bottomNav a:active { background: color-mix(in srgb, var(--brand2) 14%, transparent); }
  .bottomNav span { font-size: 10.5px; }
  .bnBadge { position: absolute; top: 0; inset-inline-end: 18%; background: var(--accent); color: #fff; font-size: 10px; border-radius: 999px; padding: 1px 5px; font-style: normal; }
  body { padding-bottom: 68px; }
  .fab { bottom: 84px; }
  .onlyMobile { display: inline-flex; }
  .topsearch { display: none; }
  nav.nav { display: none; }
  nav.nav.open { display: flex; position: fixed; inset: 64px 12px auto 12px; flex-direction: column; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--shadow); z-index: 80; }
  nav.nav.open a { padding: 10px 8px; border-bottom: 1px solid var(--line); }
}

.dimBadge { position: absolute; bottom: 10px; inset-inline-start: 10px; background: color-mix(in srgb, var(--bg2) 88%, transparent); border: 1px solid var(--line);
  border-radius: 10px; padding: 4px 8px; font-size: 11px; color: var(--muted); backdrop-filter: blur(6px); }
.dimLine { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.bgBar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 14px; background: color-mix(in srgb, var(--brand2) 6%, transparent); }
.bgBar .bgTol { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.bgBar input[type='range'] { width: 90px; accent-color: var(--brand); }
.bgBar [aria-pressed='true'] { background: var(--brand); color: #fff; border-color: var(--brand); }
.viewer.erasing { cursor: crosshair; }

.tierBox { margin: 10px 0; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; background: var(--bg2); }
.tierBox summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.table.sm th, .table.sm td { padding: 6px 8px; font-size: 12.5px; }
.optRow select { width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-family: inherit; }
.pdpActions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }


.faqList { display: grid; gap: 8px; }
.faqList h2 { font-size: 17px; margin: 6px 0 4px; }
.faqList > h2 { grid-column: 1 / -1; }
.faqList details { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--bg2); }
.faqList summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.faqList details[open] summary { color: var(--brand); }
.faqList p { margin: 8px 0 0; font-size: 13px; line-height: 1.9; }

.lead { font-size: 15px; line-height: 2; color: var(--muted); border-inline-start: 3px solid var(--brand2); padding-inline-start: 10px; }
.toc { margin: 14px 0; padding: 12px 16px; font-size: 13px; }
.toc ol { margin: 8px 0 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.shareRow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.articleBody h2 { margin-top: 26px; font-size: 18px; }
.articleBody h3 { margin-top: 18px; font-size: 15px; color: var(--brand); }
.articleBody p { line-height: 2.05; margin: 8px 0; }
.articleBody ul, .articleBody ol { line-height: 2; padding-inline-start: 20px; }
.bgrid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.bcard h2.h3, .bcard .h3 { font-size: 15.5px; margin: 6px 0; }
.pill.sm { font-size: 11px; padding: 3px 8px; }

.seoBox h2 { font-size: 17px; }
.seoBox p { line-height: 2; color: var(--muted); font-size: 13.5px; }
.caseCard { padding: 14px; text-align: center; }
.caseArt { height: 120px; display: grid; place-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--brand2) 12%, transparent), transparent); border-radius: 14px; margin-bottom: 10px; }
.caseCard h3 { font-size: 14.5px; margin: 0 0 4px; }
.compareWrap { overflow-x: auto; }
.table.compare th, .table.compare td { text-align: start; min-width: 130px; font-size: 12.5px; }
.catalog table { margin-bottom: 26px; }
.catalog h2 { font-size: 17px; margin: 22px 0 8px; }
.form.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.form.inline input { flex: 1 1 220px; }

@media print {
  .topbar, .footer, .bottomNav, .fab, .viewerBar, .bgBar, .swatches, .pdpActions, .pager { display: none !important; }
  body { background: #fff; }
  .catalog h2 { page-break-after: avoid; }
}



/* ویرایشگر پاک‌کن قلمی */
.brushOverlay { position: fixed; inset: 0; z-index: 200; background: rgba(20, 15, 10, 0.6); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(4px); }
.brushBox { width: min(560px, 100%); padding: 14px; }
.brushBox h3 { margin: 0 0 4px; font-size: 15px; }
.brushStage { position: relative; margin: 10px 0; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: repeating-conic-gradient(#e9e2d6 0% 25%, #fbf3e4 0% 50%) 50% / 18px 18px; }
.brushStage img { position: static; display: block; }
.brushStage canvas { position: absolute; inset: 0; cursor: crosshair; touch-action: none; }
.brushActions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

.installHint { position: fixed; inset: auto 12px 76px 12px; z-index: 90; display: flex; gap: 10px; align-items: center; justify-content: space-between;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 13px; }
.installHint button { white-space: nowrap; }

/* ================= پالت برند آریو پک (۱۴۰۵) ================= */
/* فونت وزیرمتن روی همه اجزا */
html, body, button, input, select, textarea, .btn, .pill, .chip, .badge, table, .card, .nav a {
  font-family: Vazirmatn, system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body {
  font-feature-settings: 'kern' 1;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(13, 63, 52, 0.14), transparent 62%),
    radial-gradient(820px 460px at 6% -4%, rgba(246, 218, 175, 0.55), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
html[data-theme='dark'] body {
  background:
    radial-gradient(1100px 520px at 88% -12%, rgba(47, 138, 113, 0.2), transparent 62%),
    radial-gradient(820px 460px at 6% -4%, rgba(246, 218, 175, 0.08), transparent 60%),
    var(--bg);
}
::selection {
  background: var(--sand);
  color: var(--brand);
}
*:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 12px;
}

/* هدر */
.topbar {
  background: color-mix(in srgb, var(--bg2) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--sand-3) 35%, var(--line));
  box-shadow: 0 10px 30px -28px rgba(13, 63, 52, 0.6);
  transition: box-shadow 0.25s, background 0.25s;
}
.topbar.scrolled {
  box-shadow: 0 14px 34px -26px rgba(13, 63, 52, 0.55);
  background: color-mix(in srgb, var(--bg2) 94%, transparent);
}
.nav a {
  position: relative;
  font-weight: 500;
}
.nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0.7rem;
  bottom: 0.22rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--sand-2));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.nav a:hover::after {
  transform: scaleX(1);
}
.nav a:hover {
  background: color-mix(in srgb, var(--sand) 35%, transparent);
  color: var(--brand);
}
html[data-theme='dark'] .nav a:hover {
  color: var(--sand);
}

/* کارت‌ها و بلوک‌ها */
.card {
  border-color: color-mix(in srgb, var(--sand-3) 30%, var(--line));
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
  border-color: color-mix(in srgb, var(--sand-3) 60%, var(--line));
  box-shadow: var(--shadow), 0 0 0 3px rgba(246, 218, 175, 0.28);
}
.pcard, .bcard, .caseCard, .cat {
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, border-color 0.3s;
}
.pcard:hover, .bcard:hover, .caseCard:hover, .cat:hover {
  transform: translateY(-4px);
  border-color: var(--sand-3);
  box-shadow: 0 26px 46px -28px rgba(13, 63, 52, 0.55), 0 0 0 3px rgba(246, 218, 175, 0.3);
}
.band {
  background: linear-gradient(180deg, rgba(246, 218, 175, 0.42), transparent 70%);
  border-block: 1px solid color-mix(in srgb, var(--sand-3) 28%, transparent);
}
.band.soft {
  background: linear-gradient(180deg, rgba(13, 63, 52, 0.06), transparent 75%);
}
.ctaBox {
  border: 1px dashed color-mix(in srgb, var(--sand-3) 70%, var(--line));
  background: linear-gradient(135deg, rgba(246, 218, 175, 0.5), rgba(255, 252, 244, 0.7));
}
html[data-theme='dark'] .ctaBox {
  background: linear-gradient(135deg, rgba(246, 218, 175, 0.12), rgba(10, 47, 38, 0.6));
}
.price {
  color: var(--brand);
  font-weight: 700;
}
html[data-theme='dark'] .price {
  color: var(--sand);
}
.heroFacts b {
  color: var(--brand);
}
html[data-theme='dark'] .heroFacts b {
  color: var(--sand);
}
.herotext h1 em {
  background: linear-gradient(120deg, var(--brand-3) 10%, var(--sand-3) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme='dark'] .herotext h1 em {
  background: linear-gradient(120deg, var(--sand) 10%, var(--brand-3) 90%);
  -webkit-background-clip: text;
  background-clip: text;
}


/* فرم‌ها، چیپ‌ها، جدول‌ها، فوتر */
input, select, textarea {
  border-color: color-mix(in srgb, var(--sand-3) 35%, var(--line));
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand-3);
  box-shadow: var(--ring);
}
.chip {
  border-color: color-mix(in srgb, var(--sand-3) 40%, var(--line));
  background: color-mix(in srgb, var(--bg2) 80%, transparent);
  transition: 0.2s;
}
.chip:hover {
  border-color: var(--sand-3);
  background: color-mix(in srgb, var(--sand) 40%, transparent);
  transform: translateY(-1px);
}
.chip.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--sand);
  border-color: var(--brand);
  box-shadow: 0 10px 22px -16px rgba(13, 63, 52, 0.9);
}
.table th {
  background: color-mix(in srgb, var(--sand) 28%, transparent);
  color: var(--brand);
}
html[data-theme='dark'] .table th {
  color: var(--sand);
}
.table tbody tr:hover {
  background: color-mix(in srgb, var(--sand) 18%, transparent);
}
.sw.on {
  box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5px var(--brand-3);
}
.fab {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--sand);
  box-shadow: 0 18px 34px -18px rgba(13, 63, 52, 0.9), 0 0 0 1px rgba(246, 218, 175, 0.28);
}
.footer {
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 96%, black), var(--brand));
  color: color-mix(in srgb, var(--sand) 88%, white);
  border-top: 3px solid var(--sand);
}
.footer h4 {
  color: var(--sand);
}
.footer a:hover {
  color: var(--sand);
}
html[data-theme='dark'] .footer {
  background: linear-gradient(180deg, #08251d, #061c17);
  border-top-color: var(--sand-3);
}
.bottomNav {
  border-top: 1px solid color-mix(in srgb, var(--sand-3) 45%, var(--line));
}
.bottomNav a[aria-current='page'], .bottomNav a:hover {
  color: var(--brand);
  background: color-mix(in srgb, var(--sand) 35%, transparent);
}
html[data-theme='dark'] .bottomNav a:hover {
  color: var(--sand);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: color-mix(in srgb, var(--sand) 30%, transparent);
}
::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--brand) 55%, var(--sand-3));
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ================= حرکت و انیمیشن ================= */
@keyframes arioFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes arioFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes arioZoom {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-18px, 22px, 0) scale(1.06); }
}
@keyframes shimmer {
  0% { transform: translateX(-120%) skewX(-18deg); }
  100% { transform: translateX(220%) skewX(-18deg); }
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(246, 218, 175, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(246, 218, 175, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 218, 175, 0); }
}
@keyframes arrowNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-4px); }
}

/* ورود/خروج صفحه (جاوااسکریپت کلاس می‌دهد) */
body.page-enter #main {
  animation: arioSlideIn 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.band, .ctaBox {
  will-change: transform;
}
@keyframes arioSlideIn {
  from { transform: translateY(12px); }
  to { transform: none; }
}
body.page-exit {
  pointer-events: none;
}
body.page-exit #main {
  opacity: 0;
  transform: translateY(-10px) scale(0.995);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
body.page-exit::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, rgba(246, 218, 175, 0.55) 45%, transparent 70%);
  animation: pageWipe 0.42s ease forwards;
}
@keyframes pageWipe {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
/* نوار پیشرفت بالای صفحه هنگام جابه‌جایی */
#arioProgress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 200;
  background: linear-gradient(90deg, var(--sand), var(--brand-3));
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}
#arioProgress.run {
  transform: scaleX(1);
}


/* درخشش روی دکمه‌های اصلی */
.btn:not(.ghost) {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn:not(.ghost)::after {
  content: '';
  position: absolute;
  inset-block: -40%;
  inset-inline-start: 0;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(246, 218, 175, 0.35), transparent);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
}
.btn:not(.ghost):hover::after {
  animation: shimmer 0.85s ease;
}
.btn.lg::after {
  background: linear-gradient(90deg, transparent, rgba(246, 218, 175, 0.45), transparent);
}

/* هاله‌های متحرک پس‌زمینه هیرو */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(42px);
  z-index: 0;
}
.hero::before {
  width: 320px;
  height: 320px;
  top: -80px;
  inset-inline-start: -60px;
  background: radial-gradient(circle, rgba(13, 63, 52, 0.22), transparent 68%);
  animation: drift 16s ease-in-out infinite;
}
.hero::after {
  width: 380px;
  height: 380px;
  bottom: -140px;
  inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(246, 218, 175, 0.75), transparent 68%);
  animation: drift 20s ease-in-out infinite reverse;
}
.hero > * {
  position: relative;
  z-index: 1;
}
html[data-theme='dark'] .hero::before {
  background: radial-gradient(circle, rgba(47, 138, 113, 0.35), transparent 68%);
}
html[data-theme='dark'] .hero::after {
  background: radial-gradient(circle, rgba(246, 218, 175, 0.16), transparent 68%);
}

/* پالس روی دکمه اصلی هیرو */
.hero .cta .btn.lg:first-child {
  animation: pulseRing 3.6s ease-out infinite;
}
.hero .cta .btn.lg:first-child:hover {
  animation: none;
}

/* نوارهای اعتماد و آمار */
.heroFacts li {
  transition: transform 0.25s;
}
.heroFacts li:hover {
  transform: translateY(-2px);
}

/* ظاهر شدن تدریجی کارت‌ها */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.pgrid .reveal:nth-child(2n) { transition-delay: 0.06s; }
.pgrid .reveal:nth-child(3n) { transition-delay: 0.12s; }
.pgrid .reveal:nth-child(4n) { transition-delay: 0.18s; }

/* فلش لینک‌های «ادامه» */
.more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s, color 0.2s;
}
.more:hover {
  gap: 0.55rem;
  color: var(--brand-3);
}

/* اسکلت صفحه هنگام جابه‌جایی */
.nav a, .btn, .iconbtn, .chip {
  -webkit-tap-highlight-color: transparent;
}

/* احترام به reduce-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* View Transitions (کروم/اج) برای جابه‌جایی نرم بین صفحات */
@view-transition {
  navigation: auto;
}
::view-transition-old(root) {
  animation: arioFadeOut 0.22s ease both;
}
::view-transition-new(root) {
  animation: arioFadeUp 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
@keyframes arioFadeOut {
  to { opacity: 0; transform: translateY(-8px); }
}

