
/* ============================================================
 * top-menu-bar.css - верхняя полоса #top-menu
 * бургер | телефон | адрес | график ... сравнение/избранное/корзина
 * ============================================================ */

#top-menu{height:60px!important;background:#0c0c0c!important;color:#fff!important}
#top-menu.is-scrolled{height:60px!important;background:rgba(12,12,12,.92)!important}
body.p2-tm-fixed #top-menu{height:60px!important}

#top-menu .wrap.clearfix{display:flex!important;align-items:center!important;flex-wrap:nowrap!important;gap:0!important;height:60px!important;max-width:1400px!important;margin:0 auto!important;padding:0 24px!important;box-sizing:border-box!important}

#top-menu .wrap.clearfix > .open-menu{position:relative!important;left:auto!important;top:auto!important;flex:0 0 auto!important;width:44px!important;height:44px!important;margin:0 14px 0 0!important;background:var(--donor-yellow,#fed500)!important;border:1px solid var(--donor-yellow,#fed500)!important;border-radius:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;z-index:1!important;padding:0!important}
#top-menu .wrap.clearfix > .open-menu .open-menu-icon{position:static!important;width:24px!important;height:24px!important;stroke:#000!important;color:#000!important;stroke-width:2.4!important;left:auto!important;top:auto!important;transform:none!important}
#top-menu.is-scrolled .wrap.clearfix > .open-menu,body.p2-tm-fixed #top-menu .wrap.clearfix > .open-menu{width:44px!important;height:44px!important;background:var(--donor-yellow,#fed500)!important;border-color:var(--donor-yellow,#fed500)!important}
#top-menu.is-scrolled .wrap.clearfix > .open-menu .open-menu-icon,body.p2-tm-fixed #top-menu .wrap.clearfix > .open-menu .open-menu-icon{stroke:#000!important;color:#000!important}
#top-menu .open-menu span:empty{display:none!important}

#top-menu .tm-info{display:flex!important;align-items:center!important;gap:0!important;margin-right:auto!important;min-width:0!important}
#top-menu .tm-item{position:relative!important;display:flex!important;align-items:center!important;gap:10px!important;height:60px!important;padding:0 18px!important;margin:0!important;text-decoration:none!important;color:inherit!important;background:transparent!important;white-space:nowrap!important;font-family:inherit!important}
#top-menu .tm-item + .tm-item::before{content:""!important;position:absolute!important;left:0!important;top:14px!important;bottom:14px!important;width:1px!important;background:rgba(255,255,255,.14)!important}
#top-menu.is-scrolled .tm-item + .tm-item::before{background:rgba(255,255,255,.16)!important}
#top-menu .tm-ico{flex:0 0 34px!important;width:34px!important;height:34px!important;border-radius:50%!important;background:var(--donor-yellow,#fed500)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
#top-menu .tm-ico svg{width:18px!important;height:18px!important;stroke:#111!important;fill:none!important;stroke-width:2!important;display:block!important}
#top-menu .tm-txt{display:flex!important;flex-direction:column!important;justify-content:center!important;line-height:1.2!important;min-width:0!important;text-align:left!important}
#top-menu .tm-label{font-size:11px!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:rgba(255,255,255,.55)!important;margin:0 0 2px!important;font-weight:400!important}
#top-menu .tm-value{font-size:14px!important;font-weight:600!important;color:#fff!important;white-space:nowrap!important}
#top-menu .tm-phone .tm-value{font-size:16px!important;font-weight:700!important}
#top-menu.is-scrolled .tm-label{color:rgba(255,255,255,.55)!important}
#top-menu.is-scrolled .tm-value{color:#fff!important}
#top-menu .tm-phone:hover .tm-value,#top-menu .tm-address:hover .tm-value{color:#b58f00!important}
#top-menu.is-scrolled .tm-phone:hover .tm-value,#top-menu.is-scrolled .tm-address:hover .tm-value{color:var(--donor-yellow,#fed500)!important}

#top-menu .menu-right{float:none!important;margin-left:auto!important;height:auto!important;flex:0 0 auto!important}
#top-menu .p2-actions{display:flex!important;align-items:center!important;gap:8px!important;height:60px!important}
#top-menu .p2-actions .p2-ic{width:40px!important;height:40px!important;border-radius:0!important;background:transparent!important;color:#e9e9ef!important;border:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;position:relative!important;transform:none!important}
#top-menu .p2-actions .p2-ic svg{width:21px!important;height:21px!important;stroke:currentColor!important;fill:none!important;stroke-width:1.9!important;position:relative!important;z-index:2!important}
#top-menu.is-scrolled .p2-actions .p2-ic{color:#e9e9ef!important}
#top-menu .p2-actions .p2-ic:hover{color:#b58f00!important;background:transparent!important;transform:none!important}
#top-menu.is-scrolled .p2-actions .p2-ic:hover{color:var(--donor-yellow,#fed500)!important;background:transparent!important}
#top-menu .p2-actions .p2-badge{position:absolute!important;top:0!important;right:0!important;min-width:16px!important;height:16px!important;padding:0 4px!important;border-radius:50%!important;background:var(--donor-yellow,#fed500)!important;color:#000!important;font-size:10px!important;font-weight:700!important;line-height:16px!important;text-align:center!important;z-index:3!important}
#top-menu .p2-actions .p2-badge.is-empty{display:none!important}

