.botao-carrinho {
    position: relative;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 25px;

    cursor: pointer;

    margin-left: 25px;

    transition: 0.3s;
}

.botao-carrinho:hover {
    transform: scale(1.08);
}

.botao-carrinho span {
    position: absolute;

    top: -8px;
    right: -10px;

    width: 20px;
    height: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #d4af37;

    color: #ffffff;

    border-radius: 50%;

    font-size: 11px;

    font-weight: bold;
}



.carrinho {
    position: fixed;

    top: 0;

    right: -420px;

    width: 400px;

    height: 100vh;

    background: #111111;

    z-index: 2000;

    box-shadow:
        -8px 0 30px rgba(0, 0, 0, 0.6);

    display: flex;

    flex-direction: column;

    transition: right 0.4s ease;
}

.carrinho.aberto {
    right: 0;
}


/* =====================================================
   CABEÇALHO DO CARRINHO
===================================================== */

.carrinho-header {
    padding: 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #333333;
}

.carrinho-header h2 {
    font-size: 24px;
}

.carrinho-header button {
    background: transparent;

    border: none;

    color: #ffffff;

    font-size: 22px;

    cursor: pointer;

    transition: 0.3s;
}

.carrinho-header button:hover {
    color: #d4af37;

    transform: rotate(90deg);
}


/* =====================================================
   ITENS DO CARRINHO
===================================================== */

.carrinho-itens {
    flex: 1;

    padding: 20px;

    overflow-y: auto;
}

.carrinho-vazio {
    text-align: center;

    color: #888888;

    margin-top: 50px;
}


/* =====================================================
   ITEM DO CARRINHO
===================================================== */

.item-carrinho {
    background: #1d1d1d;

    border: 1px solid #292929;

    border-radius: 9px;

    padding: 15px;

    margin-bottom: 15px;

    display: grid;

    grid-template-columns: 1fr auto auto;

    gap: 10px;

    align-items: center;
}

.item-info h3 {
    font-size: 16px;

    margin-bottom: 5px;
}

.item-info span {
    color: #d4af37;

    font-weight: bold;

    font-size: 14px;
}


/* =====================================================
   QUANTIDADE
===================================================== */

.quantidade {
    display: flex;

    align-items: center;

    gap: 8px;
}

.quantidade span {
    min-width: 20px;

    text-align: center;

    font-weight: bold;
}

.btn-quantidade {
    width: 28px;

    height: 28px;

    border: none;

    border-radius: 5px;

    background: #d4af37;

    color: #ffffff;

    cursor: pointer;

    font-weight: bold;

    transition: 0.2s;
}

.btn-quantidade:hover {
    background: #e5c45b;

    transform: scale(1.05);
}


/* =====================================================
   REMOVER PRODUTO
===================================================== */

.btn-remover {
    border: none;

    background: transparent;

    color: #ffffff;

    cursor: pointer;

    font-size: 18px;

    transition: 0.2s;
}

.btn-remover:hover {
    color: #d4af37;

    transform: scale(1.15);
}



.carrinho-fundo {
    position: fixed;
    inset: 0;
    z-index: 1900;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.carrinho-fundo.ativo {
    opacity: 1;
    visibility: visible;
}


.carrinho { width: min(400px, 100%); height: 100dvh; visibility: hidden; }
.carrinho.aberto { visibility: visible; }
.item-carrinho { grid-template-columns: minmax(0, 1fr) auto auto; }
.item-info h3 { overflow-wrap: anywhere; }
.btn-quantidade, .btn-finalizar { color: #111; }
.header .botao-carrinho { flex-shrink: 0; margin-left: 0; }
