/* Soft mint-white site atmosphere */
body.kh-atelier,
body.kh-atelier #page,
body.kh-atelier .site,
.kh-sp-main {
  background-color: #F5F8F5 !important;
}

/* Prevent horizontal page spill (100vw / floats / wide grids) */
html:has(body.kh-atelier),
body.kh-atelier {
  overflow-x: clip;
  max-width: 100%;
}

body.kh-atelier #page,
body.kh-atelier .site,
body.kh-atelier .kh-checkout-shell {
  max-width: 100%;
  overflow-x: clip;
}

/* KH Chrome — Digikala-inspired header/footer for herbal store */
.kh-chrome-header,
.kh-chrome-footer,
.kh-chrome-header button,
.kh-chrome-header input {
  font-family: "Vazirmatn", "IRANYekan", Tahoma, sans-serif;
}

.kh-chrome-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: #fff;
  border-bottom: 1px solid #E6DDD0;
  box-shadow: 0 6px 20px rgba(30, 74, 52, .04);
  transition: box-shadow 0.28s ease;
}

/* Scroll collapse — full header at top, compact slim bar when scrolled */
.kh-chrome-top,
.kh-chrome-navwrap {
  max-height: 140px;
  opacity: 1;
  /* visible when expanded so mega-menu is not clipped */
  overflow: visible;
  transition:
    max-height 0.32s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.22s ease,
    border-color 0.22s ease;
}

.kh-chrome-main__inner {
  transition: padding 0.28s ease, gap 0.28s ease;
}

.kh-chrome-logo img {
  transition: width 0.28s ease;
}

.kh-chrome-header.is-collapsed {
  box-shadow: 0 4px 16px rgba(30, 74, 52, .08);
}

