/* Vazirmatn — https://github.com/rastikerdar/vazirmatn (OFL-1.1) — فایل‌های woff2 در static/fonts/vazirmatn/ */
@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn/Vazirmatn-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn/Vazirmatn-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn/Vazirmatn-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Vazirmatn;
  src: url("fonts/vazirmatn/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root,
[data-bs-theme="light"] {
  --bk-radius: 1rem;
  --bk-bottom-nav-h: 4.125rem;
  --bs-font-sans-serif: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--bs-font-sans-serif);

  /* تم برند: سبز تیره + لیمویی (الهام VIVUP / عمده سالم) */
  --bk-green: #053825;
  --bk-green-rgb: 5, 56, 37;
  --bk-lime: #a7cf3b;
  --bk-lime-rgb: 167, 207, 59;
  --bk-lime-hover: #94b82e;
  --bk-page-bg: #f5f9f7;
  --bk-ink: #0d281c;
  --bk-line: rgba(5, 56, 37, 0.08);
  --bk-line-strong: rgba(5, 56, 37, 0.14);
  --bk-shadow-xs: 0 1px 2px rgba(5, 56, 37, 0.04);
  --bk-shadow-nav: 0 0.25rem 1rem rgba(5, 56, 37, 0.06);
  --bk-shadow-card: 0 1px 2px rgba(5, 56, 37, 0.04), 0 10px 40px rgba(5, 56, 37, 0.06);
  --bk-shadow-card-hover: 0 16px 48px rgba(5, 56, 37, 0.11);
  --bk-ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* نوار دوم هدر (دسکتاپ) + نوار جستجوی موبایل — یک خانوادهٔ بصری */
  --bk-subnav-bg: linear-gradient(180deg, #f2f7f3 0%, #e8f1eb 100%);
  --bk-subnav-bg-mobile: linear-gradient(180deg, #f0f6f2 0%, #f7fbf8 50%, #ffffff 100%);
  --bk-subnav-border: rgba(5, 56, 37, 0.09);

  --bs-body-bg: var(--bk-page-bg);
  --bs-body-color: var(--bk-ink);
  --bs-tertiary-bg: #e9f2ec;
  --bs-secondary-bg: #ffffff;

  --bs-primary: #053825;
  --bs-primary-rgb: 5, 56, 37;
  --bs-primary-text-emphasis: #021910;
  --bs-primary-bg-subtle: #e3f0e8;
  --bs-primary-border-subtle: rgba(167, 207, 59, 0.55);
  --bs-link-color: #0a5c3d;
  --bs-link-hover-color: #053825;
  --bs-link-color-rgb: 10, 92, 61;
  --bs-focus-ring-color: rgba(5, 56, 37, 0.28);
}

/* CTA اصلی: پس‌زمینه لیمویی، متن سبز تیره (مثل بنر) */
.btn-primary {
  --bs-btn-color: #053825;
  --bs-btn-bg: #a7cf3b;
  --bs-btn-border-color: #8fb332;
  --bs-btn-hover-color: #053825;
  --bs-btn-hover-bg: #94b82e;
  --bs-btn-hover-border-color: #7fa028;
  --bs-btn-focus-shadow-rgb: 167, 207, 59;
  --bs-btn-active-color: #053825;
  --bs-btn-active-bg: #8fb332;
  --bs-btn-active-border-color: #7fa028;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.12);
  --bs-btn-disabled-color: rgba(5, 56, 37, 0.55);
  --bs-btn-disabled-bg: rgba(167, 207, 59, 0.55);
  --bs-btn-disabled-border-color: rgba(143, 179, 50, 0.45);
  font-weight: 600;
}

.btn-outline-primary {
  --bs-btn-color: #053825;
  --bs-btn-border-color: #053825;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #053825;
  --bs-btn-hover-border-color: #053825;
  --bs-btn-focus-shadow-rgb: 5, 56, 37;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #042818;
  --bs-btn-active-border-color: #032013;
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.15);
  --bs-btn-disabled-color: #053825;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: rgba(5, 56, 37, 0.35);
  --bs-gradient: none;
  font-weight: 600;
}

.bk-body {
  background-color: var(--bk-page-bg);
  color: var(--bk-ink);
}

/* هدر: سطح‌بندی، عمق ملایم، هماهنگ با برند */
.bk-navbar {
  border-bottom: 1px solid var(--bk-line);
  background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
}

.bk-navbar .nav-link:not(.bk-nav-action) {
  color: rgba(5, 56, 37, 0.88);
  font-weight: 500;
}

.bk-navbar .nav-link:not(.bk-nav-action):hover,
.bk-navbar .nav-link:not(.bk-nav-action):focus {
  color: var(--bk-green);
}

/* دسکتاپ: منوی همبرگری را کامل مخفی کن (ردیف اول = لوگو + جستجو + سبد + پروفایل) */
@media (min-width: 992px) {
  .bk-navbar.navbar-expand-lg .navbar-collapse.bk-nav-collapse--mobile {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }

  .bk-navbar.navbar-expand-lg .navbar-collapse.bk-nav-collapse--mobile.collapse.show {
    display: none !important;
  }
}

.bk-navbar__desktop-tools .bk-nav-action {
  white-space: nowrap;
}

/* نوار دوم دسکتاپ: ناوبری پیل‌مانند، هم‌رنگ با نوار جستجوی موبایل */
.bk-desktop-subnav {
  background: var(--bk-subnav-bg);
  border-bottom: 1px solid var(--bk-subnav-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.bk-desktop-subnav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  row-gap: 0.45rem;
  padding: 0.55rem 0;
  min-height: 2.85rem;
}

.bk-desktop-subnav__item {
  list-style: none;
  display: flex;
  align-items: center;
}

.bk-desktop-subnav__item--push {
  margin-inline-start: auto;
}

.bk-desktop-subnav__sep {
  list-style: none;
  width: 1px;
  height: 1.2rem;
  margin: 0 0.15rem;
  flex-shrink: 0;
  align-self: center;
  background: rgba(5, 56, 37, 0.12);
  border-radius: 1px;
}

.bk-desktop-subnav__ico {
  font-size: 1rem;
  opacity: 0.88;
  flex-shrink: 0;
}

.bk-desktop-subnav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(5, 56, 37, 0.82);
  text-decoration: none;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 2px rgba(5, 56, 37, 0.04);
  transition:
    color 0.18s var(--bk-ease),
    background-color 0.18s var(--bk-ease),
    border-color 0.18s var(--bk-ease),
    box-shadow 0.18s var(--bk-ease),
    filter 0.15s var(--bk-ease);
}

.bk-desktop-subnav__link:not(.bk-desktop-subnav__link--active):hover,
.bk-desktop-subnav__link:not(.bk-desktop-subnav__link--active):focus {
  color: var(--bk-green);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(5, 56, 37, 0.1);
  box-shadow: 0 1px 4px rgba(5, 56, 37, 0.06);
}

.bk-desktop-subnav__link:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.28);
  outline-offset: 2px;
}

.bk-desktop-subnav__link--active {
  color: #fff !important;
  background: linear-gradient(180deg, rgba(5, 56, 37, 0.95) 0%, #053825 100%);
  border-color: rgba(5, 56, 37, 0.35);
  box-shadow: 0 2px 8px rgba(5, 56, 37, 0.18);
}

.bk-desktop-subnav__link--active .bk-desktop-subnav__ico {
  opacity: 1;
  color: var(--bk-lime);
}

.bk-desktop-subnav__link--active:hover,
.bk-desktop-subnav__link--active:focus {
  color: #fff !important;
  background: linear-gradient(180deg, #064a32 0%, #053825 100%);
  border-color: rgba(167, 207, 59, 0.45);
  box-shadow: 0 2px 12px rgba(5, 56, 37, 0.25);
  filter: none;
}

.bk-desktop-subnav__link--active:hover .bk-desktop-subnav__ico,
.bk-desktop-subnav__link--active:focus .bk-desktop-subnav__ico {
  color: var(--bk-lime);
  opacity: 1;
}

.bk-desktop-subnav__link--muted {
  font-weight: 500;
  color: rgba(5, 56, 37, 0.48);
  background: rgba(255, 255, 255, 0.2);
}

.bk-desktop-subnav__link--muted .bk-desktop-subnav__ico {
  opacity: 0.75;
}

.bk-desktop-subnav__link--muted:hover,
.bk-desktop-subnav__link--muted:focus {
  color: #b02a37 !important;
  background: rgba(220, 53, 69, 0.08);
  border-color: rgba(220, 53, 69, 0.18);
  box-shadow: none;
}

/* منو و اکشن‌های هدر: پیل یکدست (لینک ناوبری + دکمه‌های کنارش) */
.bk-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 2.35rem;
  padding: 0.42rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  border-radius: 999px;
  border: 1px solid rgba(5, 56, 37, 0.14);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(13, 40, 28, 0.92) !important;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(5, 56, 37, 0.05);
  transition:
    background-color 0.18s var(--bk-ease),
    border-color 0.18s var(--bk-ease),
    color 0.18s var(--bk-ease),
    box-shadow 0.18s var(--bk-ease),
    filter 0.15s var(--bk-ease);
}

.bk-navbar .nav-link.bk-nav-action {
  padding: 0.42rem 0.85rem;
}

a.bk-nav-action:hover,
a.bk-nav-action:focus {
  color: var(--bk-green) !important;
  border-color: rgba(167, 207, 59, 0.42);
  background: rgba(167, 207, 59, 0.1);
  box-shadow: 0 1px 3px rgba(5, 56, 37, 0.06);
}

a.bk-nav-action:focus-visible {
  outline: 2px solid rgba(var(--bs-primary-rgb), 0.35);
  outline-offset: 2px;
}

.bk-nav-action .bi {
  font-size: 1.05em;
  opacity: 0.92;
}

.bk-nav-action--primary {
  background: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  color: #fff !important;
  box-shadow: 0 1px 3px rgba(var(--bs-primary-rgb), 0.28);
}

a.bk-nav-action--primary:hover,
a.bk-nav-action--primary:focus {
  color: #fff !important;
  filter: brightness(0.96);
  border-color: var(--bs-primary) !important;
  background: var(--bs-primary) !important;
}

.bk-nav-action--cart {
  border-color: rgba(167, 207, 59, 0.48) !important;
  background: rgba(167, 207, 59, 0.12) !important;
  color: var(--bk-green) !important;
  font-weight: 700;
}

a.bk-nav-action--cart:hover,
a.bk-nav-action--cart:focus {
  color: var(--bk-green) !important;
  border-color: rgba(5, 56, 37, 0.2) !important;
  background: rgba(167, 207, 59, 0.2) !important;
}

.bk-navbar__container {
  position: relative;
}

.bk-navbar-brand {
  transition: opacity 0.2s var(--bk-ease);
}

.bk-navbar-brand:focus-visible {
  outline: 2px solid rgba(167, 207, 59, 0.8);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

@media (hover: hover) and (pointer: fine) {
  .bk-navbar-brand:hover {
    opacity: 0.9;
  }

  .bk-navbar-brand:hover .bk-navbar-brand__logo {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-navbar-brand,
  .bk-navbar-brand__logo,
  .bk-nav-toggler,
  .bk-nav-search-mobile__input,
  .bk-nav-search-desktop__input {
    transition: none !important;
  }

  .bk-navbar-brand:hover .bk-navbar-brand__logo {
    transform: none;
  }

  .bk-nav-toggler:active {
    transform: none;
  }
}

.bk-nav-toggler {
  border: 1px solid rgba(5, 56, 37, 0.12) !important;
  background: linear-gradient(180deg, #fff, #f4f9f6);
  transition:
    box-shadow 0.2s var(--bk-ease),
    transform 0.15s var(--bk-ease),
    border-color 0.2s var(--bk-ease);
}

.bk-nav-toggler:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.2);
}

.bk-nav-toggler:active {
  transform: scale(0.97);
}

.bk-nav-actions--end {
  align-items: stretch;
}

@media (max-width: 991.98px) {
  .bk-nav-actions--end {
    width: 100%;
    margin-top: 0.25rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(5, 56, 37, 0.08);
    gap: 0.5rem !important;
  }
}

@media (min-width: 992px) {
  .bk-nav-actions--end {
    align-items: center;
    flex-shrink: 0;
    margin-inline-start: 0.35rem;
  }
}

.bk-navbar-brand__logo {
  display: block;
  height: 2.15rem;
  width: auto;
  max-width: min(52vw, 10.5rem);
  object-fit: contain;
  object-position: center;
  transition: transform 0.25s var(--bk-ease);
}

@media (min-width: 400px) {
  .bk-navbar-brand__logo {
    height: 2.35rem;
    max-width: min(48vw, 11.5rem);
  }
}

@media (min-width: 992px) {
  .bk-navbar-brand__logo {
    height: 2.55rem;
    max-width: 13rem;
  }
}

/* فوتر: نوار پایین تیره مثل بنر */
.bk-footer__heading {
  color: var(--bk-green);
  font-size: 0.95rem;
}

.bk-footer__links a {
  color: rgba(13, 40, 28, 0.72);
}

.bk-footer__links a:hover {
  color: var(--bk-green);
}

.bk-footer__bar {
  background: var(--bk-green);
  color: #fff;
}

.bk-footer__bar-tagline {
  opacity: 0.78;
  font-size: 0.8125rem;
}

.bk-footer__links--support .text-muted {
  color: rgba(13, 40, 28, 0.55) !important;
}

.pagination {
  --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.22);
  --bs-pagination-active-bg: var(--bs-primary);
  --bs-pagination-active-border-color: var(--bs-primary);
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.45);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.18);
}

