/* ============================================================
   GORAFISH — HEADER + MEGA MENU STYLES
   Файл: /assets/css/sections/header.css
   ============================================================ */


/* ── 1. STICKY WRAPPER ─────────────────────────────────────── */

#brx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
  background: #000000 !important;
}

#brx-header.is-sticky {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.25);
}

/* Сховати top bar при скролі вниз */
#brx-header .brxe-section.header {
  overflow: hidden;
  max-height: 60px;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease;
  will-change: max-height;
}

#brx-header.is-compact .brxe-section.header {
  max-height: 0;
  opacity: 0;
  border: none;
}


/* ── 2. TOP BAR ─────────────────────────────────────────────── */

#brx-header .brxe-section.header {
  background: var(--bg-t);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#brx-header .brxe-section.header .brxe-container.header__top {
  max-width: 1400px !important;
  padding-top: 9px !important;
  padding-bottom: 9px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(24px, 4vw, 56px) !important;
  flex-wrap: nowrap;
}

.header__top-wrap-link {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  cursor: default;
}

.header__top-wrap-link:hover {
  opacity: 1;
}

.header__top-svg {
  flex-shrink: 0;
}

.header__top-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.015em;
  white-space: nowrap;
}

/* Роздільники між пунктами */
.header__top-wrap-link + .header__top-wrap-link::before {
  content: '';
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
  margin-right: 16px;
  flex-shrink: 0;
}


/* ── 3. MIDDLE ROW ──────────────────────────────────────────── */

.brxe-section.header-middle {
  background: var(--bg-b);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-middle-container.brxe-container {
  max-width: 1400px;
}

.header__middle.brxe-container {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  padding-top: 12px;
  padding-bottom: 12px;
  justify-content: space-between !important;
}


/* ── 3a. LOGO ───────────────────────────────────────────────── */

.header__middle-wraplogo {
  flex-shrink: 0;
}

.header__middle-logo img {
  height: 46px;
  width: auto;
  display: block;
}


/* ── 3b. SEARCH ─────────────────────────────────────────────── */

.header__wrap-searg {
  max-width: 580px;
  width: 100%;
  justify-self: center;
  position: relative;
}

.header__wrap-searg .dgwt-wcas-search-wrapp,
.header__wrap-searg .dgwt-wcas-search-form {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.header__wrap-searg .dgwt-wcas-sf-wrapp {
  display: flex !important;
  align-items: center !important;
  position: relative !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.header__wrap-searg .dgwt-wcas-search-input {
  height: 48px !important;
  width: 100% !important;
  padding: 0 56px 0 20px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.13) !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-family: inherit !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background 0.22s, border-color 0.22s, box-shadow 0.22s !important;
  -webkit-appearance: none !important;
}

.header__wrap-searg .dgwt-wcas-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 14px !important;
}

.header__wrap-searg .dgwt-wcas-search-input:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.18) !important;
}

