/* ==========================================================================
   داروسین — داروخانه آنلاین
   Static UI (Bootstrap 5 RTL + custom design system)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* brand */
  --dk-green-900: #04362C;
  --dk-green-800: #05513F;
  --dk-green-700: #0B6B52;
  --dk-green-600: #128268;
  --dk-green-500: #1DA383;

  /* mint surfaces */
  --dk-mint-50:  #F3FAF7;
  --dk-mint-100: #EDF6F3;
  --dk-mint-200: #E4F0EE;
  --dk-mint-300: #D5E9E2;

  /* accent */
  --dk-cream:    #FBEFE1;
  --dk-cream-2:  #F6E3CE;
  --dk-gold:     #C8964A;

  /* neutrals */
  --dk-white:    #FFFFFF;
  --dk-bg:       #FFFFFF;
  --dk-surface:  #F8F8FA;
  --dk-surface-2:#F4F8F7;
  --dk-line:     #ECEFEF;
  --dk-line-2:   #E3E8E7;

  /* text */
  --dk-ink:      #16302A;
  --dk-text:     #33443F;
  --dk-muted:    #778A85;
  --dk-muted-2:  #9AA8A4;

  /* shape */
  --dk-r-xs: 10px;
  --dk-r-sm: 14px;
  --dk-r-md: 18px;
  --dk-r-lg: 24px;
  --dk-r-xl: 30px;

  /* shadow */
  --dk-shadow-sm: 0 2px 10px rgba(16, 48, 40, .05);
  --dk-shadow-md: 0 8px 26px rgba(16, 48, 40, .07);
  --dk-shadow-lg: 0 18px 48px rgba(16, 48, 40, .10);

  --dk-header-h: 68px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  font-family: Vazirmatn, "Vazirmatn FD", "Segoe UI", Tahoma, sans-serif;
  background: var(--dk-bg);
  color: var(--dk-text);
  font-size: .95rem;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3 {
  color: var(--dk-ink);
  font-weight: 800;
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: color .18s ease; }
a:hover { color: var(--dk-green-700); }

img, svg { max-width: 100%; }
img { height: auto; }

:focus-visible {
  outline: 2px solid var(--dk-green-600);
  outline-offset: 2px;
  border-radius: 6px;
}

.dk-container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 16px;
}

.dk-section { padding-block: 26px; }

.dk-skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 1200;
  background: var(--dk-green-800);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 var(--dk-r-sm) var(--dk-r-sm);
  transition: top .2s ease;
}
.dk-skip-link:focus { top: 0; color: #fff; }

/* Section heading (used by "پیشنهادهای ویژه" etc.) */
.dk-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
}
.dk-section-link {
  font-size: .82rem;
  color: var(--dk-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.dk-section-link:hover { color: var(--dk-green-700); }
.dk-section-link svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   3. Buttons
   -------------------------------------------------------------------------- */
.dk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  padding: 10px 26px;
  line-height: 1.6;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .12s ease;
}
.dk-btn:active { transform: translateY(1px); }

.dk-btn-primary { background: var(--dk-green-800); color: #fff; }
.dk-btn-primary:hover { background: var(--dk-green-700); color: #fff; }

.dk-btn-white { background: var(--dk-white, #fff); color: var(--dk-green-800); box-shadow: var(--dk-shadow-sm); }
.dk-btn-white:hover { background: var(--dk-mint-100); color: var(--dk-green-800); }

.dk-btn-outline {
  background: var(--dk-white, #fff);
  color: var(--dk-text);
  border: 1px solid var(--dk-line-2);
}
.dk-btn-outline:hover { border-color: var(--dk-green-600); color: var(--dk-green-700); }

.dk-btn-gold { background: var(--dk-white, #fff); color: var(--dk-gold); box-shadow: var(--dk-shadow-sm); }
.dk-btn-gold:hover { background: #FFF8EF; color: var(--dk-gold); }

.dk-btn-sm { padding: 7px 20px; font-size: .78rem; }

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.dk-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--dk-white, #fff);
  border-bottom: 1px solid var(--dk-line);
}

.dk-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: var(--dk-header-h);
}

/* brand */
.dk-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
  color: var(--dk-green-900);
}
.dk-brand:hover { color: var(--dk-green-800); }
.dk-brand-mark { width: 30px; height: 30px; flex: none; }
.dk-brand-text { font-size: 1.32rem; font-weight: 800; letter-spacing: -.4px; }

/* nav */
.dk-nav { display: flex; align-items: center; gap: 4px; }
.dk-nav--desktop { margin-inline: auto; }
.dk-nav-link {
  position: relative;
  display: block;
  padding: 22px 14px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--dk-text);
  white-space: nowrap;
}
.dk-nav-link::after {
  content: "";
  position: absolute;
  bottom: 14px;
  inset-inline: 14px;
  height: 3px;
  border-radius: 3px;
  background: var(--dk-green-700);
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .2s ease, transform .2s ease;
}
.dk-nav-link:hover { color: var(--dk-green-700); }
.dk-nav-link:hover::after { opacity: .35; transform: scaleX(1); }
.dk-nav-link.is-active { color: var(--dk-green-700); }
.dk-nav-link.is-active::after { opacity: 1; transform: scaleX(1); }

/* header actions */
.dk-header-actions { display: flex; align-items: center; gap: 10px; }

.dk-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  border: 0;
  color: var(--dk-ink);
  transition: background-color .2s ease, color .2s ease;
}
.dk-icon-btn:hover { background: var(--dk-mint-100); color: var(--dk-green-700); }
.dk-icon-btn svg { width: 21px; height: 21px; }

.dk-cart-count {
  position: absolute;
  top: 2px;
  inset-inline-end: 2px;
  min-width: 17px;
  height: 17px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--dk-green-700);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.dk-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-direction: row-reverse;
  font-size: .82rem;
  font-weight: 600;
  color: var(--dk-ink);
  padding: 8px 6px;
}
.dk-auth-link svg { width: 19px; height: 19px; }
.dk-auth-link:hover { color: var(--dk-green-700); }

.dk-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid var(--dk-line-2);
  background: var(--dk-white, #fff);
  border-radius: 12px;
  color: var(--dk-ink);
}
.dk-burger svg { width: 20px; height: 20px; }

/* header search row */
.dk-header-search { padding-bottom: 14px; }
.dk-search {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  background: var(--dk-white, #fff);
  border: 1px solid var(--dk-line-2);
  border-radius: 999px;
  box-shadow: var(--dk-shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dk-search:focus-within {
  border-color: var(--dk-green-500);
  box-shadow: 0 0 0 4px rgba(29, 163, 131, .10);
}
.dk-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 11px 20px;
  font-size: .84rem;
  color: var(--dk-ink);
}
.dk-search input::placeholder { color: var(--dk-muted-2); }
.dk-search input:focus { outline: 0; }
.dk-search-btn {
  flex: none;
  width: 42px; height: 42px;
  margin-inline-end: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent;
  color: var(--dk-muted);
  border-radius: 999px;
}
.dk-search-btn:hover { color: var(--dk-green-700); }
.dk-search-btn svg { width: 19px; height: 19px; }

/* ---- mobile drawer (native app style) ---- */
.dk-drawer {
  --bs-offcanvas-width: min(88vw, 330px);
  width: var(--bs-offcanvas-width);
  border: 0;
  background: var(--dk-white, #fff);
}
.dk-chevron { width: 15px; height: 15px; flex: none; }
.dk-drawer .offcanvas-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--dk-line);
}
.dk-drawer .offcanvas-body { padding: 0; display: flex; flex-direction: column; }

.dk-drawer-close {
  width: 36px; height: 36px;
  border: 0; padding: 0;
  border-radius: 12px;
  background: var(--dk-surface);
  color: var(--dk-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.dk-drawer-close:hover { background: var(--dk-mint-100); color: var(--dk-green-700); }
.dk-drawer-close svg { width: 18px; height: 18px; }

.dk-drawer-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 18px 6px;
  padding: 14px 16px;
  border-radius: var(--dk-r-md);
  background: var(--dk-mint-100);
  color: var(--dk-ink);
}
.dk-drawer-user:hover { color: var(--dk-ink); background: var(--dk-mint-200); }
.dk-drawer-avatar {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 14px;
  background: var(--dk-white, #fff);
  color: var(--dk-green-700);
  display: inline-flex; align-items: center; justify-content: center;
}
.dk-drawer-avatar svg { width: 22px; height: 22px; }
.dk-drawer-user-title { font-size: .86rem; font-weight: 800; line-height: 1.6; }
.dk-drawer-user-sub { font-size: .74rem; color: var(--dk-muted); line-height: 1.6; }
.dk-drawer-user .dk-chevron { margin-inline-start: auto; color: var(--dk-muted-2); }

.dk-drawer-group { padding: 10px 0 4px; }
.dk-drawer-label {
  font-size: .68rem;
  font-weight: 700;
  color: var(--dk-muted-2);
  padding: 6px 20px;
  letter-spacing: .2px;
}
.dk-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dk-text);
  min-height: 48px;
  transition: background-color .18s ease, color .18s ease;
}
.dk-drawer-link:hover,
.dk-drawer-link:active { background: var(--dk-mint-50); color: var(--dk-green-700); }
.dk-drawer-link svg:first-child { width: 21px; height: 21px; flex: none; color: var(--dk-green-700); }
.dk-drawer-link .dk-chevron { margin-inline-start: auto; width: 15px; height: 15px; color: var(--dk-muted-2); }
.dk-drawer-link.is-active {
  color: var(--dk-green-800);
  background: var(--dk-mint-100);
  box-shadow: inset 3px 0 0 var(--dk-green-700);
}
[dir="rtl"] .dk-drawer-link.is-active { box-shadow: inset -3px 0 0 var(--dk-green-700); }

.dk-drawer-sep { height: 1px; background: var(--dk-line); margin: 8px 20px; }

.dk-drawer-foot {
  margin-top: auto;
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--dk-line);
}
.dk-drawer-call {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700; color: var(--dk-ink);
  margin-bottom: 12px;
}
.dk-drawer-call svg { width: 17px; height: 17px; color: var(--dk-green-700); }

/* ---- mobile bottom tab bar (native app style) ---- */
.dk-tabbar {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1035;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--dk-line);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 24px rgba(16, 48, 40, .07);
}
.dk-tabbar-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  max-width: 560px;
  margin-inline: auto;
}
.dk-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 2px 8px;
  min-height: 58px;
  font-size: .63rem;
  font-weight: 600;
  color: var(--dk-muted);
  -webkit-tap-highlight-color: transparent;
}
.dk-tab svg { width: 22px; height: 22px; }
.dk-tab.is-active { color: var(--dk-green-700); }
.dk-tab.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 26px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--dk-green-700);
}
.dk-tab-badge {
  position: absolute;
  top: 5px;
  inset-inline-start: calc(50% + 4px);
  min-width: 16px; height: 16px;
  padding-inline: 4px;
  border-radius: 999px;
  background: var(--dk-green-700);
  color: #fff;
  font-size: .58rem;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}