.form-check-input:focus {
  border-color: rgba(var(--bs-primary-rgb), 0.5);
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.2);
}

.form-check-input:checked,
.form-check-input[type="checkbox"]:indeterminate {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--bs-body-font-family);
  font-feature-settings: "ss01" 1, "ss02" 1;
  padding-bottom: env(safe-area-inset-bottom, 0);
  padding-inline: env(safe-area-inset-left, 0) env(safe-area-inset-right, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bk-main {
  min-height: 58vh;
}

.bk-main .display-1,
.bk-main .display-2,
.bk-main h1,
.bk-main .h1 {
  letter-spacing: -0.03em;
  color: var(--bk-green);
}

.bk-main h2,
.bk-main .h2,
.bk-main h3,
.bk-main .h3 {
  letter-spacing: -0.02em;
}

@media (max-width: 991.98px) {
  .bk-main--with-tabbar {
    padding-bottom: calc(var(--bk-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 1rem) !important;
  }
}

/* منوی پایین موبایل */
.bk-bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1040;
  padding-bottom: env(safe-area-inset-bottom, 0);
  border-top: 1px solid var(--bk-line) !important;
  box-shadow: 0 -4px 24px rgba(5, 56, 37, 0.07);
}

.bk-bottom-nav__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  min-height: var(--bk-bottom-nav-h);
  gap: 0.125rem;
}

.bk-bottom-nav__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.42rem 0.25rem;
  text-decoration: none;
  color: var(--bs-secondary-color);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease, background-color 0.15s ease;
  border-radius: 0.65rem 0.65rem 0 0;
}

.bk-bottom-nav__item:active {
  background-color: var(--bs-tertiary-bg);
}

.bk-bottom-nav__icon {
  font-size: 1.55rem;
  line-height: 1;
  opacity: 0.88;
  filter: drop-shadow(0 1px 1px rgba(5, 56, 37, 0.1));
  transition: transform 0.15s var(--bk-ease), opacity 0.15s ease;
}

.bk-bottom-nav__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* چهار تب: برچسب کوتاه‌تر؛ «سبد خرید» دو خط */
.bk-bottom-nav--four .bk-bottom-nav__label {
  font-size: 0.58rem;
  line-height: 1.15;
}

.bk-bottom-nav--four .bk-bottom-nav__icon {
  font-size: 1.48rem;
}

.bk-bottom-nav__label--twoline {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 4.1rem;
  text-align: center;
  hyphens: auto;
}

.bk-bottom-nav__item--active {
  color: var(--bk-green);
  position: relative;
}

.bk-bottom-nav__item--active::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 18%;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--bk-lime);
}

.bk-bottom-nav__item--active .bk-bottom-nav__icon {
  opacity: 1;
  color: var(--bk-lime);
  filter: drop-shadow(0 1px 2px rgba(167, 207, 59, 0.35));
  transform: translateY(-1px);
}

.bk-bottom-nav__item:active .bk-bottom-nav__icon {
  transform: scale(0.94);
}

.bk-bottom-nav__count {
  position: absolute;
  top: -0.2rem;
  inset-inline-end: -0.35rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
  color: #fff;
  background: var(--bk-green);
  border-radius: 50rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* نوار موبایل: لینک‌های هدر قابل لمس */
@media (max-width: 991.98px) {
  .bk-navbar .nav-link:not(.bk-nav-action) {
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
  }

  .bk-navbar .nav-link:not(.bk-nav-action):active {
    background-color: var(--bs-tertiary-bg);
  }

  .bk-nav-action {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .bk-navbar .navbar-nav .nav-link.bk-nav-action {
    width: 100%;
    justify-content: center;
    padding: 0.62rem 0.85rem;
  }

  .bk-nav-action:active {
    background-color: rgba(5, 56, 37, 0.06) !important;
  }

  .bk-nav-action--primary:active {
    filter: brightness(0.92);
  }

  .bk-nav-toggler {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .bk-nav-search .form-control {
    min-height: 2.75rem;
  }

  /* منوی موبایل: صفحات — اولویت بصری */
  .bk-nav-pages-mobile {
    margin-bottom: 0.75rem;
  }

  .bk-nav-pages-mobile__panel {
    padding: 0.9rem 1rem 1rem;
    border-radius: 1rem;
    background: linear-gradient(
      165deg,
      rgba(var(--bk-lime-rgb), 0.18) 0%,
      rgba(255, 255, 255, 0.92) 38%,
      #fff 100%
    );
    border: 1px solid rgba(5, 56, 37, 0.1);
    box-shadow:
      0 1px 2px rgba(5, 56, 37, 0.05),
      0 10px 28px rgba(5, 56, 37, 0.07);
  }

  .bk-nav-pages-mobile__head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(5, 56, 37, 0.09);
  }

  .bk-nav-pages-mobile__head-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.15rem;
    height: 2.15rem;
    margin-top: 0.12rem;
    border-radius: 0.6rem;
    background: rgba(5, 56, 37, 0.09);
    color: var(--bk-green);
    font-size: 1.05rem;
  }

  .bk-nav-pages-mobile__head-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
  }

  .bk-nav-pages-mobile__head-title {
    font-size: 0.9375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bk-green);
  }

  .bk-nav-pages-mobile__head-tagline {
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: rgba(5, 56, 37, 0.72);
  }

  .bk-nav-pages-mobile__list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }

  .bk-nav-pages-mobile__link {
    display: flex;
    align-items: center;
    min-height: 2.7rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.7rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--bk-ink);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(5, 56, 37, 0.07);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 1px 2px rgba(5, 56, 37, 0.04);
    transition:
      background-color 0.15s var(--bk-ease),
      border-color 0.15s var(--bk-ease),
      color 0.15s var(--bk-ease),
      box-shadow 0.15s var(--bk-ease);
  }

  .bk-nav-pages-mobile__link:hover,
  .bk-nav-pages-mobile__link:focus {
    background: #fff;
    border-color: rgba(var(--bk-lime-rgb), 0.5);
    color: var(--bk-green);
    box-shadow:
      inset 0 1px 0 #fff,
      0 0 0 1px rgba(var(--bk-lime-rgb), 0.2);
  }

  .bk-nav-pages-mobile__link:active {
    background: rgba(var(--bk-lime-rgb), 0.14);
    border-color: rgba(5, 56, 37, 0.12);
  }

  /* منوی موبایل: سبد و ابزار — مینیمال، کم‌اهمیت بصری */
  #navMain > .navbar-nav.bk-navbar-nav {
    margin-bottom: 0.35rem !important;
    padding-top: 0.15rem;
    gap: 0.3rem !important;
    flex-direction: column;
    align-items: stretch !important;
  }

  #navMain > .navbar-nav.bk-navbar-nav .nav-item {
    width: 100%;
  }

  #navMain .navbar-nav .nav-link.bk-nav-action {
    flex: 0 0 auto;
    width: 100%;
    justify-content: flex-start;
    text-align: start;
    gap: 0.45rem;
    min-height: 0;
    padding: 0.42rem 0.45rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0;
    border-radius: 0.45rem;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(5, 56, 37, 0.52) !important;
  }

  #navMain .navbar-nav .nav-link.bk-nav-action.bk-nav-action--cart {
    color: rgba(5, 56, 37, 0.52) !important;
    font-weight: 500 !important;
  }

  #navMain .navbar-nav .nav-link.bk-nav-action .bi {
    font-size: 1rem;
    opacity: 0.65;
  }

  #navMain .navbar-nav .nav-link.bk-nav-action:hover,
  #navMain .navbar-nav .nav-link.bk-nav-action:focus {
    background: rgba(5, 56, 37, 0.05) !important;
    color: rgba(5, 56, 37, 0.78) !important;
    border-color: transparent !important;
    box-shadow: none !important;
    filter: none;
  }

  #navMain .navbar-nav .bk-nav-badge {
    font-size: 0.58rem;
    min-width: 1rem;
    padding: 0.12em 0.35em;
    margin-inline-start: 0.2rem;
  }

  #navMain > .bk-nav-actions.bk-nav-actions--end {
    margin-top: 0;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(5, 56, 37, 0.06);
    gap: 0.35rem !important;
  }

  #navMain > .bk-nav-actions.bk-nav-actions--end .bk-nav-action {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: 0;
    min-height: 0;
    padding: 0.38rem 0.45rem;
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0;
    border-radius: 0.45rem;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: rgba(5, 56, 37, 0.48) !important;
    white-space: normal;
    line-height: 1.25;
  }

  #navMain > .bk-nav-actions.bk-nav-actions--end .bk-nav-action .bi {
    font-size: 0.95rem;
    opacity: 0.55;
  }

  #navMain > .bk-nav-actions.bk-nav-actions--end .bk-nav-action--primary {
    background: rgba(5, 56, 37, 0.06) !important;
    border: 1px solid rgba(5, 56, 37, 0.1) !important;
    color: rgba(5, 56, 37, 0.72) !important;
    font-weight: 600;
    box-shadow: none !important;
  }

  #navMain > .bk-nav-actions.bk-nav-actions--end .bk-nav-action:hover,
  #navMain > .bk-nav-actions.bk-nav-actions--end .bk-nav-action:focus {
    filter: none;
    background: rgba(5, 56, 37, 0.08) !important;
    color: var(--bk-green) !important;
    border-color: rgba(5, 56, 37, 0.12) !important;
  }

  #navMain > .bk-nav-actions.bk-nav-actions--end .bk-nav-action--primary:hover,
  #navMain > .bk-nav-actions.bk-nav-actions--end .bk-nav-action--primary:focus {
    color: var(--bk-green) !important;
    background: rgba(5, 56, 37, 0.09) !important;
  }
}

