/* Chavill backend-owned CSS chunk: 0cfadccd963c6d0ad.css; version: 1.0.0-105db2c98093 */
/* Chavill CSS chunk 1: 0cfadccd963c6d0ad.css */
/* Vazirmatn is self-hosted; @font-face is inlined in the document head by
   assetPipeline.criticalCssStyle() so it is declared before this chunk loads. */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  direction: rtl;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: #f8faf9;
  color: #1d3129;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1180px;
  margin: auto;
  padding: 0 18px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #ffffffed;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #f0f6f3;
}

.nav-inner,
.row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-inner {
  min-height: 74px;
}

.brand {
  flex: 0 0 auto;
  font-size: 28px;
  font-weight: 800;
  color: #0a8062;
}

.links {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 22px;
}

.account-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
}

.nav-search {
  position: relative;
  display: flex;
  flex: 0 1 340px;
  align-items: center;
  gap: 8px;
  min-width: 280px;
}

.nav-search input {
  width: 100%;
  padding-left: 76px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-search-icon {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 12px;
  color: #0a8062;
  cursor: pointer;
  transform: translateY(-50%);
}

.nav-search-icon .search-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.nav-search-icon.is-disabled {
  opacity: .55;
}

.nav input,
.input,
select,
textarea {
  border: 1px solid #e8f1ed;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  font: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  background: #0a8062;
  color: #fff;
  font: inherit;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
}

.btn.secondary {
  background: #e8f4ef;
  color: #0a8062;
}

.btn.ghost {
  border: 1px solid #e8f1ed;
  background: #fff;
  color: #1d3129;
}

.btn.account-primary {
  background: #0a8062;
  color: #fff;
  box-shadow: 0 10px 24px #0a806233;
}

.btn.danger,
.logout-button {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.btn.danger:hover,
.logout-button:hover {
  background: #b91c1c;
  color: #fff;
}

.mobile-menu-toggle {
  position: relative;
  display: none;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e8f1ed;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.mobile-menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #1d3129;
}

.mobile-menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.mobile-menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.mobile-menu {
  display: none;
  border-top: 1px solid #f0f6f3;
  background: #fff;
  padding: 12px 18px 18px;
}

.mobile-menu a,
.mobile-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: transparent;
  color: #1d3129;
  font: inherit;
  text-align: right;
}

.mobile-menu a:hover,
.mobile-menu button:hover {
  background: #e8f4ef;
  color: #0a8062;
}

.hero {
  padding: 70px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
}

.card {
  border: 1px solid #f0f6f3;
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  box-shadow: 0 12px 35px #1238270a;
}

.hero h1 {
  margin: 0;
  color: #0a8062;
  font-size: 54px;
}

.muted {
  color: #64736c;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.product img,
.thumb {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 18px;
  background: #f2f8f5;
}

.price {
  font-weight: 800;
  color: #0a8062;
}

.old {
  color: #9aa6a0;
  font-size: 13px;
  text-decoration: line-through;
}

.badge {
  border-radius: 99px;
  padding: 7px 11px;
  background: #f0f7f4;
  color: #0a8062;
  font-size: 13px;
}

.section {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.footer {
  margin-top: 40px;
  padding: 38px 0;
  background: #f6faf8;
  color: #1d3129;
}

.filters {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}

.list {
  display: grid;
  gap: 18px;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  gap: 18px;
  align-items: center;
}

.panel {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
}

.side a,
.side button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
}

.side a.active,
.side a:hover,
.side button:hover {
  background: #e8f4ef;
  color: #0a8062;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table td,
.table th {
  border-bottom: 1px solid #f0f6f3;
  padding: 12px;
  text-align: right;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 60;
  display: none;
  max-width: min(420px, calc(100vw - 40px));
  border-radius: 14px;
  padding: 14px 18px;
  background: #1d3129;
  color: #fff;
}

.skeleton {
  min-height: 120px;
  border-radius: 18px;
  background: linear-gradient(90deg, #f2f8f5, #f8faf9, #f2f8f5);
  animation: pulse 1.4s infinite;
}

.filter-chip {
  display: inline-flex;
  margin: 4px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e8f4ef;
  color: #0a8062;
}

@keyframes pulse {
  0% { opacity: .7; }
  50% { opacity: 1; }
  100% { opacity: .7; }
}

@media (max-width: 1024px) {
  .desktop-links,
  .account-actions {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .mobile-menu:not([hidden]) {
    display: grid;
    gap: 4px;
  }

  .nav-search {
    flex: 1 1 auto;
    min-width: 240px;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .filters,
  .panel {
    grid-template-columns: 1fr;
  }

  .grid,
  .grid.three {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 38px;
  }

  .table {
    display: block;
    overflow-x: auto;
  }
}