/* Кнопка submit — помаранчева */
.header__wrap-searg .dgwt-wcas-search-submit {
  position: absolute !important;
  right: 0 !important;
  left: auto !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 50px !important;
  height: 100% !important;
  background: var(--primary) !important;
  border: none !important;
  border-radius: 0 12px 12px 0 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.18s !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.header__wrap-searg .dgwt-wcas-search-submit:hover {
  background: var(--primary-l-1) !important;
}

.header__wrap-searg .dgwt-wcas-search-submit svg,
.header__wrap-searg .dgwt-wcas-search-submit svg path {
  fill: #fff !important;
  stroke: none !important;
}

.header__wrap-searg .dgwt-wcas-preloader {
  right: 58px !important;
}

.header__wrap-searg .dgwt-wcas-voice-search {
  display: none !important;
}


/* ── 3c. CONTACT BLOCK ──────────────────────────────────────── */

.header__middle-wrapmenu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__middlw-wrapcontact {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.header__middle-wrap-ico {
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  background: var(--primary) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.35) !important;
}

.header__middle-ico-contact path {
  stroke: #fff !important;
}

.header__middle-wrap-tel {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.header__middle-wrap-btn:not(:last-child) {
  display: flex;
}

.header__middle-tel-link {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #fff !important;
  text-decoration: none !important;
  line-height: 1.25;
  transition: color 0.18s !important;
  white-space: nowrap;
}

.header__middle-tel-link:hover {
  color: var(--primary) !important;
}

.header__middle-wrapmenu-hours-wrap {
  margin-top: 1px;
}

.header__hours {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  text-decoration: none !important;
  cursor: default !important;
  pointer-events: none;
}

.header__hours .icon {
  display: flex;
  align-items: center;
}


/* ── 3d. ECOMMERCE ICONS ────────────────────────────────────── */

.header__middle-ecommerce {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header__middle-ecommerce .bricks-link-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.18s;
  text-decoration: none;
}

.header__middle-ecommerce .bricks-link-wrapper:hover {
  background: rgba(255, 255, 255, 0.09);
}

.header__middle-ecommerce svg {
  transition: stroke 0.18s;
}

.acoount-link,
.card__shops {
  display: block;
}

.header__middle-ecommerce .bricks-link-wrapper:hover .acoount-link path,
.header__middle-ecommerce .bricks-link-wrapper:hover .card__shops path {
  stroke: var(--primary);
}

#brxe-suoafh {
  flex-direction: row;
  column-gap: var(--space-m);
  justify-content: end !important;
}

/* Лічильник кошика */
.header__middle-ecommerce .bricks-link-wrapper[data-count]:not([data-count="0"])::after {
  content: attr(data-count);
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid var(--bg-b);
}

.header__wishlist {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.18s;
  text-decoration: none;
  color: #fff;
}

.header__wishlist:hover {
  background: rgba(255, 255, 255, 0.09);
}

.header__wishlist:hover svg path {
  stroke: #e74c3c;
  fill: rgba(231, 76, 60, 0.15);
}

.header__wishlist svg path {
  transition: stroke 0.18s, fill 0.18s;
}


/* ── 4. BOTTOM NAV BAR ──────────────────────────────────────── */

.brxe-section.header-bottom {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.07);
  position: relative;
}

.header__botoom.brxe-container {
  max-width: 1400px;
  display: flex;
  align-items: stretch;
}

.header__naw-menu {
  position: static !important;
  width: 100%;
}

.brx-nav-nested-items {
  display: flex;
  align-items: stretch;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.brx-nav-nested-items > .menu-item,
.brx-nav-nested-items > .brxe-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.header__link-menu,
.brx-submenu-toggle > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 13px 17px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--title) !important;
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
  transition: color 0.18s !important;
  border-bottom: 2px solid transparent;
  line-height: 1;
}

.header__link-menu::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 17px;
  right: 17px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.22s ease;
  transform-origin: left;
}

.menu-item:hover > .header__link-menu::after,
.menu-item.current-menu-item > .header__link-menu::after {
  transform: scaleX(1);
}

.menu-item:hover > .header__link-menu,
.menu-item.current-menu-item > .header__link-menu {
  color: var(--primary) !important;
}

.brxe-dropdown.header-dropdown-menu {
  position: static !important;
}

.brx-submenu-toggle {
  display: flex;
  align-items: stretch;
  cursor: pointer;
}

.brx-submenu-toggle > a {
  padding-right: 4px !important;
}

.brx-submenu-toggle > button {
  background: none;
  border: none;
  padding: 13px 16px 13px 2px !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--title);
  transition: color 0.18s, transform 0.25s;
  line-height: 1;
}

.brx-submenu-toggle > button svg {
  width: 12px;
  height: 12px;
}

.brx-submenu-toggle > button svg path {
  stroke: currentColor;
  transition: stroke 0.18s;
}

.brxe-dropdown:hover .brx-submenu-toggle > a,
.brxe-dropdown:hover .brx-submenu-toggle > button {
  color: var(--primary) !important;
}

