/* ===== آریو پک — استایل اصلی ===== */
@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 {
  --bg: #f6f7fb;
  --bg2: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --line: #e6e8f0;
  --brand: #0f766e;
  --brand2: #14b8a6;
  --accent: #b45309;
  --accent2: #f59e0b;
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 18px 40px -24px rgba(16, 24, 40, 0.35);
  --radius: 20px;
}
html[data-theme='dark'] {
  --bg: #070b14;
  --bg2: #0d1524;
  --ink: #eaf0ff;
  --muted: #93a0bd;
  --line: #1c2740;
  --brand: #2dd4bf;
  --brand2: #22d3ee;
  --accent: #fbbf24;
  --accent2: #f59e0b;
  --card: rgba(16, 24, 40, 0.72);
  --shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}

* {
  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(20, 184, 166, 0.16), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(245, 158, 11, 0.12), 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(15, 118, 110, 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(15, 118, 110, 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: #06231f;
  background: linear-gradient(135deg, var(--brand2), #fbbf24);
  box-shadow: var(--shadow);
}
.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(--accent2);
  color: #241a00;
  border-radius: 999px;
  font-size: 0.7rem;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding-inline: 4px;
}
.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(--brand2));
  color: #04211d;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  transition: 0.18s;
  box-shadow: 0 10px 24px -16px rgba(15, 118, 110, 0.85);
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}
.btn.ghost:hover {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, 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(--brand) 12%, transparent);
  color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, 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(--brand2), #fbbf24);
  color: #05221f;
}

/* ---------------- کارت ---------------- */
.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, #f8f5ee 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: #0f766e;
  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, #fbfaf7, #eef1f6);
}
html[data-theme='dark'] .pimg {
  background: radial-gradient(circle at 50% 120%, rgba(45, 212, 191, 0.22), transparent 65%), linear-gradient(160deg, #131c2c, #0a111d);
}
.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, #fffdf8 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, #2a3448, #3c4a63 45%, #222b3d);
  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(20, 184, 166, 0.16), transparent 60%), linear-gradient(160deg, #f8f6f1, #e8ecf3);
  touch-action: none;
  cursor: grab;
}
html[data-theme='dark'] .c3d {
  background: radial-gradient(circle at 50% 15%, rgba(45, 212, 191, 0.2), transparent 60%), linear-gradient(160deg, #101827, #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;
}
.sw.on {
  border-color: var(--brand);
  transform: scale(1.12);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent);
}
.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, #fbfaf7, #eef1f6);
}
html[data-theme='dark'] .mini {
  background: linear-gradient(160deg, #131c2c, #0a111d);
}
.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(15, 118, 110, 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, #f8f5ee 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, #3b82f6 22%, transparent);
}
.st-review,
.st-confirmed {
  background: color-mix(in srgb, #f59e0b 26%, transparent);
}
.st-production,
.st-ready {
  background: color-mix(in srgb, #8b5cf6 24%, transparent);
}
.st-shipped {
  background: color-mix(in srgb, #06b6d4 24%, transparent);
}
.st-done {
  background: color-mix(in srgb, #10b981 26%, transparent);
}
.st-canceled {
  background: color-mix(in srgb, #ef4444 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;
  }
}

