/* ==========================================
   OLYMPO
   CARRINHO — DESIGN PREMIUM
========================================== */


/* ==========================================
   ÁREA PRINCIPAL
========================================== */

.carrinho {
    padding: 80px 0;
    min-height: 70vh;
}

.carrinho-conteudo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 30px;
    align-items: start;
}


/* ==========================================
   ÁREA DOS PRODUTOS
========================================== */

.lista-carrinho {
    display: flex;
    flex-direction: column;
    gap: 15px;
}


/* ==========================================
   ITEM DO CARRINHO
========================================== */

.item-carrinho {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;

    padding: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(7, 20, 38, 0.98),
            rgba(13, 34, 61, 0.98)
        );

    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;

    position: relative;
}

.item-carrinho:hover {
    border-color: rgba(212, 175, 55, 0.65);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        0 0 18px rgba(212, 175, 55, 0.05);

    transform: translateY(-2px);
}


/* ==========================================
   IMAGEM DO PRODUTO
========================================== */

.item-carrinho-imagem {
    width: 100px;
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            rgba(212, 175, 55, 0.07),
            rgba(7, 20, 38, 0.95)
        );

    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;

    overflow: hidden;
    box-sizing: border-box;
}

.item-carrinho-imagem img {
    width: 100%;
    height: 100%;

    object-fit: contain;
    padding: 8px;
    box-sizing: border-box;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.item-carrinho:hover .item-carrinho-imagem img {
    transform: scale(1.04);
    filter: brightness(1.05);
}


/* ==========================================
   INFORMAÇÕES DO PRODUTO
========================================== */

.item-carrinho-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 6px;
}


/* CATEGORIA */

.item-carrinho-categoria {
    display: block;

    margin: 0 0 1px;

    color: #d4af37;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.6px;
    line-height: 1.2;

    text-transform: uppercase;
}


/* NOME */

.item-carrinho-info h3 {
    margin: 0;

    color: #ffffff;

    font-size: 17px;
    font-weight: 600;

    line-height: 1.3;
}


/* PREÇO UNITÁRIO */

.item-carrinho .item-preco {
    margin: 1px 0 0;

    color: #d4af37 !important;

    font-size: 15px !important;
    font-weight: 700 !important;

    line-height: 1.3;
}


/* ==========================================
   OPÇÃO DO PRODUTO
========================================== */

.item-carrinho .item-opcao {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    margin: 3px 0 2px;
    padding: 5px 9px;

    color: #d4af37;

    background:
        rgba(212, 175, 55, 0.07);

    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 6px;

    font-size: 12px;
    font-weight: 500;

    letter-spacing: 0.2px;
}


/* ==========================================
   AÇÕES DO PRODUTO
========================================== */

.item-carrinho-acoes {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 10px;

    margin-top: 14px;

    flex-wrap: nowrap;
}


/* ==========================================
   CONTROLE DE QUANTIDADE

   RESULTADO:
   ┌─────────────┐
   │   −  1  +   │
   └─────────────┘
========================================== */

.controle-quantidade {
    display: flex;
    align-items: center;

    width: fit-content;
    height: 40px;

    gap: 0;

    background: #071426;

    border: 1px solid #d4af37;
    border-radius: 8px;

    overflow: hidden;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.20);
}


/* BOTÕES - E + */

