/* ======================================================
   DMH Desktop — FIX top icons + no wrap + centered
   ====================================================== */

.dmh-header--desktop {
  font-family: "Noto Sans Armenian", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  width: 100%;
  position: relative;
  z-index: 1001;
  background: #fff;
  color: var(--dh-text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.dmh-in {
  max-width: var(--dh-w);
  width: 95%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dmh-bg-gray {
  background: var(--dh-gray);
  border-bottom: 1px solid var(--dh-border);
}
.dmh-bg-white {
  background: #fff;
}
.dmh-border-top {
  border-top: 1px solid var(--dh-border);
}

/* Desktop visibility */
@media (max-width: 1024px) {
  .dmh-header--desktop {
    display: none !important;
  }
}

/* ===== TOP BAR (ИСПРАВЛЕНО) ===== */
.dmh-topbar {
  height: 38px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #666;
}

.dmh-topbar__in {
  height: 38px;
  align-items: center;
  flex-wrap: nowrap;
}

.dmh-top-menu {
  min-width: 0;
  overflow: hidden;
}
.dmh-top-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 38px;
  white-space: nowrap;
  overflow: hidden;
}
.dmh-top-menu a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}
.dmh-top-menu a:hover {
  color: var(--dh-red);
  text-decoration: underline;
}

.dmh-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 38px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.dmh-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #444;
  font-weight: 700;
  height: 38px;
  white-space: nowrap;
}
.dmh-contact-item:hover {
  color: var(--dh-red);
}

.dmh-contact-item svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  color: var(--dh-red);
  flex: 0 0 auto;
}

.dmh-lang {
  font-weight: 800;
  color: #666;
  white-space: nowrap;
}

/* Узкий desktop: чуть компактнее, чтобы НЕ переносило */
@media (max-width: 1200px) and (min-width: 1025px) {
  .dmh-topbar {
    font-size: 12px;
  }
  .dmh-top-menu ul {
    gap: 12px;
  }
  .dmh-top-right {
    gap: 12px;
  }
  .dmh-contact-item svg {
    width: 16px;
    height: 16px;
  }
}

/* Очень узкий desktop: убираем язык, если мешает */
@media (max-width: 1100px) and (min-width: 1025px) {
  .dmh-lang {
    display: none !important;
  }
}

/* ===== MIDDLE/BOTTOM (твои прежние стили, чтобы дизайн не сломать) ===== */
.dmh-mid {
  padding: 25px 0;
  gap: 40px;
  position: relative;
  min-height: 100px;
}
.dmh-logo {
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: #fff;
  padding: 10px 20px 10px 0;
}
.dmh-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 250px;
  max-height: 80px;
  padding: 5px 0;
}

.dmh-search {
  flex: 1;
  margin-left: 280px;
  position: relative;
}
.dmh-s-box {
  display: flex;
  height: 48px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 4px;
  overflow: hidden;
}
.dmh-s-box:focus-within {
  border-color: var(--dh-red);
  box-shadow: 0 4px 12px rgba(213, 0, 50, 0.15);
}
.dmh-search-input {
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  padding: 0 20px;
  font-size: 15px;
  outline: none !important;
  color: #000;
  height: 100%;
}
.dmh-s-btn {
  width: 60px;
  background: var(--dh-red);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}
.dmh-s-btn svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2;
  fill: none;
}
.dmh-s-btn:hover {
  background: var(--dh-red-dark);
}

.dmh-acts {
  display: flex;
  gap: 25px;
  align-items: center;
}
.dmh-act {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.dmh-act svg {
  width: 28px;
  height: 28px;
  stroke: #333;
  stroke-width: 1.5;
  fill: none;
}
.dmh-act:hover {
  color: var(--dh-red);
}
.dmh-act:hover svg {
  stroke: var(--dh-red);
}
.dmh-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--dh-red);
  color: #fff;
  font-size: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dmh-bot {
  height: 52px;
}
.dmh-cat {
  background: var(--dh-red);
  color: #fff;
  height: 100%;
  padding: 0 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.dmh-cat svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  stroke-width: 2;
}
.dmh-nav {
  height: 100%;
  display: flex;
  align-items: center;
  margin-left: 25px;
}
.dmh-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
  height: 100%;
}
.dmh-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}
.dmh-nav a:hover {
  color: var(--dh-red);
}

/* ======================================================
   Desktop search button visible + premium look
   ====================================================== */

.dmh-search .dmh-s-box {
  background: #fff;
  border: 2px solid #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
}

.dmh-search .dmh-s-box:focus-within {
  border-color: var(--dh-red);
  box-shadow: 0 14px 40px rgba(213, 0, 50, 0.12);
}

.dmh-search .dmh-search-input {
  padding: 0 18px;
  font-size: 15px;
}

/* FIX: button always visible */
.dmh-search .dmh-s-btn {
  width: 58px;
  background: var(--dh-red);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s;
}

.dmh-search .dmh-s-btn:hover {
  background: var(--dh-red-dark);
}

