:root{
  /* KÉP ALAPJÁN (navy/purple) */
  --wia-bg1: #141B3A;
  --wia-bg2: #0F1733;
  --wia-line: rgba(255,255,255,.14);

  --wia-txt: rgba(255,255,255,.92);
  --wia-dim: rgba(255,255,255,.72);

  --wia-accent: #6F7FEA;

  --wia-wrap: 1180px;
  --wia-top-h: 34px;

  /* állítható */
  --wia-main-min-h: 72px;
  --wia-logo-max-h: 92px;
  --wia-logo-rise: 26px;

  /* adminbar offset (ha van, WP adminban) */
  --wp-adminbar-h: 0px;

  /* (bm-wia-main__in padding) */
  --wia-main-pad-top: 10px;
  --wia-main-pad-bot: 10px;

  /* hover bridge */
  --wia-dd-bridge: 16px;

  /* PATCH: szélesebb dropdown */
  --wia-dd-wrap: 1320px;   /* ezt növeld/csökkentsd ízlés szerint */
  --wia-dd-col: 180px;     /* oszlop szélesség */
}

.bm-wia-header,
.bm-wia-header *{ box-sizing: border-box; }

.bm-wia-wrap{
  max-width: var(--wia-wrap);
  margin: 0 auto;
  padding: 0 18px;
}

/* ===== HEADER LAYERING / OVERFLOW ===== */
.bm-wia-header{ position: relative; z-index: 9999; overflow: visible; }
.bm-wia-top,
.bm-wia-main,
.bm-wia-main__in,
.bm-wia-nav,
.bm-wia-menu{ overflow: visible !important; }

/* TOP */
.bm-wia-top{
  min-height: var(--wia-top-h);
  background: linear-gradient(180deg, var(--wia-bg1) 0%, var(--wia-bg2) 100%);
  color: var(--wia-dim);
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  position: relative;
  z-index: 1000014;
  border-bottom: 0 !important;
}

.bm-wia-top__in{
  min-height: var(--wia-top-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  position: relative;
  z-index: 1000015;
  border-bottom: 0 !important;
}

.bm-wia-top__in::after{
  content:"";
  position:absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 1px;
  background: var(--wia-line);
  pointer-events: none;
}

.bm-wia-top__left,
.bm-wia-top__center,
.bm-wia-top__right{
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}

.bm-wia-top__center,
.bm-wia-top__right{ justify-content: center; }

.bm-wia-top__right{
  position: relative;
  z-index: 1000016;
}

.bm-wia-topitem{ display:flex; align-items:center; gap:10px; }
.bm-wia-ico{
  display:inline-flex;
  color: rgba(255,255,255,.80);
  transform: translateY(1px);
}
.bm-wia-ico svg{ display:block; }

.bm-wia-toplink{
  display:flex;
  align-items:center;
  gap:10px;
  color: var(--wia-dim);
  text-decoration:none;
}
.bm-wia-toplink:hover{ color: var(--wia-txt); }

.bm-wia-toplink--accent{
  color: var(--wia-accent);
  font-weight: 800;
}

.bm-wia-toplink--cta{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--wia-accent);
  color: #fff !important;
  padding: 2px 12px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background 0.2s, transform 0.2s;
}

.bm-wia-toplink--cta:hover{
  background: #5a6fd8;
  transform: translateX(-2px);
}

.bm-wia-toplink--cta svg{
  transition: transform 0.2s;
}

.bm-wia-toplink--cta:hover svg{
  transform: translateX(-3px);
}

.bm-wia-sep{
  width:1px;
  height:16px;
  background: var(--wia-line);
}

.bm-wia-lang-switcher {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-direction: row !important;
}

.bm-wia-currency-switcher{
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  position: relative;
  z-index: 1000017;
  line-height: 1;
  vertical-align: middle;
}

.bm-wia-currency-switcher .woocs-style-1-dropdown{
  display: inline-block;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: var(--wia-txt) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  text-align: left;
  min-width: auto !important;
}

.bm-wia-currency-switcher .woocs-style-1-dropdown:hover,
.bm-wia-currency-switcher .woocs-style-1-dropdown:active,
.bm-wia-currency-switcher .woocs-style-1-dropdown.woocs-style-1-active:hover,
.bm-wia-currency-switcher .woocs-style-1-dropdown.woocs-style-1-active{
  background: transparent !important;
  box-shadow: none !important;
}

.bm-wia-currency-switcher .woocs-style-1-select{
  display: flex !important;
  align-items: center !important;
  padding: 0 18px 0 0 !important;
  cursor: pointer;
}

.bm-wia-currency-switcher .woocs-style-1-select > span{
  color: var(--wia-txt) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap;
}

.bm-wia-currency-switcher .woocs-style-1-select > i{
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  float: none !important;
  line-height: 1 !important;
  margin: 0 !important;
}

.bm-wia-currency-switcher .woocs-style-1-select > i img{
  width: 10px;
  height: 10px;
  opacity: .9;
  filter: brightness(0) invert(1);
}

.bm-wia-currency-switcher .woocs-style-1-dropdown.woocs-style-1-active .woocs-style-1-select > i{
  transform: translateY(-50%) rotate(-90deg) !important;
}

.bm-wia-currency-switcher .woocs-style-1-dropdown-menu{
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  width: max-content !important;
  min-width: 88px !important;
  margin-top: 0 !important;
  padding: 6px 0 !important;
  background: rgba(15,23,51,.98) !important;
  border: 1px solid var(--wia-line) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.28) !important;
  overflow: hidden !important;
  z-index: 1000018 !important;
}