.brxe-dropdown:hover .brx-submenu-toggle > button {
  transform: rotate(180deg);
}

.brxe-dropdown.header-dropdown-menu .brx-submenu-toggle::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 17px;
  right: 17px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.22s ease;
  transform-origin: left;
}

.brxe-dropdown.header-dropdown-menu:hover .brx-submenu-toggle::after {
  transform: scaleX(1);
}

.brxe-dropdown.header-dropdown-menu .brx-dropdown-content {
  display: none !important;
}

.header__toggle-open-menu,
.header__toggle-close-menu {
  display: none;
}

/* ── Кнопка "Магазин" — стиль Rozetka ── */
.brxe-dropdown.header-dropdown-menu .brx-submenu-toggle {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;
  border-radius: 4px !important;
  margin-right: 8px !important;
  padding: 0 4px 0 0 !important;
}

.brxe-dropdown.header-dropdown-menu .brx-submenu-toggle > a {
  color: #fff !important;
  border-bottom: none !important;
  padding: 10px 8px 10px 16px !important;
}

.brxe-dropdown.header-dropdown-menu .brx-submenu-toggle > a::before {
  content: '' !important;
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='white'%3E%3Crect x='1' y='1' width='6' height='6' rx='1'/%3E%3Crect x='9' y='1' width='6' height='6' rx='1'/%3E%3Crect x='1' y='9' width='6' height='6' rx='1'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  margin-right: 6px !important;
}

.brxe-dropdown.header-dropdown-menu .brx-submenu-toggle > button {
  color: #fff !important;
  padding: 10px 10px 10px 4px !important;
}

.brxe-dropdown.header-dropdown-menu:hover .brx-submenu-toggle {
  border-color: var(--primary) !important;
  background: #1a1a1a !important;
}

.brxe-dropdown.header-dropdown-menu:hover .brx-submenu-toggle > a,
.brxe-dropdown.header-dropdown-menu:hover .brx-submenu-toggle > button {
  color: var(--primary) !important;
}

.brxe-dropdown.header-dropdown-menu:hover .brx-submenu-toggle > a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='%23FF6600'%3E%3Crect x='1' y='1' width='6' height='6' rx='1'/%3E%3Crect x='9' y='1' width='6' height='6' rx='1'/%3E%3Crect x='1' y='9' width='6' height='6' rx='1'/%3E%3Crect x='9' y='9' width='6' height='6' rx='1'/%3E%3C/svg%3E") !important;
}


/* ── 5. MEGA MENU ───────────────────────────────────────────── */

.header-megamenu-wrap {
  position: static;
}

.megamenu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 899;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.megamenu-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header-megamenu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 1px);
  background: #fff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.07);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
}

/* Тільки JS керує — без CSS :hover */
.header-megamenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Layout: сайдбар + контент */
.megamenu__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px 1fr;
  height: min(560px, 60vh); /* ← height замість max-height */
  min-height: 440px;
}


/* ── 5a. Sidebar wrapper + sidebar ── */

/* Wrapper обгортає sidebar і тримає індикатор поверх */
.megamenu__sidebar-wrapper {
  position: relative;
  border-right: 1px solid #ebebeb;
  overflow: hidden;
  min-height: 0; /* ← ключово для grid */
}

/* Sidebar */
.megamenu__sidebar {
  border-right: none;
  padding: 16px 12px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  height: 100%; /* ← працює бо wrapper займає всю висоту grid cell */
  scrollbar-width: thin;
  scrollbar-color: var(--primary-l-3) transparent;
}

.megamenu__sidebar::-webkit-scrollbar { width: 3px; }
.megamenu__sidebar::-webkit-scrollbar-thumb {
  background: var(--primary-l-3);
  border-radius: 3px;
}


/* ── Scroll indicator sidebar ── */

.megamenu__scroll-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 0 10px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0)    0%,
    rgba(255, 255, 255, 0.85) 40%,
    rgba(255, 255, 255, 1)    55%
  );
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  cursor: pointer;
  z-index: 3;
}