.kh-chrome-header.is-collapsed .kh-chrome-top,
.kh-chrome-header.is-collapsed .kh-chrome-navwrap {
  max-height: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  border-width: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.kh-chrome-header.is-collapsed .kh-chrome-navwrap {
  border-top-color: transparent;
}

.kh-chrome-header.is-collapsed .kh-chrome-main__inner {
  padding-top: 6px;
  padding-bottom: 6px;
  gap: 12px;
}

.kh-chrome-header.is-collapsed .kh-chrome-logo img {
  width: 76px;
}

.kh-chrome-header.is-collapsed .kh-chrome-search input {
  padding-top: 10px;
  padding-bottom: 10px;
}

.kh-chrome-header.is-collapsed .kh-chrome-cats.is-open .kh-chrome-mega {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .kh-chrome-top,
  .kh-chrome-navwrap,
  .kh-chrome-main__inner,
  .kh-chrome-logo img,
  .kh-chrome-header {
    transition: none !important;
  }
}

.kh-chrome-top {
  background: #1E4A34;
  color: #fff;
  font-size: 12px;
}
.kh-chrome-top__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.kh-chrome-top__phones {
  display: flex;
  gap: 12px;
}
.kh-chrome-top__phones a,
.kh-chrome-top__support {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.kh-chrome-top__phones a:hover,
.kh-chrome-top__support:hover { text-decoration: underline; }
.kh-chrome-top__msg {
  margin: 0;
  opacity: .9;
  text-align: center;
  flex: 1;
}

.kh-chrome-main__inner,
.kh-chrome-navwrap__inner,
.kh-chrome-trust__inner,
.kh-chrome-foot__inner,
.kh-chrome-copy__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.kh-chrome-main__inner {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 10px;
}
.kh-chrome-logo img {
  display: block;
  width: 112px;
  height: auto;
}

.kh-chrome-search {
  display: flex;
  background: #F0F5F1;
  border: 1px solid #D8E2DA;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.kh-chrome-search:focus-within {
  border-color: #2F6B45;
  box-shadow: 0 0 0 3px rgba(47, 107, 69, .12);
  background: #fff;
}
.kh-chrome-search input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 13px 16px;
  font: inherit;
  font-size: 13px;
  outline: none;
  min-width: 0;
}
.kh-chrome-search button {
  border: 0;
  background: #1E4A34;
  color: #fff;
  width: 52px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.kh-chrome-search button:hover { background: #2F6B45; }

.kh-chrome-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.kh-chrome-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1E4A34;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background .2s;
}
.kh-chrome-action:hover { background: #F5F8F5; }
.kh-chrome-action__ico {
  position: relative;
  display: inline-flex;
  color: #1E4A34;
}
.kh-chrome-badge {
  position: absolute;
  top: -7px;
  inset-inline-end: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #C45C26;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.kh-chrome-badge[hidden] { display: none !important; }

/* Mini-cart hover panel */
.kh-minicart {
  position: relative;
}
.kh-minicart .kh-chrome-action {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 6px 10px;
}
.kh-minicart .kh-chrome-action__ico {
  position: absolute;
  top: 8px;
  right: 10px;
}
.kh-minicart__label {
  padding-right: 30px;
  font-size: 12px;
  font-weight: 700;
  color: #1E4A34;
  line-height: 1.2;
}
.kh-minicart__count-text {
  padding-right: 30px;
  font-size: 11px;
  font-weight: 600;
  color: #6B655C;
  line-height: 1.2;
}
.kh-minicart__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #D8E2DA;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(30, 74, 52, .14);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 500;
}
.kh-minicart:hover .kh-minicart__panel,
.kh-minicart.is-open .kh-minicart__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.kh-minicart__empty {
  padding: 18px 12px;
  text-align: center;
}
.kh-minicart__empty strong {
  display: block;
  color: #1E4A34;
  margin-bottom: 6px;
  font-size: 14px;
}
.kh-minicart__empty p {
  margin: 0 0 12px;
  color: #6B655C;
  font-size: 12.5px;
  line-height: 1.7;
}
.kh-minicart__empty a {
  display: inline-flex;
  text-decoration: none !important;
  background: #1E4A34;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 14px;
}
.kh-minicart__list {
  max-height: 280px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kh-minicart__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 24px;
  gap: 10px;
  align-items: start;
  padding: 8px;
  border-radius: 12px;
  background: #FAFCFA;
  border: 1px solid #E7EEE8;
}
.kh-minicart__thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: #EEF3EF;
  border-radius: 10px;
  overflow: hidden;
}
.kh-minicart__img,
.kh-minicart__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.kh-minicart__name {
  display: block;
  text-decoration: none !important;
  color: #1E4A34 !important;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
  margin-bottom: 4px;
}
.kh-minicart__qty {
  font-size: 11.5px;
  color: #6B655C;
  margin-left: 4px;
}
.kh-minicart__price {
  font-size: 12.5px;
  font-weight: 700;
  color: #2F6B45;
}
.kh-minicart__remove {
  text-decoration: none !important;
  color: #8A7F72 !important;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  border-radius: 8px;
}
.kh-minicart__remove:hover { color: #C45C26 !important; background: #F8EEE8; }
.kh-minicart__foot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #D8E2DA;
}
.kh-minicart__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  color: #6B655C;
}
.kh-minicart__total strong {
  color: #1E4A34;
  font-size: 15px;
}
.kh-minicart__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.kh-minicart__btn {
  text-align: center;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 12px;
  background: #1E4A34;
  color: #fff !important;
  border: 1px solid #1E4A34;
}
.kh-minicart__btn.is-ghost {
  background: #fff;
  color: #1E4A34 !important;
}
.kh-minicart__btn:hover { background: #2F6B45; border-color: #2F6B45; color: #fff !important; }
.kh-minicart__btn.is-ghost:hover { background: #EEF3EF; color: #1E4A34 !important; border-color: #C5D4C8; }

.kh-chrome-navwrap {
  border-top: 1px solid #F0E8DB;
  background: #fff;
}
.kh-chrome-navwrap__inner {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-height: 46px;
}

.kh-chrome-cats {
  position: relative;
  flex: 0 0 auto;
}
.kh-chrome-cats__btn {
  height: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: #1E4A34;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  transition: background .2s;
}
.kh-chrome-cats__chev {
  opacity: .85;
  transition: transform .2s ease;
}
.kh-chrome-cats__btn:hover,
.kh-chrome-cats.is-open .kh-chrome-cats__btn { background: #2F6B45; }
.kh-chrome-cats.is-open .kh-chrome-cats__chev { transform: rotate(180deg); }

.kh-chrome-mega {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  z-index: 60;
  width: min(780px, calc(100vw - 24px));
  background: #fff;
  border: 1px solid #D8E2DA;
  border-radius: 0 14px 14px 14px;
  box-shadow: 0 22px 48px rgba(30, 74, 52, .14);
  overflow: hidden;
}
.kh-chrome-mega[hidden] { display: none !important; }
.kh-chrome-mega__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 280px;
}
.kh-chrome-mega__rail {
  background: #F5F8F5;
  border-left: 1px solid #E7EEE8;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kh-chrome-mega__tab {
  appearance: none;
  width: 100%;
  text-align: right;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  font-family: inherit;
  color: #243028;
  transition: background .15s, color .15s;
}
.kh-chrome-mega__tab strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1E4A34;
  line-height: 1.4;
  margin-bottom: 2px;
}
.kh-chrome-mega__tab span {
  font-size: 11px;
  color: #8A8378;
  font-weight: 600;
}
.kh-chrome-mega__tab:hover,
.kh-chrome-mega__tab.is-active {
  background: #fff;
  box-shadow: 0 1px 0 rgba(30, 74, 52, .06);
}
.kh-chrome-mega__tab.is-active strong { color: #2F6B45; }
.kh-chrome-mega__shop {
  margin-top: auto;
  text-align: center;
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 800;
  color: #1E4A34 !important;
  padding: 10px;
  border-radius: 10px;
  border: 1px dashed #C5D4C8;
  background: #fff;
}
.kh-chrome-mega__shop:hover { border-color: #2F6B45; color: #2F6B45 !important; }

.kh-chrome-mega__panels {
  padding: 18px 18px 16px;
  background: #fff;
}
.kh-chrome-mega__panel[hidden] { display: none !important; }
.kh-chrome-mega__panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.kh-chrome-mega__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  color: #B58E47;
  letter-spacing: .08em;
}
.kh-chrome-mega__panel-head h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #1E4A34;
  font-weight: 700;
}
.kh-chrome-mega__seeall {
  flex-shrink: 0;
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 700;
  color: #2F6B45 !important;
  background: #EEF3EF;
  border: 1px solid #D5E0D7;
  border-radius: 999px;
  padding: 7px 12px;
}
.kh-chrome-mega__seeall:hover { background: #E0EBE3; }

.kh-chrome-mega__subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.kh-chrome-mega__subs a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: #243028 !important;
  background: #FAFCFA;
  border: 1px solid #E7EEE8;
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color .15s, background .15s, transform .15s;
}
.kh-chrome-mega__subs a:hover {
  background: #EEF3EF;
  border-color: #C5D4C8;
  transform: translateY(-1px);
}
.kh-chrome-mega__subs em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #8A8378;
  background: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  border: 1px solid #E7EEE8;
}
.kh-chrome-mega__solo {
  margin: 0 0 12px;
  color: #6B655C;
  font-size: 13.5px;
  line-height: 1.75;
}
.kh-chrome-mega__cta {
  display: inline-flex;
  text-decoration: none !important;
  background: #1E4A34;
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
}
.kh-chrome-mega__cta:hover { background: #2F6B45; }
.kh-chrome-mega__hints {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #D8E2DA;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.kh-chrome-mega__hints a {
  text-decoration: none !important;
  font-size: 12.5px;
  font-weight: 700;
  color: #6B655C !important;
}
.kh-chrome-mega__hints a:hover { color: #2F6B45 !important; }

.kh-chrome-nav {
  flex: 1;
  overflow-x: auto;
}
.kh-chrome-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px 2px;
  min-height: 46px;
}
.kh-chrome-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #243028;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: .88;
}
.kh-chrome-nav a:hover,
.kh-chrome-nav li.is-active a {
  color: #1E4A34;
  background: #EEF3EF;
  opacity: 1;
}
.kh-chrome-nav li.is-pinned a {
  opacity: 1;
  font-weight: 700;
}
.kh-chrome-pin {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #B58E47;
  box-shadow: 0 0 0 3px rgba(181, 142, 71, .18);
  flex-shrink: 0;
}

/* Footer */
.kh-chrome-footer {
  margin-top: 40px;
  background: #EEF3EF;
  border-top: 1px solid #D8E2DA;
}
.kh-chrome-trust {
  background: #fff;
  border-bottom: 1px solid #EDE4D6;
}
.kh-chrome-trust__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.kh-chrome-trust__item {
  text-align: center;
  padding: 8px;
}
.kh-chrome-trust__item strong {
  display: block;
  color: #1E4A34;
  font-size: 13px;
  margin-bottom: 4px;
}
.kh-chrome-trust__item span {
  color: #6B655C;
  font-size: 12px;
  line-height: 1.6;
}

.kh-chrome-foot__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  padding-top: 36px;
  padding-bottom: 28px;
}
.kh-chrome-foot__brand img {
  width: 88px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}
