﻿/* ----------------------------- */
/* ESTILO GLOBAL                */
/* ----------------------------- */
body {
    background: #f5f7fb;
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    padding-top: 10px;
}

a {
    text-decoration: none;
    color: inherit;
}

h1, h5 {
    font-weight: 600;
}

/* ----------------------------- */
/* NAVBAR                       */
/* ----------------------------- */
.navbar {
    background: linear-gradient(90deg, #0062ff, #0046c0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 0.8rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar .btn-outline-light {
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .navbar .btn-outline-light:hover {
        background: rgba(255,255,255,0.2);
    }

/* ----------------------------- */
/* PRODUTOS                     */
/* ----------------------------- */
.titulo {
    font-weight: 700;
    color: #003b99;
    margin-bottom: 2rem;
}

.produto-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

    .produto-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    }

.img-container {
    height: 220px;
    background: #f0f3f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.35s;
    }

.produto-card:hover .img-container img {
    transform: scale(1.08);
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
}

.preco {
    color: #28a745;
    font-weight: 700;
    font-size: 1.1rem;
}

.btn-adicionar {
    background: linear-gradient(90deg, #007bff, #0056cc);
    border: none;
    border-radius: 10px;
    font-weight: 500;
    padding: 8px 14px;
    color: #fff;
    transition: all 0.3s ease;
}

    .btn-adicionar:hover {
        background: linear-gradient(90deg, #0056cc, #0042a3);
        transform: scale(1.05);
    }

/* ----------------------------- */
/* CARRINHO FLUTUANTE            */
/* ----------------------------- */
.carrinho-flutuante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    /*background: linear-gradient(135deg, #0056cc, #007bff);*/
    background: transparent;
    color: #fff;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
}

    .carrinho-flutuante:hover {
        transform: scale(1.1);
        background: linear-gradient(135deg, #0046b0, #0056ff);
    }

    .carrinho-flutuante span {
        position: absolute;
        top: 8px;
        right: 10px;
        background: #2b80ec;
        color: #fff;
        border-radius: 50%;
        font-size: 0.8rem;
        padding: 3px 7px;
        font-weight: 600;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }

/* ----------------------------- */
/* PAINEL DO CARRINHO            */
/* ----------------------------- */
.painel-carrinho {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -3px 0 15px rgba(0,0,0,0.2);
    transition: right 0.4s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

    .painel-carrinho.aberto {
        right: 0;
    }

.painel-carrinho-header {
    padding: 20px;
    /*background: linear-gradient(90deg, #0046b0, #0062ff);*/
    background: var(--cor-empresa);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
}

    .painel-carrinho-header button {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.6rem;
        cursor: pointer;
        transition: 0.2s;
    }

        .painel-carrinho-header button:hover {
            transform: scale(1.2);
        }

.painel-carrinho-conteudo {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.item-carrinho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fb;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

    .item-carrinho:hover {
        background: #eef1f5;
    }

.item-info {
    flex: 1;
    margin-left: 10px;
}

    .item-info h6 {
        margin: 0;
        font-weight: 600;
        color: #333;
    }

    .item-info small {
        color: #888;
    }

.btn-remover {
    border: none;
    background: none;
    color: #dc3545;
    font-size: 1.3rem;
    cursor: pointer;
    transition: transform 0.2s;
}

    .btn-remover:hover {
        transform: scale(1.2);
    }

.painel-carrinho-footer {
    border-top: 1px solid #ddd;
    padding: 20px;
    background: #f9fafc;
    border-bottom-left-radius: 12px;
}

.btn-finalizar {
    background: linear-gradient(90deg, #28a745, #218838);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-finalizar:hover {
        background: var(--cor-empresa);
    }

/* ----------------------------- */
/* FOOTER                        */
/* ----------------------------- */
footer {
    background: #f1f3f5;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    padding: 15px 0;
    margin-top: 50px;
    border-top: 1px solid #e0e0e0;
}

#idtotttal {
    padding: 10px;
}

/* ----------------------------- */
/* RESPONSIVIDADE                */
/* ----------------------------- */
@media (max-width: 768px) {
    .painel-carrinho {
        width: 100%;
    }

    .carrinho-flutuante {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }

    .produto-card {
        margin-bottom: 20px;
    }

    .titulo {
        font-size: 1.6rem;
    }
}

.painel-carrinho {
    position: fixed;
    top: 0;
    right: -420px;
    /*width: 380px;*/
    width: 410px;
    height: 100%;
    background: #fff;
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.25);
    transition: right 0.4s ease;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 14px;
}

    .painel-carrinho.aberto {
        right: 0;
    }

/* Cabeçalho fixo dentro do painel */
.painel-carrinho-header {
    padding: 16px 20px;
    background: var(--cor-empresa);
    /*background: linear-gradient(90deg, #0046b0, #0062ff);*/
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 14px;
}

    .painel-carrinho-header button {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.6rem;
        cursor: pointer;
        line-height: 1;
    }

/* Conteúdo principal do carrinho */
.painel-carrinho-conteudo {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Rodapé do carrinho (fixo e bonito) */
.painel-carrinho-footer {
    border-top: 1px solid #ddd;
    padding: 18px 20px;
    background: #f9fafc;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    bottom: 0;
}

    /* Texto de total */
    .painel-carrinho-footer h5 {
        font-weight: 600;
        font-size: 1rem;
        color: #333;
        margin: 0;
        display: flex;
        justify-content: space-between;
    }

/* Botão de finalizar */
.btn-finalizar {
    background: linear-gradient(90deg, #28a745, #218838);
    color: #fff;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .btn-finalizar:hover {
        background: var(--cor-empresa);
        transform: scale(1.03);
    }

/* --- Corrige sobreposição do footer do site --- */
footer {
    position: relative;
    z-index: 1;
}

@media (max-width: 395px) {
    .painel-carrinho 
    {
        position: fixed;
        top: 0;
        right: -420px;
        width: 400px;
        height: 100%;
        background: #fff;
        box-shadow: -3px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }
    #idtotttal {
        padding: 10px;
    }
}

@media (max-width: 383px) {
    .painel-carrinho {
        position: fixed;
        top: 0;
        right: -420px;
        width: 380px;
        height: 100%;
        background: #fff;
        box-shadow: -3px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }
}

@media (max-width: 365px) {
    .painel-carrinho {
        position: fixed;
        top: 0;
        right: -420px;
        width: 365px;
        height: 100%;
        background: #fff;
        box-shadow: -3px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }
    .item-vllr {
        padding: 6px;
    }
}

@media (max-width: 350px) {
    .painel-carrinho {
        position: fixed;
        top: 0;
        right: -420px;
        width: 350px;
        height: 100%;
        background: #fff;
        box-shadow: -3px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }
}

@media (max-width: 333px) {
    .painel-carrinho {
        position: fixed;
        top: 0;
        right: -420px;
        width: 333px;
        height: 100%;
        background: #fff;
        box-shadow: -3px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }
}

@media (max-width: 318px) {
    .painel-carrinho {
        position: fixed;
        top: 0;
        right: -420px;
        width: 326px;
        height: 100%;
        background: #fff;
        box-shadow: -3px 0 15px rgba(0,0,0,0.2);
        transition: right 0.4s ease;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
    }
}

    /*a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

.navbar {
    background-color: #0052cc !important
}

.minha-navbar {
    background-color: #0052cc !important;
}


.bg-dark {
    background-color: #0052cc !important
}
a {
    color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px; 
}

body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

.titulo {
    font-weight: 600;
    color: #222;
}

.produto-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .produto-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    }

.img-container {
    background-color: #e9ecef;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .img-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.sem-imagem {
    color: #6c757d;
    font-size: 0.9rem;
}

.card-body {
    background-color: #fff;
}

.preco {
    color: #1a7f3b;
    font-weight: bold;
}

.btn-primary {
    background-color: #0066ff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
}

    .btn-primary:hover {
        background-color: #0052cc;
    }

@media (max-width: 576px) {
    .img-container {
        height: 150px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-text {
        font-size: 0.85rem;
    }
} 
*/