.navbar-collapse.bk-nav-collapse.show {
  overflow: visible;
}

/* هدر چسبان: ناوبری + نوار جستجوی موبایل + پنل نتایج */
.bk-site-header {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(5, 56, 37, 0.06),
    0 10px 40px rgba(5, 56, 37, 0.07);
}

.bk-site-header .bk-navbar {
  box-shadow: none;
}

.bk-nav-search-mobile--bar {
  background: var(--bk-subnav-bg-mobile);
  border-top: 1px solid var(--bk-subnav-border);
  border-bottom: 1px solid var(--bk-subnav-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.bk-nav-search-mobile--bar > .bk-nav-search-mobile__bar-inner,
.bk-nav-search-mobile--bar > .container {
  padding-top: 0.55rem;
  padding-bottom: 0.6rem;
}

.bk-nav-search-mobile__icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 1rem;
  transform: translateY(-50%);
  font-size: 1.05rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  color: var(--bk-green);
}

.bk-nav-search-mobile__input {
  min-height: 2.85rem;
  padding-inline: 2.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 56, 37, 0.1);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    var(--bk-shadow-xs),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s var(--bk-ease), box-shadow 0.2s var(--bk-ease), background 0.2s var(--bk-ease);
}

.bk-nav-search-mobile__input:focus {
  background: #fff;
  border-color: rgba(5, 56, 37, 0.22);
  box-shadow: 0 0 0 0.2rem rgba(167, 207, 59, 0.22);
}

.bk-nav-search-desktop__wrap {
  width: min(22rem, 38vw);
  min-width: 12.5rem;
}

/* دسکتاپ: جستجو بلافاصله بعد از لوگو، عریض‌تر؛ سبد با order-lg-last به سمت چپ می‌رود */
@media (min-width: 992px) {
  .bk-nav-search-desktop--after-logo {
    flex: 1 1 auto;
    min-width: 20rem;
    max-width: min(58rem, 78vw);
  }

  .bk-nav-search-desktop--after-logo .bk-nav-search-desktop__wrap {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

.bk-nav-search-desktop__icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 0.82rem;
  transform: translateY(-50%);
  font-size: 0.92rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0.48;
  color: var(--bk-green);
}

.bk-nav-search-desktop__input {
  padding-inline: 2.35rem 0.95rem !important;
  border-radius: 999px !important;
  border: 1px solid rgba(5, 56, 37, 0.1) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s var(--bk-ease), box-shadow 0.2s var(--bk-ease), background 0.2s var(--bk-ease) !important;
}

.bk-nav-search-desktop__input:focus {
  background: #fff !important;
  border-color: rgba(5, 56, 37, 0.28) !important;
  box-shadow: 0 0 0 0.2rem rgba(167, 207, 59, 0.2) !important;
}

.bk-site-header > .bk-nav-search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-width: none;
  margin-top: 0;
  border-radius: 0;
  border-inline: 0;
  border-top: 1px solid var(--bk-line);
  border-bottom: 1px solid var(--bk-line);
  box-shadow: 0 12px 40px rgba(5, 56, 37, 0.1);
  background: #fff;
  overflow: hidden;
}

@media (min-width: 992px) {
  .bk-site-header > .bk-nav-search-panel {
    border-radius: 0 0 0.875rem 0.875rem;
    border-inline: 1px solid var(--bk-line);
  }
}

.bk-nav-search-panel {
  background: #fff;
  overflow: hidden;
}

.bk-nav-search-panel__inner {
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bk-nav-search-hits .bk-nav-search-hit:last-child .bk-nav-search-hit__link {
  border-bottom: 0 !important;
}

.bk-nav-search-hit__link {
  transition: background-color 0.15s var(--bk-ease);
}

.bk-nav-search-hit__link:hover,
.bk-nav-search-hit--active {
  background-color: rgba(227, 240, 232, 0.72) !important;
}

.bk-nav-search-panel__footer .btn-link {
  color: var(--bk-green);
  font-weight: 600;
}

.bk-nav-search-panel__footer .btn-link:hover {
  color: var(--bs-link-hover-color);
}

/* جلوگیری از زوم خودکار iOS روی فوکوس اینپوت (حداقل ~16px) */
@media (max-width: 575.98px) {
  .bk-form-tap.form-control,
  .bk-form-tap.form-select,
  textarea.bk-form-tap {
    font-size: 1rem;
  }
}

.bk-btn-tap {
  min-height: 2.75rem;
}

@media (min-width: 576px) {
  .bk-btn-tap {
    min-height: unset;
  }
}

.rounded-4 {
  border-radius: var(--bk-radius) !important;
}

.card {
  border-radius: var(--bk-radius);
}

.btn {
  border-radius: 0.85rem;
  transition:
    color 0.2s var(--bk-ease),
    background-color 0.2s var(--bk-ease),
    border-color 0.2s var(--bk-ease),
    box-shadow 0.2s var(--bk-ease),
    transform 0.15s var(--bk-ease);
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

input.form-control,
select.form-select,
textarea.form-control {
  border-radius: 0.85rem;
  border-color: var(--bk-line);
  transition: border-color 0.2s var(--bk-ease), box-shadow 0.2s var(--bk-ease);
}

.white-space-pre-wrap {
  white-space: pre-wrap;
}

.navbar-brand {
  letter-spacing: -0.2px;
}

/* Bootstrap Icons: هم‌تراز با متن */
.nav-link .bi,
.navbar-brand .bi,
.btn .bi,
.pagination .bi {
  vertical-align: -0.125em;
}

[x-cloak] {
  display: none !important;
}

.bk-nav-badge {
  font-size: 0.65rem;
  min-width: 1.15rem;
  padding: 0.2em 0.45em;
  margin-inline-start: 0.15rem;
  vertical-align: super;
}

/* پنل ویزیتور */
.bk-visitor-hero {
  background: radial-gradient(1200px 400px at 90% -20%, rgba(var(--bs-primary-rgb), 0.22), transparent 55%),
    radial-gradient(900px 300px at 10% 0%, rgba(var(--bs-primary-rgb), 0.12), transparent 60%),
    linear-gradient(180deg, #fff, #fff);
}

.bk-visitor-hero__icon {
  width: 3rem;
  height: 3rem;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary);
  border: 1px solid var(--bs-primary-border-subtle);
}

.bk-visitor-kpi {
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.bk-visitor-kpi--today {
  background: linear-gradient(180deg, rgba(var(--bs-primary-rgb), 0.09), transparent 65%);
}
.bk-visitor-kpi--week {
  background: linear-gradient(180deg, rgba(25, 135, 84, 0.10), transparent 65%);
}
.bk-visitor-kpi--month {
  background: linear-gradient(180deg, rgba(13, 110, 253, 0.09), transparent 65%);
}

.bk-visitor-pill {
  padding: 0.45rem 0.75rem;
  background: rgba(25, 135, 84, 0.12);
  border: 1px solid rgba(25, 135, 84, 0.25);
}

.bk-page-icon {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.2rem;
  border: 1px solid rgba(167, 207, 59, 0.35);
  box-shadow: var(--bk-shadow-xs);
}

.bk-footer__brand {
  transition: opacity 0.2s var(--bk-ease);
}

.bk-footer__brand:hover {
  opacity: 0.88;
}

.bk-footer__brand:focus-visible {
  outline: 2px solid rgba(167, 207, 59, 0.75);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.bk-footer__brand-logo {
  display: block;
  height: 2.2rem;
  width: auto;
  max-width: 10.5rem;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1200px) {
  .bk-footer__brand-logo {
    height: 2.45rem;
    max-width: 11.5rem;
  }
}

.bk-footer__links a {
  color: var(--bs-secondary-color);
  transition: color 0.15s ease;
}

.bk-footer__links a:hover {
  color: var(--bs-primary);
}

.bk-product-card {
  transition:
    transform 0.28s var(--bk-ease),
    box-shadow 0.28s var(--bk-ease),
    border-color 0.25s var(--bk-ease);
}

@media (hover: hover) and (pointer: fine) {
  .bk-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(5, 56, 37, 0.08), 0 18px 44px rgba(5, 56, 37, 0.09) !important;
    border-color: rgba(167, 207, 59, 0.42) !important;
  }
}

.bk-product-card:focus-within {
  box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.12) !important;
}

.bk-product-card--pinned {
  box-shadow: 0 0 0 2px var(--bk-lime);
}

.bk-product-card__img-wrap {
  background: #f4f7f5;
}

.bk-product-card__placeholder {
  background: linear-gradient(145deg, #f0f4f2, #f7faf9);
}

/* کارت محصول: پس‌زمینهٔ کارت سفید؛ ناحیهٔ تصویر ملایم برای جداسازی بصری */
.bk-product-tile__media {
  position: relative;
  background: #f4f7f5;
  border-bottom: 1px solid rgba(5, 56, 37, 0.07);
}

.bk-product-tile__img-link {
  color: inherit;
  outline: none;
}

.bk-product-tile__img-link:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(var(--bs-primary-rgb), 0.35);
}

.bk-product-tile__img {
  transition: transform 0.45s var(--bk-ease);
}

.bk-product-tile__ph {
  background: linear-gradient(160deg, #eef3f0, #f8faf9);
}

.bk-product-tile__flag {
  position: absolute;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(5, 56, 37, 0.12);
  pointer-events: none;
}

.bk-product-tile__flag--pin {
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  background: rgba(255, 255, 255, 0.96);
  color: var(--bk-green);
  border: 1px solid var(--bk-line-strong);
}

.bk-product-tile__flag--discount {
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  background: var(--bk-lime);
  color: var(--bk-green);
  border: 1px solid rgba(5, 56, 37, 0.12);
  min-width: 2rem;
  justify-content: center;
}

/* تخفیف داخل کارت: لبهٔ چپ در UI راست‌به‌چپ (justify-content: end) */
.bk-product-tile__discount-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  margin-top: -0.35rem;
  margin-bottom: 0.5rem;
  justify-content: end;
}

.bk-product-tile__discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 2.25rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  background: var(--bk-lime);
  color: var(--bk-green);
  border: 1px solid rgba(5, 56, 37, 0.12);
  box-shadow: 0 1px 4px rgba(5, 56, 37, 0.08);
  unicode-bidi: isolate;
}

.bk-product-tile__chipbar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding: 0.45rem 0.5rem 0.4rem;
  background: linear-gradient(to top, rgba(13, 40, 28, 0.82) 0%, rgba(13, 40, 28, 0.35) 55%, transparent 100%);
  pointer-events: none;
}

