/* footmenu.dev — mobil alt çubuk. Yeni tasarım (debug) açıkken footer.new ile gelir. */

.hx-tabbar {
  display: none;
}

@media (max-width: 860px) {
  .hx-tabbar {
    --hx-tab-bg: #fff;
    --hx-tab-text: #3e3c3c;
    --hx-tab-muted: #646464;
    --hx-tab-line: #e5e5e5;
    --hx-tab-accent: #6a1d5a;
    --hx-tab-wa: #3eb73e;
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8000;
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding: 0 2px env(safe-area-inset-bottom, 0px);
    background: var(--hx-tab-bg);
    border-top: 1px solid var(--hx-tab-line);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
  }

  .hx-tabbar *,
  .hx-tabbar *::before,
  .hx-tabbar *::after {
    box-sizing: border-box;
  }

  .hx-tabbar__btn {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    margin: 0;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    color: var(--hx-tab-muted);
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .hx-tabbar__btn i {
    font-size: 16px;
    line-height: 1;
    color: var(--hx-tab-text);
  }

  .hx-tabbar__btn span {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hx-tabbar__btn small {
    font-size: inherit;
    font-weight: 700;
  }

  .hx-tabbar__btn--wa,
  .hx-tabbar__btn--wa i {
    color: var(--hx-tab-wa);
  }

  body:has(.hdr.hdr--menu-open) .hx-tabbar__btn--cats,
  body:has(.hdr.hdr--menu-open) .hx-tabbar__btn--cats i {
    color: var(--hx-tab-accent);
  }

  body:has(.hx-tabbar) {
    padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
  }

  body:has(.hx-tabbar) #footmenu {
    display: none !important;
  }
}
