.dopmenu {
  /* тёмная тема (по умолчанию) */
  --dop-bg: #242424;
  --dop-fg: #e9ebee;
  --dop-muted: #9aa0a6;
  --dop-line: rgba(255, 255, 255, 0.1);
  --dop-accent: #f58220; /* оранжевый акцент — подгони под свой */
  --dop-ph: rgba(255, 255, 255, 0.06); /* заливка заглушки */
  --dop-ph-line: rgba(255, 255, 255, 0.28); /* контур заглушки */

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background: var(--dop-bg);
  border-bottom: 1px solid var(--dop-line);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 0.1s ease,
    opacity 0.1s ease,
    visibility 0.1s;
  will-change: transform;
}
.dopmenu.is-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* светлая тема */
[data-theme="light"] .dopmenu {
  --dop-bg: #ffffff;
  --dop-fg: #1a1d21;
  --dop-muted: #6b7075;
  --dop-line: rgba(0, 0, 0, 0.1);
  --dop-ph: rgba(0, 0, 0, 0.05);
  --dop-ph-line: rgba(0, 0, 0, 0.25);
}
[data-theme="light"] .page-catalog .cn-top::after {
  background: #ffffff;
}
.dopmenu-inner {
  max-width: 1440px; /* подгони под контейнер сайта */
  height: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
}

/* ---- заглушки-прямоугольники ---- */
.dop-ph {
  display: block;
}

/* ---- логотип (слева) ---- */
.dop-logo {
  display: flex;
  align-items: center;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  color: #242424;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  width: 300px;
  height: 40px;
}
.dop-logo .dop-ph {
  width: 300px;
}
.dop-logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

/* ---- правая группа: телефон, почта, иконки ---- */
.dop-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.dop-contacts {
  display: flex;
  align-items: center;
  gap: 28px;
}
.dop-phone,
.dop-mail {
  color: var(--dop-fg);
  text-decoration: none;
  font-weight: 400;
  font-size: 18px;
  white-space: nowrap;
  transition: color 0.15s;
}

.dop-phone:hover,
.dop-mail:hover {
  color: var(--dop-accent);
}

/* ---- иконки ---- */
.dop-icons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.dop-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dop-fg);
  text-decoration: none;
  transition: background 0.15s;
}
.dop-icon-btn:hover {
  opacity: 0.5;
}
.dop-icon-btn .dop-ph {
  width: 24px;
  height: 24px;
}

/* иконки тел/почта/поиск в допменю — только ≤1200 */
.dop-ic-contact,
.dop-search-toggle {
  display: none;
}

.dop-cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dop-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
}

.dop-cart-badge[hidden] {
  display: none;
}

/* ---- бургер + навигация ---- */
.dop-burger-wrap {
  position: relative;
}
.dop-nav-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--dop-bg);
  border: 1px solid var(--dop-line);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  padding: 8px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.dop-burger-wrap.open .dop-nav-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.dop-nav-panel a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--dop-fg);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.15s;
}
.dop-nav-panel a:hover {
  background: var(--dop-ph);
}
.dop-nav-panel a.active {
  color: var(--dop-accent);
}

/* ---- Поиск-шторка допменю (вне .dopmenu, тёмная) ---- */
.dop-search-sheet {
  position: fixed;
  inset: 0;
  z-index: 10000;
  visibility: hidden;
}
.dop-search-sheet.is-open {
  visibility: visible;
}
.dop-search-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.dop-search-sheet.is-open .dop-search-sheet__overlay {
  opacity: 1;
}
.dop-search-sheet__panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #242424;
  transform: translateY(-100%);
  transition: transform 0.32s ease;
}
.dop-search-sheet.is-open .dop-search-sheet__panel {
  transform: translateY(0);
}
.dop-search-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.dop-search-sheet__title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.dop-search-sheet__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.dop-search-sheet__close:hover {
  color: var(--dop-accent, #f58220);
}
.dop-search-sheet__body {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 20px 32px;
}
.dop-search-sheet__body .search-form-header {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}
.dop-search-sheet__body .search-input {
  width: 100%;
  height: 52px;
  font-size: 16px;
}
.dop-search-sheet__body .lupa,
.dop-search-sheet__body .search-clear,
.dop-search-sheet__body .search-btn {
  top: 50%;
  transform: translateY(-50%);
}

/* ---- адаптив ---- */
@media (max-width: 1439px) {
  .dopmenu-inner {
    padding: 0 20px;
  }
}
@media (max-width: 1200px) {
  .dop-contacts {
    display: none;
  } /* текстовые тел/почта */
  .dopmenu-inner > div:not(.dop-right) {
    display: none;
  } /* текстовый поиск */
  .dop-ic-contact {
    display: flex;
  } /* иконки тел/почта */
  .dop-search-toggle {
    display: flex;
  } /* иконка поиска */
  .dop-right {
    gap: 12px;
  }
}
@media (max-width: 680px) {
  span.dop-ph {
    font-size: 14px;
  }
}
@media (max-width: 560px) {
  .dopmenu-inner {
    padding: 0 10px;
  }
  .dop-logo {
    justify-content: flex-start;
  }
  .dop-logo .dop-ph {
    width: 100px !important;
  }
  .my-container {
    margin: 0 auto;
  }
  .my-container .orange-btn {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .dop-icons {
    gap: 4px;
  }
}
