/* Carrinho  de compras */
.minBoxCarrinho {
    position: fixed;
    top: 10%;
    right: 0;
    z-index: 9999; /* Garante que fique acima de tudo */
    border-top: 3px solid #222;
    border-left: 3px solid #222;
    border-bottom: 3px solid #222;
    border-bottom-left-radius: 6px;
    border-top-left-radius: 6px;
    width: auto;
    height: auto;
    overflow: hidden;
    background-color: #E6E6E6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.minBoxCarrinho::before {
    content: "";
    position: absolute;
    top: 0;
    right: 100%;
    width: 100%;
    height: 100%;
    background: #999;
    transition: right 0.8s ease;
    pointer-events: none;
}

.minBoxCarrinho:hover::before {
    right: 0;
}

.carrinho {
    color: #323585;
    font-size: 30px;
    padding: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 1;
    background-color: transparent;
}

.carrinho:hover {
    transition: 0.8s;
    transform: rotate(-30deg);
}

.bola {
    margin-top: -30px;
    margin-right: 10px;
    border: 6px solid #f7150d;
    border-radius: 100%;
    width: 3px;
    height: 3px;
    z-index: 1;
    display: flex;
}


.sideCart {
    position: fixed;
    top: 0;
    right: -100%; /* Escondido por padrão */
    width: clamp(300px, 80%, 500px); /* responsivo e com largura mínima */
    height: 100vh;
    background-color: #E6E6E6;
    box-shadow: -3px 0 6px rgba(0, 0, 0, 0.3);
    padding: 2rem 1rem;
    transition: right 0.5s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sideCart.active {
    right: 0; /* Aparece */
}

.notificacao {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    opacity: 0.9;
    z-index: 9999;
    animation: fadeInOut 2.5s ease-in-out forwards;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.sideCart.active {
    right: 0;
}

.cartItems {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
}

.cartItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
}

.cartItem img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.cartFooter {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Botões */
.confirmar, .fechar {
    margin-top: 1rem;
    width: 100%;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: bold;
    font-family: 'Dosis', sans-serif;
    text-transform: uppercase;
    transition: all 400ms ease-in-out;
    overflow: none;
    cursor: pointer;
}

.confirmar{
    border: 3px solid #016B38;
}

.fechar {
    border: 3px solid #F84B46;
}

.confirmar {
    background-color: #016B38;
    color: white;
}

.fechar {
    background-color: #F84B46;
    color: white;
}

.confirmar:hover{
    background-color: transparent;
    color: #016B38;
    transition: all 400ms ease-in;
}

.confirmar:active {
    background-color: #016B38;
}

.fechar:hover{
    background-color: transparent;
    color: #F84B46;
    transition: all 400ms ease-in;
}

.fechar:active {
    background-color: #F84B46;
}

.remover{
    margin-top: 1rem;
    width: 30%;
    padding: 0 auto;
    border: 3px solid #F84B46;
    color: #F84B46;
    border-radius: 10px;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: bold;
    font-family: 'Dosis', sans-serif;
    text-transform: uppercase;
    transition: all 400ms ease-in-out;
    overflow: none;
    cursor: pointer;
}

.remover:hover{
    background-color: transparent;
    color: #F84B46;
    transition: all 400ms ease-in;
}

.remover:active {
    background-color: #F84B46;
}