.item-carrinho-acoes .botao-quantidade {
    width: 36px;
    height: 38px;

    min-width: 36px;
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    background: transparent;

    color: #d4af37;

    border: none;

    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.item-carrinho-acoes .botao-quantidade:hover {
    background: #102b4d;
    color: #e8c654;
}

.item-carrinho-acoes .botao-quantidade:active {
    background: #173b66;
}


/* QUANTIDADE */

.item-carrinho-acoes .quantidade-item {
    width: 36px;
    min-width: 36px;

    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0;
    padding: 0;

    background: transparent;

    color: #d4af37;

    border: none;

    font-size: 16px;
    font-weight: 700;

    line-height: 1;

    box-sizing: border-box;
}


/* ==========================================
   BOTÃO REMOVER
========================================== */

.item-carrinho-acoes .botao-remover {
    min-height: 40px;

    margin: 0;
    padding: 0 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(255, 255, 255, 0.025);

    color: #9aa4b2;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.item-carrinho-acoes .botao-remover:hover {
    background:
        rgba(190, 55, 55, 0.12);

    color: #f09a9a;

    border-color:
        rgba(210, 80, 80, 0.55);

    transform: translateY(-1px);
}


/* ==========================================
   TOTAL DO PRODUTO
========================================== */

.item-carrinho-total {
    min-width: 100px;

    display: flex;
    flex-direction: column;

    align-items: flex-end;
    justify-content: center;

    gap: 8px;

    text-align: right;
}

.item-carrinho .item-carrinho-total {
    color: #d4af37 !important;

    font-size: 17px !important;
    font-weight: 700 !important;

    text-shadow:
        0 0 10px rgba(212, 175, 55, 0.12);
}

.item-carrinho-total strong {
    color: #d4af37 !important;

    font-size: 17px;
    font-weight: 700;
}


/* ==========================================
   RESUMO DO CARRINHO
========================================== */

.resumo-carrinho {
    position: sticky;
    top: 25px;

    padding: 25px;

    background:
        linear-gradient(
            145deg,
            rgba(7, 20, 38, 0.98),
            rgba(16, 43, 77, 0.98)
        );

    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 14px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.25);
}

.resumo-carrinho h2 {
    margin: 0 0 25px;

    color: #d4af37;

    font-size: 20px;
    font-weight: 700;

    letter-spacing: 0.2px;
}


/* ==========================================
   LINHAS DO RESUMO
========================================== */

.resumo-linha,
.resumo-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}

.resumo-linha span {
    color: #aeb8c5;
    font-size: 14px;
}

.resumo-linha strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}

.resumo-total {
    padding-top: 20px;
    border-bottom: none;
}

.resumo-total span {
    color: #ffffff;

    font-size: 18px;
    font-weight: 600;
}

.resumo-total strong {
    color: #d4af37;

    font-size: 22px;
    font-weight: 700;

    text-shadow:
        0 0 12px rgba(212, 175, 55, 0.16);
}


/* ==========================================
   BOTÃO FINALIZAR
========================================== */

.botao-finalizar {
    width: 100%;

    margin-top: 20px;
    padding: 15px 18px;

    background:
        linear-gradient(
            135deg,
            #d4af37,
            #e8c654
        );

    color: #071426;

    border: none;
    border-radius: 9px;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(212, 175, 55, 0.16);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.botao-finalizar:hover {
    transform: translateY(-2px);

    filter: brightness(1.05);

    box-shadow:
        0 9px 24px rgba(212, 175, 55, 0.28);
}

.botao-finalizar:active {
    transform: translateY(0);

    box-shadow:
        0 4px 10px rgba(212, 175, 55, 0.18);
}


/* ==========================================
   BOTÃO VOLTAR AOS PRODUTOS
========================================== */

.botao-voltar-carrinho {
    display: inline-flex;
    align-items: center;

    margin-bottom: 30px;

    color: #d4af37;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.botao-voltar-carrinho:hover {
    color: #ffffff;
    transform: translateX(-4px);
}


/* ==========================================
   CARRINHO VAZIO
========================================== */

.carrinho-vazio {
    padding: 65px 30px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(7, 20, 38, 0.98),
            rgba(13, 34, 61, 0.98)
        );

    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.18);
}

.carrinho-vazio h2 {
    margin: 0 0 10px;

    color: #ffffff;

    font-size: 22px;
    font-weight: 600;
}

.carrinho-vazio p {
    max-width: 450px;

    margin: 0 auto 25px;

    color: #aeb8c5;

    font-size: 14px;
    line-height: 1.6;
}

.carrinho-vazio a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    background:
        linear-gradient(
            135deg,
            #d4af37,
            #e8c654
        );

    color: #071426;

    border-radius: 8px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.carrinho-vazio a:hover {
    transform: translateY(-2px);

    box-shadow:
        0 7px 20px rgba(212, 175, 55, 0.25);
}


/* ==========================================
   DADOS DO CLIENTE
========================================== */

.dados-cliente {
    margin-bottom: 25px;
}

.dados-cliente h3 {
    margin: 0 0 15px;

    color: #d4af37;

    font-size: 18px;
    font-weight: 600;
}