.dmh-search .dmh-s-btn svg {
  width: 22px;
  height: 22px;
  stroke: #fff !important;
  stroke-width: 2.4 !important;
  fill: none !important;
  opacity: 1 !important;
}

/* small divider line (nice) */
.dmh-search .dmh-s-btn {
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.12) inset;
}

/* optional: subtle inner background in input */
.dmh-search .dmh-search-input {
  background: transparent !important;
}

/* ======================================================
   Desktop search — perfect alignment (input + button)
   ====================================================== */
.dmh-header--desktop .dmh-search {
  position: relative;
}

.dmh-header--desktop .dmh-s-box {
  height: 48px !important;
  border-radius: 16px !important;
  border: 1px solid #e9edf3 !important;
  background: #fff !important;
  overflow: hidden !important;

  display: flex !important;
  align-items: stretch !important;
}

.dmh-header--desktop .dmh-search-input {
  height: 48px !important;
  line-height: 48px !important;
  padding: 0 16px !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  font-size: 15px !important;
}

.dmh-header--desktop .dmh-s-btn {
  height: 48px !important;
  width: 56px !important;
  padding: 0 !important;
  margin: 0 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: var(--dh-red) !important;
  border: 0 !important;

  border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 0 !important;
}

.dmh-header--desktop .dmh-s-btn svg {
  width: 22px !important;
  height: 22px !important;
  stroke: #fff !important;
  stroke-width: 2.4 !important;
  fill: none !important;
}

/* красивый фокус */
.dmh-header--desktop .dmh-s-box:focus-within {
  border-color: var(--dh-red) !important;
  box-shadow: 0 14px 40px rgba(213, 0, 50, 0.12) !important;
}

/* ======================================================
   Desktop search animations (framer-motion-like)
   ====================================================== */

.dmh-header--desktop .dmh-search__dd {
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dmh-header--desktop .dmh-search__dd.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dmh-header--desktop .dmh-s-box {
  transition: box-shadow 0.22s ease, transform 0.22s ease,
    border-color 0.22s ease;
}
.dmh-header--desktop .dmh-s-box:focus-within {
  transform: translateY(-1px);
}

.dmh-header--desktop .dmh-s-btn.is-shake {
  animation: dmhShake 0.42s ease;
}
@keyframes dmhShake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
  75% {
    transform: translateX(-1px);
  }
  100% {
    transform: translateX(0);
  }
}

.dmh-header--desktop .dmh-search__dd-list {
  padding: 10px;
}

.dmh-header--desktop .dmh-search__item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  text-decoration: none;
  color: #0f172a;
  transition: background 0.18s ease, transform 0.18s ease;
}
.dmh-header--desktop .dmh-search__item:hover {
  background: #f6f7fb;
  transform: translateX(2px);
}

.dmh-header--desktop .dmh-search__thumb {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid #eef2f7;
}
.dmh-header--desktop .dmh-search__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dmh-search__imgph {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 220% 100%;
  animation: dmhShimmer 1.1s linear infinite;
}

.dmh-header--desktop .dmh-search__meta {
  flex: 1;
  min-width: 0;
}
.dmh-header--desktop .dmh-search__title {
  font-weight: 900;
  font-size: 14px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dmh-header--desktop .dmh-search__sku {
  margin-top: 3px;
  font-size: 12px;
  color: #64748b;
}
.dmh-header--desktop .dmh-search__price {
  margin-top: 6px;
  font-weight: 900;
  color: var(--dh-red);
}

.dmh-header--desktop .dmh-anim-in {
  animation: dmhIn 0.22s ease both;
}
@keyframes dmhIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dmh-search__skwrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dmh-search__sk {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #eef2f7;
  animation: dmhIn 0.18s ease both;
}
.dmh-search__sk-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 220% 100%;
  animation: dmhShimmer 1.1s linear infinite;
}
.dmh-search__sk-meta {
  flex: 1;
}
.dmh-search__sk-line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #eef2f7, #f8fafc, #eef2f7);
  background-size: 220% 100%;
  animation: dmhShimmer 1.1s linear infinite;
  margin-top: 8px;
}
.dmh-search__sk-line.w1 {
  width: 68%;
  margin-top: 0;
}
.dmh-search__sk-line.w2 {
  width: 48%;
}
.dmh-search__sk-line.w3 {
  width: 34%;
}

@keyframes dmhShimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ======================================================
   FIX: search dropdown must NOT stretch header
   ====================================================== */
.dmh-header--desktop .dmh-search {
  position: relative;
}

