/* Iterator_Sidecart — drawer lateral (paleta Nacional Ossos: navy + mint).
   Servido de skin/frontend/base/default para os temas porto e nacionalossos. */

/* O popup "produto adicionado" do Ajaxcart vira apenas gatilho do drawer. */
#after-loading-success-message { display: none !important; }

/* Com o sidecart, o popup de hover do minicart e redundante (e interceptava
   o clique no icone apos o replaceWith do Ajaxcart). Clique abre o drawer. */
.mini-cart .topCartContent { display: none !important; }

#no-sidecart-overlay {
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(7, 17, 49, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 99998;
}

#no-sidecart {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 400px;
    max-width: 92vw;
    background: #ffffff;
    z-index: 99999;
    -webkit-transform: translateX(105%);
    transform: translateX(105%);
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    box-shadow: -18px 0 40px rgba(12, 23, 67, 0.18);
    font-family: 'Maven Pro', 'Open Sans', Helvetica, Arial, sans-serif;
}

body.no-sidecart-aberto #no-sidecart { -webkit-transform: none; transform: none; }
body.no-sidecart-aberto #no-sidecart-overlay { opacity: 1; visibility: visible; }

#no-sidecart.is-carregando { opacity: 0.65; pointer-events: none; }
#no-sidecart { transition: -webkit-transform 0.3s ease, opacity 0.2s ease; transition: transform 0.3s ease, opacity 0.2s ease; }

.no-sidecart__conteudo {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    height: 100%;
}

.no-sidecart__cabecalho {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 10px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid rgba(12, 23, 67, 0.12);
}

.no-sidecart__cabecalho strong {
    font-size: 19px;
    color: #0c1743;
    font-weight: 800;
}

.no-sidecart__badge {
    background: #edf8f6;
    color: #265c54;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.no-sidecart__fechar {
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f9;
    color: #0c1743;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.no-sidecart__fechar:hover { background: #e2e6f2; }

.no-sidecart__vazio {
    -webkit-flex: 1;
    flex: 1;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: #69738c;
}
.no-sidecart__vazio strong { color: #0c1743; font-size: 17px; }
.no-sidecart__vazio p { margin: 0 0 8px; }

.no-sidecart__continuar {
    margin-top: 14px;
    border: 2px solid #0c1743;
    background: transparent;
    color: #0c1743;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
}
.no-sidecart__continuar:hover { background: #0c1743; color: #fff; }

.no-sidecart__itens {
    -webkit-flex: 1;
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 0 22px;
    list-style: none;
}

.no-sidecart__item {
    display: -webkit-flex;
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(12, 23, 67, 0.10);
    margin: 0;
}

.no-sidecart__img { -webkit-flex-shrink: 0; flex-shrink: 0; }
.no-sidecart__img img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(12, 23, 67, 0.10);
    display: block;
}

.no-sidecart__info {
    -webkit-flex: 1;
    flex: 1;
    min-width: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: 4px;
}

.no-sidecart__nome {
    color: #0c1743 !important;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
}
.no-sidecart__nome:hover { text-decoration: underline; }

.no-sidecart__opcao {
    font-size: 11.5px;
    color: #69738c;
}

.no-sidecart__preco {
    font-size: 14px;
    font-weight: 800;
    color: #0c1743;
}

.no-sidecart__acoes {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin-top: 6px;
}

.no-sidecart__qty {
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    border: 1px solid rgba(12, 23, 67, 0.18);
    border-radius: 999px;
    overflow: hidden;
}

.no-sidecart__qty button {
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: #0c1743;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.no-sidecart__qty button:hover { background: #edf8f6; }

.no-sidecart__qty-input {
    width: 36px !important;
    height: 30px !important;
    border: 0 !important;
    background: transparent !important;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #0c1743;
    padding: 0 !important;
    box-shadow: none !important;
}

.no-sidecart__remover {
    border: 0;
    background: transparent;
    color: #a33;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    line-height: 0;
}
.no-sidecart__remover:hover { background: #fbeaea; }

.no-sidecart__rodape {
    border-top: 1px solid rgba(12, 23, 67, 0.12);
    padding: 16px 22px 20px;
    background: #fbfcff;
}

.no-sidecart__subtotal {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
    margin-bottom: 12px;
    color: #69738c;
    font-size: 14px;
}
.no-sidecart__subtotal strong { color: #0c1743; font-size: 18px; font-weight: 800; }

.no-sidecart__cta {
    display: block;
    text-align: center;
    background: #9afeea;
    color: #0c1743 !important;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 13px 18px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: background 0.2s ease;
}
.no-sidecart__cta:hover { background: #7df3db; }

.no-sidecart__ver-carrinho {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: #0c1743 !important;
    font-weight: 700;
    font-size: 13px;
    text-decoration: underline;
}

@media (max-width: 480px) {
    #no-sidecart { width: 100vw; max-width: 100vw; }
}
