@media (min-width: 1025px) {
  .dmh-header--mobile {
    display: none !important;
  }
}

/* базовые переменные */
:root {
  --dh-red: #d50032;
  --dh-border: #e5e7eb;
  --dh-text: #0f172a;

  /* mobile tokens */
  --dmh-m-fg: #0f172a;
  --dmh-m-muted: #334155;
  --dmh-m-icon: #0f172a;
  --dmh-m-icon-muted: #64748b;
}

/* =========================
   Mobile Header base
   ========================= */
.dmh-header--mobile {
  font-family: "Noto Sans Armenian", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  color: var(--dmh-m-fg);
  position: relative;
  z-index: 1001;

  /* чтобы Safari/iOS не инвертил поля в dark-mode окружении */
  color-scheme: light;
}

.dmh-header--mobile * {
  box-sizing: border-box;
}

.dmh-lock {
  overflow: hidden !important;
  touch-action: none;
}

/* ============================================================
   HARD FIX: Woodmart / global theme rules make icons/text pale
   ============================================================ */
.dmh-header--mobile,
.dmh-header--mobile * {
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
  text-shadow: none !important;
}

/* links/buttons text color */
.dmh-header--mobile a,
.dmh-header--mobile button,
.dmh-header--mobile .dmh-mbar__account,
.dmh-header--mobile .dmh-mbar__contact span {
  color: var(--dmh-m-fg) !important;
  -webkit-text-fill-color: var(--dmh-m-fg) !important;
}

/* ICONS ROW: always stroke, never fill */
.dmh-header--mobile .dmh-mbar__icons .dmh-ibtn {
  color: var(--dmh-m-icon) !important;
  -webkit-text-fill-color: var(--dmh-m-icon) !important;
}
.dmh-header--mobile .dmh-mbar__icons svg {
  stroke: currentColor !important;
  fill: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
.dmh-header--mobile .dmh-mbar__icons svg path,
.dmh-header--mobile .dmh-mbar__icons svg line,
.dmh-header--mobile .dmh-mbar__icons svg polyline,
.dmh-header--mobile .dmh-mbar__icons svg circle,
.dmh-header--mobile .dmh-mbar__icons svg rect {
  stroke: currentColor !important;
  fill: none !important;
  opacity: 1 !important;
}

/* CONTACTS ROW: fill icons (phone/mail), not stroke */
.dmh-header--mobile .dmh-mbar__contacts {
  color: var(--dmh-m-muted) !important;
}
.dmh-header--mobile .dmh-mbar__contacts .dmh-mbar__contact {
  color: var(--dmh-m-muted) !important;
  -webkit-text-fill-color: var(--dmh-m-muted) !important;
}
.dmh-header--mobile .dmh-mbar__contacts svg {
  fill: var(--dmh-m-icon-muted) !important;
  stroke: none !important;
  opacity: 1 !important;
}

/* =========================
   Top bar
   ========================= */
.dmh-mbar {
  position: sticky;
  top: 0;
  z-index: 1600;
  background: #fff;
  border-bottom: 1px solid var(--dh-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Row 1 */
.dmh-mbar__top {
  min-height: 60px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dmh-mbar__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--dmh-m-fg);
}

.dmh-mbar__logo img {
  max-height: 42px;
  width: auto;
  height: auto;
  display: block;
}

.dmh-mbar__brand {
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 18px;
  color: var(--dh-red);
}

.dmh-mbar__account {
  text-decoration: none;
  font-weight: 900;
  font-size: 14px;
  background: #f1f5f9;
  border: 1px solid #eef2f7;
  border-radius: 999px;
  padding: 10px 14px;
  line-height: 1;
}

/* Row 2 icons */
.dmh-mbar__icons {
  padding: 8px 10px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  border-top: 1px solid #f3f4f6;
}

.dmh-ibtn {
  width: 100%;
  height: 54px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.dmh-ibtn:active {
  transform: scale(0.98);
}

.dmh-ibtn svg {
  width: 32px;
  height: 32px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dmh-mbar__cart .dmh-m-cart-badge {
  position: absolute;
  top: 10px;
  right: 18px;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--dh-red);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* contacts */
.dmh-mbar__contacts {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.dmh-mbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  line-height: 1;
}

.dmh-mbar__contact svg {
  width: 18px;
  height: 18px;
}

/* =========================
   Overlay + Sheet
   ========================= */
.dmh-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 2400;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.dmh-sheet-overlay.is-open {
  opacity: 1;
}

.dmh-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2450;
  height: min(78vh, 720px);
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.22);
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.22, 0.85, 0.22, 1),
    opacity 0.28s ease;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 14px;
  opacity: 0;
}
.dmh-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
}