.megamenu__scroll-indicator.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.megamenu__scroll-indicator svg {
  color: var(--primary);
  filter: drop-shadow(0 1px 3px rgba(255, 102, 0, 0.3));
  animation: sidebarBounce 1.3s ease infinite;
  flex-shrink: 0;
}

@keyframes sidebarBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(4px); }
}


.megamenu__cat-item {
  list-style: none;
}

.megamenu__cat-btn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--title);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
  text-decoration: none;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.megamenu__cat-btn .cat-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.7;
  transition: opacity 0.14s;
  margin-top: 1px;
}

.megamenu__cat-btn .cat-arrow {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.3;
  transition: opacity 0.14s, transform 0.14s;
  color: var(--title);
  flex-shrink: 0;
  margin-top: 2px;
}

.megamenu__cat-btn:hover,
.megamenu__cat-btn.is-active {
  background: var(--primary-l-4);
  color: var(--primary);
}

.megamenu__cat-btn:hover .cat-icon,
.megamenu__cat-btn.is-active .cat-icon {
  opacity: 1;
}

.megamenu__cat-btn:hover .cat-arrow,
.megamenu__cat-btn.is-active .cat-arrow {
  opacity: 0.7;
  transform: translateX(2px);
}


/* ── 5b. Content panels ── */

.megamenu__content {
  padding: 20px 0 20px 28px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-l-3) transparent;
  min-height: 0;
}

.megamenu__content::-webkit-scrollbar { width: 3px; }
.megamenu__content::-webkit-scrollbar-thumb {
  background: var(--primary-l-3);
  border-radius: 3px;
}

.megamenu__panel {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.megamenu__panel.is-active {
  display: flex;
  animation: mmPanelIn 0.18s ease both;
}

@keyframes mmPanelIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

.megamenu__panel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 28px;
}

.megamenu__group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--title-l-2);
  margin-bottom: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid #ebebeb;
}

.megamenu__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.megamenu__links li a {
  display: block;
  padding: 4px 7px;
  font-size: 13px;
  color: var(--title-l-1);
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.12s ease, color 0.12s ease, padding-left 0.12s ease;
  line-height: 1.35;
}

.megamenu__links li a:hover {
  background: var(--primary-l-4);
  color: var(--primary);
  padding-left: 11px;
}

.megamenu__view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 12px;
  border: 1.5px solid var(--primary-l-3);
  border-radius: 20px;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  align-self: flex-start;
}

.megamenu__view-all:hover {
  background: var(--primary-l-4);
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 102, 0, 0.15);
}

.megamenu__view-all svg {
  transition: transform 0.15s;
}

.megamenu__view-all:hover svg {
  transform: translateX(3px);
}


/* ── 5c. Promo блок ── */

.megamenu__promo {
  background: linear-gradient(135deg, var(--bg-t) 0%, #212d40 100%);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.megamenu__promo::after {
  content: '';
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.07;
}

.megamenu__promo-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 7px;
  border-radius: 3px;
  margin-bottom: 5px;
}

.megamenu__promo-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3px;
  line-height: 1.3;
}

.megamenu__promo-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.megamenu__promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.megamenu__promo-btn:hover {
  background: var(--primary-l-1);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
}


/* ── 6. MOBILE MENU & DRAWER ────────────────────────────────── */

.header__mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.header__mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.header__mobile-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 320px;
  max-width: 88vw;
  background: var(--bg-t);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  will-change: transform;
}

.header__mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.mobile-drawer__logo img {
  height: 34px;
  width: auto;
}