.bk-product-tile__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.bk-product-tile__chip .bi {
  font-size: 0.75rem;
  opacity: 0.95;
}

.bk-product-tile__chip--ok {
  background: rgba(255, 255, 255, 0.95);
  color: #0f5132;
}

.bk-product-tile__chipbar--out {
  background: linear-gradient(to top, rgba(88, 21, 28, 0.88) 0%, rgba(88, 21, 28, 0.38) 55%, transparent 100%);
}

.bk-product-tile__chip--out {
  background: rgba(255, 248, 248, 0.97);
  color: #842029;
  border-color: rgba(132, 32, 41, 0.22);
}

.bk-product-tile__body {
  flex: 1 1 auto;
  min-height: 0;
}

.bk-product-tile__title {
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  font-size: 1rem;
}

@media (min-width: 576px) {
  .bk-product-tile__title {
    font-size: 1.0625rem;
  }

  .bk-product-tile__flag {
    font-size: 0.72rem;
    padding: 0.32rem 0.6rem;
  }
}

@media (min-width: 992px) {
  .bk-product-tile__title {
    font-size: 1.125rem;
  }
}

.bk-product-tile__pricing {
  background: linear-gradient(180deg, rgba(5, 56, 37, 0.035) 0%, #fff 55%);
  border: 1px solid rgba(5, 56, 37, 0.09);
  border-radius: 0.875rem;
  padding: 0.65rem 0.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 1);
}

@media (min-width: 576px) {
  .bk-product-tile__pricing {
    padding: 0.75rem 0.85rem;
  }
}

.bk-product-tile__carton-row {
  margin-bottom: 0.5rem;
}

.bk-product-tile__carton-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--bk-green);
  background: rgba(5, 56, 37, 0.045);
  border: 1px solid rgba(5, 56, 37, 0.1);
  border-radius: 999px;
}

.bk-product-tile__carton-badge .bi {
  font-size: 0.8rem;
  opacity: 0.85;
}

.bk-product-tile__price-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.45rem 0.55rem;
  align-items: end;
}

.bk-product-tile__price-col {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.bk-product-tile__price-col--retail {
  text-align: end;
  align-items: flex-end;
}

.bk-product-tile__meta-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(13, 40, 28, 0.58);
  line-height: 1.15;
}

.bk-product-tile__meta-sublabel {
  font-size: 0.58rem;
  font-weight: 500;
  color: rgba(13, 40, 28, 0.46);
  line-height: 1.15;
}

.bk-product-tile__amount {
  font-variant-numeric: tabular-nums lining-nums;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--bk-ink);
  letter-spacing: -0.02em;
}

.bk-product-tile__amount--b2b {
  font-size: 1.18rem;
  color: var(--bk-green);
}

.bk-product-tile__amount--retail {
  font-weight: 600;
  font-size: 0.98rem;
  color: rgba(13, 40, 28, 0.74);
}

.bk-product-tile__price-divider {
  width: 1px;
  align-self: stretch;
  min-height: 2.35rem;
  margin-bottom: 0.1rem;
  background: rgba(5, 56, 37, 0.12);
  opacity: 1;
}

@media (min-width: 576px) {
  .bk-product-tile__amount--b2b {
    font-size: 1.28rem;
  }

  .bk-product-tile__amount--retail {
    font-size: 1.06rem;
  }
}

/* —— صفحهٔ جزئیات محصول: قیمت کارتن + موبایل —— */
.bk-pdetail-pricing__carton-hint {
  line-height: 1.55;
}

.bk-pdetail-carton-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.55rem;
}

@media (min-width: 576px) {
  .bk-pdetail-carton-grid {
    gap: 0.85rem;
  }
}

.bk-pdetail-carton-card {
  min-width: 0;
  border-radius: 0.9rem;
  padding: 0.65rem 0.7rem 0.7rem;
  border: 1px solid var(--bs-border-color-translucent);
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.bk-pdetail-carton-card--b2b {
  background: linear-gradient(160deg, rgba(5, 56, 37, 0.06) 0%, rgba(167, 207, 59, 0.12) 100%);
  border-color: rgba(5, 56, 37, 0.14);
  box-shadow: 0 1px 2px rgba(5, 56, 37, 0.06);
}

.bk-pdetail-carton-card--retail {
  background: var(--bs-body-bg);
  border-color: rgba(5, 56, 37, 0.1);
}

.bk-pdetail-carton-card__head {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.bk-pdetail-carton-card__label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--bk-green);
  line-height: 1.25;
}

.bk-pdetail-carton-card--retail .bk-pdetail-carton-card__label {
  color: rgba(13, 40, 28, 0.72);
}

.bk-pdetail-carton-card__scope {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
}

.bk-pdetail-carton-card__amount {
  margin-top: 0.2rem;
  font-weight: 800;
  font-size: clamp(0.98rem, 3.8vw, 1.28rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--bs-primary);
}

.bk-pdetail-carton-card--retail .bk-pdetail-carton-card__amount {
  color: var(--bs-emphasis-color);
}

.bk-pdetail-carton-card__amount--strike {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.bk-pdetail-carton-card__currency {
  font-size: 0.68rem;
  font-weight: 600;
}

.bk-pdetail-unit-strip {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(5, 56, 37, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* اولویت نمایش: قیمت هر واحد در ابتدای بلوک */
.bk-pdetail-unit-strip--first {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  padding-bottom: 0.85rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px dashed rgba(5, 56, 37, 0.15);
}

.bk-pdetail-unit-strip--first .bk-pdetail-unit-strip__val {
  font-size: clamp(1.02rem, 4.2vw, 1.2rem);
  font-weight: 800;
}

/* ردیف وضعیت / تخفیف: پخ و خط‌نقطه‌چین مثل متای عنوان محصول */
.bk-pdetail-top-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.85rem;
  row-gap: 0.4rem;
  line-height: 1.7;
  color: var(--bs-secondary-color);
}

@media (min-width: 576px) {
  .bk-pdetail-top-strip {
    column-gap: 1.35rem;
  }
}

.bk-pdetail-top-strip__ok {
  color: var(--bs-success);
  font-weight: 700;
}

.bk-pdetail-top-strip__dot {
  opacity: 0.8;
  user-select: none;
  font-weight: 700;
}

.bk-pdetail-top-strip__disc {
  color: var(--bs-success);
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.2rem;
  unicode-bidi: isolate;
}

/* افزودن به سبد جزئیات: عرض بازتر و فاصلهٔ بیشتر از بلوک قیمت */
.bk-pdetail-add {
  max-width: min(100%, 30rem);
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px dashed rgba(5, 56, 37, 0.12);
}

.bk-pdetail-add .bk-product-tile__cta--merged:not(.bk-product-tile__cta--has-qty) {
  gap: 0.65rem;
}

.bk-pdetail-add .bk-product-tile__add-mini {
  min-height: 2.65rem;
  padding-block: 0.48rem;
  padding-inline: 0.75rem;
}

.bk-pdetail-add .bk-product-tile__add-mini-label {
  gap: 0.4rem;
  font-size: clamp(0.68rem, 2.6vw, 0.82rem);
}

@media (min-width: 576px) {
  .bk-pdetail-add .bk-product-tile__add-mini-label {
    font-size: 0.8rem;
  }
}

.bk-pdetail-add .bk-product-tile__stepper--merged.bk-stepper {
  min-height: 2.65rem;
}

.bk-pdetail-add .bk-product-tile__stepper--merged .bk-stepper-btn.btn,
.bk-pdetail-add .bk-product-tile__stepper--merged .bk-product-tile__qty {
  min-height: 2.65rem;
}

.bk-pdetail-unit-strip__sep {
  display: none;
}

@media (min-width: 480px) {
  .bk-pdetail-unit-strip {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.65rem;
    row-gap: 0.35rem;
  }

  .bk-pdetail-unit-strip__sep {
    display: inline-block;
    width: 1px;
    height: 0.95rem;
    background: rgba(5, 56, 37, 0.15);
    align-self: center;
    flex-shrink: 0;
  }
}

.bk-pdetail-unit-strip__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  min-width: 0;
}

.bk-pdetail-unit-strip__lbl {
  font-size: 0.72rem;
  color: var(--bs-secondary-color);
  font-weight: 600;
  width: 100%;
}

@media (min-width: 480px) {
  .bk-pdetail-unit-strip__lbl {
    width: auto;
  }
}

.bk-pdetail-unit-strip__val {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bs-emphasis-color);
}

