/* ============================================================
   WayAcross Bottom Bar
   Visível apenas em mobile / tablet (< 992px)
   ============================================================ */

/* ---- Bar container ---------------------------------------- */
#wayacross-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    /* Bootstrap 5 z-index scale: .fixed-* = 1030, offcanvas-backdrop = 1040,
       offcanvas = 1045, modal-backdrop = 1050, modal/#canvas-mini-cart = 1055.
       A barra fica no tier dos elementos fixed (1030) para que o drawer do
       cart, o modal backdrop e qualquer offcanvas do tema Akira fiquem
       sempre por cima — a barra desaparece visualmente quando o cliente
       abre o mini-cart. */
    z-index: 1030;

    display: flex;
    align-items: stretch;

    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.10);

    height: 64px;
}

/* ---- Each category item ----------------------------------- */
#wayacross-bottom-bar .wbb-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;

    padding: 6px 4px;
    text-decoration: none !important;
    color: #718096;

    border-top: 3px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;

    -webkit-tap-highlight-color: rgba(0, 147, 69, 0.12);
}

#wayacross-bottom-bar .wbb-item:hover,
#wayacross-bottom-bar .wbb-item:focus {
    color: #009345;
    border-top-color: #009345;
    background: rgba(0, 147, 69, 0.05);
    text-decoration: none !important;
    outline: none;
}

#wayacross-bottom-bar .wbb-item.active {
    color: #009345;
    border-top-color: #009345;
}

/* ---- Icon ------------------------------------------------- */
#wayacross-bottom-bar .wbb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

#wayacross-bottom-bar .wbb-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

/* ---- Label ----------------------------------------------- */
#wayacross-bottom-bar .wbb-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 68px;
}

/* ---- Safe area (iPhone home bar) -------------------------- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    #wayacross-bottom-bar {
        padding-bottom: env(safe-area-inset-bottom);
        height: calc(64px + env(safe-area-inset-bottom));
    }
}

/* ---- Body padding so content is not hidden behind bar ----- */
body {
    padding-bottom: 64px !important;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom)) !important;
    }
}

/* ---- Hide on desktop (>= 992px) --------------------------- */
@media (min-width: 992px) {
    #wayacross-bottom-bar {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}
