/* Barra inferior de navegação */
.sticky-actions {
    position: fixed;
    z-index: 50;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 2px;
    width: min(calc(100% - 24px), 430px);
    min-height: 64px;
    margin-inline: auto;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--card);
    box-shadow: 0px 0px 20px -5px black;
}

.sticky-actions a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 50px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: color .18s ease, transform .18s ease;
}

.sticky-actions a > span {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sticky-actions a svg {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    fill: currentColor;
}

.sticky-actions a.sticky-main:not(#openCart) {
    color: var(--primary);
}

.sticky-actions a.sticky-main:not(#openCart)::after {
    position: absolute;
    right: 27%;
    bottom: 2px;
    left: 27%;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    content: "";
}

.sticky-actions #openCart {
    width: 60px;
    min-width: 60px;
    min-height: 60px;
    justify-self: center;
    margin-top: -12px;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 7px 16px rgba(6, 20, 38, .22);
}

.sticky-actions #openCart:hover { background: var(--primary-dark); }
.sticky-actions #openCart .cart-nav-icon { position: relative; }
.sticky-actions #openCart .cart-nav-icon svg { width: 22px; height: 22px; }
.sticky-actions #openCart .cart-count {
    position: absolute;
    top: -6px;
    right: -9px;
    display: grid;
    min-width: 16px;
    height: 16px;
    place-items: center;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 9px;
    letter-spacing: 0;
}

.sticky-actions a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 380px) {
    .sticky-actions { gap: 0; padding-inline: 5px; }
    .sticky-actions a { font-size: 8px; }
    .sticky-actions #openCart { width: 52px; min-width: 52px; min-height: 52px; }
}

@media (min-width: 700px) {
    .sticky-actions { left: 50%; right: auto; transform: translateX(-50%); }
}