.bk-product-tile__stepper {
  border: 1px solid rgba(5, 56, 37, 0.1);
  background: #f6faf7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

@media (hover: hover) and (pointer: fine) {
  .bk-product-card:hover .bk-product-tile__img {
    transform: scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bk-product-card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
  }

  .bk-product-tile__img {
    transition: none;
  }

  @media (hover: hover) and (pointer: fine) {
    .bk-product-card:hover {
      transform: none;
    }

    .bk-product-card:hover .bk-product-tile__img {
      transform: none;
    }
  }
}

/* لیست محصولات: شبکه دو ستونه موبایل + کارت فشرده */
.bk-product-tile__ratio {
  --bs-aspect-ratio: 100%;
}

@media (min-width: 576px) {
  .bk-product-tile__ratio {
    --bs-aspect-ratio: 75%;
  }
}

.bk-product-tile__details {
  min-height: 2.25rem;
  min-width: 2.25rem;
  padding-inline: 0.55rem !important;
  opacity: 0.92;
}

.bk-product-tile__details:hover {
  opacity: 1;
}

.bk-product-tile__cta {
  padding-top: 0.25rem;
}

.bk-product-tile__cta--merged {
  container-type: inline-size;
  container-name: bk-tile-cta;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(2.35rem, auto);
  align-items: stretch;
  min-height: 2.35rem;
}

/* دکمهٔ متنی «افزودن به سبد» تمام‌عرض؛ با تعداد: استپر تمام‌عرض */
.bk-product-tile__cta--merged:not(.bk-product-tile__cta--has-qty) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.bk-product-tile__cta--merged:not(.bk-product-tile__cta--has-qty) > .bk-product-tile__add-mini {
  width: 100%;
  min-width: 0;
  height: auto;
  min-height: 2.4rem;
  padding: 0.42rem 0.55rem;
  flex-shrink: 0;
}

.bk-product-tile__cta--merged > .bk-product-tile__add-mini,
.bk-product-tile__cta--merged > .bk-product-tile__stepper--merged {
  grid-column: 1;
  grid-row: 1;
  align-self: stretch;
}

.bk-product-tile__cta--merged:not(.bk-product-tile__cta--has-qty) > .bk-product-tile__stepper--merged {
  display: none !important;
}

.bk-product-tile__cta--merged.bk-product-tile__cta--has-qty > .bk-product-tile__add-mini {
  display: none !important;
}

.bk-product-tile__add-mini-label {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  max-width: 100%;
  width: 100%;
  text-align: center;
  font-size: clamp(0.62rem, 2.35vw, 0.72rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.bk-product-tile__add-mini-txt {
  min-width: 0;
}

.bk-product-tile__add-mini-cart {
  display: none;
  flex-shrink: 0;
  font-size: 0.95em;
  line-height: 1;
  opacity: 0.92;
}

@container bk-tile-cta (min-width: 10rem) {
  .bk-product-tile__add-mini-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* مرورگرهای بدون container query */
@supports not (container-type: inline-size) {
  @media (min-width: 420px) {
    .bk-product-tile__add-mini-cart {
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
  }
}

@media (min-width: 576px) {
  .bk-product-tile__add-mini-label {
    font-size: 0.74rem;
  }
}

.bk-product-tile__add-mini {
  min-height: 2.35rem;
  padding-block: 0.3rem;
  font-size: 0.9rem;
  box-shadow: 0 1px 2px rgba(5, 56, 37, 0.12);
  border-radius: 0 !important;
}

.bk-product-tile__add-mini--busy {
  opacity: 0.88;
  pointer-events: none;
}

/* بدون d-inline-flex روی المنت: کلاس‌های Bootstrap با !important روی display غلبه می‌کردند و اسپینر همیشه دیده می‌شد */
.bk-tile-add-spinner {
  display: none !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.bk-product-tile__add-mini--busy .bk-tile-add-spinner {
  display: inline-flex !important;
}

.bk-product-tile__stepper--merged {
  min-height: 2.35rem;
}

/* دکمه‌های ± مربعی؛ − روشن، + سبز پررنگ برند */
.bk-product-tile__stepper--merged .bk-stepper-btn--dec.btn,
.bk-add-form .bk-stepper .bk-stepper-btn--dec.btn,
.bk-cart-stepper .bk-stepper-btn--dec.btn {
  background-color: #fff !important;
  color: var(--bk-green) !important;
  border: 1px solid var(--bk-line-strong) !important;
  box-shadow: 0 1px 3px rgba(5, 56, 37, 0.06);
}

.bk-product-tile__stepper--merged .bk-stepper-btn--dec.btn:hover:not(:disabled),
.bk-add-form .bk-stepper .bk-stepper-btn--dec.btn:hover:not(:disabled),
.bk-cart-stepper .bk-stepper-btn--dec.btn:hover:not(:disabled) {
  background-color: var(--bs-tertiary-bg) !important;
  color: var(--bk-green) !important;
  border-color: var(--bk-green) !important;
  box-shadow: 0 2px 6px rgba(5, 56, 37, 0.12);
}

.bk-product-tile__stepper--merged .bk-stepper-btn--inc.btn,
.bk-add-form .bk-stepper .bk-stepper-btn--inc.btn,
.bk-cart-stepper .bk-stepper-btn--inc.btn {
  background-color: var(--bk-green) !important;
  color: var(--bk-lime) !important;
  border: 1px solid var(--bk-green) !important;
  box-shadow: 0 1px 4px rgba(5, 56, 37, 0.28);
}

.bk-product-tile__stepper--merged .bk-stepper-btn--inc.btn:hover:not(:disabled),
.bk-add-form .bk-stepper .bk-stepper-btn--inc.btn:hover:not(:disabled),
.bk-cart-stepper .bk-stepper-btn--inc.btn:hover:not(:disabled) {
  background-color: #042818 !important;
  color: #fff !important;
  border-color: #042818 !important;
  box-shadow: 0 2px 8px rgba(5, 56, 37, 0.35);
}

.bk-product-tile__stepper--merged .bk-stepper-btn--dec.btn:focus-visible,
.bk-add-form .bk-stepper .bk-stepper-btn--dec.btn:focus-visible,
.bk-cart-stepper .bk-stepper-btn--dec.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(5, 56, 37, 0.18);
}

.bk-product-tile__stepper--merged .bk-stepper-btn--inc.btn:focus-visible,
.bk-add-form .bk-stepper .bk-stepper-btn--inc.btn:focus-visible,
.bk-cart-stepper .bk-stepper-btn--inc.btn:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(167, 207, 59, 0.45);
}

.bk-product-tile__stepper--merged .bk-stepper-btn.btn:disabled,
.bk-add-form .bk-stepper .bk-stepper-btn.btn:disabled,
.bk-cart-stepper .bk-stepper-btn.btn:disabled {
  opacity: 0.52;
}

.bk-product-tile__stepper--merged .bk-stepper-btn--dec.btn:disabled,
.bk-add-form .bk-stepper .bk-stepper-btn--dec.btn:disabled,
.bk-cart-stepper .bk-stepper-btn--dec.btn:disabled {
  color: var(--bs-secondary-color) !important;
  background-color: var(--bs-tertiary-bg) !important;
  border-color: var(--bk-line) !important;
}

.bk-product-tile__stepper--merged .bk-stepper-btn--inc.btn:disabled,
.bk-add-form .bk-stepper .bk-stepper-btn--inc.btn:disabled,
.bk-cart-stepper .bk-stepper-btn--inc.btn:disabled {
  background-color: rgba(5, 56, 37, 0.38) !important;
  color: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(5, 56, 37, 0.28) !important;
}

/* استپر یکپارچه: + و − چسبیده به لبه، بدون فاصله، گوشهٔ گرد فقط بیرون (مطابق نمونه) */
.bk-product-tile__stepper--merged.bk-stepper,
.bk-cart-stepper.bk-stepper {
  padding: 0 !important;
  gap: 0;
  border: 1px solid rgba(5, 56, 37, 0.2) !important;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #fff !important;
  box-shadow: none !important;
}

/* سبد: Grid سه‌ستونه تا flex-grow مرورگر/بوت‌استرپ فضا را به دکمه − ندهد */
.bk-cart-page .bk-cart-stepper.bk-stepper {
  display: grid;
  grid-template-columns: minmax(2rem, 2.35rem) minmax(2.5rem, 4.25rem) minmax(2rem, 2.35rem);
  width: fit-content;
  max-width: 100%;
  align-items: stretch;
  justify-content: start;
}

.bk-product-tile__stepper--merged .bk-stepper-btn.btn,
.bk-cart-stepper .bk-stepper-btn.btn {
  border: none !important;
  box-shadow: none !important;
  align-self: stretch;
  height: auto;
  min-height: 2.35rem;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

.bk-cart-page .bk-cart-stepper .bk-stepper-btn.btn {
  flex: none;
  width: 100%;
  min-width: 0;
}

.bk-product-tile__stepper--merged .bk-stepper-btn--dec.btn:hover:not(:disabled),
.bk-product-tile__stepper--merged .bk-stepper-btn--inc.btn:hover:not(:disabled),
.bk-cart-stepper .bk-stepper-btn--dec.btn:hover:not(:disabled),
.bk-cart-stepper .bk-stepper-btn--inc.btn:hover:not(:disabled),
.bk-product-tile__stepper--merged .bk-stepper-btn.btn:active,
.bk-cart-stepper .bk-stepper-btn.btn:active {
  box-shadow: none !important;
}

.bk-product-tile__stepper--merged .bk-product-tile__qty {
  border-inline: 1px solid rgba(5, 56, 37, 0.12);
  background: #fff;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
}

.bk-cart-stepper .bk-cart-stepper-input.form-control,
.bk-cart-stepper .bk-stepper-input.form-control {
  border-radius: 0 !important;
  border-block: none !important;
  border-inline: 1px solid rgba(5, 56, 37, 0.12) !important;
  box-shadow: none !important;
  align-self: stretch;
  min-height: 2.35rem;
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: none;
}

.bk-product-tile__qty {
  font-variant-numeric: tabular-nums;
  min-width: 1.85rem;
  font-size: 0.95rem;
}

@media (min-width: 576px) {
  .bk-product-tile__qty {
    min-width: 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .bk-product-tile__details {
    min-height: 2.75rem;
    min-width: 2.75rem;
  }
}

/* جستجو و صفحه‌بندی: پایین صفحهٔ کاتالوگ */
.bk-product-list-footer__per-page {
  min-width: min(100%, 9.5rem);
}

@media (min-width: 992px) {
  .bk-product-list-footer__per-page {
    width: 9.5rem;
  }
}

.bk-product-list-footer__pagination {
  padding-top: 0.75rem;
  margin-top: 0.125rem;
  border-top: 1px solid var(--bs-border-color-translucent);
  width: 100%;
}

@media (min-width: 992px) {
  .bk-product-list-footer__pagination {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
    width: auto;
  }
}

.bk-pagination--footer .page-link {
  white-space: nowrap;
}

.bk-pagination--numbered .page-item:not(.bk-pagination__gap) .page-link {
  min-width: 2.35rem;
  justify-content: center;
  text-align: center;
}

.bk-pagination--numbered .page-item.active .page-link {
  border-color: rgba(167, 207, 59, 0.55);
  box-shadow: 0 0 0 1px rgba(5, 56, 37, 0.08);
}

.bk-pagination__gap .page-link {
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 575.98px) {
  .bk-pagination--numbered .page-item:not(.bk-pagination__gap) .page-link {
    min-width: 2.1rem;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    font-size: 0.875rem;
  }

  .bk-product-tile__flag-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bk-product-tile__flag--pin {
    padding: 0.35rem;
    border-radius: 50%;
  }

  .bk-product-tile__meta {
    font-size: 0.65rem;
    line-height: 1.3;
  }

  .bk-product-tile__price {
    font-size: 0.88rem;
    line-height: 1.3;
  }

  .bk-product-tile__currency {
    font-size: 0.72rem;
  }

  .bk-product-tile__stock {
    font-size: 0.65rem;
    padding: 0.2em 0.45em;
  }

  .bk-product-tile__ph-icon {
    font-size: 1.75rem;
  }

  .bk-product-grid .badge {
    font-size: 0.65rem;
  }

  .bk-per-page-select {
    max-width: none;
  }
}

.bk-stepper-btn {
  width: 2.25rem;
  height: 2.25rem;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 !important;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid var(--bs-border-color-translucent);
  color: var(--bs-primary);
  background: #fff;
  box-shadow: 0 0.2rem 0.65rem rgba(0, 0, 0, 0.06);
  border-radius: 0 !important;
  /* داخل ردیف flex با align-items-stretch کشیده نشود تا دایره بیضی نشود */
  align-self: center;
  aspect-ratio: 1;
}

.bk-stepper-btn .bi {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  line-height: 0;
  font-size: 1.15rem;
  font-weight: 900;
  text-align: center;
  -webkit-font-smoothing: antialiased;
}

/* گلیف bi-plus-lg / bi-dash-lg: تراز عمودی + پررنگ‌تر دیده شدن */
.bk-stepper-btn .bi::before {
  display: block;
  line-height: 1;
  vertical-align: 0 !important;
  font-weight: 900;
  -webkit-text-stroke: 0.045em currentColor;
  paint-order: stroke fill;
  transform: translateY(0.07em);
}

.bk-stepper-btn:active {
  transform: scale(0.98);
  box-shadow: none;
}

@media (max-width: 575.98px) {
  .bk-stepper-btn {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }

  .bk-stepper-btn .bi {
    font-size: 1.35rem;
  }

  .bk-add-btn {
    min-height: 3rem;
  }
}

/* سبد خرید: دکمه‌های ± جمع‌وجور (سلسله‌مراتب بالاتر از بزرگ‌نمایی موبایل کاشی کاتالوگ) */
.bk-cart-stepper .bk-stepper-btn {
  width: 2rem;
  height: auto;
  min-width: 2rem;
  min-height: 2.35rem;
  aspect-ratio: auto;
  align-self: stretch;
}

.bk-cart-stepper .bk-stepper-btn .bi {
  font-size: 1rem;
}

@media (min-width: 576px) {
  .bk-cart-stepper .bk-stepper-btn {
    width: 2.125rem;
    min-width: 2.125rem;
    min-height: 2.4rem;
  }

  .bk-cart-stepper .bk-stepper-btn .bi {
    font-size: 1.05rem;
  }
}

/* کاشی لیست / خانه: ± جمع‌وجور (سلسله‌مراتب بالاتر از بزرگ‌نمایی عمومی موبایل) */
.bk-product-tile__stepper--merged .bk-stepper-btn {
  width: 2rem;
  height: auto;
  min-width: 2rem;
  min-height: 2.35rem;
  aspect-ratio: auto;
  align-self: stretch;
}

.bk-product-tile__stepper--merged .bk-stepper-btn .bi {
  font-size: 1rem;
}

@media (min-width: 576px) {
  .bk-product-tile__stepper--merged .bk-stepper-btn {
    width: 2.125rem;
    min-width: 2.125rem;
    min-height: 2.4rem;
  }

  .bk-product-tile__stepper--merged .bk-stepper-btn .bi {
    font-size: 1.05rem;
  }
}

.bk-stepper-input {
  max-width: 4rem;
  -moz-appearance: textfield;
}

.bk-stepper-input::-webkit-outer-spin-button,
.bk-stepper-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bk-add-btn--busy {
  pointer-events: none;
  opacity: 0.92;
}

/* بدون !important تا Alpine x-show بتواند display:none اعمال کند (مشکل هم‌زمانی متن + اسپینر) */
.bk-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bk-cart-hero {
  background: linear-gradient(135deg, #053825 0%, #0a4d32 42%, #a7cf3b 160%);
  box-shadow: 0 0.35rem 1.1rem rgba(5, 56, 37, 0.14);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.bk-cart-hero__icon-sm {
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 767.98px) {
  .bk-cart-hero__compact .bk-cart-hero__icon-sm {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 0.95rem;
  }
}

/* فاصله برای نوار ثابت «ثبت سفارش» بالای منوی پایین */
@media (max-width: 991.98px) {
  .bk-cart-page--filled {
    padding-bottom: 4.25rem;
  }
}

.bk-cart-mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: calc(var(--bk-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
  z-index: 1035;
  pointer-events: none;
}

.bk-cart-mobile-cta .container {
  pointer-events: auto;
}

.bk-cart-mobile-cta__panel {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 0.85rem;
  box-shadow: 0 -0.25rem 1rem rgba(15, 23, 42, 0.1);
  padding: 0.45rem 0.55rem;
}

.bk-cart-mobile-cta__label {
  font-size: 0.65rem;
  line-height: 1.2;
}

.bk-cart-mobile-cta__total {
  font-size: 0.95rem;
  line-height: 1.2;
}

.bk-cart-mobile-cta__suffix {
  font-size: 0.7rem;
}

.bk-cart-mobile-cta__btn {
  min-height: 0;
  width: auto;
  max-width: min(11.5rem, 48vw);
  white-space: nowrap;
}

.bk-cart-alert__icon {
  font-size: 1rem;
}

@media (min-width: 992px) {
  .bk-cart-mobile-cta {
    display: none !important;
  }
}

.bk-cart-line__title {
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .bk-cart-line__title {
    font-size: 0.95rem;
  }
}

.bk-cart-line__prices {
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color-translucent);
}

.bk-cart-line__remove {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .bk-cart-line__remove {
    width: 2.35rem;
    height: 2.35rem;
  }

  .bk-cart-line__remove .bi {
    font-size: 0.95rem;
  }
}

.bk-cart-line__thumb {
  width: 48px !important;
  height: 48px !important;
}

@media (min-width: 768px) {
  .bk-cart-line__thumb {
    width: 56px !important;
    height: 56px !important;
  }
}

.bk-cart-line__line-total {
  font-size: 1.05rem;
  line-height: 1.2;
}

@media (min-width: 576px) {
  .bk-cart-line__line-total {
    font-size: 1.2rem;
  }
}

@media (min-width: 768px) {
  .bk-cart-page .bk-cart-stepper.bk-stepper {
    grid-template-columns: minmax(1.75rem, 1.9rem) minmax(2.5rem, 4rem) minmax(1.75rem, 1.9rem);
    max-width: min(12rem, 100%);
  }

  .bk-cart-stepper .bk-stepper-btn {
    min-height: 2.25rem;
  }

  .bk-cart-stepper .bk-stepper-btn .bi {
    font-size: 0.95rem;
  }
}

.bk-cart-stepper-input {
  font-size: 0.95rem !important;
  min-width: 2.25rem;
  max-width: 3.5rem;
  padding-block: 0.25rem !important;
}

@media (min-width: 576px) {
  .bk-cart-stepper-input {
    font-size: 1.05rem !important;
    min-width: 2.5rem;
    max-width: 3.5rem;
    padding-block: 0.35rem !important;
  }
}

.bk-cart-empty__text {
  max-width: 22rem;
}

/* —— پروفایل (موبایل‌اول) —— */
.bk-profile-page {
  margin-inline: calc(-0.5 * var(--bs-gutter-x, 0.75rem));
  padding-inline: calc(0.5 * var(--bs-gutter-x, 0.75rem));
}

@media (min-width: 576px) {
  .bk-profile-page {
    margin-inline: 0;
    padding-inline: 0;
  }
}

.bk-profile-shell {
  max-width: 26rem;
  margin-inline: auto;
}

.bk-profile-page--compact .bk-profile-shell {
  max-width: min(36rem, 100%);
}

.bk-profile-page--compact .bk-profile-hero {
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.5rem;
  gap: 0.65rem;
}

.bk-profile-page--compact .bk-profile-hero__avatar {
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.1rem;
  border-radius: 0.75rem;
}

.bk-profile-page--compact .bk-profile-hero__title {
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.bk-profile-page--compact .bk-profile-hero__phone {
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.bk-profile-page--compact .bk-profile-section {
  margin-bottom: 0.5rem;
}

.bk-profile-page--compact .bk-profile-section__title {
  margin-bottom: 0.25rem;
}

.bk-profile-license-thumb {
  max-height: 4.5rem;
  max-width: 6rem;
  object-fit: contain;
}

.bk-profile-address-snippet__addr {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  font-size: 0.78rem;
}

/* پروفایل — UI مینیمال (یک کارت) */
.bk-profile-shell--minimal {
  max-width: min(22rem, 100%);
}

@media (min-width: 400px) {
  .bk-profile-shell--minimal {
    max-width: min(26rem, 100%);
  }
}

.bk-profile-page--minimal {
  padding-bottom: 0.5rem;
}

.bk-profile-card {
  background: var(--bs-body-bg);
  border: 1px solid rgba(5, 56, 37, 0.08);
  border-radius: 1rem;
  box-shadow: 0 2px 12px rgba(5, 56, 37, 0.04);
  overflow: hidden;
}

.bk-profile-card__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.85rem;
}

.bk-profile-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--bk-green);
  background: rgba(5, 56, 37, 0.06);
  border: 1px solid rgba(5, 56, 37, 0.08);
}

.bk-profile-card__avatar .bi {
  font-size: 1.15rem;
  opacity: 0.75;
}

.bk-profile-card__initial {
  line-height: 1;
  text-transform: uppercase;
}

.bk-profile-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.15rem;
  line-height: 1.3;
  color: var(--bs-emphasis-color);
  word-break: break-word;
}

.bk-profile-card__sub {
  font-size: 0.8rem;
  color: var(--bs-secondary-color);
}

.bk-profile-card__role {
  font-size: 0.68rem;
  color: var(--bs-secondary-color);
  margin-top: 0.2rem;
  opacity: 0.95;
}

.bk-profile-card__divider {
  height: 1px;
  margin: 0 1rem;
  background: rgba(5, 56, 37, 0.07);
}

.bk-profile-card__block {
  padding: 0.85rem 1rem 1rem;
}

.bk-profile-card__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.bk-profile-card__footer {
  padding-inline: 0.5rem;
  background: rgba(5, 56, 37, 0.02);
}

.bk-profile-field__hint {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
  margin-bottom: 0.2rem;
}

.bk-profile-readonly {
  display: block;
  font-size: 0.8125rem;
  padding: 0.35rem 0.5rem;
  border-radius: 0.5rem;
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  border: 1px solid transparent;
}

.bk-profile-form .form-control,
.bk-profile-form .form-select {
  border-radius: 0.55rem;
  font-size: 0.875rem;
}

.bk-profile-license-link img {
  vertical-align: top;
}

.bk-profile-addr-list .bk-profile-addr-row {
  border-radius: 0.5rem;
  margin-inline: -0.35rem;
  padding-inline: 0.35rem !important;
  transition: background-color 0.12s ease;
}

.bk-profile-addr-list .bk-profile-addr-row:hover,
.bk-profile-addr-list .bk-profile-addr-row:focus-visible {
  background: rgba(5, 56, 37, 0.05);
}

.bk-profile-addr-row__icon {
  margin-top: 0.15rem;
}

/* فرم آدرس فروشگاه — راست‌چین کامل (Bootstrap RTL: از text-start استفاده شود، نه text-end) */
.bk-profile-page--delivery-address,
.bk-delivery-address-form {
  direction: rtl;
  text-align: right;
}

.bk-delivery-address-form .form-label,
.bk-delivery-address-form .form-check-label,
.bk-delivery-address-form .alert,
.bk-delivery-address-form .text-danger,
.bk-profile-page--delivery-address .bk-profile-shell > h1,
.bk-profile-page--delivery-address .btn-link {
  text-align: right;
}

.bk-delivery-address-form .form-control:not(.bk-input-numeric),
.bk-delivery-address-form .form-select,
.bk-delivery-address-form textarea {
  direction: rtl;
  text-align: right;
}

.bk-delivery-address-form .form-control.bk-input-numeric {
  direction: ltr;
  text-align: right;
}

.bk-delivery-address-form .form-check {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0;
  min-height: auto;
}

.bk-delivery-address-form .form-check-input {
  float: none;
  margin: 0;
  flex-shrink: 0;
}

.bk-delivery-address-form .form-check-label {
  flex: 1 1 auto;
}

/* جزئیات سفارش — بلوک فروشگاه / ثبت‌کننده / تحویل */
.bk-order-party__block {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(5, 56, 37, 0.08);
}

.bk-order-party__block:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.bk-order-party__title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bs-secondary-color);
  margin-bottom: 0.5rem;
  text-align: right;
}

.bk-order-party__dl {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bk-order-party__row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 38%) 1fr;
  gap: 0.35rem 0.75rem;
  align-items: start;
  text-align: right;
}

.bk-order-party__row dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
}

.bk-order-party__row dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--bs-body-color);
  word-break: break-word;
}