.kh-chrome-foot__brand p {
  margin: 0 0 14px;
  color: #6B655C;
  font-size: 13px;
  line-height: 1.85;
  max-width: 28em;
}
.kh-chrome-foot h3 {
  margin: 0 0 12px;
  color: #1E4A34;
  font-size: 14px;
}
.kh-chrome-foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kh-chrome-foot li { margin-bottom: 8px; }
.kh-chrome-foot a {
  color: #4A453E;
  text-decoration: none;
  font-size: 13px;
}
.kh-chrome-foot a:hover { color: #2F6B45; }
.kh-chrome-foot__contact li {
  color: #4A453E;
  font-size: 13px;
  line-height: 1.7;
}
.kh-chrome-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kh-chrome-social a {
  background: #fff;
  border: 1px solid #D8E2DA;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1E4A34 !important;
}
.kh-chrome-social a:hover { border-color: #2F6B45; }

.kh-chrome-copy {
  background: #1E4A34;
  color: #fff;
}
.kh-chrome-copy__inner {
  padding-top: 12px;
  padding-bottom: 12px;
}
.kh-chrome-copy p {
  margin: 0;
  font-size: 12px;
  opacity: .9;
  text-align: center;
}

/* Digikala-like related on product */
.kh-related {
  margin-top: 8px;
}
.kh-related__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.kh-related__head h2 {
  margin: 0;
  font-size: 1.25rem;
  color: #1E4A34;
}
.kh-related__head p {
  margin: 4px 0 0;
  color: #6B655C;
  font-size: 12px;
}
.kh-related__all {
  color: #2F6B45;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.kh-related__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.kh-related__card {
  background: #fff;
  border: 1px solid #DCE5DE;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
}
.kh-related__card:hover {
  transform: translateY(-3px);
  border-color: #D5C7B0;
  box-shadow: 0 12px 28px rgba(30, 74, 52, .08);
}
.kh-related__discount {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  background: #C45C26;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 4px 7px;
}
.kh-related__media {
  aspect-ratio: 1;
  background: #EEF3EF;
  display: grid;
  place-items: center;
}
.kh-related__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.kh-related__body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.kh-related__body strong {
  font-size: 12.5px;
  line-height: 1.55;
  color: #243028;
  font-weight: 600;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.kh-related__price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.kh-related__price-row .amount {
  color: #2F6B45 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}
.kh-related__price-row del .amount {
  color: #9A9288 !important;
  font-size: 11px !important;
  font-weight: 500 !important;
}
.kh-related__cta {
  display: block;
  text-align: center;
  background: #F0F6F1;
  color: #1E4A34;
  font-size: 12px;
  font-weight: 700;
  padding: 8px;
  border-radius: 10px;
  margin-top: 2px;
}
.kh-related__card:hover .kh-related__cta {
  background: #1E4A34;
  color: #fff;
}

/* Product services strip (Digikala-like) */
.kh-sp__services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 22px;
  padding: 12px 0 0;
  border-top: 1px solid #D8E2DA;
}
.kh-sp__service {
  background: #fff;
  border: 1px solid #DCE5DE;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.kh-sp__service strong {
  display: block;
  font-size: 12px;
  color: #1E4A34;
  margin-bottom: 2px;
}
.kh-sp__service span {
  font-size: 11px;
  color: #6B655C;
}

@media (max-width: 960px) {
  .kh-chrome-main__inner {
    grid-template-columns: 90px minmax(0, 1fr);
    grid-template-areas:
      "logo actions"
      "search search";
  }
  .kh-chrome-logo { grid-area: logo; }
  .kh-chrome-logo img { width: 84px; }
  .kh-chrome-search { grid-area: search; }
  .kh-chrome-actions { grid-area: actions; justify-self: end; }
  .kh-chrome-action span:not(.kh-chrome-action__ico) { display: none; }
  .kh-chrome-top__msg { display: none; }

  .kh-chrome-header.is-collapsed .kh-chrome-main__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo search actions";
    align-items: center;
  }
  .kh-chrome-header.is-collapsed .kh-chrome-search {
    grid-area: search;
  }
  .kh-chrome-header.is-collapsed .kh-chrome-search input {
    padding: 9px 12px;
    font-size: 12px;
  }
  .kh-chrome-header.is-collapsed .kh-chrome-search button {
    width: 44px;
  }
  .kh-chrome-header.is-collapsed .kh-chrome-logo img {
    width: 64px;
  }
  .kh-chrome-trust__inner,
  .kh-chrome-foot__inner { grid-template-columns: 1fr 1fr; }
  .kh-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kh-sp__services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .kh-chrome-trust__inner,
  .kh-chrome-foot__inner { grid-template-columns: 1fr; }
  .kh-chrome-cats__btn { font-size: 12px; padding: 0 12px; }
  .kh-minicart__panel {
    position: fixed;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    right: 12px;
    width: auto;
  }
  .kh-minicart__count-text { display: none; }

  .kh-chrome-mega {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    max-height: min(72vh, 560px);
    border-radius: 16px;
    overflow: auto;
  }
  .kh-chrome-mega__inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .kh-chrome-mega__rail {
    border-left: 0;
    border-bottom: 1px solid #E7EEE8;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 10px;
  }
  .kh-chrome-mega__tab {
    flex: 0 0 auto;
    min-width: 120px;
    text-align: center;
    background: #fff;
    border: 1px solid #E7EEE8;
  }
  .kh-chrome-mega__tab.is-active {
    border-color: #2F6B45;
    background: #EEF3EF;
  }
  .kh-chrome-mega__shop {
    display: none;
  }
  .kh-chrome-mega__subs {
    grid-template-columns: 1fr;
  }
  .kh-chrome-mega__panels {
    padding: 14px;
  }
}

/* Internal linking hubs */
.kh-il-box,
.kh-il-post-hub,
.kh-il-cat {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #D8E2DA;
  border-radius: 14px;
  background: #FAFCFA;
  font-family: "Vazirmatn", "IRANYekan", Tahoma, sans-serif;
}
.kh-il-box h2,
.kh-il-post-hub strong {
  margin: 0 0 10px;
  color: #1E4A34;
  font-size: 1.05rem;
}
.kh-il-box ul,
.kh-il-post-hub ul {
  margin: 0;
  padding: 0 1.1rem 0 0;
}
.kh-il-box li,
.kh-il-post-hub li {
  margin: 0 0 8px;
  line-height: 1.7;
}
.kh-il-box a,
.kh-il-post-hub a,
.kh-il-cat a,
.kh-il-inline a {
  color: #2F6B45;
  font-weight: 700;
  text-decoration: none;
}
.kh-il-box a:hover,
.kh-il-post-hub a:hover,
.kh-il-cat a:hover {
  text-decoration: underline;
}
.kh-il-inline {
  margin-top: 18px;
  padding: 12px 14px;
  border-right: 3px solid #2F6B45;
  background: #F5F8F5;
  font-size: 14px;
  line-height: 1.85;
  color: #4A453E;
}
.kh-il-cat {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
}