.dmh-header--desktop .dmh-search__dd {
  position: absolute !important;
  top: calc(48px + 8px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
  margin: 0 !important;
}

.dmh-header--desktop .dmh-search__dd-inner {
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.dmh-header--desktop .dmh-search__dd-list {
  max-height: 420px;
  overflow: auto;
  padding: 10px;
}

/* scrollbar */
.dmh-header--desktop .dmh-search__dd-list {
  scrollbar-width: thin;
  scrollbar-color: rgba(251, 29, 8, 0.55) rgba(15, 23, 42, 0.06);
  scroll-behavior: smooth;
}
.dmh-header--desktop .dmh-search__dd-list::-webkit-scrollbar {
  width: 10px;
}
.dmh-header--desktop .dmh-search__dd-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  margin: 10px 0;
}
.dmh-header--desktop .dmh-search__dd-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(251, 29, 8, 0.35) 0%,
    rgba(251, 29, 8, 0.8) 55%,
    rgba(251, 29, 8, 0.35) 100%
  );
  border: 2px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 18px rgba(251, 29, 8, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.dmh-header--desktop .dmh-search__dd-list::-webkit-scrollbar-thumb:hover {
  filter: saturate(1.15);
  box-shadow: 0 10px 22px rgba(251, 29, 8, 0.25);
}
.dmh-header--desktop .dmh-search__dd-list::-webkit-scrollbar-thumb:active {
  transform: scaleX(1.08);
}
.dmh-header--desktop .dmh-search__dd-list::-webkit-scrollbar-corner {
  background: transparent;
}

/* empty card */
.dmh-header--desktop .dmh-search__empty {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fff7f6 100%);
  border: 1px solid rgba(251, 29, 8, 0.1);
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.1);
}
.dmh-header--desktop .dmh-search__empty-emo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(251, 29, 8, 0.08);
  border: 1px solid rgba(251, 29, 8, 0.14);
  box-shadow: 0 12px 30px rgba(251, 29, 8, 0.12);
  transform: translateY(0);
  animation: dmhEmptyFloat 2.2s ease-in-out infinite;
}
@keyframes dmhEmptyFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
  100% {
    transform: translateY(0);
  }
}
.dmh-header--desktop .dmh-search__empty-main {
  flex: 1;
  min-width: 0;
}
.dmh-header--desktop .dmh-search__empty-title {
  font-weight: 900;
  font-size: 15px;
  line-height: 1.2;
  color: #0f172a;
}
.dmh-header--desktop .dmh-search__empty-sub {
  margin-top: 4px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.25;
}
.dmh-header--desktop .dmh-search__empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #fb1d08 0%, #ff4a38 55%, #fb1d08 100%);
  box-shadow: 0 14px 32px rgba(251, 29, 8, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
}
.dmh-header--desktop .dmh-search__empty-btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 18px 40px rgba(251, 29, 8, 0.28);
}
.dmh-header--desktop .dmh-search__empty-btn:active {
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .dmh-header--desktop .dmh-search__empty {
    flex-wrap: wrap;
  }
  .dmh-header--desktop .dmh-search__empty-btn {
    width: 100%;
  }
}

/* view all */
.dmh-header--desktop .dmh-search__foot {
  margin-top: 8px;
  padding: 10px 10px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 247, 246, 0.7) 100%
  );
  border-radius: 0 0 16px 16px;
}
.dmh-header--desktop .dmh-search__viewall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #fb1d08 0%, #ff4a38 55%, #fb1d08 100%);
  box-shadow: 0 14px 32px rgba(251, 29, 8, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.dmh-header--desktop .dmh-search__viewall:hover {
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 18px 40px rgba(251, 29, 8, 0.28);
}
.dmh-header--desktop .dmh-search__viewall:active {
  transform: translateY(0);
}

/* ======================================================
   THEME SWITCH (Sky Toggle) — pure CSS (no styled-components)
   ====================================================== */
.dmh-theme {
  display: inline-flex;
  align-items: center;
  height: 38px;
}

.dmh-theme-switch {
  --toggle-size: 10px;
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3d7eae;
  --container-night-bg: #1d1f2c;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ecca2f;
  --moon-bg: #c4c9d1;
  --spot-color: #959db1;
  --circle-container-offset: calc(
    (var(--circle-container-diameter) - var(--container-height)) / 2 * -1
  );
  --stars-color: #fff;
  --clouds-color: #f3fdff;
  --back-clouds-color: #aacadf;
  --transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: 0.3s cubic-bezier(0, -0.02, 0.35, 1.17);

  display: inline-flex;
  align-items: center;
  user-select: none;
}

.dmh-theme-switch,
.dmh-theme-switch *,
.dmh-theme-switch *::before,
.dmh-theme-switch *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.dmh-theme-switch__checkbox {
  display: none;
}

.dmh-theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25),
    0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  transition: var(--transition);
  position: relative;
  display: inline-block;
}

.dmh-theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset,
    0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius);
}

.dmh-theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1),
    0 0 0 0.625em rgba(255, 255, 255, 0.1),
    0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: flex;
  transition: var(--circle-transition);
  pointer-events: none;
}

.dmh-theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset,
    0em -0.062em 0.062em 0em #a1872a inset;
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25))
    drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  transition: var(--transition);
}

.dmh-theme-switch__moon {
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset,
    0em -0.062em 0.062em 0em #969696 inset;
  transition: var(--transition);
  position: relative;
}

