body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Poppins", sans-serif;
    background-color: #F5F6FB;
    margin: 0;
    padding: 0;
}

main {
    flex: 1 0 auto;
    padding-top: 70px;
}

.navbar-custom {
    transition: top 0.3s;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 70px;
}

.navbar .fa-cart-shopping {
    font-size: 1.3rem;
}

.cart-badge {
    background: #dc3545;
    color: #fff;
    font-size: 0.75rem;
    position: absolute;
    top: 8px;
    right: 10px;
    border-radius: 10px;
    padding: 2px 7px;
}

footer {
    background: #f8f9fa;
    text-align: left;
    padding: 20px 0;
    margin-top: auto;
}

/* Responsivo */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
    }

    .cart-user-icons {
        order: 3 !important;
        flex-direction: row !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.card-custom {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-bottom {
    margin-top: auto;
}

.row-equal>[class*='col-'] {
    display: flex;
}

.row-equal .card {
    flex: 1 1 auto;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #198754;
    margin-top: 0.5rem;
}

.banner-destinos {
    height: 300px;
    position: relative;
    overflow: hidden;
}

.banner-destinos::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    /* Fica atrás da imagem e conteúdo */
}

.banner-content {
    z-index: 1;
    /* Garante que o select fique acima do overlay */
}



.text-primary {
    color: #235309 !important;
}

.text-green {
    color: #46CB25 !important;
}

.btn-primary {
    background-color: #46CB25 !important;
    border-color: #46CB25;
}

.btn-primary:hover {
    background-color: #349e1a !important;
    /* tom mais escuro */
    border-color: #46CB25;
}

.bg-primary {
    background-color: #45B20C !important;
}

.btn-green {
    background-color: #337a0c !important;
    /* tom mais claro */
    border-color: #337a0c;
    color: #F5F6FB;
}

.btn-green:hover {
    background-color: #2b660b !important;
    /* tom mais claro*/
    border-color: #2d6b0b;
    color: #F5F6FB;
}

.btn-outline-primary {
    color: #46CB25;
    border: 1px solid #46CB25;
    background-color: transparent;
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #46CB25 !important;
    color: #fff !important;
    border-color: #46CB25;
}


.bg-primary-subtle {
    background-color: #e6f2f0 !important;
    /* tom bem claro de verde escuro */
    color: #46CB25;
    /* mantém contraste legível */
}



.titulo-destino {
    color: #2d3e50;
    /* tom escuro como na imagem */
    font-weight: 600;
    margin: 2rem auto;
}

.titulo-destino::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #46CB25;
    margin: 15px auto 0 auto;
    border-radius: 2px;
}


.titulo-tipos {
    color: #2d3e50;
    /* tom escuro como na imagem */
    font-weight: 600;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.titulo-tipos::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #46CB25;
    margin-top: 6px;
    border-radius: 2px;
}





.card-afiliado {
    transition: all 0.3s ease;
    background-color: #fff;
}

.card-afiliado:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    transform: translateY(-6px);
    border-color: #198754;
}

.card-afiliado:hover .transition-icon {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

.transition-icon {
    transition: transform 0.3s ease;
}


.diamond-wrapper {
    width: 320px;
    height: 320px;
    transform: rotate(45deg);
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.diamond-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotate(-45deg) scale(1.42);
    display: block;
}

@media (max-width: 768px) {
    .diamond-wrapper {
        width: 260px;
        height: 260px;
    }

    .diamond-img {
        transform: rotate(-45deg) scale(1.5);
    }
}


.diamond-decor {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mini-diamond {
    position: absolute;
    background-color: #46CB25;
    transform: rotate(45deg);
    border-radius: 4px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
    animation: float-small 3.5s ease-in-out infinite;
}

/* d1 - pequeno losango no topo esquerdo (mais colado) */
.d1 {
    width: 10px;
    height: 10px;
    top: -12px;
    left: 30px;
}

/* d2 - médio losango no topo direito (mais afastado) */
.d2 {
    width: 18px;
    height: 18px;
    top: -25px;
    right: 50px;
}

/* d3 - médio losango no canto inferior esquerdo (próximo) */
.d3 {
    width: 18px;
    height: 18px;
    bottom: -15px;
    left: 35px;
}

@keyframes float {
    0% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(-10px);
    }

    100% {
        transform: rotate(45deg) translateY(0);
    }
}

@keyframes float-small {
    0% {
        transform: rotate(45deg) translateY(0);
    }

    50% {
        transform: rotate(45deg) translateY(-6px);
    }

    100% {
        transform: rotate(45deg) translateY(0);
    }
}



.valor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.valor-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.mmc-card-animate {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mmc-card-animate:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}



.btn-compartilhar {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #46CB25, #1f660d);
    /* Azul degradê elegante */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease-in-out;
}

.btn-compartilhar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #1f660d, #46CB25);
    /* anima o gradiente invertendo */
}

