/* Rodapé extra (200px acima do WhatsApp) — CSS “blindado” (sem Tailwind) */
.rodape-container {
    position: fixed;
    left: 0;
    width: 100%;
    height: 110px;
    bottom: 0;
    background-color: transparent;
    border-top: 0;
    display: flex;
    align-items: center;
    z-index: 1997; /* acima do #bottom-app-nav (1995), abaixo do WhatsApp (2000) */
    box-shadow: none;
    pointer-events: none; /* não bloquear o conteúdo atrás */
}

/*
 * Importante: este rodapé extra fica por cima do site.
 * Mantemos a área "vazia" transparente para cliques e habilitamos
 * clique apenas no botão do carrinho.
 */
.rodape-container .nav-bar {
    pointer-events: none;
}

.rodape-container .cart-container-wrapper,
.rodape-container .cart-button,
.rodape-container .cart-button * {
    pointer-events: auto;
}

.rodape-container .background-curva {
    position: absolute;
    inset: 0;
    display: none;
}

.rodape-container .nav-bar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 0 12px;
    padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
}

.rodape-container .nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #eef2f5;
    border: 1px solid #d1d5db;
    padding: 8px 12px;
    border-radius: 8px;
    width: 80px;
    font-size: 10px;
    font-weight: 800;
    color: #374151;
    gap: 4px;
    cursor: pointer;
    user-select: none;
}

.rodape-container .nav-btn i {
    font-size: 18px;
}

/* Botão Central — centro horizontal = 50% da .nav-bar (não do wrapper de 76px; evita “left: 38px” deslocado) */
.rodape-container .cart-container-wrapper {
    position: absolute;
    left: 50%;
    bottom: calc(11px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: 76px;
    height: 0;
    overflow: visible;
    pointer-events: none;
    z-index: 1;
}

.rodape-container .cart-button {
    --cart-btn-outer-w: 76px;
    background: linear-gradient(to bottom right, #f3f4f6, #e5e7eb);
    padding: 6px;
    width: var(--cart-btn-outer-w);
    height: 94px;
    box-sizing: border-box;
    border-radius: 50px 50px 8px 8px;
    border: 1px solid #d1d5db;
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%) translateY(-1px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    transition: transform 0.2s;
}

.rodape-container .cart-button:hover {
    transform: translateX(-50%) translateY(-1px) scale(1.02);
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.28);
}

.rodape-container .cart-icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(to bottom right, #ef4444, #b91c1c);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #ffffff;
    box-shadow: none;
}

.rodape-container .cart-icon-circle i {
    font-size: 26px;
    line-height: 1;
}

.rodape-container .cart-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(calc(-50% + 2px), calc(-50% - 5px));
    font-weight: 900;
    font-size: 11px;
    line-height: 1;
    pointer-events: none;
    background: linear-gradient(to bottom right, #ef4444, #b91c1c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Largura = área útil do botão (76 − padding) menos 6px — cabe dentro do .cart-button */
.rodape-container .cart-price-container {
    box-sizing: border-box;
    width: calc(var(--cart-btn-outer-w) - 12px - 6px);
    max-width: calc(var(--cart-btn-outer-w) - 12px - 6px);
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    column-gap: 2px;
    font-weight: 900;
    color: #ffffff;
    font-size: 11px;
    line-height: 1;
    background: linear-gradient(90deg, #ef4444 0%, #b91c1c 100%);
    border: 0;
    border-radius: 6px;
    padding: 3px 4px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}

.rodape-container .cart-price-container .currency {
    color: #ffffff;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.73em;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
    align-self: center;
    display: inline-block;
}

.rodape-container .cart-price-container .amount {
    font-size: 1em;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1;
    align-self: center;
    display: inline-block;
}

.rodape-container .cart-price-container .currency,
.rodape-container .cart-price-container .amount {
    text-shadow: none;
    box-shadow: none;
    outline: none;
}

@media (max-width: 768px) {
    .rodape-container {
        bottom: 0;
    }
}

