/* =========================================
   CARRINHO - BURGER EM CASA
   ========================================= */

.container {
    flex: 1;
}


/* =========================================
   PAINEL
   ========================================= */

aside {
    display: none;

    position: fixed;
    top: 0;
    right: 0;
    z-index: 4000;

    width: min(470px, 100%);
    min-width: 400px;
    height: 100vh;

    overflow-x: hidden;
    overflow-y: auto;

    color: #eef7fa;

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(230, 59, 72, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 0% 30%,
            rgba(53, 200, 240, 0.08),
            transparent 35%
        ),
        linear-gradient(
            160deg,
            rgba(9, 35, 47, 0.99),
            rgba(4, 17, 24, 0.99)
        );

    border-left: 1px solid rgba(53, 200, 240, 0.32);

    box-shadow:
        -18px 0 50px rgba(0, 0, 0, 0.42);

    transition: all ease .3s;
}


/* detalhe superior */

aside::before {
    content: '';

    position: fixed;
    top: 0;
    right: 0;

    width: min(470px, 100%);
    height: 2px;

    background:
        linear-gradient(
            90deg,
            #35c8f0,
            rgba(53, 200, 240, 0.2) 45%,
            rgba(230, 59, 72, 0.2) 55%,
            #e63b48
        );
}


/* =========================================
   ÁREA INTERNA
   ========================================= */

.cartArea {
    width: 100%;

    padding: 28px;
}


/* ---------- FECHAR ---------- */

.closeCart {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0 0 18px auto;

    color: #9edcec;
    background: rgba(53, 200, 240, 0.07);

    border: 1px solid rgba(53, 200, 240, 0.32);
    border-radius: 6px;

    font-size: 0;

    cursor: pointer;

    transition: 0.2s ease;
}


/* esconde visualmente o conteúdo antigo
   e usa um X mais limpo */

.closeCart::after {
    content: '×';

    font-size: 28px;
    line-height: 1;
}


.closeCart:hover {
    color: #ffffff;

    background: rgba(53, 200, 240, 0.16);

    border-color: #35c8f0;

    box-shadow:
        0 0 12px rgba(53, 200, 240, 0.16);
}


/* =========================================
   TÍTULO
   ========================================= */

.cartArea h1 {
    position: relative;

    margin: 0 0 32px;

    padding-bottom: 18px;

    color: #ffffff;

    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;

    text-align: left;
}


/* linha abaixo do título */

.cartArea h1::after {
    content: '';

    position: absolute;

    left: 0;
    bottom: 0;

    width: 110px;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #35c8f0,
            #e63b48
        );
}


/* =========================================
   ITENS
   ========================================= */

.cartItems {
    margin-top: 0;
}


.cartDetails {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 16px 12px;

    align-items: center;

    margin: 0;
    padding: 22px 0;

    border-bottom:
        1px solid rgba(53, 200, 240, 0.13);
}


/* ---------- NOME ---------- */

.cartItem {
    min-width: 0;

    color: #eef7fa;

    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}


/* ---------- REMOVER ---------- */

.cartRemove {
    grid-column: 2;
    grid-row: 1;

    justify-self: end;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    padding: 0;

    color: #d87b83;
    background: rgba(230, 59, 72, 0.06);

    border: 1px solid rgba(230, 59, 72, 0.20);
    border-radius: 4px;

    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    cursor: pointer;

    transition: 0.2s ease;
}


.cartRemove:hover {
    color: #ffffff;

    background: rgba(230, 59, 72, 0.20);

    border-color: #e63b48;
}


/* =========================================
   QUANTIDADE
   ========================================= */

.cartQt {
    grid-column: 1;
    grid-row: 2;

    display: flex;
    align-items: center;

    line-height: normal;
}


.cartQt button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    padding: 0;

    color: #bcecf7;
    background: rgba(53, 200, 240, 0.09);

    border: 1px solid rgba(53, 200, 240, 0.38);

    font-size: 20px;

    cursor: pointer;

    transition: 0.2s ease;
}


.cartQt button:hover {
    color: #ffffff;

    background: rgba(53, 200, 240, 0.22);

    border-color: #35c8f0;
}


.cartMinus {
    border-radius: 5px 0 0 5px;
}


.cartPlus {
    border-radius: 0 5px 5px 0;
}


.actualQt {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 34px;

    color: #ffffff;
    background: rgba(0, 0, 0, 0.22);

    border-top: 1px solid rgba(53, 200, 240, 0.38);
    border-bottom: 1px solid rgba(53, 200, 240, 0.38);

    text-align: center;
}


/* =========================================
   SUBTOTAL
   ========================================= */

.subtotal {
    grid-column: 2;
    grid-row: 2;

    justify-self: end;

    color: #d8a93d;

    font-size: 19px;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================
   TOTAL
   ========================================= */

.cartValues {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;

    gap: 7px;

    margin-top: 30px;
    padding-top: 22px;

    border-top:
        1px solid rgba(53, 200, 240, 0.24);

    color: #9eb8c2;

    font-size: 17px;
}

.cartValues p {
    margin: 0;
}

.cartTotal {
    display: inline;

    margin: 0;

    color: #d8a93d;

    font-size: 32px;
    font-weight: 700;
}


/* =========================================
   FINALIZAR PEDIDO
   ========================================= */

.cartOrder {
    display: flex;
    justify-content: center;

    margin-top: 28px;
}


.cartOrder button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 52px;

    padding: 10px 20px;

    color: #07161d;

    background:
        linear-gradient(
            90deg,
            #d8a93d,
            #edca6a
        );

    border: 1px solid #f0d477;
    border-radius: 5px;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.25),
        0 0 12px rgba(216, 169, 61, 0.10);

    font-size: 20px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.2s ease;
}


.cartOrder button:hover {
    background:
        linear-gradient(
            90deg,
            #e5b94f,
            #f5d985
        );

    border-color: #ffe29a;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.30),
        0 0 18px rgba(216, 169, 61, 0.20);

    transform: translateY(-1px);
}


/* =========================================
   CARRINHO VAZIO
   ========================================= */

.emptyCart {
    margin: 55px 0;

    padding: 30px 15px;

    color: #78909a;

    border-top:
        1px solid rgba(53, 200, 240, 0.10);

    border-bottom:
        1px solid rgba(53, 200, 240, 0.10);

    font-size: 18px;
    line-height: 1.4;

    text-align: center;
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    aside {
        width: 100%;
        min-width: 0;
        max-width: 100%;

        top: 0;
        right: 0;

        border-left: none;
    }


    aside::before {
        width: 100%;
    }


    .cartArea {
        width: 100%;

        padding: 20px 18px 30px;
    }


    .cartArea h1 {
        margin-bottom: 24px;

        font-size: 30px;
    }


    .cartDetails {
        gap: 14px 8px;

        padding: 20px 0;
    }


    .cartItem {
        font-size: 19px;
    }


    .subtotal {
        font-size: 18px;
    }


    .cartValues {
        margin-top: 25px;

        font-size: 16px;
    }


    .cartTotal {
        font-size: 30px;
    }


    .cartOrder {
        margin-top: 24px;
    }


    .cartOrder button {
        width: 100%;

        min-height: 54px;
    }


    .emptyCart {
        margin: 40px 0;

        font-size: 17px;
    }
}