.dmh-theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}
.dmh-theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}
.dmh-theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.dmh-theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  box-shadow: 0.937em 0.312em var(--clouds-color),
    -0.312em -0.312em var(--back-clouds-color),
    1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color),
    2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color),
    2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color),
    3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color),
    4.5em -0.312em var(--clouds-color),
    3.375em -0.437em var(--back-clouds-color),
    4.625em -1.75em 0 0.437em var(--clouds-color),
    4em -0.625em var(--back-clouds-color),
    4.125em -2.125em 0 0.437em var(--back-clouds-color);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.dmh-theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  transition: var(--transition);
  z-index: 2;
}

/* hover micro */
.dmh-theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

/* checked actions */
.dmh-theme-switch__checkbox:checked + .dmh-theme-switch__container {
  background-color: var(--container-night-bg);
}
.dmh-theme-switch__checkbox:checked
  + .dmh-theme-switch__container
  .dmh-theme-switch__circle-container {
  left: calc(
    100% - var(--circle-container-offset) - var(--circle-container-diameter)
  );
}
.dmh-theme-switch__checkbox:checked
  + .dmh-theme-switch__container
  .dmh-theme-switch__moon {
  transform: translate(0);
}
.dmh-theme-switch__checkbox:checked
  + .dmh-theme-switch__container
  .dmh-theme-switch__clouds {
  bottom: -4.062em;
}
.dmh-theme-switch__checkbox:checked
  + .dmh-theme-switch__container
  .dmh-theme-switch__stars-container {
  top: 50%;
  transform: translateY(-50%);
}

/* ======================================================
   DARK MODE OVERRIDES — per your требования
   html[data-dmh-theme="dark"] ...
   ====================================================== */

/* 1) BODY + HTML background (самое главное) */
html[data-dmh-theme="dark"],
html[data-dmh-theme="dark"] body,
body.dmh-theme-dark {
  background-color: #2c2d33 !important;
  color: #e5e5e5 !important;
}

/* 2) Woodmart wrappers (обычно именно они перекрывают body) */
html[data-dmh-theme="dark"] .website-wrapper,
html[data-dmh-theme="dark"] .main-page-wrapper,
html[data-dmh-theme="dark"] .page-wrapper,
html[data-dmh-theme="dark"] #page,
html[data-dmh-theme="dark"] #content,
html[data-dmh-theme="dark"] .site-content,
html[data-dmh-theme="dark"] .wd-page-wrapper,
html[data-dmh-theme="dark"] .wd-content-layout,
html[data-dmh-theme="dark"] .wd-content-area {
  background-color: #2c2d33 !important;
  color: #e5e5e5 !important;
}

/* 3) Header backgrounds */
html[data-dmh-theme="dark"] .dmh-header--desktop,
html[data-dmh-theme="dark"] .dmh-bg-white,
html[data-dmh-theme="dark"] .dmh-bg-gray {
  background-color: #24252a !important;
  color: #e5e5e5 !important;
}

/* borders */
html[data-dmh-theme="dark"] .dmh-bg-gray,
html[data-dmh-theme="dark"] .dmh-border-top {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* text + links */
html[data-dmh-theme="dark"] .dmh-topbar,
html[data-dmh-theme="dark"] .dmh-top-menu a,
html[data-dmh-theme="dark"] .dmh-contact-item,
html[data-dmh-theme="dark"] .dmh-act,
html[data-dmh-theme="dark"] .dmh-nav a {
  color: #e5e5e5 !important;
}

/* icons strokes */
html[data-dmh-theme="dark"] .dmh-act svg {
  stroke: #e5e5e5 !important;
}
html[data-dmh-theme="dark"] .dmh-contact-item svg {
  color: var(--dh-red) !important;
  fill: currentColor !important;
}

/* logo block background in dark */
html[data-dmh-theme="dark"] .dmh-logo {
  background: #24252a !important;
}

/* search dark */
html[data-dmh-theme="dark"] .dmh-header--desktop .dmh-s-box {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html[data-dmh-theme="dark"] .dmh-header--desktop .dmh-search-input {
  color: #e5e5e5 !important;
}
html[data-dmh-theme="dark"]
  .dmh-header--desktop
  .dmh-search-input::placeholder {
  color: rgba(229, 229, 229, 0.7) !important;
}

/* dropdown in dark */
html[data-dmh-theme="dark"] .dmh-header--desktop .dmh-search__dd-inner {
  background: #24252a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
}
html[data-dmh-theme="dark"] .dmh-header--desktop .dmh-search__item {
  color: #e5e5e5 !important;
}
html[data-dmh-theme="dark"] .dmh-header--desktop .dmh-search__item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}
html[data-dmh-theme="dark"] .dmh-header--desktop .dmh-search__price {
  color: var(--dh-red) !important;
}
/* ======================================================
   DMH LIMELIGHT "LAMP" (Dark hover glow) — Desktop
   Работает только когда html[data-dmh-theme="dark"] или body.dmh-dark
====================================================== */

.dmh-acts,
.dmh-nav,
.dmh-top-menu {
  position: relative;
  overflow: visible;
}

/* Убираем underline/подчёркивания */
.dmh-acts a,
.dmh-nav a,
.dmh-top-menu a {
  text-decoration: none !important;
}

/* сам контейнер лампы */
.dmh-lamp {
  position: absolute;
  top: -6px; /* чуть над иконками */
  left: 0;
  width: 80px; /* JS меняет динамически */
  height: 78px; /* зона луча */
  pointer-events: none;
  opacity: 0;
  transform: translateX(-999px);
  transition: opacity 0.18s ease;
  z-index: 30;
}

/* включение */
html[data-dmh-theme="dark"] .dmh-lamp.is-on,
body.dmh-dark .dmh-lamp.is-on {
  opacity: 1;
}

/* верхняя “лампа/крышка” */
.dmh-lamp__cap {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 58px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0.9;
}

/* сам “луч-конус” */
.dmh-lamp__beam {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 160%;
  height: 64px;
  transform: translateX(-50%);
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0)
  );
  filter: blur(0.2px);
  opacity: 0.95;
}

