/* =========================================================
   tahm.ee — Header/Menu (mobile)
   Drawer + Overlay + WP Menu + Accordion
   ========================================================= */

:root{
  --blue:#0196F2;
  --blue-dark:#0161AE;
  --soft:#E2F4FF;
  --bg:#FFFFFF;
  --line:#EEECEC;
  --muted:#494949;
  --card:#F3F3F3;
  --shadow:0 18px 42px rgba(0,0,0,.18);
  --r:18px;
}

/* 0) Click safety */
.tahm-mheader,
.tahm-mheader *{
  -webkit-tap-highlight-color: transparent;
}

/* 1) Overlay */
.tahm-overlay[hidden]{ display:none !important; }
.tahm-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 10003;
  backdrop-filter: blur(1px);
}

/* 2) Drawer panel (fix: not cut on top, looks centered, not “from side”) */
.tahm-mobilemenu[hidden]{ display:none !important; }
.tahm-mobilemenu{
  position: fixed;
  top: 72px;
  right: 12px;
  bottom: 12px;

  width: calc(100vw - 24px);
  max-width: 420px;

  background: var(--bg);
  z-index: 10004;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* 3) Lock page scroll when open */
html.tahm-noscroll,
body.tahm-noscroll{
  overflow: hidden !important;
  height: 100% !important;
}

/* 4) Top bar */
.tahm-mobilemenu__top{
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--line);
}

.tahm-mobilemenu__top::before{
  content:"Menüü";
  font-weight: 700;
  font-size: 16px;
}

/* Close button */
.tahm-menuclose{
  border: 1px solid #E9E9E9;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  line-height: 1;
}

/* 5) Menu content */
.tahm-mobilemenu__content{
  padding: 10px 14px 18px;
}

/* 6) WP menu base */
.tahm-mm{
  list-style:none;
  margin:0;
  padding:0;
}

.tahm-mm > li{
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

/* top-level link */
.tahm-mm > li > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;

  padding: 12px 10px;
  border-radius: 14px;

  text-decoration:none;
  color:#000;
  font-weight: 800;
  font-size: 15px;
}

/* active */
.tahm-mm .current-menu-item > a,
.tahm-mm .current-menu-ancestor > a{
  background: var(--soft);
  color: var(--blue-dark);
}

/* 7) Accordion */
.tahm-mm .sub-menu{
  list-style:none;
  margin: 6px 0 10px;
  padding: 6px;
  background: var(--card);
  border-radius: 14px;

  display: none; /* closed by default */
}

.tahm-mm li.is-open > .sub-menu{
  display: block;
}

/* child items */
.tahm-mm .sub-menu li{
  border-top: 1px solid #F3F3F3;
}
.tahm-mm .sub-menu li:first-child{
  border-top: 0;
}

.tahm-mm .sub-menu a{
  display:block;
  padding: 12px 10px;
  border-radius: 12px;

  text-decoration:none;
  color: var(--muted);
  font-size: 14px;
}

/* arrow indicator for parents */
.tahm-mm > li.menu-item-has-children > a::after{
  content: "›";
  display:inline-block;
  font-size: 18px;
  line-height: 1;
  opacity: .65;
  transform: rotate(90deg);
}

.tahm-mm > li.is-open.menu-item-has-children > a::after{
  transform: rotate(-90deg);
}

/* 8) Tap feedback */
.tahm-mm a:active{
  transform: translateY(0.5px);
}

/* 9) Ensure burger clickable above everything */
.tahm-mheader__burger{
  position: relative;
  z-index: 10005;
  pointer-events: auto;
}
/* =========================================================
   tahm.ee — Mobile Header polish (for .tahm-mheader)
   ========================================================= */

:root{
  --tahm-gutter: 16px;
  --tahm-max: 1200px;
}

/* весь header */
.tahm-mheader{
  width: 100%;
  background: #FED23A;
  font-family: Rubik, system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* внутренний контейнер (ОДИН стандарт) */
.tahm-mheader__top-inner,
.tahm-mheader__main-inner{
  max-width: var(--tahm-max);
  margin: 0 auto;
  padding: 0 var(--tahm-gutter);
}

/* верхняя полоска */
.tahm-mheader__top{
  background: #000;
  color: #fff;
}
.tahm-mheader__top-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.tahm-mheader__phone{
  display:flex;
  align-items:center;
  gap: 8px;
  color:#fff;
  text-decoration:none;
  font-weight: 600;
  font-size: 13px;
}
.tahm-mheader__phone svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.tahm-mheader__promo{
  font-size: 12px;
  font-weight: 700;
  color:#FED23A;
  white-space: nowrap;
}

/* основной блок */
.tahm-mheader__main{
  background: #FED23A;
}
.tahm-mheader__main-inner{
  padding-top: 10px;
  padding-bottom: 10px;
}

/* поиск — единый “премиум” инпут */
.tahm-mheader__search{
  display:flex;
  align-items:stretch;
  gap: 0;
  background:#fff;
  border: 2px solid rgba(0,0,0,.08);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,.10);
}

.tahm-mheader__search input{
  flex:1;
  border:0;
  outline:0;
  padding: 12px 14px;
  font-size: 14px;
  background: transparent;
}
.tahm-mheader__search button{
  width: 52px;
  border:0;
  background:#0196F2;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.tahm-mheader__search button svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* нижний ряд: бургер слева, лого справа */
.tahm-mheader__below{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 10px;
}

/* бургер — нормальная кнопка */
.tahm-mheader__burger{
  width: 44px;
  height: 40px;
  border:0;
  border-radius: 12px;
  background: rgba(0,0,0,.15);
  display:flex;
  align-items:center;
  justify-content:center;
}
.tahm-mheader__burger svg{
  width: 22px;
  height: 22px;
  fill:#000;
  opacity:.9;
}

/* логотип */
.tahm-mheader__logo{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  text-decoration:none;
}
.tahm-mheader__logo img{
  height: 32px;
  width: auto;
  display:block;
}

/* чтобы header не перекрывал клики по странице */
.tahm-mheader{ position: relative; z-index: 50; }
/* ensure content not hidden under sticky top */
.tahm-mobilemenu__content{
  padding-top: 14px !important;
}
