@font-face {
  font-family: Vazir;
  src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Vazir;
  src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}
:root {
  --bg: #f7f6f2;
  --paper: #fff;
  --ink: #203c34;
  --muted: #62736c;
  --green: #204d3d;
  --soft: #e7eee7;
  --line: #dce3db;
  --accent: #af5739;
  --warn: #75451a;
  --radius: 18px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    16px/1.85 Vazir,
    system-ui,
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.45;
  letter-spacing: -1.2px;
}
h2 {
  font-size: 25px;
  line-height: 1.55;
}
h3 {
  font-size: 18px;
}
small,
.muted {
  color: var(--muted);
}
.container {
  width: min(1220px, calc(100% - 64px));
  margin: auto;
}
.demo {
  background: #e8ede5;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
  padding: 7px 16px;
  color: #365044;
}
.topbar {
  height: 90px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 29px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -1px;
}
.mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 10px;
  font-size: 26px;
  line-height: 1;
}
.nav {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav a {
  font-size: 14px;
}
.nav a.active {
  color: var(--green);
  font-weight: 700;
  border-bottom: 2px solid;
}
.spacer {
  flex: 1;
}
.tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.pill,
.badge {
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 14px;
  font-size: 12px;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: var(--paper);
}
.badge {
  background: var(--soft);
  border: 0;
}
.badge.review,
.badge.awaiting_payment {
  background: #fff0d6;
  color: #6d471c;
}
.badge.paid,
.badge.completed {
  background: #dbefdf;
  color: #215633;
}
.icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex: none;
}
.btn,
button.btn {
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 23px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  min-height: 46px;
  line-height: 1.5;
  text-align: center;
}
.btn:hover {
  background: #163e30;
  text-decoration: none;
}
.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.danger {
  background: #8f342c;
}
.btn.small {
  padding: 8px 13px;
  min-height: 40px;
  font-size: 13px;
}
.btn.full {
  width: 100%;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 58px;
  align-items: center;
  padding: 52px 0 44px;
}
.hero p {
  font-size: 17px;
  max-width: 440px;
  color: var(--muted);
  margin: 17px 0 25px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 1px;
  display: block;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 700;
}
.hero-image {
  position: relative;
  aspect-ratio: 1.24;
  overflow: hidden;
  border-radius: 24px;
  background: #eae4d9;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-caption {
  position: absolute;
  bottom: 22px;
  inset-inline: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 13px;
}
.trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}
.sectionhead {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 25px 0;
}
.sectionhead p {
  color: var(--muted);
  font-size: 14px;
}
.search {
  display: flex;
  gap: 8px;
  flex: 1;
  max-width: 360px;
  margin-inline-start: auto;
}
.search input {
  background: var(--paper);
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #c4cfc6;
  border-radius: 9px;
  background: #fff;
  color: #203c34;
  padding: 11px 13px;
  min-height: 46px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  accent-color: var(--green);
}
label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.filter {
  padding: 7px 18px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 25px;
  font-size: 13px;
}
.filter.active {
  background: var(--green);
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.product {
  min-width: 0;
}
.product-image {
  border-radius: 17px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1.12;
  background: #ede9df;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.product-image:hover img {
  transform: scale(1.025);
}
.product-image .badge {
  position: absolute;
  top: 15px;
  inset-inline-start: 15px;
  background: rgba(255, 255, 255, 0.95);
}
.favorite {
  position: absolute;
  top: 13px;
  inset-inline-end: 13px;
  border: 0;
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
}
.product-info {
  padding: 15px 2px;
}
.product-info small {
  font-size: 12px;
}
.product-info h3 {
  margin: 4px 0 11px;
}
.price-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.price {
  font-weight: 700;
  white-space: nowrap;
}
.quick-add {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
  min-width: 42px;
  min-height: 42px;
  display: grid;
  place-items: center;
  color: var(--green);
}
.bottom-promo {
  margin: 52px 0 35px;
  background: #e7ede2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 30px;
  border-radius: 17px;
}
.bottom-promo p {
  font-size: 14px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  margin-top: 42px;
  font-size: 12px;
  color: var(--muted);
}
.foot {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.workspace {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 36px;
  padding-top: 32px;
  min-height: 650px;
}
.sidebar {
  border-inline-end: 1px solid var(--line);
  padding-inline-end: 22px;
}
.sidebar a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  font-size: 14px;
}
.sidebar a.active {
  background: var(--soft);
  font-weight: 700;
}
.sidebar .label {
  font-size: 11px;
  color: var(--muted);
  margin: 20px 12px 10px;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 28px;
}
.page-head h1 {
  font-size: 30px;
  letter-spacing: -0.5px;
}
.page-head p {
  color: var(--muted);
  font-size: 14px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 25px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin: 20px 0 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 20px;
}
.stat span {
  font-size: 13px;
  color: var(--muted);
}
.stat strong {
  display: block;
  font-size: 28px;
  margin-top: 9px;
}
.stat.primary {
  background: var(--green);
  color: #fff;
}
.stat.primary span {
  color: #d1e0d1;
}
.table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
  font-size: 13px;
}
th {
  text-align: start;
  background: #f0f3ed;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  padding: 15px 18px;
}
td {
  padding: 16px 18px;
  border-bottom: 1px solid #edf0eb;
  vertical-align: middle;
}
tr:last-child td {
  border: 0;
}
.mini-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}
.mini-product img {
  width: 54px;
  height: 54px;
  border-radius: 9px;
  object-fit: cover;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}