.dmh-sheet__handle {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  background: #e5e7eb;
  margin: 4px auto 10px;
}

/* =========================
   Sheet search row
   ========================= */
.dmh-sheet__search {
  display: grid !important;
  grid-template-columns: 1fr 54px 54px !important; /* ✅ input + mic + search */
  gap: 10px !important;
  align-items: center !important;
  padding: 4px 2px 10px;
}

/* input same height as buttons */
.dmh-sheet__search-input {
  flex: 1;
  height: 54px !important;
  border: 1px solid #eef2f7 !important;
  outline: none !important;
  padding: 0 14px !important;
  font-size: 15px;
  border-radius: 16px !important;
  background: #f8fafc !important;
  color: var(--dmh-m-fg) !important;
  -webkit-text-fill-color: var(--dmh-m-fg) !important;
}

/* search button: ровная квадратная */
.dmh-sheet__search-btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 0 !important;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  opacity: 1 !important;
  filter: none !important;
}

.dmh-sheet__search-btn svg,
.dmh-sheet__search-btn svg * {
  width: 26px !important;
  height: 26px !important;
  stroke: #0f172a !important;
  fill: none !important;
  opacity: 1 !important;
  stroke-opacity: 1 !important;
  fill-opacity: 1 !important;
}

/* ✅ MIC button (voice) */
.dmh-sheet__voice-btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 16px !important;
  border: 0 !important;
  background: var(--dh-red) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  line-height: 0 !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18) !important;
  opacity: 1 !important;
  filter: none !important;
}

.dmh-sheet__voice-btn svg,
.dmh-sheet__voice-btn svg * {
  width: 22px !important;
  height: 22px !important;
  fill: none !important;
  stroke: #fff !important;
  stroke-width: 2.2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  opacity: 1 !important;
  stroke-opacity: 1 !important;
}

.dmh-sheet__voice-btn.is-listening {
  transform: scale(1.02);
  box-shadow: 0 0 0 6px rgba(213, 0, 50, 0.18), 0 10px 30px rgba(0, 0, 0, 0.22) !important;
}

/* focus */
.dmh-sheet__search:focus-within .dmh-sheet__search-btn {
  border-color: var(--dh-red) !important;
  box-shadow: 0 10px 24px rgba(213, 0, 50, 0.12) !important;
}
.dmh-sheet__search:focus-within .dmh-sheet__search-input {
  border-color: var(--dh-red) !important;
  box-shadow: 0 10px 24px rgba(213, 0, 50, 0.1) !important;
}

/* =========================
   Body scroll
   ========================= */
.dmh-sheet__body {
  flex: 1;
  overflow: auto;
  padding: 2px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}
.dmh-sheet__body::-webkit-scrollbar {
  width: 8px;
}
.dmh-sheet__body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}
.dmh-sheet__body::-webkit-scrollbar-track {
  background: transparent;
}

/* =========================
   Live search results
   ========================= */
.dmh-sheet__results {
  padding: 6px 2px 12px;
}
.dmh-sheet__results:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dmh-sres__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.dmh-sres__item:active {
  transform: scale(0.995);
}

.dmh-sres__img {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 16px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #eef2f7;
}

.dmh-sres__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dmh-sres__meta {
  flex: 1;
  min-width: 0;
}

.dmh-sres__title {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dmh-sres__sub {
  margin-top: 4px;
  font-size: 12px;
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  line-height: 1.2;
}

.dmh-sres__sub b {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 900;
}

.dmh-sres__price {
  margin-top: 7px;
  font-weight: 900;
  font-size: 14px;
  color: var(--dh-red) !important;
  -webkit-text-fill-color: var(--dh-red) !important;
}

/* =========================
   Mobile navsheet menu
   ========================= */
.dmh-navsheet * {
  font-family: "Noto Sans Armenian", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif !important;
}

.dmh-navsheet ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dmh-navsheet > ul > li {
  border: 1px solid #eef2f7;
  border-radius: 14px;
  background: #fff;
  margin-bottom: 8px;
  overflow: hidden;
}

.dmh-navsheet a,
.dmh-navsheet .dmh-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  text-decoration: none;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  font-weight: 900;
  font-size: 13px !important;
}