.dados-cliente input,
.dados-cliente select,
.dados-cliente textarea {
    width: 100%;

    box-sizing: border-box;

    padding: 12px 14px;
    margin-bottom: 12px;

    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 8px;

    background: #111827;
    color: #ffffff;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

.dados-cliente input::placeholder,
.dados-cliente textarea::placeholder {
    color: #7f8a99;
}

.dados-cliente input:hover,
.dados-cliente select:hover,
.dados-cliente textarea:hover {
    border-color: rgba(212, 175, 55, 0.45);
}

.dados-cliente input:focus,
.dados-cliente select:focus,
.dados-cliente textarea:focus {
    border-color: #d4af37;

    background: #0f1a2b;

    box-shadow:
        0 0 0 3px rgba(212, 175, 55, 0.08);
}

.dados-cliente select {
    cursor: pointer;
}

.dados-cliente textarea {
    resize: vertical;
    min-height: 80px;
}


/* ==========================================
   CAMPO DE ENDEREÇO
========================================== */

.campo-endereco {
    display: none;
}

.campo-endereco.ativo {
    display: block;
}


/* ==========================================
   AVISO DE ENTREGA
========================================== */

.aviso-entrega {
    margin: 2px 0 14px;

    padding: 11px 13px;

    color: #d1d5db;

    background:
        rgba(212, 175, 55, 0.055);

    border-left: 2px solid #d4af37;
    border-radius: 5px;

    font-size: 12px;
    line-height: 1.55;

    letter-spacing: 0.15px;
}


/* ==========================================
   BOTÃO CALCULAR ENTREGA
========================================== */

.botao-calcular-entrega {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 4px;
    margin-bottom: 14px;

    padding: 12px 16px;

    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, 0.14),
            rgba(212, 175, 55, 0.08)
        );

    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 8px;

    color: #d4af37;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.botao-calcular-entrega:hover {
    background:
        linear-gradient(
            135deg,
            rgba(212, 175, 55, 0.22),
            rgba(212, 175, 55, 0.12)
        );

    border-color: #d4af37;
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 5px 15px rgba(212, 175, 55, 0.08);
}

.botao-calcular-entrega:active {
    transform: translateY(0);
}

.botao-calcular-entrega:disabled {
    opacity: 0.55;

    cursor: not-allowed;

    transform: none;

    box-shadow: none;
}


/* ==========================================
   RESULTADO DA ENTREGA
========================================== */

.resultado-entrega {
    display: none;

    margin-top: 5px;
    margin-bottom: 14px;

    padding: 14px;

    background:
        linear-gradient(
            145deg,
            rgba(212, 175, 55, 0.06),
            rgba(7, 20, 38, 0.65)
        );

    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 9px;
}

.resultado-entrega.ativo {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resultado-entrega-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 9px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);
}

.resultado-entrega-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.resultado-entrega-item span {
    color: #9da8b7;
    font-size: 12px;
}

.resultado-entrega-item strong {
    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    text-align: right;
}

.resultado-entrega-item:last-child strong {
    color: #d4af37;
    font-size: 15px;
}


/* ==========================================
   MENSAGEM DA ENTREGA
========================================== */

.mensagem-entrega {
    display: none;

    margin: 0 0 14px;

    padding: 10px 12px;

    border-radius: 6px;

    font-size: 12px;
    line-height: 1.5;
}

.mensagem-entrega.erro,
.mensagem-entrega.sucesso,
.mensagem-entrega.info {
    display: block;
}

.mensagem-entrega.sucesso {
    color: #d9f7e5;

    background:
        rgba(46, 160, 90, 0.08);

    border:
        1px solid rgba(46, 160, 90, 0.25);
}

.mensagem-entrega.erro {
    color: #ffd7d7;

    background:
        rgba(190, 55, 55, 0.08);

    border:
        1px solid rgba(190, 55, 55, 0.25);
}

.mensagem-entrega.aviso {
    color: #f5e4a8;

    background:
        rgba(212, 175, 55, 0.07);

    border:
        1px solid rgba(212, 175, 55, 0.2);
}


/* ==========================================
   RESPONSIVIDADE
========================================== */

@media (max-width: 1000px) {

    .carrinho-conteudo {
        grid-template-columns: 1fr 320px;
        gap: 20px;
    }

    .item-carrinho {
        grid-template-columns: 90px minmax(0, 1fr);
        gap: 15px;
    }

    .item-carrinho-imagem {
        width: 90px;
        height: 90px;
    }

    .item-carrinho-acoes {
        grid-column: 2;
        justify-content: flex-start;
    }

    .item-carrinho-total {
        grid-column: 2;

        align-items: flex-start;

        min-width: auto;

        text-align: left;
    }
}