#top-menu .p2-ic--cart::after{content:""!important;position:absolute!important;left:-9px!important;right:-9px!important;top:2px!important;bottom:2px!important;background:var(--donor-yellow,#fed500)!important;transform:skewX(-12deg)!important;z-index:0!important;transition:background-color .2s ease!important}
#top-menu .p2-ic--cart:hover::after{background:#e6c100!important}
#top-menu .p2-ic--cart svg{stroke:#000!important;color:#000!important}
#top-menu .p2-ic--cart .p2-badge{background:#000!important;color:var(--donor-yellow,#fed500)!important}
#top-menu .p2-ic--cart::before{display:none!important}

@media (max-width:1400px){#top-menu .tm-hours{display:none!important}}
@media (max-width:1180px){#top-menu .tm-address{display:none!important}#top-menu .tm-item{padding:0 14px!important}}
@media (max-width:820px){#top-menu .tm-phone .tm-label{display:none!important}#top-menu .tm-phone .tm-value{font-size:14px!important}}
@media (max-width:620px){#top-menu .tm-phone .tm-txt{display:none!important}#top-menu .tm-phone{padding:0 24px!important}#top-menu .p2-actions{gap:2px!important}#top-menu .p2-actions .p2-ic{width:36px!important;height:36px!important}}

/* ============================================================
 * v3.5 — правки шапки (заявка 16.11.2026)
 *  1) телефон: жёлтый фон иконки — на всю высоту .tm-item (от верха экрана)
 *  2) корзина: жёлтая плашка — на всю высоту шапки
 *  3) бургер: чёрная обводка, крупнее чёрточки, hover — жёлтая заливка и обводка
 * ============================================================ */

/* --- 1. Телефон: жёлтая плашка на всю высоту блока --- */
#top-menu .tm-phone{padding-left:0!important}
#top-menu .tm-phone .tm-ico{
  flex:0 0 46px!important;
  width:46px!important;
  height:100%!important;
  min-height:100%!important;
  border-radius:0!important;
  margin:0!important;
  align-self:stretch!important;
}
#top-menu .tm-phone .tm-ico svg{width:20px!important;height:20px!important}

/* --- 2. Корзина: жёлтая плашка на всю высоту шапки (60px) --- */
#top-menu .p2-ic--cart::after{top:-10px!important;bottom:-10px!important}

/* --- 3. Бургер: чёрная обводка, крупные чёрточки, hover — жёлтый --- */
#top-menu .wrap.clearfix > .open-menu{
  background:transparent!important;
  border:2px solid #000!important;
  border-radius:0!important;
  transition:background-color .2s ease,border-color .2s ease!important;
}
#top-menu .wrap.clearfix > .open-menu .open-menu-icon{
  width:28px!important;
  height:28px!important;
  stroke:#000!important;
  color:#000!important;
  stroke-width:3!important;
}
#top-menu .wrap.clearfix > .open-menu:hover,
#top-menu .wrap.clearfix > .open-menu:focus-visible{
  background:var(--donor-yellow,#fed500)!important;
  border-color:var(--donor-yellow,#fed500)!important;
}
#top-menu .wrap.clearfix > .open-menu:hover .open-menu-icon,
#top-menu .wrap.clearfix > .open-menu:focus-visible .open-menu-icon{
  stroke:#000!important;
  color:#000!important;
}
#top-menu.is-scrolled .wrap.clearfix > .open-menu,
body.p2-tm-fixed #top-menu .wrap.clearfix > .open-menu{
  background:var(--donor-yellow,#fed500)!important;
  border-color:var(--donor-yellow,#fed500)!important;
}
#top-menu.is-scrolled .wrap.clearfix > .open-menu .open-menu-icon,
body.p2-tm-fixed #top-menu .wrap.clearfix > .open-menu .open-menu-icon{
  stroke:#000!important;
  color:#000!important;
}

/* --- «Вс: выходной» — красным --- */
#top-menu .tm-hours .tm-value .tm-holiday,
#top-menu.is-scrolled .tm-hours .tm-value .tm-holiday,
body.p2-tm-fixed #top-menu .tm-hours .tm-value .tm-holiday{color:#ff1b16!important}

/* ============================================================
 * v3.6 — залипшая шапка: ровные отступы, чёрная корзина, счётчик
 * ============================================================ */

/* 1. Высота полосы и внутренней обёртки — одинаковая в обоих состояниях,
      без разъезжающихся верхнего/нижнего отступов */
#top-menu,
#top-menu.is-scrolled,
body.p2-tm-fixed #top-menu{height:60px!important;padding-top:0!important;padding-bottom:0!important}
#top-menu .wrap.clearfix,
#top-menu.is-scrolled .wrap.clearfix,
body.p2-tm-fixed #top-menu .wrap.clearfix{
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    padding-top:0!important;
    padding-bottom:0!important;
    align-items:center!important;
    overflow:visible!important;
}
#top-menu .tm-item,
#top-menu.is-scrolled .tm-item{height:60px!important;align-self:center!important}
#top-menu .tm-ico{height:34px!important;align-self:center!important}
#top-menu .p2-actions,
#top-menu.is-scrolled .p2-actions{height:60px!important;align-items:center!important}
#top-menu .open-menu,
#top-menu.is-scrolled .open-menu,
body.p2-tm-fixed #top-menu .open-menu{align-self:center!important;height:44px!important}