.dmh-navsheet .dmh-menu-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  object-fit: contain;
}

.dmh-navsheet .sub-menu {
  display: none;
  padding: 0 8px 10px;
}

.dmh-navsheet li.is-open > .sub-menu {
  display: block;
  max-height: 45vh;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}

.dmh-navsheet .sub-menu a {
  font-weight: 800;
  padding: 9px 10px;
  border-radius: 12px;
  background: #f8fafc;
  margin-top: 7px;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
  font-size: 13px !important;
}

/* 3-й уровень underline */
.dmh-navsheet .sub-menu .sub-menu a {
  position: relative;
  background: transparent !important;
  padding-left: 14px;
}

.dmh-navsheet .sub-menu .sub-menu a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
  opacity: 0.55;
}

.dmh-navsheet .sub-menu .sub-menu a:hover::after,
.dmh-navsheet .sub-menu .sub-menu a:focus::after,
.dmh-navsheet .sub-menu .sub-menu a:active::after {
  transform: scaleX(1);
}

/* expand button */
.dmh-mexp {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dmh-mexp svg {
  width: 18px;
  height: 18px;
  stroke: currentColor !important;
  fill: none !important;
  stroke-width: 2.4;
  transition: transform 0.18s ease;
}

.dmh-navsheet li.is-open > a .dmh-mexp svg,
.dmh-navsheet li.is-open > span .dmh-mexp svg {
  transform: rotate(180deg);
}

/* =========================
   FINAL FIX: icons still pale
   ========================= */
.dmh-header--mobile .dmh-mbar__icons,
.dmh-header--mobile .dmh-mbar__icons .dmh-ibtn,
.dmh-header--mobile .dmh-mbar__icons .dmh-ibtn svg,
.dmh-header--mobile .dmh-mbar__icons .dmh-ibtn svg * {
  opacity: 1 !important;
  stroke-opacity: 1 !important;
  fill-opacity: 1 !important;
  filter: none !important;
}

/* force real dark icons */
.dmh-header--mobile .dmh-mbar__icons .dmh-ibtn {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

.dmh-header--mobile .dmh-mbar__icons .dmh-ibtn svg,
.dmh-header--mobile .dmh-mbar__icons .dmh-ibtn svg * {
  stroke: #0f172a !important;
  fill: none !important;
}

/* =========================
   FIX contacts icons (phone/mail)
   ========================= */
.dmh-header--mobile .dmh-mbar__contacts .dmh-mbar__contact,
.dmh-header--mobile .dmh-mbar__contacts .dmh-mbar__contact span {
  opacity: 1 !important;
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

.dmh-header--mobile .dmh-mbar__contacts .dmh-mbar__contact svg,
.dmh-header--mobile .dmh-mbar__contacts .dmh-mbar__contact svg * {
  opacity: 1 !important;
  fill: #64748b !important;
  stroke: none !important;
  fill-opacity: 1 !important;
  stroke-opacity: 1 !important;
  filter: none !important;
}

/* Divider for extra menu */
.dmh-sheet__divider {
  height: 1px;
  background: #eef2f7;
  margin: 12px 6px;
  border-radius: 999px;
}

/* Extra menu styling */
.dmh-navsheet--single > ul > li {
  background: #f8fafc;
}

/* =========================================================
   FORCE LIGHT/DARK on MOBILE
   ========================================================= */

/* ---------- LIGHT explicitly ---------- */
html[data-dmh-theme="light"] .dmh-header--mobile .dmh-mbar {
  background: #fff !important;
  border-bottom-color: #e5e7eb !important;
}
html[data-dmh-theme="light"] .dmh-header--mobile,
html[data-dmh-theme="light"] .dmh-header--mobile .dmh-ibtn {
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
html[data-dmh-theme="light"] .dmh-header--mobile .dmh-ibtn svg,
html[data-dmh-theme="light"] .dmh-header--mobile .dmh-ibtn svg * {
  stroke: #0f172a !important;
}
html[data-dmh-theme="light"] .dmh-header--mobile .dmh-mbar__contacts {
  background: #fff !important;
  border-top-color: #f3f4f6 !important;
}
html[data-dmh-theme="light"] .dmh-header--mobile .dmh-mbar__contact span {
  color: #334155 !important;
}
html[data-dmh-theme="light"] .dmh-header--mobile .dmh-mbar__contact svg,
html[data-dmh-theme="light"] .dmh-header--mobile .dmh-mbar__contact svg * {
  fill: #64748b !important;
}

/* ---------- DARK explicitly ---------- */
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-mbar {
  background: #24252a !important;
  border-bottom-color: #3a3b42 !important;
}
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-mbar__icons {
  border-top-color: #2f3037 !important;
}
html[data-dmh-theme="dark"] .dmh-header--mobile,
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-ibtn {
  color: #e5e5e5 !important;
  -webkit-text-fill-color: #e5e5e5 !important;
}
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-ibtn svg,
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-ibtn svg * {
  stroke: #e5e5e5 !important;
}

/* ✅ CONTACT TEXT FIX (phone/email) */
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-mbar__contacts {
  background: #24252a !important;
  border-top-color: #2f3037 !important;
}
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-mbar__contact,
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-mbar__contact span {
  color: #e5e5e5 !important;
  -webkit-text-fill-color: #e5e5e5 !important;
  opacity: 1 !important;
}
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-mbar__contact svg,
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-mbar__contact svg * {
  fill: #e5e5e5 !important;
  stroke: none !important;
  opacity: 1 !important;
}

/* dark sheet */
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-sheet {
  background: #2c2d33 !important;
}
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-sheet__search-input {
  background: #24252a !important;
  border-color: #3a3b42 !important;
  color: #e5e5e5 !important;
}
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-sheet__search-btn {
  background: #24252a !important;
  border-color: #3a3b42 !important;
  color: #e5e5e5 !important;
}
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-sheet__search-btn svg,
html[data-dmh-theme="dark"] .dmh-header--mobile .dmh-sheet__search-btn svg * {
  stroke: #e5e5e5 !important;
}

/* ================================
   TOP RIGHT (Account + Toggle) ALIGN
   ================================ */

.dmh-header--mobile .dmh-mbar__top {
  align-items: center !important;
}

/* правая группа */
.dmh-header--mobile .dmh-mbar__top-right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  height: 44px !important;
}

/* кнопка "Մուտք" */
.dmh-header--mobile .dmh-mbar__top-right .dmh-mbar__account {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  line-height: 44px !important;
  padding: 0 14px !important;
  margin: 0 !important;
}

/* контейнер тоггла */
.dmh-header--mobile .dmh-mbar__top-right .dmh-sky-toggle {
  display: flex !important;
  align-items: center !important;
  height: 44px !important;
  margin: 0 !important;
}

/* сам label-switch */
.dmh-header--mobile .dmh-mbar__top-right label.theme-switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 44px !important;
  vertical-align: middle !important;
}

/* чтобы "контейнер облаков" не тянул вверх/вниз */
.dmh-header--mobile .dmh-mbar__top-right .theme-switch__container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

/* чекбокс не влияет на высоту */
.dmh-header--mobile .dmh-mbar__top-right .theme-switch__checkbox {
  margin: 0 !important;
}
/* sheet search: 3 columns (input + mic + search) */
.dmh-header--mobile .dmh-sheet__search {
  display: grid !important;
  grid-template-columns: 1fr 54px 54px !important;
  gap: 10px !important;
  align-items: center !important;
}
.dmh-header--mobile .dmh-voice-btn {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

/* =========================
   MINI CART POPUP (Mobile)
   ========================= */
.dmh-minicart--mobile {
  align-items: flex-end;
  padding: 12px;
}

.dmh-minicart--mobile .dmh-minicart__panel {
  width: 100%;
  max-width: 720px;
  border-radius: 22px 22px 0 0;
  transform: translateY(24px);
}

.dmh-minicart--mobile.is-open .dmh-minicart__panel {
  transform: translateY(0);
}

/* keep same woo styles from desktop if desktop.css not loaded on mobile */
.dmh-minicart--mobile .dmh-minicart__content {
  padding-bottom: 20px;
}