/* мягкое свечение */
.dmh-lamp__glow {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 220%;
  height: 70px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0) 70%
  );
  filter: blur(10px);
  opacity: 0.9;
}

/* чтобы иконки были над лучом */
.dmh-acts .dmh-act,
.dmh-nav a,
.dmh-top-menu a {
  position: relative;
  z-index: 40;
}

/* В LIGHT — полностью выключаем */
html[data-dmh-theme="light"] .dmh-lamp,
body:not(.dmh-dark) .dmh-lamp {
  display: none;
}
/* =========================
   GLOBAL MENU TYPO (ARM + 14px)
   ========================= */
.dmh-nav a,
.dmh-nav .dmh-heading,
.dmh-catmenu a,
.dmh-catmenu .dmh-heading {
  font-family: "Noto Sans Armenian", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif !important;
  font-size: 14px !important;
}

/* screen-reader only text (for hide text option) */
.dmh-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* icon in menu */
.dmh-menu-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 8px;
  margin-right: 10px;
  flex: 0 0 auto;
}
.dmh-a,
.dmh-cat-a {
  display: flex;
  align-items: center;
  gap: 0;
}

/* =========================
   TOP NAV: dropdown 2/3/4 levels (hover)
   ========================= */
.dmh-bot .dmh-in {
  position: relative;
}

.dmh-nav > ul > li {
  position: relative;
}

/* 2nd level */
.dmh-nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  padding: 10px;
  display: none;
  z-index: 4000;
}
.dmh-nav ul li:hover > ul {
  display: block;
}

/* 3rd+ */
.dmh-nav ul ul li {
  position: relative;
}
.dmh-nav ul ul ul {
  top: 0;
  left: 100%;
  margin-left: 10px;
}

/* items */
.dmh-nav ul ul a,
.dmh-nav ul ul .dmh-heading {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  text-transform: none;
  font-weight: 800;
  color: #0f172a;
}
.dmh-nav ul ul a:hover {
  background: #f6f7fb;
  color: var(--dh-red);
}
.dmh-nav .dmh-heading {
  cursor: default;
  color: #0f172a;
}

/* DARK theme dropdown */
html[data-dmh-theme="dark"] .dmh-nav ul ul {
  background: #24252a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45) !important;
}
html[data-dmh-theme="dark"] .dmh-nav ul ul a,
html[data-dmh-theme="dark"] .dmh-nav ul ul .dmh-heading {
  color: #e5e5e5 !important;
}
html[data-dmh-theme="dark"] .dmh-nav ul ul a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

/* =========================
   CATEGORIES MEGA PANEL (like your screenshot)
   ========================= */
.dmh-cat {
  position: relative;
}
.dmh-catpanel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 5000;
  padding: 0;
  transform-origin: top;
}

/* panel background */
.dmh-catpanel__in {
  align-items: stretch;
  gap: 0;
  padding: 14px 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
}