/* —— نمایش پروفایل (فقط خواندنی): سلسله‌مراتب، شبکهٔ فیلد، آدرس در کارت —— */
.bk-profile-page--display.bk-profile-page--minimal {
  padding-bottom: 1rem;
}

.bk-profile-shell--display.bk-profile-shell--minimal {
  max-width: min(28rem, 100%);
}

@media (min-width: 576px) {
  .bk-profile-shell--display.bk-profile-shell--minimal {
    max-width: min(32rem, 100%);
  }
}

.bk-profile-display__top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 1rem 0.75rem;
}

@media (min-width: 420px) {
  .bk-profile-display__top {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

.bk-profile-display__who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.bk-profile-display__avatar {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.85rem;
}

@media (min-width: 420px) {
  .bk-profile-display__avatar {
    width: 3rem;
    height: 3rem;
  }
}

.bk-profile-display__title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0 0 0.2rem;
  color: var(--bs-emphasis-color);
  word-break: break-word;
}

.bk-profile-display__phone {
  font-size: 0.815rem;
  color: var(--bs-secondary-color);
}

.bk-profile-display__role {
  display: inline-flex;
  align-items: center;
  margin-top: 0.35rem;
  padding: 0.12rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bk-green);
  background: rgba(167, 207, 59, 0.22);
  border-radius: 999px;
  border: 1px solid rgba(5, 56, 37, 0.1);
}