.field.full {
  grid-column: 1/-1;
}
.field small {
  font-size: 11px;
}
.form-footer {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  align-items: center;
  flex-wrap: wrap;
}
.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  margin: 30px 0;
}
.stack {
  display: grid;
  gap: 20px;
  align-content: start;
}
.line {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  font-size: 14px;
}
.total {
  border-top: 1px solid var(--line);
  font-size: 19px;
  font-weight: 700;
  margin-top: 10px;
  padding-top: 18px;
}
.notice {
  padding: 14px 18px;
  border-radius: 10px;
  background: #eaf0e6;
  font-size: 13px;
  margin: 16px 0;
}
.notice.warn {
  background: #fff0d9;
  color: #735027;
}
.notice.error {
  background: #f9e5df;
  color: #8a3026;
}
.empty {
  text-align: center;
  padding: 50px 24px;
}
.empty .icon {
  width: 45px;
  height: 45px;
  margin: 0 auto 15px;
}
.empty p {
  color: var(--muted);
  margin: 10px 0 20px;
}
.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0;
}
.detail-photo {
  border-radius: 22px;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.gallery {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.gallery a {
  width: 70px;
}
.gallery img {
  border-radius: 9px;
  aspect-ratio: 1;
  object-fit: cover;
}
.detail h1 {
  font-size: 36px;
  margin: 18px 0;
}
.detail p {
  color: var(--muted);
  white-space: pre-line;
}
.detail .price {
  display: block;
  font-size: 25px;
  margin: 20px 0;
}
.bank-card {
  background: #285abb;
  border-radius: 20px;
  color: white;
  padding: 25px;
  aspect-ratio: 1.65;
  max-width: 440px;
  margin: auto;
  box-shadow: 0 15px 30px #263e3512;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  direction: ltr;
}
.bank-card.melli {
  background: #18394c;
}
.bank-card.saderat {
  background: #244180;
}
.bank-card.other {
  background: #244e3d;
}
.bank-card .bank-number {
  font: clamp(19px, 3vw, 25px) / 1.5 monospace;
  letter-spacing: 2px;
  text-align: center;
}
.bank-card small {
  color: #e0e9ff;
}
.bank-top,
.bank-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bank-card .bank-name {
  font-size: 25px;
  font-weight: 700;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
}
.mobile-nav {
  display: none;
}
.narrow {
  max-width: 650px;
  margin: 40px auto;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  padding: 12px 23px;
  background: #203c34;
  color: #fff;
  border-radius: 12px;
  max-width: 90vw;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  top: 10px;
  z-index: 100;
  background: white;
  padding: 10px;
}
:focus-visible {
  outline: 3px solid #be7953;
  outline-offset: 3px;
}
.ltr {
  direction: ltr;
  unicode-bidi: embed;
  text-align: left;
}
.role-switch {
  font-size: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.role-switch form {
  display: inline;
}
.role-switch button {
  font-size: 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--green);
  padding: 4px 10px;
}
.role-switch button.current {
  background: #fff;
  font-weight: 700;
}
.pro {
  padding: 35px;
  background: var(--green);
  color: white;
  border-radius: 20px;
}
.pro p {
  color: #d5e2d4;
}
.pro ul {
  padding-inline-start: 20px;
}
.pro .btn {
  background: #fff;
  color: var(--green);
}
.help-list {
  display: grid;
  gap: 14px;
}
.progress {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0;
}
.progress .current {
  color: var(--green);
  font-weight: 700;
}
.business-card {
  padding: 35px;
  background: #e9ede1;
  border-radius: 20px;
  text-align: center;
}
.business-card h2 {
  font-size: 36px;
  margin: 18px;
}
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 950px) {
  .container {
    width: calc(100% - 36px);
  }
  .topbar {
    gap: 18px;
  }
  .nav {
    gap: 13px;
  }
  .hero {
    gap: 28px;
  }
  .workspace {
    grid-template-columns: 165px 1fr;
    gap: 22px;
  }
  .sidebar {
    padding-inline-end: 12px;
  }
  .grid {
    gap: 16px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 22px;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 15px;
    padding-bottom: 64px;
  }
  .container {
    width: calc(100% - 32px);
  }
  .topbar {
    height: 74px;
    gap: 10px;
  }
  .brand {
    font-size: 24px;
  }
  .mark {
    width: 31px;
    height: 31px;
    font-size: 20px;
  }
  .nav {
    display: none;
  }
  .tools {
    gap: 8px;
  }
  .tools .seller-link {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 30px 0;
    gap: 27px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero p {
    font-size: 15px;
  }
  .hero-image {
    aspect-ratio: 1.5;
  }
  .hero-caption {
    bottom: 15px;
    inset-inline: 15px;
  }
  .trust {
    gap: 14px;
    margin-top: 18px;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
  .product-image {
    aspect-ratio: 0.98;
    border-radius: 13px;
  }
  .product-info h3 {
    font-size: 15px;
  }
  .price-row {
    font-size: 12px;
  }
  .product-image .badge {
    font-size: 10px;
    top: 9px;
    inset-inline-start: 9px;
    padding: 3px 8px;
  }
  .favorite {
    top: 8px;
    inset-inline-end: 8px;
    width: 31px;
    height: 31px;
  }
  .product-info {
    padding-top: 10px;
  }
  .sectionhead {
    flex-wrap: wrap;
    margin-top: 14px;
  }
  .search {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .sectionhead h2 {
    font-size: 23px;
  }
  .filters {
    gap: 7px;
  }
  .filter {
    font-size: 12px;
    padding: 6px 13px;
  }
  .bottom-promo {
    margin: 34px 0 18px;
    align-items: flex-start;
    padding: 22px;
    flex-direction: column;
  }
  .workspace {
    display: block;
    padding-top: 20px;
  }
  .sidebar {
    border: 0;
    display: flex;
    overflow: auto;
    gap: 5px;
    padding: 0;
    margin-bottom: 23px;
  }
  .sidebar a {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 11px;
    margin: 0;
  }
  .sidebar .label {
    display: none;
  }
  .sidebar .icon {
    width: 16px;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head {
    align-items: flex-start;
    gap: 10px;
  }
  .page-head .btn {
    padding: 9px 14px;
    font-size: 12px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .stat strong {
    font-size: 18px;
  }
  .stat span {
    font-size: 10px;
  }
  .card {
    padding: 20px;
  }
  .mobile-nav {
    position: fixed;
    display: flex;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    align-items: center;
    justify-content: space-around;
    background: #fffffff5;
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 20;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-nav a {
    display: grid;
    justify-items: center;
    gap: 2px;
    font-size: 10px;
    color: var(--muted);
  }
  .mobile-nav a.active {
    color: var(--green);
    font-weight: 700;
  }
  .mobile-nav .icon {
    width: 21px;
    height: 21px;
  }
  .foot {
    gap: 14px;
  }
  .toast {
    bottom: 80px;
  }
  .detail h1 {
    font-size: 29px;
  }
  .detail-photo {
    max-height: 410px;
  }
  .btn {
    min-height: 46px;
  }
  .demo {
    font-size: 10px;
  }
  .role-switch {
    gap: 2px;
  }
  .role-switch button {
    padding: 4px 7px;
  }
  .table-wrap {
    margin-inline: -4px;
  }
  th,
  td {
    padding: 13px 12px;
  }
  .narrow {
    margin: 25px auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .demo,
  .topbar,
  .sidebar,
  .mobile-nav,
  footer,
  .no-print,
  .form-footer {
    display: none;
  }
  body {
    background: white;
    padding: 0;
  }
  .container {
    width: 100%;
  }
  .workspace,
  .split {
    display: block;
  }
  .card {
    break-inside: avoid;
  }
  .bank-card {
    print-color-adjust: exact;
  }
}
/* Keep the accessible skip link out of layout, including RTL overflow. */
.skip {
  position: fixed;
  left: auto;
  inset-inline-start: 12px;
  top: 8px;
  transform: translateY(-200%);
  z-index: 100;
}
.skip:focus {
  left: auto;
  transform: none;
  background: white;
  padding: 10px;
}