/* dark like screenshot */
html[data-dmh-theme="dark"] .dmh-catpanel__in {
  background: #2b2d33 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* left column */
.dmh-catpanel__left {
  width: 320px;
  padding: 10px;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
}
html[data-dmh-theme="dark"] .dmh-catpanel__left {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dmh-catmenu {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dmh-catmenu > li > a,
.dmh-catmenu > li > .dmh-heading {
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 900;
  color: #111;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.dmh-catmenu > li > a:hover {
  background: rgba(251, 29, 8, 0.08);
  color: var(--dh-red);
}
html[data-dmh-theme="dark"] .dmh-catmenu > li > a,
html[data-dmh-theme="dark"] .dmh-catmenu > li > .dmh-heading {
  color: #e5e5e5 !important;
}
html[data-dmh-theme="dark"] .dmh-catmenu > li > a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

/* right zone */
.dmh-catpanel__right {
  position: relative;
  flex: 1;
  padding: 10px 14px;
  min-height: 420px;
}

/* top-level submenu shown on hover */
.dmh-catmenu > li {
  position: static;
}
.dmh-catmenu > li > ul.sub-menu {
  position: absolute;
  left: 320px;
  right: 360px; /* reserve for image */
  top: 14px;
  bottom: 14px;
  display: none;
  padding: 12px 16px;
  margin: 0;
  list-style: none;
  overflow: auto;
}
.dmh-catmenu > li:hover > ul.sub-menu {
  display: block;
}

/* inside columns: level2 = headings */
.dmh-catmenu > li > ul.sub-menu > li {
  width: calc(33.333% - 14px);
  margin: 0 14px 18px 0;
  display: inline-block;
  vertical-align: top;
}
.dmh-catmenu > li > ul.sub-menu > li > a,
.dmh-catmenu > li > ul.sub-menu > li > .dmh-heading {
  font-weight: 900;
  font-size: 15px !important;
  margin-bottom: 10px;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: #111;
}
html[data-dmh-theme="dark"] .dmh-catmenu > li > ul.sub-menu > li > a,
html[data-dmh-theme="dark"]
  .dmh-catmenu
  > li
  > ul.sub-menu
  > li
  > .dmh-heading {
  color: #fff !important;
}

/* level3 links */
.dmh-catmenu ul ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.dmh-catmenu ul ul a {
  display: block;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  color: #334155;
}
.dmh-catmenu ul ul a:hover {
  background: #f6f7fb;
  color: var(--dh-red);
}
html[data-dmh-theme="dark"] .dmh-catmenu ul ul a {
  color: rgba(229, 229, 229, 0.9) !important;
}
html[data-dmh-theme="dark"] .dmh-catmenu ul ul a:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
}

/* right big image */
.dmh-catpanel__img {
  position: absolute;
  top: 14px;
  right: 14px;
  bottom: 14px;
  width: 330px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(251, 29, 8, 0.08),
    rgba(15, 23, 42, 0.06)
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}
html[data-dmh-theme="dark"] .dmh-catpanel__img {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}
.dmh-catpanel__img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transform: scale(1.02);
  transition: opacity 0.18s ease, transform 0.25s ease;
}
.dmh-catpanel__img.is-empty::before {
  opacity: 0.35;
}

/* animation */
#dmh-catpanel {
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#dmh-catpanel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* FIX: Woodmart button/div reset (Категории цвет как было) */
.dmh-header--desktop .dmh-cat {
  background: var(--dh-red) !important;
  color: #fff !important;
  border: 0 !important;
  outline: 0 !important;
  user-select: none;
}
.dmh-header--desktop .dmh-cat span {
  color: #fff !important;
}
.dmh-header--desktop .dmh-cat svg {
  stroke: #fff !important;
}

/* FIX: если Woodmart “гасит” меню */
.dmh-header--desktop .dmh-nav,
.dmh-header--desktop .dmh-nav * {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ======================================================
   MINI CART (Desktop hover dropdown) — DMH style
   ====================================================== */

.dmh-cart-hover {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* dropdown shell */
.dmh-minicart-dd {
  position: absolute;
  top: calc(100% + 12px);
  right: -10px;
  width: 380px;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.985);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;

  font-family: "Noto Sans Armenian", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
}

.dmh-cart-hover:hover .dmh-minicart-dd,
.dmh-cart-hover:focus-within .dmh-minicart-dd {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* allow manual close */
.dmh-cart-hover.is-closed .dmh-minicart-dd {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(8px) scale(0.985) !important;
}

/* arrow */
.dmh-minicart-dd::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 26px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: #fff;
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.dmh-minicart-dd__inner {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 26px 80px rgba(15, 23, 42, 0.16);
  overflow: hidden;
}

.dmh-minicart-dd__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.dmh-minicart-dd__title {
  font-weight: 900;
  font-size: 14px;
  color: #0f172a;
}

.dmh-minicart-dd__x {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
}
.dmh-minicart-dd__x:hover {
  border-color: rgba(213, 0, 50, 0.35);
  background: rgba(213, 0, 50, 0.06);
  transform: translateY(-1px);
}
.dmh-minicart-dd__x:active {
  transform: translateY(0);
}

.dmh-minicart-dd__body {
  padding: 12px 12px 14px;
}

/* Woo mini-cart list */
.dmh-minicart-dd .woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow: auto;

  scrollbar-width: thin;
  scrollbar-color: rgba(213, 0, 50, 0.55) rgba(15, 23, 42, 0.06);
}
.dmh-minicart-dd .woocommerce-mini-cart::-webkit-scrollbar {
  width: 10px;
}
.dmh-minicart-dd .woocommerce-mini-cart::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  margin: 8px 0;
}
.dmh-minicart-dd .woocommerce-mini-cart::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(213, 0, 50, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.dmh-minicart-dd .woocommerce-mini-cart-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;

  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  margin-bottom: 10px;
}

.dmh-minicart-dd .woocommerce-mini-cart-item a {
  text-decoration: none !important;
  color: #0f172a;
  font-weight: 900;
  font-size: 13px;
  line-height: 1.25;
}

.dmh-minicart-dd .woocommerce-mini-cart-item img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
}

