/* Carrinho, modal de produto e página de pedido */

.modal-produto {
    margin-top: 100px;
    max-width: 760px;
}

.qtd-stepper {
    display: inline-flex;
    align-items: stretch;
}

.qtd-stepper input {
    width: 56px;
    text-align: center;
    border: 1px solid #ced4da;
    border-left: 0;
    border-right: 0;
    -moz-appearance: textfield;
}

.qtd-stepper input::-webkit-outer-spin-button,
.qtd-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qtd-stepper .btn {
    border-radius: 0;
    min-width: 38px;
}

.qtd-stepper .btn:first-child {
    border-radius: 4px 0 0 4px;
}

.qtd-stepper .btn:last-child {
    border-radius: 0 4px 4px 0;
}

.qtd-stepper-sm input {
    width: 44px;
}

/* Botão flutuante do carrinho (acima do botão do WhatsApp) */
.cart-fab {
    position: fixed;
    right: 1rem;
    bottom: 120px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #ac1010;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    z-index: 11;
}

.cart-fab:hover {
    color: #fff;
    background: #8a0c0c;
    text-decoration: none;
}

.cart-fab svg {
    width: 30px;
    height: 30px;
}

.cart-fab .cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 12px;
    background: #fff;
    color: #ac1010;
    font-size: 13px;
    font-weight: bold;
    line-height: 24px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

nav .cart-count {
    background: #ac1010;
    color: #fff;
    vertical-align: middle;
}

/* Título legível sobre o fundo escuro do site */
.titulo-pedido {
    display: inline-block;
    margin: 0;
    padding: 8px 24px;
    border-radius: 6px;
    background: #fff;
    color: #ac1010;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* Lista de itens na página de pedido */
.item-pedido {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.item-pedido-info {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.item-pedido-obs {
    color: #6c757d;
    font-style: italic;
}

.item-pedido-acoes {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.item-pedido-subtotal {
    min-width: 84px;
    text-align: right;
}

@media (max-width: 576px) {
    .item-pedido {
        flex-direction: column;
        align-items: stretch;
    }

    .item-pedido-acoes {
        justify-content: space-between;
    }
}