.mobile-drawer__close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.mobile-drawer__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.mobile-drawer__search {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.mobile-drawer__search input {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.mobile-drawer__search input:focus {
  border-color: var(--primary);
}

.mobile-drawer__search input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.mobile-drawer__nav {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.mobile-drawer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav__item > a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav__item-header {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-nav__item-header > a {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mobile-nav__item > a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.mobile-nav__toggle {
  background: rgba(255, 255, 255, 0.03);
  border: none;
  width: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav__toggle:hover,
.mobile-nav__toggle:focus {
  background: rgba(255, 255, 255, 0.08);
}

.toggle-arrow {
  width: 10px;
  height: 10px;
  border-right: 2.5px solid var(--primary);
  border-bottom: 2.5px solid var(--primary);
  transform: rotate(-45deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s;
  animation: bounceArrow 2.5s infinite;
}

.mobile-nav__toggle[aria-expanded="true"] .toggle-arrow {
  transform: rotate(45deg);
  border-color: #fff;
  animation: none;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(-45deg); }
  40% { transform: translateY(-4px) rotate(-45deg); }
  60% { transform: translateY(-2px) rotate(-45deg); }
}

.mobile-nav__sub {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 4px 0;
  margin: 0;
}

.mobile-nav__sub.is-open {
  display: block;
}

.mobile-nav__sub li a {
  display: block;
  padding: 10px 20px 10px 36px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.mobile-nav__sub li a:hover {
  color: var(--primary);
  background: rgba(255, 102, 0, 0.05);
}

.mobile-drawer__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 16px;
  flex-shrink: 0;
  text-align: center;
}

.mobile-drawer__tel {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.18s;
}

.mobile-drawer__tel:hover {
  color: var(--primary);
}

.mobile-drawer__hours {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

.header__toggle-open-menu {
  display: none;
}

.brxe-toggle .brxa-inner:after,
.brxe-toggle .brxa-inner:before {
  display: none;
}


/* ── 7. RESPONSIVE ──────────────────────────────────────────── */

@media (max-width: 1200px) {
  .header__middle.brxe-container {
    grid-template-columns: auto 1fr auto auto;
  }

  .header__middlw-wrapcontact {
    display: none;
  }

  .header__wrap-searg {
    max-width: 480px;
  }
}

@media (max-width: 991px) {

  .brxe-section.header-bottom {
    display: none !important;
  }

  .header__toggle-open-menu {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
  }

  .header__toggle-open-menu .brxa-wrap,
  .header__toggle-open-menu .brxa-inner {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 2px !important;
    position: relative !important;
  }

  .header__toggle-open-menu .brxa-wrap::before,
  .header__toggle-open-menu .brxa-wrap::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    width: 20px !important;
    height: 2px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    border-radius: 2px !important;
  }

  .header__toggle-open-menu .brxa-wrap::before { top: -6px !important; }
  .header__toggle-open-menu .brxa-wrap::after  { top:  6px !important; }

  .header__middle.brxe-container {
    grid-template-columns: auto 1fr auto auto !important;
  }

  .header__middlw-wrapcontact {
    display: none !important;
  }

  .header__wrap-searg {
    display: none !important;
  }
}

@media (max-width: 767px) {

  #brx-header .brxe-section.header {
    display: none !important;
  }

  .header__middle.brxe-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    gap: 4px !important;
  }

  .header__middle-wraplogo {
    flex-shrink: 0 !important;
    margin-right: 0 !important;
    width: auto !important;
  }

  .header__middle-logo img {
    height: 34px !important;
  }

  .header__wrap-searg,
  .header__middle-wrapmenu {
    display: none !important;
  }

  .header__toggle-open-menu {
    flex-shrink: 0 !important;
    order: 1 !important;
    margin-left: auto !important;
  }

  .header__middle-ecommerce {
    flex-shrink: 0 !important;
    order: 2 !important;
    display: flex !important;
    align-items: center !important;
    gap: 2px !important;
  }

  #brxe-suoafh {
    flex-direction: row;
    column-gap: var(--space-m);
    justify-content: center !important;
    width: auto;
  }
}

@media (max-width: 480px) {
  #brx-header .brxe-section.header {
    display: none !important;
  }
}


/* ── 8. ACCESSIBILITY & FOCUS ────────────────────────────────── */

.header__link-menu:focus-visible,
.megamenu__cat-btn:focus-visible,
.megamenu__links li a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}