/* 2. Корзина в залипшей (тёмной) шапке — иконка остаётся чёрной на жёлтой плашке */
#top-menu.is-scrolled .p2-actions .p2-ic--cart,
#top-menu.is-scrolled .p2-actions .p2-ic--cart:hover,
body.p2-tm-fixed #top-menu .p2-actions .p2-ic--cart,
body.p2-tm-fixed #top-menu .p2-actions .p2-ic--cart:hover{color:#000!important}
#top-menu.is-scrolled .p2-actions .p2-ic--cart svg,
body.p2-tm-fixed #top-menu .p2-actions .p2-ic--cart svg{stroke:#000!important;color:#000!important;fill:none!important}
#top-menu.is-scrolled .p2-actions .p2-ic--cart::after,
body.p2-tm-fixed #top-menu .p2-actions .p2-ic--cart::after{background:var(--donor-yellow,#fed500)!important}

/* ============================================================
 * v3.7 — счётчик корзины и z-index выдвижного меню
 * ============================================================ */

/* ============================================================
 * v3.8 — счётчик корзины и слои выдвижного меню
 * ============================================================ */
/* 1. Демо-счётчик корзины: жёлтый кружок с чёрной «9».
      Отдельный элемент .tm-cart-demo — не участвует в JS-гидратации,
      поэтому цифра видна всегда: и на белой, и на тёмной шапке. */
#top-menu .p2-ic--cart{position:relative!important;overflow:visible!important}
#top-menu .p2-ic--cart > #cart-badge{display:none!important}
#top-menu .p2-ic--cart > .tm-cart-demo{
    position:absolute!important;
    top:-4px!important;
    right:-5px!important;
    display:block!important;
    width:20px!important;
    height:20px!important;
    min-width:20px!important;
    padding:0!important;
    margin:0!important;
    border-radius:50%!important;
    background:#000!important;
    color:#fff!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:20px!important;
    text-align:center!important;
    font-variant-numeric:tabular-nums!important;
    box-shadow:none!important;
    z-index:12!important;
    pointer-events:none!important;    box-shadow:none!important;\n
}
#top-menu.is-scrolled .p2-ic--cart > .tm-cart-demo,
body.p2-tm-fixed #top-menu .p2-ic--cart > .tm-cart-demo{
    background:#000!important;
    color:#fff!important;
    box-shadow:none!important;    box-shadow:none!important;\n
}
/* 2. Выдвижное меню — всегда поверх липкой шапки */
#left-menu{z-index:2147483647!important}
#left-menu-backdrop{z-index:2147483646!important}
/* когда меню открыто, шапка уходит на слой ниже */
body:has(#left-menu.active) #top-menu,
body:has(#left-menu.active) #top-menu.is-scrolled,
body.p2-tm-fixed:has(#left-menu.active) #top-menu{
    z-index:2147483000!important;
}
body:has(#left-menu.active) .info-ticker{z-index:2147482999!important}

/* --- демо-кружок корзины: без обводки --- */
#top-menu .p2-ic--cart > .tm-cart-demo,
#top-menu.is-scrolled .p2-ic--cart > .tm-cart-demo,
body.p2-tm-fixed #top-menu .p2-ic--cart > .tm-cart-demo{
    box-shadow:none!important;
    border:none!important;
    outline:none!important;
}