.bm-wia-currency-switcher .woocs-style-1-dropdown-menu li{
  color: var(--wia-txt) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  padding: 8px 14px !important;
  white-space: nowrap;
  background: transparent !important;
}

.bm-wia-currency-switcher .woocs-style-1-dropdown .woocs-style-1-dropdown-menu li:hover,
.bm-wia-currency-switcher .woocs-style-1-dropdown .woocs-style-1-dropdown-menu li:active,
.bm-wia-currency-switcher .woocs-style-1-dropdown .woocs-style-1-dropdown-menu li.woocs-style-1-selected{
  background: rgba(255,255,255,.06) !important;
}

.bm-wia-currency-switcher select{
  min-width: 72px;
  height: 32px;
  border: 1px solid var(--wia-line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--wia-txt);
  font-size: 12px;
  font-weight: 700;
  padding: 0 28px 0 10px;
  position: relative;
  z-index: 9;
}

.bm-wia-lang{
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--wia-dim);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  transition: color 0.2s;
  flex-direction: row !important;
}
.bm-wia-lang:hover{ color: var(--wia-txt); }
.bm-wia-lang--active {
  color: var(--wia-txt);
}

.bm-wia-lang-sep {
  color: var(--wia-dim);
  font-weight: 400;
  margin: 0 2px;
  display: inline-block !important;
}