/* raised centre action */
.dk-tab--fab { color: #fff; }
.dk-tab--fab .dk-tab-fab {
  width: 50px; height: 50px;
  margin-top: -22px;
  border-radius: 18px;
  background: var(--dk-green-800);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(5, 81, 63, .32);
  transition: transform .18s ease;
}
.dk-tab--fab:active .dk-tab-fab { transform: scale(.94); }
.dk-tab--fab .dk-tab-fab svg { width: 24px; height: 24px; }
.dk-tab--fab span:last-child { color: var(--dk-green-800); font-weight: 700; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.dk-hero {
  background: var(--dk-surface);
  padding-block: 8px 22px;
  position: relative;
}
.dk-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 28px;
  min-height: 400px;
}
/* در ماکت، ستون متن سمت چپ و تصویر سمت راست قرار دارد */
.dk-hero-copy { padding-block: 18px; order: 2; }
.dk-hero-media { order: 1; }

.dk-hero-title {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--dk-green-800);
  line-height: 1.6;
  margin-bottom: 18px;
}
.dk-hero-lead { font-size: 1rem; font-weight: 700; color: var(--dk-ink); margin-bottom: 2px; }
.dk-hero-sub { font-size: .88rem; color: var(--dk-muted); margin-bottom: 26px; }

/* hero search */
.dk-hero-search {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  background: var(--dk-white, #fff);
  border-radius: 18px;
  box-shadow: var(--dk-shadow-md);
  padding: 8px;
  max-width: 460px;
  transition: box-shadow .2s ease;
}
.dk-hero-search:focus-within { box-shadow: 0 0 0 4px rgba(29, 163, 131, .12), var(--dk-shadow-md); }
.dk-hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-size: .86rem;
  color: var(--dk-ink);
}
.dk-hero-search input::placeholder { color: var(--dk-muted-2); }
.dk-hero-search input:focus { outline: 0; }
.dk-hero-search button {
  flex: none;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--dk-green-800);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s ease;
}
.dk-hero-search button:hover { background: var(--dk-green-700); }
.dk-hero-search button svg { width: 20px; height: 20px; }

/* hero CTA cards */
.dk-hero-cta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
  max-width: 460px;
}
.dk-cta-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--dk-r-md);
  background: var(--dk-white, #fff);
  box-shadow: var(--dk-shadow-md);
  transition: transform .18s ease, box-shadow .18s ease;
}
.dk-cta-card:hover { transform: translateY(-3px); box-shadow: var(--dk-shadow-lg); }
.dk-cta-ico {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--dk-mint-100);
  color: var(--dk-green-800);
}
.dk-cta-ico svg { width: 24px; height: 24px; }
.dk-cta-title { font-size: .92rem; font-weight: 800; color: var(--dk-ink); line-height: 1.5; }
.dk-cta-sub { font-size: .72rem; color: var(--dk-muted); line-height: 1.7; }