/* ==========================================
   CELULAR
========================================== */

@media (max-width: 800px) {

    .carrinho {
        padding: 55px 0;
    }

    .carrinho-conteudo {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .resumo-carrinho {
        position: static;

        width: 100%;

        box-sizing: border-box;
    }

    .item-carrinho {
        grid-template-columns: 80px minmax(0, 1fr);

        gap: 14px;

        padding: 15px;
    }

    .item-carrinho-imagem {
        width: 80px;
        height: 80px;
    }

    .item-carrinho-categoria {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .item-carrinho-info h3 {
        font-size: 15px;
    }

    .item-carrinho .item-preco {
        font-size: 14px !important;
    }

    .item-carrinho-acoes {
    grid-column: 2;

    width: 100%;

    justify-content: flex-end;

        gap: 8px;

        margin-top: 12px;
    }

    .controle-quantidade {
        height: 38px;
    }

    .item-carrinho-acoes .botao-quantidade {
        width: 34px;
        height: 36px;

        min-width: 34px;
        min-height: 36px;

        font-size: 20px;
    }

    .item-carrinho-acoes .quantidade-item {
        width: 34px;
        min-width: 34px;

        height: 36px;
    }

    .item-carrinho-acoes .botao-remover {
        min-height: 38px;

        padding: 0 12px;
    }

    .item-carrinho-total {
        grid-column: 2;

        align-items: flex-start;

        margin-top: 2px;

        text-align: left;
    }

    .item-carrinho .item-carrinho-total {
        font-size: 16px !important;
    }

    .carrinho-vazio {
        padding: 50px 20px;
    }

    .carrinho-vazio h2 {
        font-size: 20px;
    }
}


/* ==========================================
   CELULARES PEQUENOS
========================================== */

@media (max-width: 480px) {

    .carrinho {
        padding: 40px 0;
    }

    .item-carrinho {
        padding: 12px;

        border-radius: 11px;

        gap: 12px;
    }

    .item-carrinho-imagem {
        width: 70px;
        height: 70px;
    }

    .item-carrinho-categoria {
        font-size: 8px;
        letter-spacing: 1.1px;
    }

    .item-carrinho-info h3 {
        font-size: 14px;
    }

    .item-carrinho .item-preco {
        font-size: 14px !important;
    }

    .item-carrinho-acoes {
        gap: 6px;
    }

    .controle-quantidade {
        height: 36px;
    }

    .item-carrinho-acoes .botao-quantidade {
        width: 32px;
        height: 34px;

        min-width: 32px;
        min-height: 34px;

        font-size: 19px;
    }

    .item-carrinho-acoes .quantidade-item {
        width: 32px;
        min-width: 32px;

        height: 34px;

        font-size: 15px;
    }

    .item-carrinho-acoes .botao-remover {
        min-height: 36px;

        padding: 0 10px;

        font-size: 11px;
    }

    .item-carrinho-total strong {
        font-size: 15px;
    }

    .resumo-carrinho {
        padding: 20px;
    }

    .resumo-carrinho h2 {
        font-size: 18px;
    }

    .resumo-total span {
        font-size: 16px;
    }

    .resumo-total strong {
        font-size: 20px;
    }

    .dados-cliente input,
    .dados-cliente select,
    .dados-cliente textarea {
        font-size: 14px;
    }

    .botao-calcular-entrega {
        padding: 12px 14px;
    }

    .resultado-entrega {
        padding: 12px;
    }

    .resultado-entrega-item {
        gap: 10px;
    }

    .resultado-entrega-item span {
        font-size: 11px;
    }

    .resultado-entrega-item strong {
        font-size: 12px;
    }

    .botao-finalizar {
        padding: 14px 16px;
    }
}
.botao-whatsapp-entrega {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 12px;
    padding: 10px 16px;

    background: #d4af37;
    color: #050b18;

    border: 1px solid #d4af37;
    border-radius: 8px;

    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.botao-whatsapp-entrega:hover {
    background: #e2c158;
    color: #050b18;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.botao-whatsapp-entrega:active {
    transform: translateY(0);
}