.bm-wia-flag{
  width: 18px !important;
  height: 12px !important;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.bm-wia-flag--hu {
  background: linear-gradient(#ce2b37 0 33%, #ffffff 33% 66%, #436f4d 66% 100%) !important;
}

.bm-wia-flag--en {
  background: #012169 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='a'%3E%3Cpath d='M0 0v30h60V0z'/%3E%3C/clipPath%3E%3CclipPath id='b'%3E%3Cpath d='M30 15h30v15zv15H0zH0V0zV0h30z'/%3E%3C/clipPath%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M0 0v30h60V0z' fill='%23012169'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0 0l60 30m0-30L0 30' clip-path='url(%23b)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30 0v30M0 15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/g%3E%3C/svg%3E") !important;
  background-size: cover !important;
  background-position: center !important;
}

/* MAIN */
.bm-wia-main{
  background: var(--wia-bg2);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
}

.bm-wia-main__in{
  min-height: var(--wia-main-min-h);
  display:grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items:center;
  column-gap:22px;
  padding: 18px 0 10px 0;
}

.bm-wia-main__left{
  display:flex;
  align-items:center;
  gap:26px;
}

/* LOGO */
.bm-wia-logo{
  display:flex;
  align-items:center;
  position: relative;
  z-index: 1000019;
}

.bm-wia-logo .custom-logo-link{
  display:flex;
  align-items:center;
  line-height:0;
  margin-top: calc(-1 * var(--wia-logo-rise));
  position: relative;
  z-index: 1000020;
}

.bm-wia-logo img.custom-logo,
.bm-wia-logo svg{
  height: auto;
  max-height: var(--wia-logo-max-h);
  width: auto;
  max-width: 260px;
  display:block;
  object-fit: contain;
  margin-right: 30px;
}

.bm-wia-logo__fallback{ text-decoration:none; display:flex; align-items:center; }
.bm-wia-logo__text{
  color: var(--wia-txt);
  font-weight: 900;
  letter-spacing: .02em;
  font-size: 22px;
}

/* NAV / MENU */
.bm-wia-nav{
  display:flex;
  align-items:center;
  position: relative;
}

.bm-wia-menu{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  align-items:center;
  gap:22px;
}

/* Primary linkek */
.bm-wia-menu > li > a{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  font-weight:400;
  font-size:22px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 0;
  position: relative;
  z-index: 1000001;
}
.bm-wia-menu > li > a:hover{ color: var(--wia-accent); }

.bm-wia-menu > li.bm-brands-mega > a{
  pointer-events: none;
  cursor: default;
}

/* SEARCH */
.bm-wia-search{ width:100%; min-width:0; }
.bm-wia-search__form{
  width:100%;
  display:flex;
  align-items:center;
  background:#fff;
  border-radius: 5px 22px 5px 5px;
  height:48px;
  overflow:hidden;
}
.bm-wia-search__icon{
  width:40px; height:48px;
  display:flex; align-items:center; justify-content:center;
  color: rgba(0,0,0,.45);
}
.bm-wia-search__input{
  width:100%;
  flex: 1 1 auto;
  border:0;
  outline:none;
  height:48px;
  padding:0 12px 0 0;
  font: 600 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  color: rgba(0,0,0,.78);
}
.bm-wia-search__input::placeholder{ color: rgba(0,0,0,.45); }

/* RIGHT ACTIONS */
.bm-wia-actions{ display:flex; align-items:center; gap: 18px; }
.bm-wia-icoact{
  color: rgba(255,255,255,.92);
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  position: relative;
}
.bm-wia-icoact__icon{ display:inline-flex; line-height:0; }
.bm-wia-icoact:hover{ color: var(--wia-accent); }

/* CART */
.bm-wia-cart{
  position:relative;
  display:flex;
  align-items:center;
  color: rgba(255,255,255,.92);
  text-decoration:none;
  padding-right:10px;
}
.bm-wia-cart__icon{ display:inline-flex; }
.bm-wia-cart__count{
  position:absolute;
  right:-8px; top:-8px;
  min-width:18px; height:18px;
  padding:0 5px;
  border-radius:999px;
  background: var(--wia-accent);
  color:#071416;
  font-size:11px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* =========================================================
   DROPDOWN (base)
   ========================================================= */

/* Caret (csak top szinten) */
.bm-wia-menu > li.menu-item-has-children > a::after{
  content:"";
  width: 12px; height: 12px;
  display:inline-block;
  background: currentColor;
  opacity: .92;
  transform: translateY(1px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.7 9.3a1 1 0 0 1 1.4 0L12 13.2l3.9-3.9a1 1 0 1 1 1.4 1.4l-4.6 4.6a1 1 0 0 1-1.4 0L6.7 10.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.7 9.3a1 1 0 0 1 1.4 0L12 13.2l3.9-3.9a1 1 0 1 1 1.4 1.4l-4.6 4.6a1 1 0 0 1-1.4 0L6.7 10.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.bm-wia-menu > li.menu-item-has-children:hover > a::after,
.bm-wia-menu > li.menu-item-has-children:focus-within > a::after{
  transform: translateY(1px) rotate(180deg);
  transition: transform .16s ease;
}

/* Hover bridge */
.bm-wia-menu > li.menu-item-has-children{ position: relative; }
.bm-wia-menu > li.menu-item-has-children::before{
  content:"";
  position: fixed;
  left: 0; right: 0;
  top: calc(
    var(--wp-adminbar-h)
    + var(--wia-top-h)
    + var(--wia-main-min-h)
    + var(--wia-main-pad-top)
    + var(--wia-main-pad-bot)
    - var(--wia-dd-bridge)
  );
  height: var(--wia-dd-bridge);
  background: transparent;
  pointer-events: auto;
  z-index: 999999;
  opacity: 0;
}
.bm-wia-menu > li.menu-item-has-children:not(:hover):not(:focus-within)::before{
  pointer-events: none;
}

/* Panel (fixed, stabil, 100vw) */
.bm-wia-menu > li > .sub-menu{
  position: fixed;
  left: 0;
  right: 0;
  max-width: 100vw;
  top: calc(
    var(--wp-adminbar-h)
    + var(--wia-top-h)
    + var(--wia-main-min-h)
    + var(--wia-main-pad-top)
    + var(--wia-main-pad-bot)
  );

  margin: 0;
  list-style: none;

  background: #fff;
  color: rgba(10,14,18,.92);

  padding: 26px 0;
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 22px 60px rgba(0,0,0,.18);

  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity .16s ease, visibility .16s ease;
  z-index: 1000000;

  /* PATCH: belső szélesség */
  padding-left: calc((100vw - var(--wia-dd-wrap)) / 2);
  padding-right: calc((100vw - var(--wia-dd-wrap)) / 2);

  min-height: 90px;
}

.bm-wia-menu > li:hover > .sub-menu,
.bm-wia-menu > li:focus-within > .sub-menu{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Scroll közben bezárjuk a megamenüt */
.bm-wia-menu.is-scrolling > li:hover > .sub-menu,
.bm-wia-menu.is-scrolling > li:focus-within > .sub-menu{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* 1. szint a panelen belül */
.bm-wia-menu > li > .sub-menu > li{
  width: var(--wia-dd-col);
  display: block !important;
}

/* bullet / pont kikapcsolás minden sub-menu szinten */
.bm-wia-menu .sub-menu,
.bm-wia-menu .sub-menu ul,
.bm-wia-menu .sub-menu li{
  list-style: none !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}
.bm-wia-menu .sub-menu li::marker{ content: "" !important; }
.bm-wia-menu .sub-menu li > a::before{ content: none !important; display:none !important; }

.bm-wia-menu > li > .sub-menu a{
  display:block !important;
  padding: 8px 6px;
  color: rgba(10,14,18,.92) !important;
  text-decoration:none !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 5px;
}
.bm-wia-menu > li > .sub-menu a:hover{
  background: rgba(111,127,234,.12);
}

/* Responsive */
@media (max-width: 1360px){
  .bm-wia-menu > li > .sub-menu{
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}
@media (max-width: 1200px){
  .bm-wia-menu > li > .sub-menu > li{ width: 46% !important; }
}
@media (max-width: 560px){
  .bm-wia-menu > li > .sub-menu > li{ width: 100% !important; }
}

/* WP admin bar offset */
body.admin-bar { --wp-adminbar-h: 32px; }
@media (max-width: 782px){
  body.admin-bar { --wp-adminbar-h: 46px; }
}

/* =========================================================
   BRANDS MEGA (Brands menüpontra: li.bm-brands-mega)
   - 1. szint: Brand (fakó, nem katt)
   - 2. szint: Típusok (látszanak)
   - 3. szint: Modulok (kattintásra nyílnak: .bm-type-open / .is-open)
   ========================================================= */

/* Brands mega panel (override) */
.bm-wia-menu > li.bm-brands-mega > .sub-menu{
  justify-content: flex-start !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px 34px !important;
}

/* Brand oszlop */
.bm-wia-menu > li.bm-brands-mega > .sub-menu > li{
  flex: 0 0 var(--wia-dd-col) !important;
  width: var(--wia-dd-col) !important;
  align-self: flex-start !important;
}

/* BRAND CÍM (fakó, nem katt) */
.bm-wia-menu > li.bm-brands-mega > .sub-menu > li > a{
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: rgba(10,14,18,.45) !important;
  padding: 0 6px 10px !important;
  background: transparent !important;
  pointer-events: none !important;
  cursor: default !important;
}

/* 2. szint (TÍPUSOK) mindig látszik */
.bm-wia-menu > li.bm-brands-mega > .sub-menu > li > ul.sub-menu{
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  position: static !important;
  transform: none !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  margin: 6px 0 0 0 !important;
  padding: 0 !important;
}

/* TÍPUS link */
.bm-wia-menu > li.bm-brands-mega > .sub-menu > li > ul.sub-menu > li > a{
  display:flex !important;
  align-items:center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: rgba(10,14,18,.92) !important;
  padding: 7px 8px !important;
  border-radius: 5px !important;
  text-decoration: none !important;
}
.bm-wia-menu > li.bm-brands-mega > .sub-menu > li > ul.sub-menu > li > a:hover{
  background: rgba(111,127,234,.12) !important;
}

/* caret a típusokra, amiknek van 3. szintje */
.bm-wia-menu > li.bm-brands-mega
  > .sub-menu > li > ul.sub-menu > li.bm-type-has-children > a::after,
.bm-wia-menu > li.bm-brands-mega
  > .sub-menu > li > ul.sub-menu > li.menu-item-has-children > a::after{
  content:"";
  width: 12px;
  height: 12px;
  margin-left: 10px;
  display:inline-block;
  background: currentColor;
  opacity: .6;
  transform: translateY(1px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.7 9.3a1 1 0 0 1 1.4 0L12 13.2l3.9-3.9a1 1 0 1 1 1.4 1.4l-4.6 4.6a1 1 0 0 1-1.4 0L6.7 10.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.7 9.3a1 1 0 0 1 1.4 0L12 13.2l3.9-3.9a1 1 0 1 1 1.4 1.4l-4.6 4.6a1 1 0 0 1-1.4 0L6.7 10.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .16s ease, opacity .16s ease;
}

/* 3. szint (MODULOK) alapból rejtve */
.bm-wia-menu > li.bm-brands-mega
  > .sub-menu > li > ul.sub-menu > li > ul.sub-menu{
  display: none !important;
  margin: 6px 0 10px 0 !important;
  padding: 0 !important;
  position: static !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* nyitott típus -> modulok látszanak (mindkét osztállyal) */
.bm-wia-menu > li.bm-brands-mega
  > .sub-menu > li > ul.sub-menu > li.bm-type-open > ul.sub-menu,
.bm-wia-menu > li.bm-brands-mega
  > .sub-menu > li > ul.sub-menu > li.is-open > ul.sub-menu{
  display: block !important;
}

/* nyitott típus -> caret fordul */
.bm-wia-menu > li.bm-brands-mega
  > .sub-menu > li > ul.sub-menu > li.bm-type-open > a::after,
.bm-wia-menu > li.bm-brands-mega
  > .sub-menu > li > ul.sub-menu > li.is-open > a::after{
  transform: translateY(1px) rotate(180deg) !important;
  opacity: .9 !important;
}

/* Modul linkek */
.bm-wia-menu > li.bm-brands-mega
  > .sub-menu > li > ul.sub-menu > li > ul.sub-menu > li > a{
  display:block !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(10,14,18,.78) !important;
  padding: 6px 8px 6px 18px !important;
  border-radius: 5px !important;
  text-decoration:none !important;
}
.bm-wia-menu > li.bm-brands-mega
  > .sub-menu > li > ul.sub-menu > li > ul.sub-menu > li > a:hover{
  background: rgba(111,127,234,.12) !important;
}

/* Biztos ami biztos */
.bm-wia-menu > li.bm-brands-mega *{
  clip: auto !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
}
/* +100px elállás a dropdown tartalomnak (ne legyen ennyire balra tolva) */
:root{
  --wia-dd-offset-x: 5px;
}

.bm-wia-menu > li > .sub-menu{
  padding-left: calc((100vw - var(--wia-dd-wrap)) / 2 + var(--wia-dd-offset-x)) !important;
}

/* Brands mega is ugyanott marad (minden ugyanaz a panel) */

/* Mobilon / kisebb szélességnél ne legyen extra eltolás */
@media (max-width: 1360px){
  .bm-wia-menu > li > .sub-menu{
    padding-left: 18px !important;
  }
}



/* =========================
   CART DRAWER (Woo mini cart)
   ========================= */
.bm-cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000030;
  backdrop-filter: blur(2px);
}

.bm-cart-drawer{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(440px, 92vw);
  background: #fff;
  color: #111827;
  box-shadow: -4px 0 24px rgba(0,0,0,.15);
  z-index: 1000031;

  transform: translateX(105%);
  transition: transform .3s cubic-bezier(0.4, 0, 0.2, 1);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

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

.bm-cart-drawer__head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.bm-cart-drawer__title{
  font-weight: 600;
  font-size: 20px;
  color: #111827;
  margin: 0;
}

.bm-cart-drawer__close{
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  color: #6b7280;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-cart-drawer__close:hover{
  background: #f3f4f6;
  color: #111827;
}

.bm-cart-drawer__body{
  padding: 0;
  overflow: auto;
}

/* Empty cart */
.bm-cart-empty{
  min-height: 100%;
  padding: 60px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9ca3af;
}

.bm-cart-empty p{
  margin: 0;
  font-size: 16px;
}

/* Mini cart items */
.bm-cart-drawer .woocommerce-mini-cart{
  margin: 0;
  padding: 0;
  list-style: none;
}

.bm-cart-drawer .woocommerce-mini-cart-item{
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.woocommerce .bm-cart-drawer .woocommerce-mini-cart-item,
body .bm-cart-drawer .woocommerce-mini-cart-item{
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  min-height: 140px;
  margin: 0 !important;
  list-style: none !important;
}

.bm-cart-drawer .woocommerce-mini-cart-item:last-child{
  border-bottom: none;
}

/* Remove button - top right */
.bm-cart-drawer .bm-cart-item-remove{
  position: absolute;
  top: 20px;
  right: 24px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  transition: color 0.2s;
  width: 28px;
  height: 28px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 300;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  z-index: 2;
}

.bm-cart-drawer .bm-cart-item-remove svg{
  display: block;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.bm-cart-drawer .bm-cart-item-remove:hover{
  color: #ef4444 !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Image */
.bm-cart-drawer .woocommerce-mini-cart-item > a:first-of-type{
  order: 1;
  flex-shrink: 0;
}

.woocommerce .bm-cart-drawer .woocommerce-mini-cart-item > a:first-of-type,
body .bm-cart-drawer .woocommerce-mini-cart-item > a:first-of-type{
  display: block !important;
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  flex-shrink: 0 !important;
}

.bm-cart-drawer .woocommerce-mini-cart-item img{
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 5px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  display: block;
}

.woocommerce .bm-cart-drawer .woocommerce-mini-cart-item img,
body .bm-cart-drawer .woocommerce-mini-cart-item img{
  width: 100px !important;
  height: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  object-fit: cover !important;
  margin: 0 !important;
  float: none !important;
  display: block !important;
}

/* Details */
.bm-cart-drawer .bm-cart-item-details{
  order: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 36px;
}

.woocommerce .bm-cart-drawer .bm-cart-item-details,
body .bm-cart-drawer .bm-cart-item-details{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
}

.bm-cart-drawer .bm-cart-item-name{
  text-decoration: none;
  color: #111827;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  transition: color 0.2s;
  display: block;
}

.woocommerce .bm-cart-drawer .bm-cart-item-name,
body .bm-cart-drawer .bm-cart-item-name{
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.bm-cart-drawer .bm-cart-item-name:hover{
  color: #6F7FEA;
}

.bm-cart-drawer .bm-cart-item-qty{
  font-size: 14px;
  color: #6b7280;
}

.bm-cart-drawer .bm-cart-item-qty .quantity{
  display: block;
}

.bm-cart-drawer .woocommerce-mini-cart-item .amount,
.bm-cart-drawer .woocommerce-mini-cart-item .woocommerce-Price-amount{
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

/* Footer */
.bm-cart-drawer__foot{
  padding: 20px 24px 24px;
  border-top: 1px solid #e5e7eb;
  background: #fafafa;
}

.bm-cart-totals{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.bm-cart-total-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: #6b7280;
}

.bm-cart-total-row strong{
  color: #111827;
  font-weight: 600;
}

.bm-cart-total-final{
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.bm-cart-total-final strong{
  font-size: 20px;
  font-weight: 700;
  color: #6F7FEA;
}

.bm-cart-discount{
  color: #10b981;
}

.bm-cart-discount strong{
  color: #10b981;
}

.bm-cart-actions{
  display: grid;
  gap: 12px;
}

.bm-cart-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bm-cart-btn--view{
  border: 2px solid #e5e7eb;
  color: #111827;
  background: #fff;
}

.bm-cart-btn--view:hover{
  background: #f9fafb;
  border-color: #d1d5db;
}

.bm-cart-btn--checkout{
  border: 0;
  background: #6F7FEA;
  color: #fff;
}

.bm-cart-btn--checkout:hover{
  background: #5a6fd8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(111,127,234,.3);
}

/* ===== WP ADMIN BAR FIX: cart drawer ne lógjon alá ===== */
:root{ --wp-adminbar-h: 0px; }
body.admin-bar{ --wp-adminbar-h: 32px; }
@media (max-width: 782px){
  body.admin-bar{ --wp-adminbar-h: 46px; }
}

/* overlay is kezdődjön az admin bar alatt */
body.admin-bar .bm-cart-overlay{
  top: var(--wp-adminbar-h) !important;
  height: calc(100vh - var(--wp-adminbar-h)) !important;
}

/* drawer is admin bar alatt induljon + ne legyen magasabb */
body.admin-bar .bm-cart-drawer{
  top: var(--wp-adminbar-h) !important;
  height: calc(100vh - var(--wp-adminbar-h)) !important;
}




/* =========================
   LIVE SEARCH (dropdown a search alatt, nem popup)
   ========================= */

/* A search konténer legyen referencia */
.bm-wia-search{ position: relative; }

/* overlay: csak a header ALATT kezdődjön, így nem kapja el az inputot */
.bm-ls-overlay{
  position: fixed;
  left: 0; right: 0;
  top: calc(var(--wp-adminbar-h) + var(--wia-top-h) + var(--wia-main-min-h));
  height: calc(100vh - (var(--wp-adminbar-h) + var(--wia-top-h) + var(--wia-main-min-h)));
  background: rgba(0,0,0,.12);
  z-index: 9990; /* header felett? NEM. Alatta. */
}

/* panel: ABSOLÚT a kereső alatt */
.bm-ls-panel{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(48px + 10px); /* search magasság + gap */
  margin: 0 auto;

  width: min(980px, 100%);
  max-width: 980px;
  height: min(70vh, 620px);

  background: #fff;
  border-radius: 5px;
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
  overflow: hidden;
  color: rgba(10,14,18,.92);

  /* animáció alapállapot */
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .16s ease, transform .18s ease;
  z-index: 1000005; /* headeren belül, input alatt/felett */
}

/* nyitott állapot */
.bm-ls-panel.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* biztos, hogy az input mindig a tetején maradjon */
.bm-wia-search__form{
  position: relative;
  z-index: 1000006;
}

/* FEJ */
.bm-ls-head{
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.bm-ls-title{ font-weight: 900; font-size: 14px; letter-spacing: .02em; }
.bm-ls-close{
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 5px;
}
.bm-ls-close:hover{ background: rgba(0,0,0,.06); }

/* BODY */
.bm-ls-body{
  display:grid;
  grid-template-columns: 260px 1fr;
  height: calc(100% - 49px);
}

/* LEFT */
.bm-ls-left{
  border-right: 1px solid rgba(0,0,0,.08);
  padding: 14px;
  overflow: auto;
}
.bm-ls-left__title{
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 10px;
}
.bm-ls-brands{ margin-top: 12px; display:grid; gap: 8px; }
.bm-ls-brand{
  display:flex; align-items:center; gap: 10px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.bm-ls-brand:hover{ background: rgba(111,127,234,.12); }

/* Custom checkbox */
.bm-ls-brand input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0,0,0,.2);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.bm-ls-brand input[type="checkbox"]:hover{
  border-color: #6F7FEA;
}

.bm-ls-brand input[type="checkbox"]:checked{
  background: #6F7FEA;
  border-color: #6F7FEA;
  animation: checkboxPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bm-ls-brand input[type="checkbox"]:checked::after{
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: checkmarkDraw 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.1s both;
}

@keyframes checkboxPop {
  0% { transform: scale(1); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes checkmarkDraw {
  0% {
    height: 0;
    width: 0;
    opacity: 0;
  }
  50% {
    height: 8px;
    width: 0;
    opacity: 1;
  }
  100% {
    height: 8px;
    width: 4px;
    opacity: 1;
  }
}

/* RIGHT */
.bm-ls-right{
  padding: 14px;
  overflow: hidden;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.bm-ls-meta{ font-size: 12px; color: rgba(10,14,18,.55); }
.bm-ls-results{
  overflow: auto;
  padding-right: 6px;
  display:grid;
  gap: 10px;
}
.bm-ls-item{
  display:grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items:center;
  padding: 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
}
.bm-ls-item:hover{
  border-color: rgba(111,127,234,.35);
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
}
.bm-ls-thumb{
  width: 64px; height: 64px;
  border-radius: 5px;
  background: rgba(0,0,0,.04);
  object-fit: cover;
}
.bm-ls-brand-name{ 
  font-size: 11px; 
  font-weight: 600; 
  color: #6F7FEA;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.bm-ls-name{ font-weight: 800; font-size: 13px; line-height: 1.2; }
.bm-ls-sku{ margin-top: 4px; font-size: 12px; color: rgba(10,14,18,.55); }
.bm-ls-price{ font-weight: 900; font-size: 13px; white-space: nowrap; }

@media (max-width: 760px){
  .bm-ls-body{ grid-template-columns: 1fr; }
  .bm-ls-left{ display:none; }
}
/* =========================
   LIVE SEARCH (input alatt, fix pozícióval – nem popup)
   ========================= */

/* overlay: a header aljától indul (JS tölti) */
:root{ --bm-header-bottom: 0px; }

.bm-ls-overlay{
  position: fixed;
  left: 0; right: 0;
  top: var(--bm-header-bottom);
  height: calc(100vh - var(--bm-header-bottom));
  background: rgba(0,0,0,.12);
  z-index: 9990; /* header alatt */
}

/* panel: FIX, de JS pozicionálja az input alá */
.bm-ls-panel{
  position: fixed;
  left: 0;
  top: var(--bm-header-bottom);
  width: min(980px, calc(100vw - 36px));
  height: min(70vh, 620px);

  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
  overflow: hidden;
  color: rgba(10,14,18,.92);

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .16s ease, transform .18s ease;

  z-index: 1000005; /* overlay felett, nem kell a header fölé */
}

.bm-ls-panel.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* input mindig felül, kattintható */
.bm-wia-search__form{
  position: relative;
  z-index: 1000006;
}

/* overlay maradhat, de legyen fix */
.bm-ls-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.12);
  z-index: 9990; /* header alatt */
}

/* panel: FIX (viewporthoz), JS pozícionálja */
.bm-ls-panel{
  position: fixed;
  margin: 0;
  left: 0;
  top: 0;

  /* JS fogja beállítani: width/height/top/left */
  width: 650px;
  height: 520px;

  background: #fff;
  border-radius: 5px;
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
  overflow: hidden;
  color: rgba(10,14,18,.92);

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity .16s ease, transform .18s ease;

  z-index: 1000005; /* a header felett */
}

.bm-ls-panel.is-open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* a search form maradjon mindig az overlay felett */
.bm-wia-search__form{ position: relative; z-index: 1000006; }

/* =========================
   HAMBURGER MENU BUTTON
   ========================= */
.bm-hamburger{
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  border-radius: 5px;
  position: relative;
  z-index: 1000010;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.bm-hamburger:hover{ background: rgba(255,255,255,.08); }

.bm-hamburger span{
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,.92);
  transition: .3s;
  border-radius: 2px;
}

/* Középső vonal hosszabb */
.bm-hamburger span:nth-child(2){
  width: 28px;
}

/* Hamburger X animáció */
.bm-hamburger.is-open span:nth-child(1){ transform: rotate(45deg) translate(6px, 6px); }
.bm-hamburger.is-open span:nth-child(2){ opacity: 0; }
.bm-hamburger.is-open span:nth-child(3){ transform: rotate(-45deg) translate(6px, -6px); }

/* Mobile menu drawer */
.bm-mobile-menu{
  position: fixed;
  top: var(--wp-adminbar-h);
  left: 0;
  width: 280px;
  height: calc(100vh - var(--wp-adminbar-h));
  background: var(--wia-bg2);
  color: var(--wia-txt);
  transform: translateX(-100%);
  transition: transform .3s ease;
  z-index: 99999;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 4px 0 20px rgba(0,0,0,.3);
}

.bm-mobile-menu.is-open{
  transform: translateX(0);
}

.bm-mobile-overlay{
  position: fixed;
  top: var(--wp-adminbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.5);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.bm-mobile-overlay.is-open{
  opacity: 1;
  visibility: visible;
}

/* Top bar links a menü tetején */
.bm-mobile-menu__top{
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}

.bm-mobile-menu__top a{
  display: block;
  padding: 10px 10px;
  color: var(--wia-txt);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  transition: background .2s ease;
}

.bm-mobile-menu__top a:hover{
  background: rgba(255,255,255,.08);
}

.bm-mobile-menu__top a.bm-mobile-accent{
  color: var(--wia-accent);
  font-weight: 800;
}

.bm-mobile-menu__lang{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px;
  flex-wrap: wrap;
}

.bm-mobile-menu__lang .bm-wia-lang{
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.bm-mobile-menu__lang .bm-wia-lang--active{
  color: #fff;
}

.bm-mobile-menu__lang .bm-wia-lang-sep{
  color: rgba(255,255,255,.3);
}

.bm-wia-currency-switcher--mobile{
  margin-left: 0;
}

.bm-mobile-menu__lang .bm-wia-currency-switcher{
  width: 100%;
  padding-top: 6px;
}

.bm-mobile-menu__list{
  list-style: none;
  margin: 0;
  padding: 0;
}

.bm-mobile-menu__list li{
  margin: 0;
  padding: 0;
  position: relative;
}

.bm-mobile-menu__list > li > a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 10px;
  color: var(--wia-txt);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 5px;
  transition: background .2s ease;
}

.bm-mobile-menu__list > li > a:hover{
  background: rgba(255,255,255,.08);
}

/* Submenu toggle arrow */
.bm-mobile-menu__list .menu-item-has-children > a::after{
  content: "";
  width: 12px;
  height: 12px;
  background: currentColor;
  opacity: .7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.7 9.3a1 1 0 0 1 1.4 0L12 13.2l3.9-3.9a1 1 0 1 1 1.4 1.4l-4.6 4.6a1 1 0 0 1-1.4 0L6.7 10.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.7 9.3a1 1 0 0 1 1.4 0L12 13.2l3.9-3.9a1 1 0 1 1 1.4 1.4l-4.6 4.6a1 1 0 0 1-1.4 0L6.7 10.7a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: transform .2s ease;
}

/* Brands főmenü: nincs nyíl, nem kattintható, mindig nyitva */
.bm-mobile-menu__list > li.bm-brands-mega > a::after{
  display: none;
}

.bm-mobile-menu__list > li.bm-brands-mega > a{
  pointer-events: none;
  opacity: .8;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 10px 10px;
}

.bm-mobile-menu__list > li.bm-brands-mega > .sub-menu{
  max-height: none !important;
}

.bm-mobile-menu__list .menu-item-has-children.is-open > a::after{
  transform: rotate(180deg);
}

/* Submenus - hidden by default */
.bm-mobile-menu__list .sub-menu{
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.bm-mobile-menu__list .menu-item-has-children.is-open > .sub-menu{
  max-height: 2000px;
}

.bm-mobile-menu__list .sub-menu li{
  padding-left: 16px;
}

.bm-mobile-menu__list .sub-menu a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  color: var(--wia-txt);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 5px;
  transition: background .2s ease;
}

.bm-mobile-menu__list .sub-menu a:hover{
  background: rgba(255,255,255,.08);
}

.bm-mobile-menu__list .sub-menu .sub-menu{
  padding-left: 0;
}

.bm-mobile-menu__list .sub-menu .sub-menu li{
  padding-left: 16px;
}

.bm-mobile-menu__list .sub-menu .sub-menu a{
  font-size: 13px;
  padding: 8px 10px;
  color: var(--wia-dim);
}

.bm-mobile-menu__list .sub-menu .sub-menu .sub-menu a{
  font-size: 12px;
  padding: 7px 10px;
}

/* =========================
   MOBILE RESPONSIVE
   ========================= */

/* Tablet és kisebb */
@media (max-width: 1024px){
  .bm-wia-wrap{ padding: 0 14px; }
  
  .bm-wia-main__in{
    column-gap: 14px;
    padding: 14px 0 8px 0;
  }
  
  .bm-wia-main__left{ gap: 18px; }
  
  .bm-wia-menu{ gap: 16px; }
  .bm-wia-menu > li > a{ font-size: 16px; }
  
  .bm-wia-logo img.custom-logo,
  .bm-wia-logo svg{
    max-height: 70px;
    margin-right: 20px;
  }
}

/* Mobile breakpoint */
@media (max-width: 768px){
  /* TOP BAR: elrejtjük mobilon, benne van a hamburgerben */
  .bm-wia-top{
    display: none;
  }
  
  /* MAIN BAR: 3 oszlopos layout (hamburger | logo | cart) */
  .bm-wia-main{
    background: var(--wia-bg2);
  }
  
  .bm-wia-main__in{
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    grid-template-rows: auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0 16px 0;
  }
  
  /* Hamburger bal felül */
  .bm-hamburger{
    display: flex;
    grid-column: 1;
    grid-row: 1;
  }
  
  /* Logo középen */
  .bm-wia-main__left{
    grid-column: 2;
    grid-row: 1;
    justify-content: center;
    gap: 0;
  }
  
  .bm-wia-logo{
    margin: 0 auto;
  }
  
  .bm-wia-logo img.custom-logo,
  .bm-wia-logo svg{
    max-height: 55px;
    margin-right: 0;
  }
  
  .bm-wia-logo .custom-logo-link{
    margin-top: 0;
  }
  
  /* Navigáció elrejtése mobilon */
  .bm-wia-nav{ display: none; }
  
  /* Actions (kosár + account) jobb felül */
  .bm-wia-actions{
    grid-column: 3;
    grid-row: 1;
    justify-content: flex-end;
    gap: 12px;
  }
  
  /* Search teljes szélességben alulra */
  .bm-wia-search{
    grid-column: 1 / -1;
    grid-row: 2;
  }
  
  /* Search form */
  .bm-wia-search__form{
    height: 44px;
    border-radius: 5px 22px 5px 5px;
    background: #fff;
  }
  
  .bm-wia-search__icon{
    width: 40px;
    height: 44px;
    color: rgba(0,0,0,.45);
  }
  
  .bm-wia-search__input{
    height: 44px;
    font-size: 13px;
    color: rgba(0,0,0,.78);
  }
  
  .bm-wia-search__input::placeholder{
    font-size: 13px;
    color: rgba(0,0,0,.45);
  }
  
  /* Kosár ikon */
  .bm-wia-cart__count{
    right: -8px;
    top: -8px;
    min-width: 20px;
    height: 20px;
    font-size: 11px;
    font-weight: 800;
  }
  
  /* Live search panel mobilra */
  .bm-ls-panel{
    width: calc(100vw - 24px) !important;
    height: calc(100vh - 180px) !important;
    max-height: 500px;
  }
  
  .bm-ls-body{
    grid-template-columns: 1fr;
  }
  
  .bm-ls-left{
    display: none;
  }
  
  .bm-ls-item{
    grid-template-columns: 48px 1fr auto;
    gap: 8px;
    padding: 8px;
  }
  
  .bm-ls-thumb{
    width: 48px;
    height: 48px;
  }
  
  .bm-ls-name{ font-size: 12px; }
  .bm-ls-sku{ font-size: 11px; }
  .bm-ls-price{ font-size: 12px; }
  
  /* Cart drawer teljes szélesség mobilon */
  .bm-cart-drawer{
    width: 85vw;
    max-width: 380px;
  }
}

/* Extra small mobile */
@media (max-width: 480px){
  .bm-wia-wrap{ padding: 0 12px; }
  
  .bm-wia-logo img.custom-logo,
  .bm-wia-logo svg{
    max-height: 58px;
  }
  
  .bm-wia-search__form{
    height: 42px;
    margin-bottom: 5px !important;
    border-radius: 5px 18px 5px 5px;
  }
  
  .bm-wia-search__icon{
    width: 38px;
    height: 42px;
  }
  
  .bm-wia-search__input{
    height: 42px;
    font-size: 12px;
  }
  
  .bm-wia-search__input::placeholder{
    font-size: 12px;
  }
  
  .bm-cart-drawer{
    width: 100vw;
    max-width: 100vw;
  }
}


/* QUICK MESSAGE POPUP */
.bm-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.bm-popup {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bm-popup__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 32px;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.bm-popup__close:hover {
  color: #111827;
}

.bm-popup__title {
  font-size: 28px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
}

.bm-popup__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 30px 0;
}

.bm-popup__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bm-popup__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-popup__field label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.bm-popup__field input,
.bm-popup__field textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.bm-popup__field input:focus,
.bm-popup__field textarea:focus {
  outline: none;
  border-color: #6F7FEA;
}

.bm-popup__field textarea {
  resize: vertical;
  min-height: 120px;
}

.bm-popup__submit {
  background: #6F7FEA;
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.bm-popup__submit:hover {
  background: #5a6dd8;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(111, 127, 234, 0.3);
}

.bm-popup__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.bm-popup__response {
  margin-top: 10px;
}

.bm-popup__success {
  color: #10b981;
  font-weight: 600;
  margin: 0;
  padding: 12px;
  background: #d1fae5;
  border-radius: 8px;
  text-align: center;
}

.bm-popup__error {
  color: #ef4444;
  font-weight: 600;
  margin: 0;
  padding: 12px;
  background: #fee2e2;
  border-radius: 8px;
  text-align: center;
}

@media (max-width: 768px) {
  .bm-popup {
    padding: 30px 20px;
  }
  
  .bm-popup__title {
    font-size: 24px;
  }
}