.dk-cta-card--primary { background: var(--dk-green-800); color: #fff; }
.dk-cta-card--primary .dk-cta-ico { background: transparent; color: #fff; }
.dk-cta-card--primary .dk-cta-title { color: #fff; }
.dk-cta-card--primary .dk-cta-sub { color: rgba(255, 255, 255, .72); }
.dk-cta-card--primary:hover { background: var(--dk-green-700); }

/* hero media */
.dk-hero-media { position: relative; }
.dk-hero-media img {
  width: 100%;
  border-radius: var(--dk-r-lg);
  display: block;
}

/* dots */
.dk-hero-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 14px;
}
.dk-hero-dots button {
  width: 7px; height: 7px;
  border: 0; padding: 0;
  border-radius: 999px;
  background: #D3DAD9;
  transition: width .25s ease, background-color .25s ease;
}
.dk-hero-dots button.is-active { width: 20px; background: var(--dk-green-700); }

/* --------------------------------------------------------------------------
   6. Categories
   -------------------------------------------------------------------------- */
.dk-cats {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.dk-cat {
  background: var(--dk-white, #fff);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-md);
  padding: 18px 8px 14px;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dk-cat:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--dk-shadow-md);
}
.dk-cat-ico {
  display: block;
  margin: 0 auto 12px;
  width: 38px; height: 38px;
  color: var(--dk-green-800);
}
.dk-cat-name { font-size: .8rem; font-weight: 600; color: var(--dk-text); }

/* --------------------------------------------------------------------------
   7. Trust bar
   -------------------------------------------------------------------------- */
.dk-trustbar {
  background: var(--dk-surface-2);
  border-radius: var(--dk-r-md);
  padding: 18px 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.dk-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 10px;
}
.dk-trust-ico { flex: none; width: 40px; height: 40px; color: var(--dk-green-700); }
.dk-trust-title { font-size: .85rem; font-weight: 800; color: var(--dk-ink); line-height: 1.6; }
.dk-trust-sub { font-size: .72rem; color: var(--dk-muted); line-height: 1.7; }

/* --------------------------------------------------------------------------
   8. Promo row (club + ask pharmacist + reminder)
   -------------------------------------------------------------------------- */
.dk-promo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.dk-promo-side { display: grid; gap: 16px; align-content: stretch; }

/* club card */
.dk-club {
  position: relative;
  overflow: hidden;
  background: var(--dk-green-800);
  border-radius: var(--dk-r-lg);
  color: #fff;
  display: grid;
  grid-template-columns: 58% 42%;
  align-items: center;
  gap: 8px;
  padding: 26px 30px;
  min-height: 220px;
}
.dk-club::after {
  content: "";
  position: absolute;
  inset-inline-start: -60px;
  top: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .04);
}
.dk-club-media { position: relative; z-index: 1; order: 2; }
.dk-club-media img { width: 100%; max-width: 230px; display: block; }
.dk-club-copy { position: relative; z-index: 1; text-align: start; order: 1; }
.dk-club-title { font-size: 1.25rem; font-weight: 800; color: #fff; margin-bottom: 14px; }
.dk-club-text { font-size: .86rem; color: rgba(255, 255, 255, .82); line-height: 2.1; margin-bottom: 18px; }

/* ask pharmacist */
.dk-ask {
  position: relative;
  overflow: hidden;
  background: var(--dk-mint-200);
  border-radius: var(--dk-r-md);
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: end;
  gap: 10px;
  padding-block: 20px;
  padding-inline: 0 24px;
  min-height: 118px;
}
.dk-ask-copy { padding-bottom: 4px; order: 2; }
.dk-ask-title { font-size: 1.02rem; font-weight: 800; color: var(--dk-green-800); margin-bottom: 6px; }
.dk-ask-text { font-size: .76rem; color: #5D7570; line-height: 1.9; margin-bottom: 12px; }
.dk-ask-media { align-self: end; order: 1; }
.dk-ask-media img { display: block; width: 100%; }

/* reminder */
.dk-remind {
  position: relative;
  overflow: hidden;
  background: var(--dk-cream);
  border-radius: var(--dk-r-md);
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 10px;
  padding: 20px 24px;
  min-height: 118px;
}
.dk-remind-copy { order: 2; }
.dk-remind-media { order: 1; }
.dk-remind-title { font-size: 1.02rem; font-weight: 800; color: var(--dk-gold); margin-bottom: 6px; }
.dk-remind-text { font-size: .76rem; color: #96795A; line-height: 1.9; margin-bottom: 12px; }
.dk-remind-media img { display: block; width: 100%; }

/* --------------------------------------------------------------------------
   9. Special offers
   -------------------------------------------------------------------------- */
.dk-offers {
  position: relative;
  background: #FCFCFC;
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-lg);
  padding: 20px 18px 24px;
}
.dk-offers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.dk-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.dk-rail::-webkit-scrollbar { display: none; }
.dk-rail > * { scroll-snap-align: start; }

.dk-rail-nav {
  position: absolute;
  top: 55%;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--dk-line);
  background: var(--dk-white, #fff);
  color: var(--dk-ink);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--dk-shadow-md);
  z-index: 2;
  transition: background-color .2s ease, color .2s ease;
}
.dk-rail-nav:hover { background: var(--dk-green-800); color: #fff; border-color: transparent; }
.dk-rail-nav svg { width: 15px; height: 15px; }
.dk-rail-nav--prev { inset-inline-end: -14px; }
.dk-rail-nav--next { inset-inline-start: -14px; }

/* product card */
.dk-product {
  position: relative;
  flex: 0 0 calc((100% - 5 * 14px) / 6);
  min-width: 158px;
  background: var(--dk-white, #fff);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-md);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dk-product:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--dk-shadow-md);
}
.dk-off-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--dk-green-800);
  color: #fff;
  font-size: .64rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  line-height: 1.6;
}
.dk-product-media {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
.dk-product-media img { max-height: 100%; width: auto; }
.dk-product-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--dk-text);
  text-align: center;
  margin-bottom: 14px;
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dk-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.dk-price { font-size: .86rem; font-weight: 800; color: var(--dk-ink); white-space: nowrap; }
.dk-price small { font-size: .66rem; font-weight: 500; color: var(--dk-muted); margin-inline-start: 3px; }
.dk-btn-cart {
  flex: none;
  width: 34px; height: 34px;
  border: 0;
  border-radius: 11px;
  background: var(--dk-mint-100);
  color: var(--dk-green-700);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background-color .2s ease, color .2s ease;
}
.dk-btn-cart:hover { background: var(--dk-green-800); color: #fff; }
.dk-btn-cart svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   10. Feature strip
   -------------------------------------------------------------------------- */
.dk-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dk-feature {
  background: var(--dk-surface);
  border-radius: var(--dk-r-md);
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.dk-feature-ico {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--dk-white, #fff);
  color: var(--dk-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.dk-feature-ico svg { width: 23px; height: 23px; }
.dk-feature-title { font-size: .86rem; font-weight: 800; color: var(--dk-ink); line-height: 1.7; }
.dk-feature-text { font-size: .73rem; color: var(--dk-muted); line-height: 1.9; }

/* --------------------------------------------------------------------------
   11. App + pharmacy
   -------------------------------------------------------------------------- */
.dk-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dk-app {
  background: var(--dk-mint-100);
  border-radius: var(--dk-r-lg);
  display: grid;
  grid-template-columns: 44% 1fr;
  align-items: center;
  gap: 10px;
  padding: 26px 28px 0;
  overflow: hidden;
}
.dk-app-copy { padding-bottom: 26px; order: 2; }
.dk-app-title { font-size: 1.15rem; font-weight: 800; color: var(--dk-ink); margin-bottom: 10px; }
.dk-app-text { font-size: .82rem; color: #5D7570; line-height: 2; margin-bottom: 18px; }
.dk-app-media { align-self: end; order: 1; }
.dk-app-media img { display: block; width: 100%; }

.dk-stores { display: flex; gap: 10px; flex-wrap: wrap; }
.dk-store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-direction: row-reverse;
  background: #12100E;
  color: #fff;
  border-radius: 10px;
  padding: 7px 14px;
  min-width: 128px;
  transition: opacity .2s ease;
}
.dk-store:hover { opacity: .86; color: #fff; }
.dk-store--rtl { flex-direction: row; }
.dk-store--rtl .dk-store-cap,
.dk-store--rtl .dk-store-name { text-align: start; }
.dk-store svg { width: 22px; height: 22px; flex: none; }
.dk-store-cap { font-size: .55rem; opacity: .75; line-height: 1.4; display: block; }
.dk-store-name { font-size: .82rem; font-weight: 700; line-height: 1.4; display: block; }

.dk-pharmacy {
  background: var(--dk-mint-100);
  border-radius: var(--dk-r-lg);
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
}
.dk-pharmacy-copy { order: 2; }
.dk-pharmacy-title { font-size: 1.15rem; font-weight: 800; color: var(--dk-ink); margin-bottom: 12px; }
.dk-pharmacy-list { list-style: none; margin: 0 0 16px; padding: 0; }
.dk-pharmacy-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-direction: row-reverse;
  justify-content: flex-start;
  font-size: .8rem;
  color: #5D7570;
  line-height: 2.1;
}
.dk-pharmacy-list svg { width: 15px; height: 15px; flex: none; color: var(--dk-green-700); }
.dk-map {
  order: 1;
  border-radius: var(--dk-r-md);
  overflow: hidden;
  box-shadow: var(--dk-shadow-sm);
  background: var(--dk-white, #fff);
  padding: 5px;
}
.dk-map img { display: block; width: 100%; border-radius: 14px; }

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.dk-footer {
  border-top: 1px solid var(--dk-line);
  margin-top: 26px;
  padding-block: 20px 26px;
}
.dk-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.dk-footer-copy { font-size: .76rem; color: var(--dk-muted); }
.dk-footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.dk-footer-links a { font-size: .76rem; color: var(--dk-muted); }
.dk-footer-links a:hover { color: var(--dk-green-700); }
.dk-socials { display: flex; gap: 10px; }
.dk-social {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--dk-muted);
  transition: background-color .2s ease, color .2s ease;
}
.dk-social:hover { background: var(--dk-mint-100); color: var(--dk-green-700); }
.dk-social svg { width: 17px; height: 17px; }

/* --------------------------------------------------------------------------
   13. Responsive
   -------------------------------------------------------------------------- */
@media (min-width: 992px) {
  /* کارت‌های بزرگ در ماکت سمت چپ ستون قرار می‌گیرند */
  .dk-club { order: 2; }
  .dk-promo-side { order: 1; }
  .dk-app { order: 2; }
  .dk-pharmacy { order: 1; }
}

@media (max-width: 1199.98px) {
  .dk-nav-link { padding-inline: 9px; font-size: .82rem; }
  .dk-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dk-product { flex-basis: calc((100% - 3 * 14px) / 4); }
}

@media (max-width: 991.98px) {
  /* --- native-style mobile top bar: [menu] … [logo] … [cart] --- */
  .dk-nav--desktop { display: none; }
  .dk-auth-link { display: none; }
  .dk-burger { display: inline-flex; order: 0; }
  .dk-header-top { height: 56px; gap: 6px; }
  .dk-brand { order: 1; flex: 1; justify-content: center; }
  .dk-brand-text { font-size: 1.18rem; }
  .dk-brand-mark { width: 26px; height: 26px; }
  .dk-header-actions { order: 2; gap: 2px; }
  .dk-header-search { padding-bottom: 10px; }
  .dk-search input { padding: 10px 16px; font-size: .8rem; }
  .dk-search-btn { width: 38px; height: 38px; }

  /* bottom tab bar replaces the desktop utility nav */
  .dk-tabbar { display: block; }
  body { padding-bottom: 62px; }
  .dk-footer { margin-bottom: 6px; }

  .dk-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; min-height: 0; }
  .dk-hero-copy { order: 2; text-align: center; }
  .dk-hero-media { order: 1; }
  .dk-hero-search, .dk-hero-cta { margin-inline: auto; }
  .dk-hero-title { font-size: 1.7rem; }

  .dk-trustbar { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }

  .dk-promo-grid { grid-template-columns: minmax(0, 1fr); }
  .dk-club { grid-template-columns: 60% 40%; min-height: 0; }

  .dk-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-bottom-grid { grid-template-columns: minmax(0, 1fr); }

  .dk-product { flex-basis: calc((100% - 2 * 14px) / 3); }
  .dk-rail-nav { display: none; }
}

@media (max-width: 767.98px) {
  .dk-section { padding-block: 18px; }

  .dk-cats {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
  }
  .dk-cats::-webkit-scrollbar { display: none; }
  .dk-cat { flex: 0 0 116px; scroll-snap-align: start; }

  .dk-club {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    padding: 24px 22px;
    gap: 14px;
  }
  .dk-club-media { order: 2; }
  .dk-club-media img { margin-inline: auto; max-width: 190px; }
  .dk-club-copy { order: 1; text-align: center; }

  .dk-ask, .dk-remind { grid-template-columns: 118px 1fr; padding-inline: 18px; }
  .dk-ask { padding-inline-start: 0; }

  .dk-app { grid-template-columns: minmax(0, 1fr); text-align: center; padding: 24px 22px 0; }
  .dk-app-media { max-width: 280px; margin-inline: auto; }
  .dk-stores { justify-content: center; }

  .dk-pharmacy { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .dk-pharmacy-list li { justify-content: center; }
  .dk-map { max-width: 320px; margin-inline: auto; }

  .dk-product { flex-basis: calc((100% - 14px) / 2); min-width: 150px; }
  .dk-offers { padding-inline: 14px; }

  .dk-footer-row { justify-content: center; text-align: center; }
  .dk-footer-links { justify-content: center; gap: 16px; }
}

@media (max-width: 575.98px) {
  .dk-hero-title { font-size: 1.45rem; }
  .dk-hero-cta { grid-template-columns: minmax(0, 1fr); }
  .dk-trustbar { grid-template-columns: minmax(0, 1fr); }
  .dk-features { grid-template-columns: minmax(0, 1fr); }
  .dk-header-search .dk-search { max-width: none; }
  .dk-product { flex-basis: 74%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .dk-rail { scroll-behavior: auto; }
}

/* ==========================================================================
   14. Inner pages
   ========================================================================== */

/* ---- breadcrumb + page head ---- */
.dk-breadcrumb { padding-block: 12px 0; }
.dk-breadcrumb ol {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px; margin: 0; padding: 0; list-style: none;
  font-size: .74rem; color: var(--dk-muted);
}
.dk-breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: var(--dk-muted-2);
}
.dk-breadcrumb a { color: var(--dk-muted); }
.dk-breadcrumb a:hover { color: var(--dk-green-700); }
.dk-breadcrumb [aria-current] { color: var(--dk-ink); font-weight: 600; }

.dk-page-head { padding-block: 18px 6px; }
.dk-page-title { font-size: 1.45rem; font-weight: 800; margin: 0 0 6px; }
.dk-page-sub { font-size: .84rem; color: var(--dk-muted); margin: 0; max-width: 70ch; }

/* ---- generic surface card ---- */
.dk-card {
  background: var(--dk-white, #fff);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-lg);
  padding: 22px;
}
.dk-card--mint { background: var(--dk-mint-100); border-color: transparent; }
.dk-card--flat { background: var(--dk-surface); border-color: transparent; }
.dk-card--dark { background: var(--dk-green-800); border-color: transparent; color: #fff; }
.dk-card--dark .dk-card-title { color: #fff; }
.dk-card-title { font-size: 1rem; font-weight: 800; margin: 0 0 14px; }
.dk-card-title--row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* ---- chips / status ---- */
.dk-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .7rem; font-weight: 700;
  background: var(--dk-mint-100); color: var(--dk-green-800);
}
.dk-chip--gold { background: var(--dk-cream); color: #A9773A; }
.dk-chip--gray { background: var(--dk-surface); color: var(--dk-muted); }
.dk-chip--red { background: #FDECEC; color: #B4453F; }
.dk-chip--blue { background: #EAF2FA; color: #2F6FA8; }
.dk-chip svg { width: 13px; height: 13px; }

/* ---- notes / alerts ---- */
.dk-note {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  border-radius: var(--dk-r-md);
  background: var(--dk-mint-100);
  font-size: .78rem; line-height: 1.9; color: #46605A;
}
.dk-note svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--dk-green-700); }
.dk-note--warn { background: var(--dk-cream); color: #8B6C42; }
.dk-note--warn svg { color: var(--dk-gold); }

/* ---- empty state ---- */
.dk-empty { text-align: center; padding: 46px 20px; }
.dk-empty svg { width: 62px; height: 62px; color: var(--dk-mint-300); margin-bottom: 14px; }
.dk-empty-title { font-size: .95rem; font-weight: 800; color: var(--dk-ink); margin-bottom: 6px; }
.dk-empty-text { font-size: .8rem; color: var(--dk-muted); margin-bottom: 18px; }

/* ---- forms ---- */
.dk-field { margin-bottom: 16px; }
.dk-label {
  display: block;
  font-size: .78rem; font-weight: 700; color: var(--dk-ink);
  margin-bottom: 7px;
}
.dk-label .dk-req { color: #C0554E; }
.dk-input, .dk-select, .dk-textarea {
  width: 100%;
  border: 1px solid var(--dk-line-2);
  border-radius: var(--dk-r-sm);
  background: var(--dk-white, #fff);
  padding: 11px 14px;
  font: inherit;
  font-size: .84rem;
  color: var(--dk-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.dk-textarea { min-height: 118px; resize: vertical; line-height: 2; }
.dk-input:focus, .dk-select:focus, .dk-textarea:focus {
  outline: 0;
  border-color: var(--dk-green-500);
  box-shadow: 0 0 0 4px rgba(29, 163, 131, .10);
}
.dk-input::placeholder, .dk-textarea::placeholder { color: var(--dk-muted-2); }
.dk-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23778A85%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Cpath d=%22M6 9l6 6 6-6%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-inline-end: 14px;
  padding-inline-start: 36px;
}
.dk-hint { font-size: .7rem; color: var(--dk-muted); margin-top: 6px; line-height: 1.8; }

.dk-check {
  display: flex; align-items: center; gap: 9px;
  font-size: .8rem; color: var(--dk-text);
  padding: 5px 0;
  cursor: pointer;
}
.dk-check input { width: 17px; height: 17px; accent-color: var(--dk-green-700); flex: none; }
.dk-check .dk-check-count { margin-inline-start: auto; font-size: .7rem; color: var(--dk-muted-2); }

/* radio card (shipping / payment options) */
.dk-radio-card {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--dk-line-2);
  border-radius: var(--dk-r-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.dk-radio-card:hover { border-color: var(--dk-green-500); }
.dk-radio-card input { width: 18px; height: 18px; accent-color: var(--dk-green-700); flex: none; }
.dk-radio-card:has(input:checked) { border-color: var(--dk-green-600); background: var(--dk-mint-50); }
.dk-radio-title { font-size: .84rem; font-weight: 700; color: var(--dk-ink); }
.dk-radio-sub { font-size: .72rem; color: var(--dk-muted); }
.dk-radio-price { margin-inline-start: auto; font-size: .8rem; font-weight: 700; color: var(--dk-ink); white-space: nowrap; }

/* file upload */
.dk-upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  border: 2px dashed var(--dk-mint-300);
  border-radius: var(--dk-r-md);
  background: var(--dk-mint-50);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.dk-upload:hover { border-color: var(--dk-green-500); background: var(--dk-mint-100); }
.dk-upload svg { width: 38px; height: 38px; color: var(--dk-green-700); }
.dk-upload-title { font-size: .84rem; font-weight: 700; color: var(--dk-ink); }
.dk-upload-hint { font-size: .72rem; color: var(--dk-muted); }
.dk-upload input { display: none; }

/* OTP boxes */
.dk-otp { display: flex; gap: 10px; justify-content: center; direction: ltr; }
.dk-otp input {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.25rem; font-weight: 800;
  border: 1px solid var(--dk-line-2);
  border-radius: var(--dk-r-sm);
  color: var(--dk-ink);
  background: var(--dk-white, #fff);
}
.dk-otp input:focus {
  outline: 0;
  border-color: var(--dk-green-500);
  box-shadow: 0 0 0 4px rgba(29, 163, 131, .10);
}

/* ---- steps ---- */
.dk-steps { display: flex; align-items: center; gap: 6px; margin-bottom: 24px; }
.dk-step { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--dk-muted); }
.dk-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--dk-surface);
  color: var(--dk-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
  flex: none;
}
.dk-step.is-active { color: var(--dk-green-800); font-weight: 700; }
.dk-step.is-active .dk-step-num { background: var(--dk-green-800); color: #fff; }
.dk-step.is-done .dk-step-num { background: var(--dk-mint-200); color: var(--dk-green-800); }
.dk-step-line { flex: 1; height: 2px; background: var(--dk-line); border-radius: 2px; min-width: 14px; }

/* ---- product listing ---- */
.dk-shop-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.dk-filters {
  background: var(--dk-white, #fff);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-lg);
  padding: 18px;
  position: sticky;
  top: 130px;
}
.dk-filter-group + .dk-filter-group { border-top: 1px solid var(--dk-line); margin-top: 14px; padding-top: 14px; }
.dk-filter-title { font-size: .82rem; font-weight: 800; color: var(--dk-ink); margin-bottom: 10px; }

.dk-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--dk-surface);
  border-radius: var(--dk-r-md);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: .78rem;
}
.dk-toolbar-label { color: var(--dk-muted); }
.dk-sort { display: flex; gap: 4px; flex-wrap: wrap; }
.dk-sort a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .76rem;
  color: var(--dk-muted);
}
.dk-sort a.is-active { background: var(--dk-white, #fff); color: var(--dk-green-800); font-weight: 700; box-shadow: var(--dk-shadow-sm); }
.dk-result-count { margin-inline-start: auto; color: var(--dk-muted); font-size: .74rem; }

.dk-grid-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dk-grid-products .dk-product { flex: none; min-width: 0; }

.dk-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; }
.dk-pagination > a, .dk-pagination > span {
  min-width: 36px; height: 36px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  border-radius: 11px;
  border: 1px solid var(--dk-line);
  font-size: .78rem;
  font-variant-numeric: tabular-nums;
  color: var(--dk-text);
  background: var(--dk-white, #fff);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.dk-pagination > a:hover { border-color: var(--dk-green-500); color: var(--dk-green-700); }
.dk-pagination > a:focus-visible { outline: 2px solid var(--dk-green-500); outline-offset: 2px; }
.dk-pagination .is-active { background: var(--dk-green-800); border-color: transparent; color: #fff; font-weight: 700; }
.dk-pagination .dk-page-step { padding: 0 12px; font-weight: 600; }
.dk-pagination .dk-page-step.is-disabled { color: var(--dk-muted-2); background: transparent; border-style: dashed; cursor: default; }
.dk-pagination .dk-page-gap { min-width: 18px; padding: 0; border-color: transparent; background: transparent; color: var(--dk-muted); }
/* پس از تعویض صفحه با HTMX، صفحه به ابتدای نتایج می‌رود (با کمی فاصله از لبهٔ بالا) */
#product-results, #blog-results { scroll-margin-top: 16px; }

.dk-filter-toggle { display: none; }
.dk-filter-toggle.is-active { border-color: var(--dk-green-600); color: var(--dk-green-700); background: var(--dk-mint-50); }

/* ---- product detail ---- */
.dk-pd { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 28px; align-items: start; }
.dk-pd-media {
  background: var(--dk-surface);
  border-radius: var(--dk-r-lg);
  padding: 26px;
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
}
.dk-pd-media img { max-height: 300px; width: auto; }
.dk-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.dk-thumb {
  width: 68px; height: 68px;
  border-radius: var(--dk-r-sm);
  border: 1px solid var(--dk-line);
  background: var(--dk-white, #fff);
  display: inline-flex; align-items: center; justify-content: center;
  padding: 6px;
}
.dk-thumb.is-active { border-color: var(--dk-green-600); }
.dk-thumb img { max-height: 100%; width: auto; }

.dk-pd-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.dk-pd-brand { font-size: .78rem; color: var(--dk-muted); margin-bottom: 16px; }
.dk-pd-meta { list-style: none; margin: 0 0 18px; padding: 0; }
.dk-pd-meta li {
  display: flex; gap: 8px;
  font-size: .8rem; line-height: 2.2;
  color: var(--dk-text);
}
.dk-pd-meta b { color: var(--dk-muted); font-weight: 600; min-width: 96px; }

.dk-pd-buy {
  background: var(--dk-surface);
  border-radius: var(--dk-r-lg);
  padding: 18px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.dk-pd-price { font-size: 1.35rem; font-weight: 800; color: var(--dk-ink); }
.dk-pd-price small { font-size: .74rem; font-weight: 500; color: var(--dk-muted); margin-inline-start: 4px; }
.dk-pd-price del { display: block; font-size: .8rem; font-weight: 500; color: var(--dk-muted-2); }

.dk-qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--dk-line-2);
  border-radius: 999px;
  background: var(--dk-white, #fff);
  overflow: hidden;
}
.dk-qty button {
  width: 36px; height: 38px;
  border: 0; background: transparent;
  color: var(--dk-green-800);
  font-size: 1rem; font-weight: 700;
}
.dk-qty button:hover { background: var(--dk-mint-100); }
.dk-qty span { min-width: 36px; text-align: center; font-size: .86rem; font-weight: 700; }

.dk-tabs { border-bottom: 1px solid var(--dk-line); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.dk-tabs::-webkit-scrollbar { display: none; }
.dk-tabs a {
  padding: 12px 18px;
  font-size: .84rem; font-weight: 600;
  color: var(--dk-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.dk-tabs a.is-active { color: var(--dk-green-800); border-bottom-color: var(--dk-green-700); }

/* ---- cart ---- */
.dk-cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.dk-cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--dk-line);
}
.dk-cart-item:last-child { border-bottom: 0; }
.dk-cart-thumb {
  width: 84px; height: 84px;
  border-radius: var(--dk-r-sm);
  background: var(--dk-surface);
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
}
.dk-cart-thumb img { max-height: 100%; width: auto; }
.dk-cart-name { font-size: .88rem; font-weight: 700; color: var(--dk-ink); margin-bottom: 4px; }
.dk-cart-sub { font-size: .72rem; color: var(--dk-muted); }
.dk-cart-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.dk-link-danger { font-size: .72rem; color: #B4453F; background: none; border: 0; padding: 0; }
.dk-link-danger:hover { text-decoration: underline; }

.dk-summary { position: sticky; top: 130px; }
.dk-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; padding: 9px 0; color: var(--dk-text);
}
.dk-summary-row span:last-child { font-weight: 700; color: var(--dk-ink); }
.dk-summary-row--off span:last-child { color: var(--dk-green-700); }
.dk-summary-total {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px dashed var(--dk-line-2);
  margin-top: 8px; padding-top: 14px;
  font-size: .92rem; font-weight: 800; color: var(--dk-ink);
}
.dk-coupon { display: flex; gap: 8px; margin: 14px 0; }
.dk-coupon .dk-input { flex: 1; }

/* ---- account ---- */
.dk-acc-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.dk-acc-side {
  background: var(--dk-white, #fff);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-lg);
  padding: 16px;
  position: sticky;
  top: 130px;
}
.dk-acc-user { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid var(--dk-line); margin-bottom: 10px; }
.dk-acc-avatar {
  width: 44px; height: 44px; border-radius: 15px;
  background: var(--dk-mint-100); color: var(--dk-green-700);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.dk-acc-avatar svg { width: 22px; height: 22px; }
.dk-acc-name { font-size: .86rem; font-weight: 800; color: var(--dk-ink); }
.dk-acc-mobile { font-size: .72rem; color: var(--dk-muted); }
.dk-acc-nav { display: flex; flex-direction: column; gap: 2px; }
.dk-acc-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--dk-r-sm);
  font-size: .82rem; font-weight: 600;
  color: var(--dk-text);
}
.dk-acc-nav a svg { width: 18px; height: 18px; color: var(--dk-muted); flex: none; }
.dk-acc-nav a:hover { background: var(--dk-mint-50); color: var(--dk-green-700); }
.dk-acc-nav a.is-active { background: var(--dk-mint-100); color: var(--dk-green-800); }
.dk-acc-nav a.is-active svg { color: var(--dk-green-700); }

.dk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.dk-stat {
  background: var(--dk-surface);
  border-radius: var(--dk-r-md);
  padding: 16px;
}
.dk-stat-label { font-size: .72rem; color: var(--dk-muted); margin-bottom: 6px; }
.dk-stat-value { font-size: 1.15rem; font-weight: 800; color: var(--dk-ink); }
.dk-stat-value small { font-size: .68rem; font-weight: 500; color: var(--dk-muted); margin-inline-start: 3px; }

.dk-table-wrap { overflow-x: auto; }
.dk-table { width: 100%; border-collapse: collapse; font-size: .8rem; min-width: 560px; }
.dk-table th {
  text-align: start;
  font-size: .74rem; font-weight: 700; color: var(--dk-muted);
  padding: 10px 12px;
  background: var(--dk-surface);
}
.dk-table th:first-child { border-start-start-radius: var(--dk-r-sm); }
.dk-table th:last-child { border-start-end-radius: var(--dk-r-sm); }
.dk-table td { padding: 14px 12px; border-bottom: 1px solid var(--dk-line); color: var(--dk-text); }
.dk-table tr:last-child td { border-bottom: 0; }

.dk-timeline { list-style: none; margin: 0; padding: 0; }
.dk-timeline li { position: relative; padding-inline-start: 26px; padding-bottom: 20px; }
.dk-timeline li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0; top: 5px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--dk-line-2);
}
.dk-timeline li::after {
  content: "";
  position: absolute;
  inset-inline-start: 5px; top: 18px; bottom: 0;
  width: 1px;
  background: var(--dk-line);
}
.dk-timeline li:last-child::after { display: none; }
.dk-timeline li.is-done::before { background: var(--dk-green-700); }
.dk-timeline-title { font-size: .82rem; font-weight: 700; color: var(--dk-ink); }
.dk-timeline-time { font-size: .7rem; color: var(--dk-muted); }

/* ---- blog ---- */
.dk-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dk-post {
  background: var(--dk-white, #fff);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dk-post:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--dk-shadow-md); }
.dk-post-cover {
  aspect-ratio: 16 / 9;
  background: var(--dk-mint-100);
  display: flex; align-items: center; justify-content: center;
}
.dk-post-cover svg { width: 64px; height: 64px; color: var(--dk-green-600); opacity: .55; }
.dk-post-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.dk-post-title { font-size: .92rem; font-weight: 800; color: var(--dk-ink); line-height: 1.9; margin-bottom: 8px; }
.dk-post-excerpt { font-size: .77rem; color: var(--dk-muted); line-height: 2; margin-bottom: 14px; }
.dk-post-meta { display: flex; align-items: center; gap: 12px; font-size: .7rem; color: var(--dk-muted-2); margin-top: auto; }

.dk-article { max-width: 780px; margin-inline: auto; }
.dk-article h2 { font-size: 1.1rem; margin: 26px 0 10px; }
.dk-article h3 { font-size: .95rem; margin: 20px 0 8px; }
.dk-article p { font-size: .86rem; line-height: 2.3; color: var(--dk-text); margin-bottom: 14px; }
.dk-article ul, .dk-article ol { font-size: .86rem; line-height: 2.3; padding-inline-start: 22px; margin-bottom: 14px; }
.dk-article-cover {
  aspect-ratio: 21 / 9;
  border-radius: var(--dk-r-lg);
  background: var(--dk-mint-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.dk-article-cover svg { width: 88px; height: 88px; color: var(--dk-green-600); opacity: .5; }

/* ---- accordion (FAQ) ---- */
.dk-acc-item {
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-md);
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--dk-white, #fff);
}
.dk-acc-item summary {
  list-style: none;
  cursor: pointer;
  padding: 15px 18px;
  font-size: .85rem; font-weight: 700; color: var(--dk-ink);
  display: flex; align-items: center; gap: 10px;
}
.dk-acc-item summary::-webkit-details-marker { display: none; }
.dk-acc-item summary::after {
  content: "";
  margin-inline-start: auto;
  width: 9px; height: 9px;
  border-inline-end: 2px solid var(--dk-muted);
  border-block-end: 2px solid var(--dk-muted);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.dk-acc-item[open] summary::after { transform: rotate(-135deg); }
.dk-acc-item[open] summary { color: var(--dk-green-800); }
.dk-acc-body { padding: 0 18px 16px; font-size: .8rem; line-height: 2.1; color: var(--dk-muted); }

/* ---- legal / prose page ---- */
.dk-prose { max-width: 820px; }
.dk-prose h2 { font-size: 1rem; margin: 24px 0 10px; }
.dk-prose p, .dk-prose li { font-size: .84rem; line-height: 2.3; color: var(--dk-text); }
.dk-prose ul, .dk-prose ol { padding-inline-start: 22px; margin-bottom: 14px; }

/* ---- auth page ---- */
.dk-auth-wrap {
  min-height: 62vh;
  display: flex; align-items: center; justify-content: center;
  padding-block: 40px;
}
.dk-auth-card {
  width: 100%; max-width: 400px;
  background: var(--dk-white, #fff);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-lg);
  padding: 30px 26px;
  box-shadow: var(--dk-shadow-md);
  text-align: center;
}
.dk-auth-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--dk-mint-100);
  color: var(--dk-green-700);
  display: flex; align-items: center; justify-content: center;
}
.dk-auth-icon svg { width: 28px; height: 28px; }
.dk-auth-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 6px; }
.dk-auth-note { font-size: .78rem; color: var(--dk-muted); line-height: 2; margin-bottom: 22px; }

/* ---- 404 ---- */
.dk-404 { text-align: center; padding-block: 60px 40px; }
.dk-404-code { font-size: clamp(3.4rem, 12vw, 6rem); font-weight: 800; color: var(--dk-mint-300); line-height: 1; }
.dk-404-title { font-size: 1.2rem; font-weight: 800; margin: 10px 0 8px; }
.dk-404-text { font-size: .84rem; color: var(--dk-muted); margin-bottom: 24px; }

/* ---- category tiles ---- */
.dk-cat-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.dk-cat-tile {
  background: var(--dk-white, #fff);
  border: 1px solid var(--dk-line);
  border-radius: var(--dk-r-lg);
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dk-cat-tile:hover { transform: translateY(-4px); border-color: transparent; box-shadow: var(--dk-shadow-md); }
.dk-cat-tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dk-cat-tile-ico {
  width: 46px; height: 46px; border-radius: 15px;
  background: var(--dk-mint-100); color: var(--dk-green-800);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.dk-cat-tile-ico svg { width: 24px; height: 24px; }
.dk-cat-tile-name { font-size: .92rem; font-weight: 800; color: var(--dk-ink); }
.dk-cat-tile-count { font-size: .7rem; color: var(--dk-muted); }
.dk-cat-tile-links { display: flex; flex-wrap: wrap; gap: 6px; }
.dk-cat-tile-links a {
  font-size: .72rem;
  color: var(--dk-muted);
  background: var(--dk-surface);
  border-radius: 999px;
  padding: 4px 11px;
}
.dk-cat-tile-links a:hover { background: var(--dk-mint-100); color: var(--dk-green-700); }

/* ---- misc layout helpers ---- */
.dk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dk-split--wide-start { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.dk-stack > * + * { margin-top: 16px; }
.dk-list-check { list-style: none; margin: 0; padding: 0; }
.dk-list-check li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .82rem; line-height: 2.1; color: var(--dk-text);
  padding: 3px 0;
}
.dk-list-check svg { width: 17px; height: 17px; flex: none; margin-top: 6px; color: var(--dk-green-600); }

/* ==========================================================================
   15. Inner pages — responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .dk-grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dk-cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .dk-filters, .dk-summary, .dk-acc-side { position: static; }
  .dk-shop-grid { grid-template-columns: minmax(0, 1fr); }
  .dk-filters { display: none; }
  .dk-filters.is-open { display: block; }
  .dk-filter-toggle { display: inline-flex; }
  .dk-cart-grid { grid-template-columns: minmax(0, 1fr); }
  .dk-acc-grid { grid-template-columns: minmax(0, 1fr); }
  .dk-pd { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dk-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-split, .dk-split--wide-start { grid-template-columns: minmax(0, 1fr); }
  .dk-cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-acc-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .dk-acc-nav::-webkit-scrollbar { display: none; }
  .dk-acc-nav a { white-space: nowrap; }
}

@media (max-width: 767.98px) {
  .dk-page-title { font-size: 1.2rem; }
  .dk-grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

  /* نوار ابزار: دکمه فیلتر در یک ردیف، مرتب‌سازی به‌صورت اسکرول افقی */
  .dk-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; }
  .dk-toolbar::-webkit-scrollbar { display: none; }
  .dk-toolbar > * { flex: none; }
  .dk-sort { flex-wrap: nowrap; }
  .dk-toolbar-label, .dk-result-count { white-space: nowrap; }
  .dk-filter-toggle { position: sticky; inset-inline-start: 0; z-index: 1; }
  .dk-posts { grid-template-columns: minmax(0, 1fr); }
  .dk-cat-tiles { grid-template-columns: minmax(0, 1fr); }
  .dk-card { padding: 18px 16px; }
  .dk-cart-item { grid-template-columns: 68px minmax(0, 1fr); }
  .dk-cart-thumb { width: 68px; height: 68px; }
  .dk-cart-actions { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
  .dk-steps { font-size: .7rem; gap: 4px; }
  .dk-step span:not(.dk-step-num) { display: none; }
  .dk-step.is-active span:not(.dk-step-num) { display: inline; }
  .dk-otp input { width: 42px; height: 50px; font-size: 1.1rem; }
  .dk-pd-media { min-height: 240px; padding: 18px; }
  .dk-pd-media img { max-height: 220px; }
  .dk-table { min-width: 480px; }
  .dk-pagination { gap: 5px; }
  .dk-pagination > a, .dk-pagination > span { min-width: 34px; height: 34px; }
  .dk-pagination .dk-page-step { padding: 0 9px; }
  .dk-pagination .dk-page-step span { display: none; }
}

@media (max-width: 575.98px) {
  .dk-stats { grid-template-columns: minmax(0, 1fr); }
  .dk-pd-buy { gap: 10px; }
  .dk-pd-buy .dk-btn { flex: 1; }
}

/* ==========================================================================
   16. AOS — انیمیشن هنگام اسکرول
   ========================================================================== */

/* شبکهٔ ایمنی: تا وقتی AOS واقعاً فعال نشده، هیچ عنصری مخفی نمی‌ماند.
   کلاس dk-aos-ready را اسکریپت درون <head> و سپس main.js اضافه می‌کند. */
html:not(.dk-aos-ready) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* حرکت‌ها کوتاه و ملایم نگه داشته می‌شوند تا حس «نرم» بدهند، نه حس «پرش» */
[data-aos="fade-up"] { transform: translate3d(0, 26px, 0); }
[data-aos="fade-down"] { transform: translate3d(0, -26px, 0); }
[data-aos="fade-right"] { transform: translate3d(-32px, 0, 0); }
[data-aos="fade-left"] { transform: translate3d(32px, 0, 0); }
[data-aos="zoom-in"] { transform: scale(.96); }

/* پس از پایان انیمیشن ورود، ترنزیشن سریع خود کامپوننت (hover و ...) برگردد.
   ویژگی‌گر سه‌کلاسه انتخاب شده تا بر قواعد duration خود AOS غلبه کند. */
[data-aos][data-aos].dk-aos-done {
  transition-property: opacity, transform, box-shadow, border-color, background-color, color;
  transition-duration: .2s;
  transition-delay: 0s;
}

/* عناصر چسبان فقط با تغییر شفافیت ظاهر شوند تا موقعیت‌شان به‌هم نریزد */
.dk-filters[data-aos],
.dk-summary[data-aos],
.dk-acc-side[data-aos] { transform: none !important; }

/* روی تبلت و موبایل، حرکت‌های افقی به عمودی تبدیل می‌شوند:
   هم طبیعی‌تر است و هم هیچ جابه‌جایی افقی ایجاد نمی‌کند */
@media (max-width: 991.98px) {
  [data-aos="fade-right"],
  [data-aos="fade-left"] { transform: translate3d(0, 22px, 0); }
}

/* روی موبایل حرکت‌ها کمی کوتاه‌تر تا اسکرول سنگین نشود */
@media (max-width: 767.98px) {
  [data-aos="fade-up"],
  [data-aos="fade-right"],
  [data-aos="fade-left"] { transform: translate3d(0, 18px, 0); }
}

/* احترام کامل به prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}
