@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Vazirmatn;
  src: url("/assets/vazirmatn-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
:root {
  --ink: #222e32;
  --muted: #7c8588;
  --orange: #c96532;
  --orange-dark: #a64d24;
  --cream: #f6f5f0;
  --border: #e7e8e2;
  --green: #15866d;
  --shadow: 0 10px 40px #25353b08;
  font-family: Vazirmatn, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #e69b70;
  outline-offset: 3px;
}
img {
  max-width: 100%;
  display: block;
}
p {
  line-height: 1.95;
}
h1,
h2,
h3 {
  line-height: 1.6;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(25px, 3vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
}
h2 {
  font-size: 23px;
}
h3 {
  font-size: 16px;
}
small,
.small {
  font-size: 12px;
}
strong {
  font-weight: 800;
}
::selection {
  background: #f0b88e;
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-thumb {
  background: #c7c8bd;
  border-radius: 9px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
.hidden {
  display: none !important;
}
.block {
  display: block;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--orange);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.8px;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 10px;
}
.rounded {
  border-radius: 24px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 21px;
  min-height: 43px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.18s,
    transform 0.18s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--orange);
  color: #fff;
}
.btn.primary:hover {
  background: var(--orange-dark);
}
.btn.secondary {
  background: #f0f0eb;
  border-color: #dedfd7;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
}
.btn.light {
  background: #fff;
  color: var(--ink);
}
.btn.icon-btn {
  background: #f2f2ed;
  padding: 9px 13px;
  min-width: 40px;
  border-radius: 11px;
}
.btn.compact {
  padding: 6px 12px;
  min-height: 33px;
  font-size: 12px;
}
.full {
  width: 100%;
}
.button-row {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand img {
  width: 43px;
  height: 43px;
}
.brand b {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.4;
}
.brand small {
  display: block;
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
  font-size: 9px;
  font-weight: bold;
  color: #7e8584;
}
.topline {
  padding: 9px max(5vw, 20px);
  background: #232e32;
  color: #dde0d9;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.corporate-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fdfdfbef;
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5vw;
  border-bottom: 1px solid var(--border);
}
.corporate-header nav {
  display: flex;
  gap: 32px;
  color: #737b7a;
}
.corporate-header nav a.active {
  color: var(--orange);
}
.corporate main {
  max-width: 1320px;
  margin: auto;
  padding: 24px 4vw 0;
}
.slides {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #ecebe5;
  min-height: 400px;
}
.slide {
  display: none;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 42px 50px;
}
.slide.active {
  display: grid;
}
.slide > div {
  max-width: 530px;
}
.slide h1 {
  font-size: clamp(27px, 3.8vw, 49px);
  line-height: 1.65;
}
.slide p {
  color: #707c7c;
  margin: 8px 0 24px;
}
.slide > img {
  width: 100%;
  max-height: 340px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.slide-dots {
  display: flex;
  gap: 7px;
  position: absolute;
  bottom: 20px;
  right: 50px;
}
.slide-dots button {
  border: 0;
  border-radius: 9px;
  width: 7px;
  height: 7px;
  background: #b3b8b1;
  padding: 0;
}
.slide-dots button.active {
  background: var(--orange);
  width: 24px;
}
.category-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.category-strip a {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #fff;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-weight: 700;
}
.category-strip img {
  width: 75px;
  height: 65px;
  object-fit: cover;
  border-radius: 10px;
}
.category-strip a > span:last-child {
  margin-right: auto;
  color: var(--orange);
}
.section {
  margin: 48px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head h1,
.section-head h2,
.section-head h3 {
  margin: 0;
}
.section-head > a {
  font-size: 12px;
  color: var(--orange);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 19px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-image {
  position: relative;
  background: #eee;
}
.product-image img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}
.sale-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--orange);
  color: #fff;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11px;
}
.product-body {
  padding: 16px;
}
.product-body .eyebrow {
  font-size: 10px;
  margin-bottom: 7px;
}
.product-body h3 {
  min-height: 50px;
  margin-bottom: 2px;
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 700;
  margin-top: 14px;
}
.product-bottom del {
  display: block;
  color: #8d9592;
  font-size: 11px;
  font-weight: 400;
}
.product-bottom small {
  font-size: 10px;
  font-weight: 400;
}
.product-bottom .btn {
  font-size: 11px;
}
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 55px;
  margin: 62px 0;
}
.about-split p {
  color: var(--muted);
  max-width: 530px;
}
.about-art {
  min-height: 290px;
  background: #263237;
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #c5c9bd;
  overflow: hidden;
}
.large-letter {
  font-family: Arial;
  font-weight: 800;
  font-size: 200px;
  color: var(--orange);
  line-height: 1.05;
}
.about-art > span:last-child {
  letter-spacing: 6px;
  font-size: 11px;
}
.text-link {
  color: var(--orange);
  font-weight: 600;
}
.app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 40px 55px;
  background: #bf6031;
  color: #fff;
  border-radius: 25px;
  margin: 45px 0;
  overflow: hidden;
}
.app-banner .eyebrow {
  color: #f3cfb7;
}
.app-banner h2 {
  font-size: 30px;
}
.app-banner p {
  color: #f3d5c4;
}
.mini-app {
  flex-shrink: 0;
  background: #fff9f2;
  border-radius: 25px 25px 0 0;
  align-self: flex-end;
  transform: translateY(40px) rotate(-6deg);
  width: 220px;
  padding: 32px 20px 60px;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 0 0 8px #aa5027;
}
.mini-app img {
  width: 65px;
  margin: 0 auto 15px;
}
.mini-app b {
  font-size: 22px;
}
.mini-app div {
  margin: 12px 0;
  font-size: 11px;
  color: var(--muted);
}
.mini-app span {
  display: block;
  background: #f2dfcf;
  padding: 10px;
  border-radius: 9px;
  color: var(--orange);
  font-size: 12px;
}
details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 17px 20px;
  margin: 10px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  color: var(--muted);
}
.corporate-footer {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 40px;
  padding: 40px max(5vw, 20px) 18px;
  background: #eaece5;
  margin-top: 45px;
}
.corporate-footer p {
  font-size: 12px;
  color: #737d79;
  max-width: 400px;
}
.corporate-footer > div:nth-child(3) > a {
  display: block;
  margin-top: 12px;
  font-size: 12px;
}
.footer-copy {
  grid-column: 1/-1;
  border-top: 1px solid #d6dcd2;
  padding-top: 16px;
  font-size: 11px;
  color: var(--muted);
}
.page-intro {
  padding: 30px 0 20px;
}
.page-intro p {
  color: var(--muted);
}
.catalog-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 15px;
  font-size: 12px;
}
.chip.selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.search {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  padding: 12px 15px;
  min-width: 240px;
  margin-right: auto;
}
.grid {
  display: grid;
  gap: 18px;
}
.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  padding: 23px;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.tint {
  background: #f1e6da;
}
.big-number {
  font-size: 27px;
  font-weight: 700;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.field > span {
  font-size: 12px;
  color: #606c6e;
  font-weight: 600;
}
.field input,
.field textarea,
.field select {
  border: 1px solid #dfe2db;
  border-radius: 10px;
  background: #fafbf8;
  color: var(--ink);
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
  outline-offset: 2px;
}
.field textarea {
  min-height: 95px;
  resize: vertical;
}
.field input[type="number"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="datetime-local"] {
  direction: ltr;
  text-align: right;
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0;
  font-size: 12px;
}
.check input {
  accent-color: var(--orange);
  width: 17px;
  height: 17px;
}
fieldset {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 17px;
  margin: 15px 0;
}
legend {
  font-size: 12px;
  padding: 0 8px;
  color: var(--orange);
}
.form-error {
  color: #b34239;
  font-size: 12px;
  line-height: 1.9;
  grid-column: 1/-1;
}
.form-error:not(:empty) {
  background: #fff0ee;
  padding: 10px 12px;
  border-radius: 9px;
  margin: 10px 0;
}
.notice {
  background: #fff5e6;
  color: #956022;
  border: 1px solid #f0dfc3;
  border-radius: 11px;
  padding: 11px 15px;
  font-size: 12px;
  line-height: 1.9;
  margin: 12px 0 18px;
}
.notice p {
  margin: 5px 0;
}
.auth-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 70px;
  max-width: 1100px;
  margin: auto;
  padding: 50px 30px;
  position: relative;
}
.back-link {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 12px;
  color: var(--muted);
}
.auth-story h1 {
  font-size: 38px;
  margin-top: 35px;
}
.auth-story p {
  color: var(--muted);
}
.auth-story > img {
  max-height: 280px;
  border-radius: 24px;
  mix-blend-mode: multiply;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  max-width: 430px;
  width: 100%;
  box-shadow: var(--shadow);
}
.auth-card > .brand {
  margin-bottom: 32px;
}
.auth-card h2 {
  font-size: 25px;
}
.auth-card .eyebrow {
  margin-top: 20px;
}
.demo-box {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 25px;
  font-size: 12px;
}
.demo-box p {
  color: var(--muted);
}
.demo-box .btn {
  font-size: 11px;
  width: 100%;
}
.onboarding {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 25px;
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
}
.steps span {
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.steps span.done {
  background: #e5f1e9;
  color: #15866d;
  border-color: #e5f1e9;
}
.steps span.current {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.steps i {
  height: 1px;
  background: var(--border);
  width: 50px;
}
.app-shell {
  max-width: 900px;
  min-height: 100dvh;
  background: #f7f7f2;
  margin: auto;
  position: relative;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  position: sticky;
  top: 0;
  background: #f7f7f2ef;
  backdrop-filter: blur(12px);
  z-index: 30;
  border-bottom: 1px solid var(--border);
}
.app-header .brand img {
  width: 34px;
  height: 34px;
}
.app-header .brand b {
  font-size: 20px;
}
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-header-actions > .small {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-main {
  padding: 20px 24px 120px;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.welcome p {
  margin: 0;
}
.welcome h2 {
  font-size: 20px;
  margin-top: 5px;
}
.round-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 23px;
}
.app-slides {
  background: #26393a;
  min-height: 0;
  margin-bottom: 18px;
}
.app-slides .slide {
  padding: 25px;
  gap: 12px;
}
.app-slides .slide h1 {
  color: #fff;
  font-size: 25px;
}
.app-slides .slide .eyebrow {
  color: #d8ad8f;
  font-size: 10px;
}
.app-slides .slide p {
  color: #c8d6d0;
  font-size: 12px;
  margin-bottom: 14px;
}
.app-slides .slide > img {
  max-height: 200px;
  mix-blend-mode: normal;
  border-radius: 20px;
}
.app-slides .slide-dots {
  right: 25px;
  bottom: 12px;
}
.wallet-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0 28px;
}
.wallet-summary > a,
.wallet-summary > div {
  padding: 18px;
  background: #e6eee5;
  border-radius: 14px;
}
.wallet-summary > a:last-child,
.wallet-summary > div:last-child {
  background: #efe9e0;
}
.wallet-summary span {
  display: block;
  font-size: 11px;
  color: #677c70;
}
.wallet-summary b {
  display: block;
  font-size: 21px;
  margin-top: 5px;
}
.app-main .products-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.app-main h1 {
  font-size: 27px;
}
.app-main .section-head h2 {
  font-size: 20px;
}
.quick-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.quick-links a {
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px;
  border-radius: 11px;
  font-size: 12px;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}
.glass-nav {
  position: fixed;
  z-index: 50;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: min(520px, calc(100% - 28px));
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.73);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid #ffffffed;
  box-shadow:
    0 8px 40px #2c3d3820,
    inset 0 1px 0 #fff;
  border-radius: 24px;
}
.glass-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  min-width: 60px;
  min-height: 48px;
  border-radius: 15px;
  color: #8a9390;
  position: relative;
}
.glass-nav a > span {
  font-size: 24px;
  line-height: 1.1;
}
.glass-nav a small {
  font-size: 10px;
}
.glass-nav a.active {
  color: var(--orange);
  background: #f4e9dda0;
}
.cart-count {
  display: inline-grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  min-width: 14px;
  height: 14px;
  border-radius: 8px;
  font-size: 8px;
}
.cart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 15px;
  margin-bottom: 12px;
}
.cart-row img {
  width: 70px;
  border-radius: 12px;
}
.cart-row h3 {
  margin-bottom: 2px;
}
.cart-row p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.cart-row > .quantity {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 13px;
}
.cart-row > b {
  font-size: 14px;
}
.checkout-summary {
  margin-top: 20px;
}
.checkout-summary > strong {
  float: left;
  font-size: 23px;
}
.empty {
  text-align: center;
  padding: 50px 15px;
  color: var(--muted);
}
.empty > span {
  font-size: 60px;
}
.empty h2 {
  margin: 10px;
}
.empty p {
  font-size: 13px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
}
.badge.green {
  background: #e4f2e9;
  color: #268768;
}
.badge.red {
  background: #f9e7e3;
  color: #b84942;
}
.badge.amber {
  background: #faf1df;
  color: #a47c2d;
}
.badge.gray {
  background: #eef0ec;
  color: #77827d;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.order-card p {
  font-size: 12px;
}
.order-card .button-row {
  margin-top: 17px;
}
.message {
  padding: 12px 16px;
  border-radius: 12px;
  background: #f6f6f1;
  margin: 10px 0;
}
.message p {
  font-size: 13px;
  margin: 5px 0;
}
.message small {
  color: var(--muted);
}
.message.reply {
  background: #eaf1e8;
  margin-right: 25px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.metric {
  background: #fff;
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 16px;
}
.metric > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.metric > b {
  display: block;
  margin: 8px 0 0;
  font-size: 25px;
  line-height: 1.7;
}
.metric > b small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.metric > small {
  font-size: 10px;
  color: #96a099;
}
.admin-shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100dvh;
}
.admin-sidebar {
  background: #fff;
  border-left: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 25px 18px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.admin-sidebar .brand {
  margin-bottom: 35px;
}
.sidebar-label {
  font-size: 10px;
  color: #a2aaa6;
  padding: 0 12px;
  margin-bottom: 12px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.admin-sidebar nav a {
  padding: 11px 12px;
  border-radius: 11px;
  color: #7a8582;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-sidebar nav a > span {
  font-size: 21px;
  line-height: 1;
  width: 23px;
  text-align: center;
  color: #99a29e;
}
.admin-sidebar nav a.active {
  background: #f7eade;
  color: #b2592e;
}
.admin-sidebar nav a.active > span {
  color: var(--orange);
}
.sidebar-site {
  margin-top: 25px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--orange);
}
.sidebar-foot {
  margin-top: auto;
  padding: 20px 12px 0;
  font-size: 10px;
  color: #9fa8a2;
}
.admin-main {
  padding: 26px 32px;
  min-width: 0;
  max-width: 1900px;
  width: 100%;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
  margin-bottom: 22px;
}
.admin-top .eyebrow {
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.admin-top h1 {
  font-size: 27px;
  margin: 0;
}
.inline-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}
.inline-controls .field {
  min-width: 190px;
  margin-bottom: 5px;
}
.inline-controls .field > span {
  display: none;
}
.inline-controls select {
  padding: 8px 12px;
  font-size: 11px;
  background: #fff;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: right;
  white-space: nowrap;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #8c9892;
  background: #f9faf6;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
td {
  font-size: 12px;
  padding: 15px 12px;
  border-bottom: 1px solid #eef0ea;
}
td small {
  font-size: 10px;
  margin-top: 5px;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.table-product {
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-product img {
  width: 52px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
}
.table-product small {
  display: block;
  font-family: Arial;
}
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: end;
  flex-wrap: wrap;
}
.filter-bar .search {
  margin: 0;
  flex: 1;
  min-width: 190px;
  height: 44px;
}
.filter-bar .field {
  margin: 0;
  min-width: 130px;
  flex: 1;
  max-width: 200px;
}
.filter-bar select {
  font-size: 11px;
  padding: 11px 10px;
  background: #fff;
}
.activity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--color);
}
.activity:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color);
}
.bars {
  padding-top: 10px;
}
.bar-row {
  display: grid;
  grid-template-columns: 75px 1fr 90px;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  font-size: 11px;
}
.bar-row > div {
  height: 8px;
  border-radius: 6px;
  background: #f2f0e9;
  overflow: hidden;
}
.bar-row i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: #ce794a;
}
.bar-row b {
  font-size: 10px;
  text-align: left;
  font-weight: 500;
}
.activity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 20px 0 25px;
}
.activity-grid > div {
  background: color-mix(in srgb, var(--color) 7%, white);
  padding: 17px;
  border-radius: 14px;
  color: var(--color);
}
.activity-grid b {
  font-size: 27px;
  display: block;
}
.activity-grid span {
  font-size: 11px;
}
.map {
  height: 330px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: #e5e8e0;
  z-index: 0;
  direction: ltr;
}
.admin-map {
  height: 540px;
}
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 265px;
  gap: 18px;
}
.map-panel {
  padding: 18px;
}
.map-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.map-list {
  padding: 18px 12px;
  max-height: 670px;
  overflow: auto;
}
.map-list h3 {
  padding: 0 6px;
}
.map-customer {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: right;
  padding: 14px 5px;
}
.map-customer i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-customer span:not(.badge) {
  flex: 1;
}
.map-customer b {
  font-size: 11px;
  display: block;
}
.map-customer small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.cluster {
  display: grid !important;
  place-items: center;
  background: #273b38;
  color: #fff;
  border: 4px solid #e1e9df;
  border-radius: 50%;
  font-family: Vazirmatn;
  font-size: 12px;
}
.leaflet-popup-content {
  font-family: Vazirmatn;
  text-align: right;
  line-height: 1.7;
}
.leaflet-popup-content p {
  margin: 7px 0;
  font-size: 11px;
}
.leaflet-control-attribution {
  font-size: 9px !important;
}
.slider-preview {
  display: flex;
  align-items: center;
  gap: 18px;
}
.slider-preview > img {
  width: 130px;
  aspect-ratio: 1.2;
  object-fit: cover;
  border-radius: 13px;
}
.slider-preview p {
  font-size: 12px;
  color: var(--muted);
}
.slider-preview .btn {
  margin-right: 10px;
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.product-detail > img {
  width: 100%;
  border-radius: 18px;
}
.product-detail p {
  font-size: 12px;
  color: var(--muted);
}
.specs > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.specs b {
  font-weight: 500;
}
.payment-actions {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}
dialog {
  border: 0;
  border-radius: 22px;
  padding: 0;
  max-width: 510px;
  width: calc(100% - 30px);
  max-height: 90dvh;
  background: #fff;
  box-shadow: 0 30px 100px #172b3c30;
  overflow: auto;
  color: var(--ink);
}
dialog.large {
  max-width: 850px;
}
dialog::backdrop {
  background: #1e2e3b77;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: flex-end;
  padding: 12px 15px 0;
  position: sticky;
  top: 0;
  z-index: 3;
  background: #ffffffee;
}
.modal-head .btn {
  font-size: 23px;
  min-height: 35px;
  height: 35px;
  min-width: 35px;
  padding: 0;
}
.modal-body {
  padding: 8px 25px 28px;
}
.modal-body h2 {
  font-size: 23px;
}
.modal-body .metrics .metric {
  padding: 14px;
}
.modal-body .metrics .metric > b {
  font-size: 20px;
}
#toast {
  position: fixed;
  bottom: 105px;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  max-width: calc(100% - 35px);
  padding: 13px 20px;
  border-radius: 13px;
  background: #243a32;
  color: #fff;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  font-size: 12px;
  box-shadow: 0 7px 25px #0002;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#toast.error {
  background: #a34135;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 80dvh;
  color: var(--orange);
}
@media (min-width: 1500px) {
  .admin-main {
    padding: 30px 45px;
  }
  .products-grid {
    gap: 20px;
  }
}
@media (max-width: 1100px) {
  .admin-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .admin-main {
    padding: 22px;
  }
  .admin-sidebar {
    padding: 22px 12px;
  }
  .map-layout {
    grid-template-columns: 1fr;
  }
  .map-list {
    max-height: 250px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 20px;
  }
  .map-list h3 {
    grid-column: 1/-1;
  }
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .auth-shell {
    gap: 35px;
  }
  .slide {
    padding: 30px;
  }
  .slide-dots {
    right: 30px;
  }
  .grid.three {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 800px) {
  .admin-shell {
    display: block;
  }
  .admin-sidebar {
    height: auto;
    position: sticky;
    top: 0;
    padding: 12px;
    z-index: 40;
    border-bottom: 1px solid var(--border);
  }
  .admin-sidebar > .brand {
    display: none;
  }
  .admin-sidebar nav {
    flex-direction: row;
    overflow: auto;
    gap: 6px;
  }
  .admin-sidebar nav a {
    flex-shrink: 0;
    padding: 9px 12px;
    font-size: 11px;
  }
  .admin-sidebar nav a > span {
    font-size: 17px;
    width: 17px;
  }
  .sidebar-label,
  .sidebar-site,
  .sidebar-foot {
    display: none;
  }
  .admin-main {
    padding: 18px 15px;
  }
  .admin-top {
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
  .admin-top h1 {
    font-size: 23px;
  }
  .admin-top > .button-row > .small {
    display: none;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .corporate-header nav {
    gap: 18px;
    font-size: 12px;
  }
  .corporate-header {
    padding: 15px 4vw;
  }
  .corporate .brand b {
    font-size: 22px;
  }
  .corporate .brand img {
    width: 37px;
  }
  .corporate-header > .btn {
    padding: 9px 14px;
    font-size: 12px;
  }
  .slide {
    grid-template-columns: 1fr 1fr;
    padding: 30px 25px;
  }
  .slide h1 {
    font-size: 30px;
  }
  .slides {
    min-height: 310px;
  }
  .slide > img {
    max-height: 250px;
  }
  .category-strip img {
    width: 50px;
    height: 50px;
  }
  .category-strip a {
    padding: 10px;
    gap: 9px;
    font-size: 11px;
  }
  .about-split {
    gap: 30px;
  }
  .app-banner {
    padding: 30px;
  }
  .mini-app {
    width: 180px;
  }
  .auth-story h1 {
    font-size: 29px;
  }
  .auth-card {
    padding: 26px;
  }
  .auth-shell {
    gap: 25px;
    padding: 60px 25px;
  }
  .product-detail {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-tools {
    display: block;
  }
  .catalog-tools .search {
    width: 100%;
    margin-top: 15px;
  }
  .panel {
    padding: 18px;
  }
  .slider-preview > img {
    width: 110px;
  }
}
@media (max-width: 560px) {
  :root {
    font-size: 13px;
  }
  .topline {
    padding: 7px 18px;
    font-size: 9px;
  }
  .corporate-header nav {
    display: none;
  }
  .corporate main {
    padding: 14px 16px 0;
  }
  .corporate-header {
    padding: 13px 18px;
  }
  .corporate-header > .btn {
    min-height: 39px;
  }
  .slides {
    border-radius: 20px;
    min-height: 0;
  }
  .slide {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 25px;
  }
  .slide h1 {
    font-size: 30px;
    max-width: 320px;
  }
  .slide p {
    font-size: 12px;
    margin: 8px 0 16px;
  }
  .slide > img {
    height: 190px;
    margin-top: 12px;
    object-fit: cover;
    border-radius: 17px;
  }
  .slide-dots {
    bottom: 13px;
    right: 25px;
  }
  .category-strip {
    gap: 8px;
    margin-top: 12px;
  }
  .category-strip a {
    flex-direction: column;
    gap: 7px;
    text-align: center;
    padding: 12px 5px;
    font-size: 10px;
  }
  .category-strip a > span:last-child {
    display: none;
  }
  .category-strip img {
    width: 58px;
    height: 45px;
  }
  .section {
    margin: 30px 0;
  }
  .section-head {
    gap: 8px;
  }
  .section-head h2 {
    font-size: 20px;
  }
  .section-head > a {
    font-size: 10px;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .product-body {
    padding: 12px;
  }
  .product-body h3 {
    font-size: 12px;
    min-height: 42px;
  }
  .product-body .eyebrow {
    font-size: 9px;
  }
  .product-body .eyebrow .badge {
    margin-top: 5px;
  }
  .product-bottom {
    font-size: 12px;
    gap: 5px;
  }
  .product-bottom .btn {
    padding: 7px 10px;
    font-size: 10px;
    min-width: 0;
    min-height: 35px;
  }
  .product-image img {
    aspect-ratio: 1.2;
  }
  .sale-tag {
    top: 8px;
    right: 8px;
    font-size: 9px;
    padding: 3px 7px;
  }
  .about-split {
    grid-template-columns: 1fr;
    gap: 25px;
    margin: 35px 0;
  }
  .about-art {
    min-height: 230px;
  }
  .large-letter {
    font-size: 160px;
  }
  .app-banner {
    padding: 25px 22px;
    border-radius: 20px;
    margin: 30px 0;
  }
  .app-banner h2 {
    font-size: 25px;
  }
  .app-banner p {
    font-size: 12px;
  }
  .mini-app {
    display: none;
  }
  .corporate-footer {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 30px 20px 18px;
  }
  .corporate-footer > div:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .corporate-footer .brand b {
    font-size: 22px;
  }
  .corporate-footer .brand img {
    width: 35px;
  }
  .footer-copy {
    font-size: 10px;
  }
  .auth-shell {
    display: flex;
    min-height: 100dvh;
    justify-content: center;
    padding: 65px 20px;
  }
  .auth-story {
    display: none;
  }
  .auth-card {
    box-shadow: none;
    padding: 26px 23px;
  }
  .auth-card > .brand {
    margin-bottom: 25px;
  }
  .app-main {
    padding: 16px 15px 110px;
  }
  .app-header {
    padding: 12px 15px;
  }
  .app-header-actions > .small {
    max-width: 105px;
    font-size: 10px;
  }
  .app-header-actions {
    gap: 7px;
  }
  .app-header .brand b {
    font-size: 18px;
  }
  .app-header .brand img {
    width: 32px;
    height: 32px;
  }
  .app-header .brand small {
    font-size: 7px;
  }
  .welcome h2 {
    font-size: 17px;
  }
  .welcome .small {
    font-size: 10px;
  }
  .welcome {
    margin-bottom: 16px;
  }
  .app-slides .slide {
    grid-template-columns: 1.3fr 0.8fr;
    padding: 22px 20px;
  }
  .app-slides .slide h1 {
    font-size: 21px;
  }
  .app-slides .slide > img {
    height: 140px;
    max-height: 140px;
    margin: 0;
  }
  .app-slides .slide p {
    font-size: 10px;
    margin-bottom: 10px;
  }
  .app-slides .slide .btn {
    padding: 8px 14px;
    font-size: 11px;
    min-height: 36px;
  }
  .app-slides .slide .eyebrow {
    font-size: 8px;
    letter-spacing: 0;
  }
  .app-slides .slide-dots {
    bottom: 9px;
    right: 20px;
  }
  .app-slides .slide-dots button {
    height: 5px;
  }
  .app-main .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wallet-summary {
    gap: 10px;
    margin: 13px 0 23px;
  }
  .wallet-summary > a,
  .wallet-summary > div {
    padding: 14px;
  }
  .wallet-summary b {
    font-size: 18px;
  }
  .wallet-summary b small {
    font-size: 9px;
  }
  .wallet-summary span {
    font-size: 10px;
  }
  .quick-links {
    gap: 8px;
  }
  .quick-links a {
    padding: 10px 7px;
    font-size: 10px;
  }
  .cart-row {
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px;
  }
  .cart-row img {
    width: 50px;
  }
  .cart-row h3 {
    font-size: 12px;
  }
  .cart-row > b {
    margin-right: auto;
    font-size: 13px;
  }
  .cart-row > .quantity {
    margin-right: 0;
  }
  .cart-row .quantity .btn {
    padding: 4px 10px;
    min-height: 32px;
    min-width: 32px;
  }
  .checkout-summary > strong {
    font-size: 20px;
  }
  .metric {
    padding: 15px;
  }
  .metric > b {
    font-size: 20px;
  }
  .metric > span {
    font-size: 10px;
  }
  .metric > small {
    font-size: 9px;
  }
  .metrics {
    gap: 10px;
  }
  .admin-main .grid.two {
    grid-template-columns: 1fr;
  }
  .admin-top h1 {
    font-size: 21px;
  }
  .admin-top .eyebrow {
    font-size: 8px;
  }
  .filter-bar {
    gap: 8px;
  }
  .filter-bar .search {
    flex-basis: 100%;
    width: 100%;
    font-size: 12px;
  }
  .filter-bar .field {
    max-width: none;
    min-width: 90px;
  }
  .filter-bar .field > span {
    font-size: 10px;
  }
  .filter-bar select {
    padding: 9px 7px;
    font-size: 10px;
  }
  .panel {
    padding: 15px;
    border-radius: 14px;
  }
  .panel h2 {
    font-size: 18px;
  }
  .map {
    height: 300px;
  }
  .admin-map {
    height: 420px;
  }
  .map-list {
    grid-template-columns: 1fr;
    max-height: 300px;
  }
  .map-panel {
    padding: 10px;
  }
  .map-legend {
    gap: 9px;
  }
  .map-legend .activity {
    font-size: 9px;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-detail > img {
    max-height: 240px;
    object-fit: cover;
  }
  .modal-body {
    padding: 8px 18px 23px;
  }
  .modal-body h2 {
    font-size: 20px;
  }
  .modal-body .grid.two {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .modal-body .field > span {
    font-size: 10px;
  }
  .modal-body .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modal-body .metrics .metric {
    padding: 9px;
  }
  .modal-body .metrics .metric > b {
    font-size: 14px;
  }
  .modal-body .metrics .metric > span {
    font-size: 9px;
  }
  .slider-preview {
    gap: 12px;
  }
  .slider-preview > img {
    width: 85px;
  }
  .slider-preview .btn {
    font-size: 10px;
    padding: 5px 10px;
    min-height: 30px;
  }
  .table-scroll {
    margin: 0 -5px;
  }
  td {
    padding: 12px 8px;
    font-size: 11px;
  }
  th {
    padding: 10px 8px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .field select {
    font-size: 13px;
  }
  .inline-controls select {
    font-size: 11px;
  }
  .bar-row {
    grid-template-columns: 60px 1fr 80px;
    font-size: 10px;
    gap: 8px;
  }
  .product-detail .specs {
    margin-bottom: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.mobile-menu {
  display: none;
}
.mobile-links {
  display: grid;
  gap: 10px;
}
.mobile-links a {
  padding: 13px;
  background: #f6f5f0;
  border-radius: 10px;
}
@media (max-width: 560px) {
  .mobile-menu {
    display: inline-flex;
    padding: 7px 10px;
    min-height: 38px;
    margin-right: auto;
  }
  .corporate-header {
    gap: 8px;
  }
}