.dmh-minicart-dd .woocommerce-mini-cart-item .quantity {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
}
.dmh-minicart-dd .woocommerce-mini-cart-item .quantity .amount {
  color: var(--dh-red);
  font-weight: 900;
}

/* remove link */
.dmh-minicart-dd .woocommerce-mini-cart-item a.remove {
  position: absolute;
  right: 16px;
  margin-top: 2px;
  font-size: 20px !important;
  font-weight: 900 !important;
  color: rgba(15, 23, 42, 0.55) !important;
}
.dmh-minicart-dd .woocommerce-mini-cart-item a.remove:hover {
  color: var(--dh-red) !important;
  background: transparent !important;
}

/* total */
.dmh-minicart-dd .woocommerce-mini-cart__total {
  margin: 12px 2px 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 900;
  color: #0f172a;
}
.dmh-minicart-dd .woocommerce-mini-cart__total .amount {
  color: var(--dh-red);
}

/* buttons */
.dmh-minicart-dd .woocommerce-mini-cart__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

.dmh-minicart-dd .woocommerce-mini-cart__buttons a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none !important;

  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.dmh-minicart-dd .woocommerce-mini-cart__buttons a:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

/* checkout = primary */
.dmh-minicart-dd .woocommerce-mini-cart__buttons a.checkout {
  border: 0 !important;
  background: var(--dh-red) !important;
  color: #fff !important;
  box-shadow: 0 18px 40px rgba(213, 0, 50, 0.22);
}

/* empty */
.dmh-minicart-dd .woocommerce-mini-cart__empty-message {
  padding: 14px 12px;
  border-radius: 16px;
  background: #fff7f6;
  border: 1px solid rgba(213, 0, 50, 0.12);
  font-weight: 900;
  color: #0f172a;
}

/* =========================
   DARK MODE
   ========================= */