.btn-compartilhar i {
    font-size: 1.1rem;
}








/* Carrinho Mobile */
.dropdown-carrinho-mobile {
    position: fixed !important;
    top: 60px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92vw !important;
    max-width: 420px;
    background: #fff;
    z-index: 1055;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Para evitar sobreposição de selects e z-index baixo */
.dropdown-carrinho-mobile {
    z-index: 1055 !important;
}

/* Backdrop para escurecer fundo quando carrinho mobile estiver aberto */
body.carrinho-mobile-aberto::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1050;
}








/* menu mobile */

@media (max-width: 991.98px) {

    /* Corrige layout da linha principal no mobile */
    #mainNavbar .container {
        flex-wrap: wrap;
    }

    #mainNavbar .navbar-brand {
        order: 1;
    }

    #mainNavbar .navbar-toggler {
        order: 2;
        margin-left: auto;
    }

    #mainNavbar .navbar-collapse {
        order: 3;
        width: 100%;
        background-color: #fff;
        padding: 1rem 0;
    }

    #mainNavbar .navbar-collapse .nav-link {
        text-align: center;
        padding: 0.75rem;
    }

    #mainNavbar .d-flex.align-items-center.gap-3 {
        order: 2;
        margin-left: auto;
        flex-wrap: nowrap;
    }

    /* Garante que os ícones fiquem no topo */
    #mainNavbar .d-flex.align-items-center.gap-3>* {
        white-space: nowrap;
    }

    /* Dropdowns visuais no colapso */
    #mainNavbar .dropdown-menu {
        position: static !important;
        background: transparent;
        border: none;
        box-shadow: none;
        text-align: center;
    }

    #mainNavbar .dropdown-menu .dropdown-item {
        padding: 0.5rem 1rem;
    }
}


/* Limita o menu colapsado a 90% da largura no mobile */
@media (max-width: 991.98px) {
    #mainNavbar .navbar-collapse {
        max-width: 90%;
        margin: 0 auto;
        border-radius: 0.75rem;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }
}


/* descrição colapsada */

.descricao-colapsada {
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    max-height: 6.8em;
    /* 4 linhas */
    position: relative;
    opacity: 1;
}

.descricao-colapsada::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5em;
    background: linear-gradient(to bottom, transparent, white);
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.descricao-colapsada.expanded {
    max-height: 1500px;
    /* grande o suficiente para todo o texto */
    opacity: 1;
}

.descricao-colapsada.expanded::after {
    opacity: 0;
}







.btn-toggle-descricao {
    cursor: pointer;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.btn-toggle-descricao:hover {
    color: var(--bs-primary);
}

.btn-toggle-descricao .fa-chevron-down,
.btn-toggle-descricao .fa-chevron-up {
    transition: transform 0.3s ease;
}

.btn-toggle-descricao.expanded .fa-chevron-down {
    transform: rotate(180deg);
}



/* redes sociais */

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f0f0f0; /* acinzentado */
    color: #555; /* cinza escuro para o ícone */
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    font-size: 18px;
}

.social-icon:hover {
    background-color: #46CB25; /* verde */
    color: #fff;
}


/* Dropdowns no colapso do menu principal (exceto o do usuário) */
@media (max-width: 991.98px) {
  #mainNavbar .navbar-collapse .dropdown-menu:not(.dropdown-menu-user) {
    position: static !important;
    background: transparent;
    border: none;
    box-shadow: none;
    text-align: center;
  }

  #mainNavbar .navbar-collapse .dropdown-menu:not(.dropdown-menu-user) .dropdown-item {
    padding: 0.5rem 1rem;
  }
}


.dropdown-menu-user-container {
  z-index: 1060;
  background: transparent;
}

.dropdown-menu-user {
  background-color: #fff !important; /* Garantir fundo branco */
  border: 1px solid #dee2e6;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 220px;
  border-radius: 1rem;
  z-index: 9999;
}