.bk-profile-display__cta {
  align-self: stretch;
  border-radius: 0.65rem !important;
  padding-block: 0.55rem;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

@media (min-width: 420px) {
  .bk-profile-display__cta {
    align-self: center;
    padding-inline: 1rem;
    white-space: nowrap;
  }
}

.bk-profile-display__divider {
  margin-inline: 0;
}

.bk-profile-display__section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.bk-profile-display__section-head {
  margin-bottom: 0.85rem;
}

.bk-profile-display__section-head--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.bk-profile-display__section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin: 0;
}

.bk-profile-display__section-desc {
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--bs-secondary-color);
  margin-top: 0.35rem;
}

.bk-profile-display__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 576px) {
  .bk-profile-display__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.bk-profile-display__field--wide {
  grid-column: 1 / -1;
}

.bk-profile-display__field {
  padding: 0.55rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(5, 56, 37, 0.03);
  border: 1px solid rgba(5, 56, 37, 0.06);
}

.bk-profile-display__label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bs-secondary-color);
  margin-bottom: 0.2rem;
}

.bk-profile-display__value {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--bs-emphasis-color);
  line-height: 1.45;
  word-break: break-word;
}

.bk-profile-display__license {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  margin-top: 0.15rem;
}

.bk-profile-display__license-thumb img {
  display: block;
  width: 4rem;
  height: 4rem;
}

.bk-profile-display__license-hint {
  flex: 1 1 8rem;
  min-width: 0;
  line-height: 1.45;
}

.bk-profile-display__addr-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bk-profile-display__addr-item {
  border-radius: 0.65rem;
  border: 1px solid rgba(5, 56, 37, 0.08);
  background: #fff;
  overflow: hidden;
}

.bk-profile-display__addr-link {
  margin: 0 !important;
  border-radius: 0.65rem !important;
}

.bk-profile-display__addr-list .bk-profile-display__addr-link:hover,
.bk-profile-display__addr-list .bk-profile-display__addr-link:focus-visible {
  background: rgba(5, 56, 37, 0.045);
}

.bk-profile-display__empty-addr {
  border-color: rgba(5, 56, 37, 0.12) !important;
  background: rgba(5, 56, 37, 0.02);
}

.bk-profile-display__add-addr {
  border-style: solid;
  border-color: rgba(5, 56, 37, 0.16);
}

.bk-profile-display__footer {
  border-top: 1px solid rgba(5, 56, 37, 0.06);
}

.bk-profile-display__link-all {
  font-size: 0.75rem;
}

.bk-profile-hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1rem 1.1rem;
  margin-bottom: 0.75rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(5, 56, 37, 0.06) 0%, rgba(167, 207, 59, 0.08) 100%);
  border: 1px solid rgba(5, 56, 37, 0.08);
}

@media (min-width: 576px) {
  .bk-profile-hero {
    padding: 1.15rem 1.25rem 1.2rem;
    margin-bottom: 1rem;
  }

  .bk-profile-page--compact .bk-profile-hero {
    padding: 0.7rem 1rem;
    margin-bottom: 0.55rem;
  }
}

.bk-profile-hero__avatar {
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 1rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bk-green);
  background: #fff;
  border: 1px solid rgba(5, 56, 37, 0.1);
  box-shadow: 0 1px 3px rgba(5, 56, 37, 0.06);
}

.bk-profile-hero__avatar .bi {
  font-size: 1.5rem;
  opacity: 0.85;
}

.bk-profile-hero__initial {
  line-height: 1;
  text-transform: uppercase;
}

.bk-profile-hero__main {
  min-width: 0;
  flex: 1 1 auto;
}

.bk-profile-hero__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  color: var(--bs-emphasis-color);
  line-height: 1.35;
  word-break: break-word;
}

@media (min-width: 576px) {
  .bk-profile-hero__title {
    font-size: 1.15rem;
  }
}

.bk-profile-hero__phone {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
  margin: 0 0 0.45rem;
}

.bk-profile-hero__role {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.28em 0.65em;
}

.bk-profile-section {
  margin-bottom: 0.75rem;
}

.bk-profile-section__title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bs-secondary-color);
  margin: 0 0 0.45rem 0.15rem;
}

.bk-profile-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.bk-profile-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.55rem 0.65rem 0.55rem 0.75rem;
  text-decoration: none;
  color: var(--bs-body-color);
  background: #fff;
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 0.85rem;
  box-shadow: 0 1px 2px rgba(5, 56, 37, 0.04);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

@media (hover: hover) and (pointer: fine) {
  .bk-profile-link:hover {
    background: rgba(227, 240, 232, 0.45);
    border-color: rgba(5, 56, 37, 0.12);
    color: var(--bs-body-color);
  }
}

.bk-profile-link:active {
  background: var(--bs-tertiary-bg);
}

.bk-profile-link__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.05rem;
  color: var(--bk-green);
  background: rgba(5, 56, 37, 0.06);
}

.bk-profile-link__icon--accent {
  color: #fff;
  background: var(--bs-primary);
}

.bk-profile-link__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.bk-profile-link__label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.bk-profile-link__hint {
  font-size: 0.68rem;
  color: var(--bs-secondary-color);
  line-height: 1.3;
}

.bk-profile-link__chev {
  flex-shrink: 0;
  font-size: 0.95rem;
  opacity: 0.45;
  color: var(--bs-secondary-color);
}

.bk-profile-logout-wrap {
  margin-top: 0.35rem;
  margin-bottom: 0.75rem;
}

.bk-profile-logout {
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 2.85rem;
}

.bk-profile-footnote {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--bs-secondary-color);
  margin: 0;
  padding: 0 0.15rem 0.25rem;
  text-align: center;
}

@media (min-width: 576px) {
  .bk-profile-footnote {
    text-align: start;
    padding-inline: 0;
  }
}

.bk-cart-summary {
  top: 5.75rem;
}

.bk-toast-wrap {
  pointer-events: none;
  bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 991.98px) {
  .bk-toast-wrap {
    bottom: calc(var(--bk-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
  }

  /* سبد پر: توست بالای نوار ثبت سفارش (ارتفاع نوار کمتر از قبل) */
  .bk-toast-wrap.bk-toast-wrap--above-cart-cta {
    bottom: calc(var(--bk-bottom-nav-h) + env(safe-area-inset-bottom, 0px) + 4.35rem);
  }
}

.bk-toast-wrap .alert {
  pointer-events: auto;
}

@media (max-width: 991.98px) {
  .bk-cart-summary {
    position: relative !important;
    top: auto !important;
  }
}

/* صفحه‌بندی: شکستن خط روی موبایل */
.bk-pagination {
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

@media (max-width: 575.98px) {
  .bk-pagination .page-link {
    padding: 0.45rem 0.65rem;
    font-size: 0.875rem;
  }

  .bk-cart-hero h1,
  .bk-cart-hero .h3,
  .bk-cart-hero .h4 {
    font-size: 1.2rem;
  }

  .bk-cart-total {
    font-size: 1.25rem;
  }
}

/* جدول سفارش‌ها: کارت موبایل */
.bk-order-card {
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bk-radius);
  transition: background-color 0.15s ease;
}

.bk-order-card:active {
  background-color: var(--bs-tertiary-bg);
}

/* چک‌اوت: برچسب روش پرداخت */
@media (max-width: 575.98px) {
  .bk-pay-option {
    padding: 0.85rem !important;
  }
}

@media (min-width: 992px) {
  .bk-checkout-summary {
    position: sticky;
    top: 5.75rem;
    z-index: 1;
  }
}

@media (max-width: 575.98px) {
  .bk-checkout-page .form-control,
  .bk-checkout-page .form-select,
  .bk-checkout-page textarea.form-control {
    font-size: 1rem;
    min-height: 2.75rem;
  }

  .bk-auth-page .form-control,
  .bk-auth-page .form-select,
  .bk-auth-page textarea.form-control {
    font-size: 1rem;
    min-height: 2.75rem;
  }
}

/* صفحات ورود / ثبت‌نام / OTP */
.bk-auth-page {
  align-items: flex-start;
}

@media (min-width: 768px) {
  .bk-auth-page {
    align-items: center;
    min-height: min(72vh, 38rem);
  }
}

/* ورود: چیدمان فشرده‌تر، تب پیش‌فرض کد تایید */
.bk-auth-page--login-min {
  --bk-auth-login-pad-x: 1rem;
  --bk-auth-login-pad-y: 1.1rem;
}

.bk-auth-card--login-min::before {
  height: 0.2rem;
}

.bk-auth-card--login-min .bk-auth-card__body {
  padding: var(--bk-auth-login-pad-y) var(--bk-auth-login-pad-x) 1.2rem;
}

@media (min-width: 576px) {
  .bk-auth-card--login-min .bk-auth-card__body {
    padding: 1.35rem 1.5rem 1.45rem;
  }
}

.bk-auth-login-min__head {
  margin-bottom: 0.75rem;
}

.bk-auth-login-min__title {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-top: 0.45rem !important;
  color: var(--bs-emphasis-color);
}

.bk-auth-login-logo__img--compact {
  max-height: 2.35rem;
}

@media (min-width: 576px) {
  .bk-auth-login-logo__img--compact {
    max-height: 2.65rem;
  }
}

.bk-auth-tabs--compact.nav-pills .nav-link {
  font-size: 0.8125rem;
  padding: 0.45rem 0.65rem;
  font-weight: 600;
}

.bk-auth-login-min__tab-content {
  margin-top: 0.35rem;
}

.bk-auth-submit--compact {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  min-height: 0;
}

.bk-auth-login-min__micro {
  font-size: 0.75rem;
  line-height: 1.45;
  opacity: 0.92;
}

.bk-auth-login-min__footer {
  margin-top: 0.85rem;
  font-size: 0.75rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .bk-auth-page--login-min {
    align-items: center;
    min-height: min(52vh, 26rem);
  }
}

.bk-auth-card {
  position: relative;
  background: var(--bs-body-bg);
  border-radius: var(--bk-radius);
  box-shadow:
    0 0.4rem 1.35rem rgba(0, 0, 0, 0.06),
    0 0 0 1px var(--bs-border-color-translucent);
  overflow: hidden;
}

.bk-auth-card::before {
  content: "";
  display: block;
  height: 0.3rem;
  background: linear-gradient(
    90deg,
    var(--bs-primary) 0%,
    rgba(var(--bs-primary-rgb), 0.55) 55%,
    var(--bs-primary-border-subtle) 100%
  );
}

.bk-auth-card__body {
  padding: 1.35rem 1.25rem 1.5rem;
}

@media (min-width: 576px) {
  .bk-auth-card__body {
    padding: 1.85rem 2rem 2rem;
  }
}

.bk-auth-login-logo {
  transition: opacity 0.2s var(--bk-ease);
}

.bk-auth-login-logo:hover {
  opacity: 0.88;
}

.bk-auth-login-logo:focus-visible {
  outline: 2px solid rgba(167, 207, 59, 0.75);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.bk-auth-login-logo__img {
  display: block;
  height: auto;
  width: auto;
  max-height: 2.85rem;
  max-width: min(14rem, 85vw);
  margin-inline: auto;
  object-fit: contain;
}

@media (min-width: 576px) {
  .bk-auth-login-logo__img {
    max-height: 3.2rem;
  }
}

.bk-auth-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: linear-gradient(145deg, var(--bs-primary-bg-subtle) 0%, rgba(var(--bs-primary-rgb), 0.11) 100%);
  color: var(--bs-primary);
  font-size: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(var(--bs-primary-rgb), 0.14);
}

.bk-auth-card__title {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--bs-emphasis-color);
}

@media (min-width: 576px) {
  .bk-auth-card__title {
    font-size: 1.35rem;
  }
}

.bk-auth-card__lead {
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  line-height: 1.55;
}

.bk-auth-tabs.nav-pills .nav-link {
  border: 1px solid transparent;
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  font-weight: 600;
  font-size: 0.875rem;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.bk-auth-tabs.nav-pills .nav-link:hover:not(.active) {
  color: var(--bs-emphasis-color);
  background: var(--bs-secondary-bg);
  border-color: var(--bs-border-color-translucent);
}

.bk-auth-tabs.nav-pills .nav-link.active {
  background: var(--bs-primary);
  color: #fff;
  border-color: var(--bs-primary);
  box-shadow: 0 0.2rem 0.85rem rgba(var(--bs-primary-rgb), 0.28);
}

.bk-auth-page .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--bs-emphasis-color);
  margin-bottom: 0.35rem;
}