html[data-dmh-theme="dark"] .dmh-minicart-dd::before {
  background: #24252a;
  border-left-color: rgba(255, 255, 255, 0.1);
  border-top-color: rgba(255, 255, 255, 0.1);
}
html[data-dmh-theme="dark"] .dmh-minicart-dd__inner {
  background: #24252a;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}
html[data-dmh-theme="dark"] .dmh-minicart-dd__head {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
html[data-dmh-theme="dark"] .dmh-minicart-dd__title {
  color: #e5e5e5;
}
html[data-dmh-theme="dark"] .dmh-minicart-dd__x {
  background: rgba(255, 255, 255, 0.04);
  color: #e5e5e5;
  border-color: rgba(255, 255, 255, 0.1);
}
html[data-dmh-theme="dark"] .dmh-minicart-dd .woocommerce-mini-cart-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
html[data-dmh-theme="dark"] .dmh-minicart-dd .woocommerce-mini-cart-item a {
  color: #e5e5e5;
}
html[data-dmh-theme="dark"]
  .dmh-minicart-dd
  .woocommerce-mini-cart-item
  .quantity {
  color: rgba(229, 229, 229, 0.75);
}
html[data-dmh-theme="dark"] .dmh-minicart-dd .woocommerce-mini-cart__total {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #e5e5e5;
}
html[data-dmh-theme="dark"] .dmh-minicart-dd .woocommerce-mini-cart__buttons a {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #e5e5e5 !important;
  box-shadow: none;
}
html[data-dmh-theme="dark"]
  .dmh-minicart-dd
  .woocommerce-mini-cart__buttons
  a.checkout {
  background: var(--dh-red) !important;
  color: #fff !important;
}
/* ================================
   FIX: мини-корзина — картинки НЕ обрезать + красивый X
   ================================ */

.dmh-minicart-dd .woocommerce-mini-cart-item {
  position: relative; /* важно для remove */
  grid-template-columns: 68px 1fr; /* чуть больше места для превью */
  align-items: start;
}

/* превью товара: НЕ резать */
.dmh-minicart-dd .woocommerce-mini-cart-item img {
  width: 68px !important;
  height: 68px !important;
  object-fit: contain !important; /* ✅ вместо cover */
  padding: 6px; /* чтобы не прилипало к краям */
  background: #fff;
  border-radius: 16px;
}

/* если где-то задан overflow — убираем */
.dmh-minicart-dd .woocommerce-mini-cart-item {
  overflow: visible !important;
}

/* ✅ красивый remove (X) */
.dmh-minicart-dd .woocommerce-mini-cart-item a.remove {
  position: absolute !important;
  top: 10px;
  right: 10px;

  width: 30px !important;
  height: 30px !important;
  border-radius: 999px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;

  color: #0f172a !important;
  font-size: 18px !important;
  line-height: 1 !important;
  text-decoration: none !important;

  transition: transform 0.16s ease, background 0.16s ease,
    border-color 0.16s ease;
}

.dmh-minicart-dd .woocommerce-mini-cart-item a.remove:hover {
  background: rgba(213, 0, 50, 0.1) !important;
  border-color: rgba(213, 0, 50, 0.35) !important;
  color: var(--dh-red) !important;
  transform: translateY(-1px);
}

html[data-dmh-theme="dark"] .dmh-minicart-dd .woocommerce-mini-cart-item img {
  background: rgba(255, 255, 255, 0.04);
}

html[data-dmh-theme="dark"]
  .dmh-minicart-dd
  .woocommerce-mini-cart-item
  a.remove {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #e5e5e5 !important;
}

/* ==========================================
   DMH / Woodmart Mini-Cart Popup — FIXES
   - fix cropped thumbnails
   - remove extra (header) close X
   - keep ONE remove X per item (no ××)
   - scroll inside list when many items
   - smooth animations + accent #FB1D08
   ========================================== */

:root {
  --dmh-accent: #fb1d08;
}

/* 1) REMOVE the TOP/HEADER close button (keep only item remove X) */
.cart-widget-side .close-side-widget,
.wd-sidecart .close-side-widget,
.wd-side-cart .close-side-widget,
.woodmart-cart-popup .mfp-close,
.dmh-kill-close {
  display: none !important;
}

/* 2) MINI CART LIST -> internal scroll (when many products) */
.widget_shopping_cart_content .woocommerce-mini-cart,
.cart-widget-side .woocommerce-mini-cart,
.wd-sidecart .woocommerce-mini-cart,
.woodmart-cart-popup .woocommerce-mini-cart {
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 10px;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

/* scrollbars */
.widget_shopping_cart_content .woocommerce-mini-cart {
  scrollbar-width: thin;
  scrollbar-color: var(--dmh-accent) rgba(0, 0, 0, 0.12);
}
.widget_shopping_cart_content .woocommerce-mini-cart::-webkit-scrollbar {
  width: 10px;
}
.widget_shopping_cart_content .woocommerce-mini-cart::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
}
.widget_shopping_cart_content .woocommerce-mini-cart::-webkit-scrollbar-thumb {
  background: var(--dmh-accent);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.65);
}

/* 3) CART ITEM ENTRY/EXIT ANIMATION */
@keyframes dmhCartItemIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes dmhCartItemOut {
  to {
    opacity: 0;
    transform: translateX(16px) scale(0.98);
  }
}
.woocommerce-mini-cart .mini_cart_item {
  animation: dmhCartItemIn 0.22s ease-out both;
}
.woocommerce-mini-cart .mini_cart_item.dmh-removing {
  animation: dmhCartItemOut 0.2s ease-in both;
  pointer-events: none;
}

/* 4) THUMBNAIL — stop cropping, make it clean */
.woocommerce-mini-cart .mini_cart_item img {
  width: 64px !important;
  height: 64px !important;
  object-fit: contain !important; /* ✅ no crop */
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 6px;
  display: block;
  overflow: visible !important;
}

/* common thumb wrappers in themes */
.woocommerce-mini-cart .mini_cart_item .mini-cart-thumbnail,
.woocommerce-mini-cart .mini_cart_item .thumb,
.woocommerce-mini-cart .mini_cart_item .product-thumbnail,
.woocommerce-mini-cart .mini_cart_item .mini_cart_item_thumbnail {
  width: 64px !important;
  height: 64px !important;
  border-radius: 14px;
  overflow: visible !important;
  flex: 0 0 64px;
}

.woocommerce-mini-cart .mini_cart_item a img {
  max-width: none !important;
}

/* Keep row aligned */
.woocommerce-mini-cart .mini_cart_item a:not(.remove) {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

/* 5) REMOVE BUTTON (X) — one, красивый, red accent */
.woocommerce-mini-cart a.remove {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(251, 29, 8, 0.1);
  border: 1px solid rgba(251, 29, 8, 0.28);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  z-index: 3;
}

/* kill double-symbol sources (××) */
.woocommerce-mini-cart a.remove::before,
.woocommerce-mini-cart a.remove::after {
  content: none !important;
}
.woocommerce-mini-cart a.remove {
  font-size: 0 !important; /* hide original text */
  line-height: 0 !important;
  color: transparent !important;
  text-decoration: none !important;
}
.woocommerce-mini-cart a.remove > * {
  display: none !important;
}

/* draw exactly ONE X */
.woocommerce-mini-cart a.remove::after {
  content: "×" !important;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: var(--dmh-accent) !important;
  transform: translateY(-1px);
}

.woocommerce-mini-cart a.remove:hover {
  transform: scale(1.06);
  background: rgba(251, 29, 8, 0.16);
  border-color: rgba(251, 29, 8, 0.55);
}

/* 6) make each cart item card nicer (safe) */
.woocommerce-mini-cart .mini_cart_item {
  position: relative;
  border-radius: 18px;
  padding: 12px 44px 12px 12px; /* room for X */
  margin: 10px 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

/* 7) optional: smooth hover */
.woocommerce-mini-cart .mini_cart_item:hover {
  border-color: rgba(251, 29, 8, 0.22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}