.bk-auth-page .form-control {
  border-radius: 0.65rem;
}

.bk-captcha-visual {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.bk-auth-page img.captcha,
.bk-captcha-wrap img.captcha {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0.65rem;
  border: 1px solid var(--bs-border-color-translucent);
}

.captcha-refresh-btn {
  flex-shrink: 0;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  line-height: 1.2;
  color: var(--bs-body-color);
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.65rem;
}

.captcha-refresh-btn:hover {
  background: var(--bs-secondary-bg);
  border-color: var(--bs-border-color);
}

.captcha-refresh-btn:focus-visible {
  outline: 2px solid var(--bs-primary);
  outline-offset: 2px;
}

.bk-auth-hint {
  color: var(--bs-secondary-color);
  line-height: 1.5;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color-translucent);
}

.bk-auth-divider {
  border: 0;
  border-top: 1px solid var(--bs-border-color-translucent);
  margin: 1.5rem 0;
  opacity: 1;
}

.bk-auth-footer-hint {
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
}

.bk-auth-link-back {
  color: var(--bs-link-color) !important;
  font-weight: 600;
}

.bk-auth-link-back:hover {
  color: var(--bs-link-hover-color) !important;
}

@media (min-width: 576px) {
  .bk-auth-submit.btn-primary {
    min-height: 2.75rem;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
  }
}

.bk-auth-page input[name$="-code"] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2em;
  font-weight: 600;
  text-align: center;
}

@media (min-width: 576px) {
  .bk-auth-page input[name$="-code"] {
    font-size: 1.125rem;
    padding-block: 0.65rem;
  }
}

/* اسلایدشو صفحه اصلی (Swiper، RTL، موبایل/تبلت/دسکتاپ) */
.bk-hero-swiper {
  --swiper-theme-color: var(--bk-lime);
  --swiper-navigation-size: 2.25rem;
  --swiper-pagination-bullet-size: 0.5rem;
  --swiper-pagination-bottom: 0.6rem;
  width: 100%;
  max-width: 100%;
}

/* هر اسلاید تمام عرض ناحیهٔ محتوا (RTL + loop بدون نوار خالی) */
.bk-hero-swiper .swiper-slide {
  width: 100%;
  height: auto;
  box-sizing: border-box;
}

.bk-hero-swiper__frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--bs-secondary-bg);
  /*
   * نسبت هم‌نام با دارایی‌ها (مدل: 800×450 موبایل، 1400×520 دسکتاپ).
   * عمداً بدون max-height روی همین بلوک: ترکیب aspect-ratio + max-height
   * در بسیاری از موتورها عرض را از 100٪ کم می‌کند و «نیم اسلاید خالی» می‌سازد.
   */
  aspect-ratio: 800 / 450;
}

@media (min-width: 992px) {
  .bk-hero-swiper__frame {
    aspect-ratio: 1400 / 520;
  }
}

.bk-hero-swiper__frame picture {
  display: block;
  width: 100%;
  height: 100%;
}

.bk-hero-swiper__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bk-hero-swiper .swiper-button-prev,
.bk-hero-swiper .swiper-button-next {
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0;
  top: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.38);
  border-radius: 50%;
  backdrop-filter: blur(4px);
}

.bk-hero-swiper .swiper-button-prev::after,
.bk-hero-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}

.bk-hero-swiper .swiper-pagination-bullet {
  background: #fff;
  opacity: 0.55;
}

.bk-hero-swiper .swiper-pagination-bullet-active {
  opacity: 1;
}

@media (max-width: 575.98px) {
  .bk-hero-swiper .swiper-button-prev,
  .bk-hero-swiper .swiper-button-next {
    display: none;
  }
}

/* ——— پولیش UI: سطوح، کاتالوگ، هیرو، فلش پیام ——— */

.bk-surface-panel {
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--bk-line);
  border-radius: var(--bk-radius);
  box-shadow: var(--bk-shadow-xs);
}

@media (min-width: 768px) {
  .bk-surface-panel {
    padding: 1.25rem 1.5rem;
  }
}

.bk-product-list-header .text-muted {
  color: rgba(13, 40, 28, 0.58) !important;
}

.bk-price-panel {
  background: linear-gradient(180deg, rgba(227, 240, 232, 0.55), rgba(255, 255, 255, 0.9));
  border: 1px solid var(--bk-line) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bk-product-tile.card {
  --bs-card-bg: #fff;
  background-color: #fff !important;
  border: 1px solid rgba(5, 56, 37, 0.09) !important;
  box-shadow: 0 1px 2px rgba(5, 56, 37, 0.04), 0 8px 28px rgba(5, 56, 37, 0.05) !important;
}

.bk-product-tile.card .card-body {
  background-color: transparent;
}

.bk-product-tile__title a {
  color: var(--bk-ink);
  transition: color 0.2s var(--bk-ease);
}

.bk-product-tile__title a:hover {
  color: var(--bk-green);
}

.bk-hero-surface {
  border: 1px solid var(--bk-line);
  box-shadow: var(--bk-shadow-card);
  background: #fff;
}

.bk-home-products {
  margin-top: 0.25rem;
}

/* —— صفحهٔ اصلی: شبکهٔ دو ستون دسکتاپ، یک ستون موبایل؛ کارت افقی مینیمال —— */
.bk-product-list-header--home {
  padding: 0.2rem 0.15rem 0.85rem;
  margin-bottom: 0.35rem;
}

.bk-product-list-header__title-home {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--bk-green);
  position: relative;
  display: inline-block;
  padding-bottom: 0.45rem;
}

.bk-product-list-header__title-home::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 2.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bk-lime), rgba(167, 207, 59, 0.2));
  opacity: 0.95;
}

@media (min-width: 768px) {
  .bk-product-list-header--home {
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
  }

  .bk-product-list-header__title-home {
    font-size: 1.08rem;
    padding-bottom: 0.5rem;
  }

  .bk-product-list-header__title-home::after {
    width: 2.75rem;
  }
}

.bk-home-products .bk-product-tile--home.card {
  display: grid;
  grid-template-columns: minmax(5.5rem, 30%) 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.28rem 0.75rem;
  align-items: stretch;
  padding: 0.55rem 0.65rem;
  background-color: #fff !important;
  border-color: rgba(5, 56, 37, 0.08) !important;
  box-shadow: 0 1px 2px rgba(5, 56, 37, 0.04), 0 6px 22px rgba(5, 56, 37, 0.05) !important;
}

@media (min-width: 576px) {
  .bk-home-products .bk-product-tile--home.card {
    grid-template-columns: minmax(6.25rem, 28%) 1fr;
    gap: 0.35rem 1rem;
    padding: 0.65rem 0.85rem;
  }
}

.bk-home-products .bk-product-tile--home .bk-product-tile__media {
  grid-column: 1;
  grid-row: 1;
  border-bottom: none;
  border-radius: 0.6rem;
  overflow: hidden;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__ratio {
  --bs-aspect-ratio: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__form {
  grid-column: 1;
  grid-row: 2;
  margin-top: -0.2rem !important;
  align-self: stretch;
}

/* دکمهٔ + و استپر کمی نزدیک‌تر به تصویر */
.bk-home-products .bk-product-tile--home .bk-product-tile__cta {
  padding-top: 0;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__body {
  grid-column: 2;
  grid-row: 1 / span 2;
  padding: 0.1rem 0 0 !important;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__title {
  margin-bottom: 0.35rem !important;
  -webkit-line-clamp: 3;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__pricing {
  margin-top: 0;
  margin-bottom: 0 !important;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0.2rem 0 0;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__carton-row {
  margin-bottom: 0.35rem;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__carton-badge {
  font-size: 0.68rem;
  padding: 0.15rem 0.45rem;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__price-grid {
  gap: 0.35rem;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__meta-label,
.bk-home-products .bk-product-tile--home .bk-product-tile__meta-sublabel {
  font-size: 0.68rem;
}

/* در خانه فقط «موجود» مخفی است؛ «ناموجود» باید دیده شود */
.bk-home-products .bk-product-tile--home .bk-product-tile__chipbar:not(.bk-product-tile__chipbar--out) {
  display: none;
}

.bk-home-products .bk-product-tile--home.bk-product-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(5, 56, 37, 0.07), 0 14px 36px rgba(5, 56, 37, 0.07) !important;
  border-color: rgba(167, 207, 59, 0.38) !important;
}

.bk-home-products .bk-product-tile--home .bk-product-tile__cta--merged {
  min-height: 2.35rem;
}

.bk-flash {
  border: 1px solid transparent;
  box-shadow: var(--bk-shadow-xs);
}

.bk-flash.alert-success {
  background: rgba(227, 240, 232, 0.85);
  border-color: rgba(5, 56, 37, 0.12);
  color: var(--bk-ink);
}

.bk-flash.alert-danger {
  border-color: rgba(220, 53, 69, 0.2);
}

.bk-flash.alert-warning {
  border-color: rgba(255, 193, 7, 0.35);
}

.bk-flash.alert-info {
  border-color: rgba(13, 202, 240, 0.25);
}

.bk-nav-search .form-control:focus {
  border-color: rgba(5, 56, 37, 0.35);
}

::selection {
  background: rgba(167, 207, 59, 0.35);
  color: var(--bk-ink);
}
