/* ==========================
    HOME / TOPO
========================== */

#sobre-casamento,
#countdown,
#home {
    scroll-margin-top: 100px; /* altura da navbar + um espaçamento */
}




#home {
    min-height: 100vh;
    background-image: url('../img/background-topo.png');
    background-repeat: repeat;
    background-size: 100px 100px;
    background-position: top left;
    color: #fff;
    overflow: hidden;
    position: relative;
}



/* Menu sobre a imagem */
#home .navbar {
    top: 0;
    z-index: 10;
    background: #a0b089;
    padding: 20px 0;
}

.navbar a, .btn-outline-primary {
    color: #fff;
    font-family: "Lato", sans-serif;
    font-size: 15px;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.2s;
}

.navbar a:hover {
    background-color: #fff;
    color: #a0b089 !important;
}

.navbar .btn-outline-primary {
    border: 1px solid #fff;
}

.navbar .btn-outline-primary:hover {
    background-color: #c9d4b9;
    color: #fff !important;
    border: 1px solid #c9d4b9;
}




/* Base comum */
#home [class^="sdn-flor"] {
    position: absolute;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

/* 1️⃣ Topo esquerdo */
.sdn-flor-topo-1 {
    position: absolute;
    top: 0;
    left: -250px;
    width: 600px;
    height: 600px;

    background-color: #c9d4b9; /* COR DA FLOR */

    -webkit-mask-image: url('../img/flor-topo.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;

    mask-image: url('../img/flor-topo.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}


/* 2️⃣ Inferior esquerdo */
.sdn-flor-bottom-2 {
    bottom: 0;
    left: -50px;
    width: 300px;
    height: 300px;

    background-color: #c9d4b9; /* COR DA FLOR */

    -webkit-mask-image: url('../img/flor-bottom.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;

    mask-image: url('../img/flor-bottom.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    
}

/* 3️⃣ Topo direito */
.sdn-flor-topo-3 {
    top: 0;
    right: -250px;
    width: 600px;
    height: 600px;

    background-color: #c9d4b9; /* COR DA FLOR */
    -webkit-mask-image: url('../img/flor-topo.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;

    background-repeat: no-repeat;
    background-size: contain;

    transform: scaleX(-1);

    mask-image: url('../img/flor-topo.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}


/* 4️⃣ Inferior direito */
.sdn-flor-bottom-4 {
    bottom: 0;
    right: -50px;
    width: 300px;
    height: 300px;

    background-color: #c9d4b9; /* COR DA FLOR */
    -webkit-mask-image: url('../img/flor-bottom.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;

    background-repeat: no-repeat;
    background-size: contain;

    transform: scaleX(-1);

    mask-image: url('../img/flor-bottom.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
}

/* ==========================
   5️⃣ Flor central grande
========================== */
.sdn-flor-center-5 {
    position: absolute;     
    top: 50%;               
    left: 50%;              
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    
    background-color: #c9d4b9;
    -webkit-mask-image: url('../img/flor-center.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;

    mask-image: url('../img/flor-center.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;

    opacity: 0.5;
}


/* Flor central grande (opcional se quiser manter aqui dentro) */
.sdn-flor-center-5 {
    position: absolute;
    top: 55%;
    left: 50%;
    width: 700px;
    height: 800px;
    transform: translate(-50%, -50%);
    background-color: #c9d4b9;
    -webkit-mask-image: url('../img/flor-center.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    mask-image: url('../img/flor-center.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    opacity: 0.5;
    z-index: 1;
}

/* Container central */
.flo-center {
    position: absolute;     
    top: 50%;               
    left: 50%;              
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    pointer-events: none;
}

/* Flor pequena cruzando esquerda */
.sdn-flor-date {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-40%, 30%) rotate(-60deg); /* deslocada para a esquerda e girada */
    background-color: #c8a46c;
    -webkit-mask-image: url('../img/flor-bottom.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    mask-image: url('../img/flor-bottom.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    z-index: 2;
}

/* Flor pequena cruzando direita */
.sdn-flor-date-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-90%, 30%) rotate(200deg); /* deslocada para a direita e girada */
    background-color: #c8a46c;
    -webkit-mask-image: url('../img/flor-bottom.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    mask-image: url('../img/flor-bottom.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    z-index: 2;
}

/* Data centralizada dentro do container */
.sdn-wed-date__wrapper {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    text-align: center;
    font-family: "Lato", sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
}

.sdn-wed-date__wrapper .sdn-wed-date {
    font-size: 24px;
    font-family: "Lato", sans-serif;
    font-style: normal;
    font-weight: 700;
    line-height: 42px;
    letter-spacing: 3.6px;
    text-transform: uppercase;
    color: #7d95aa;
}


/* Centralização do conteúdo */
.wrapper-content.forest-topo {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Caixa central */
.content.bg-frame {
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    z-index: 2;
}

/* Nome do casal */
.sdn-titulo-pagina {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    font-weight: 400;
    color: #a0b089 !important;
    line-height: normal;
    font-kerning: none;
    text-transform: uppercase;
}

.sdn-titulo-pagina .and {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #c9d4b9;
    color: #fff;
    border-radius: 100%;
    font-family: "Lato", sans-serif;
    font-size: 50px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-kerning: none;
    opacity: 0.6;
    margin: 0 20px;
}

/* Data */
.sdn-wed-date__wrapper {
    font-family: "Lato", sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Efeito papel */
.efeito-papel {
    position: absolute;
    left: 0;
    bottom: -60px;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}









/* =======================================
   SOBRE O CASAMENTO
======================================= */
#sobre-casamento {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    background-color: #fff; /* cor clara e neutra */
    color: #4a4a4a; /* texto escuro para contraste */
    text-align: justify;
    padding: 80px 20px; /* espaçamento vertical */
}

#sobre-casamento p {
    font-family: "Lato", sans-serif;
    text-indent: 30px;
    font-size: 18px;
    line-height: 1.8;
}








/* ================================
   CONTAGEM REGRESSIVA
================================= */
#countdown {
    background: #a0b089 !important;
    color: #fff;
    padding: 100px 20px !important;
}

#countdown h2 {
    font-family: "Lato", sans-serif;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 4px; /* ajuste o valor conforme desejar */
}


/* Flex container para os itens */
.countdown-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Cada quadrado */
.countdown-content .item {
    background-color: #fff;
    color: #a0b089;
    width: 90px;
    height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: "Lato", sans-serif;
    perspective: 600px; /* necessário para flip */
}

.countdown-content .item:hover {
    transform: scale(1.05);
}

/* Número grande com flip */
.countdown-content .number {
    font-size: 40px;
    font-weight: 700;
    display: inline-block;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
    backface-visibility: hidden; /* evita "fantasmas" durante o flip */
}


/* Texto menor */
.countdown-content .txt {
    font-size: 18px;
    font-weight: 500;
}

/* Animação de flip */
@keyframes flipAnim {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(-90deg); }
    100% { transform: rotateX(0deg); }
}

.countdown-content .item .number.flip {
    animation: flipAnim 0.6s ease-in-out;
}








/* ================================
   O CASAL
================================= */

#casal {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
}

#casal > .container {
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


#casal > .container > .img-top img {
    width: 150px;
    height: 150px;

    background-image: url('../img/sua-foto.jpg'); /* FOTO AQUI */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    background-color: #c9d4b9; /* fallback */

    -webkit-mask-image: url('../img/flor-bottom.svg');
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;

    mask-image: url('../img/flor-bottom.svg');
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;

    transform: rotate(-30deg);
}

#casal h2 {
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 2.56px;
    text-transform: uppercase;
    color: #c9d4b9;
    padding-bottom: 20px;
}

/* Duas fotos lado a lado */
.casal-img {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
}

.casal-img img {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
}

/* Texto */
#casal p {
    width: 100%;

    font-family: "Lato", sans-serif;
   font-size: 18px;
    text-indent: 30px;
    text-align: justify;
    font-style: normal;
    font-weight: 500;
    line-height: 1.8;

}


/* Carousel casal */
#carouselCasal {
    position: relative;
    width: 100%;
}

/* Imagem principal */
.carousel-inner img {
    max-height: 700px;
    object-fit: cover;
}

/* Container das thumbs */
.carousel-thumbs {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    padding: 8px 12px;

    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    border-radius: 12px;
}

/* Thumb */
.carousel-thumbs .thumb {
    width: 90px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

/* Hover */
.carousel-thumbs .thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Ativa */
.carousel-thumbs .thumb.active {
    opacity: 1;
    border-color: #c9d4b9;
}


/* Botões do carousel */
#carouselCasal .carousel-control-prev,
#carouselCasal .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(201, 212, 185, 0.85);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: all 0.3s ease;
}

/* Espaçamento lateral */
#carouselCasal .carousel-control-prev {
    left: 20px;
}

#carouselCasal .carousel-control-next {
    right: 20px;
}

/* Ícones */
#carouselCasal .carousel-control-prev-icon,
#carouselCasal .carousel-control-next-icon {
    filter: invert(1);
    width: 20px;
    height: 20px;
}

/* Hover */
#carouselCasal .carousel-control-prev:hover,
#carouselCasal .carousel-control-next:hover {
    background-color: #c9d4b9;
    transform: translateY(-50%) scale(1.1);
}













/* ================================
   AVISO: SEM FESTA (SOMENTE CARTÓRIO)
================================= */
#aviso {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
}

#aviso > .container {
    max-width: 1280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #a0b089;
    padding: 100px 15px !important;
    text-align: center; /* centraliza título e parágrafo */
}

/* Título */
#aviso h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 60px; /* maior espaçamento */
    color: #ffffff;
}

/* Texto */
#aviso p {
    width: 100%;
    font-size: 18px;
    font-weight: 500;
    line-height: 30px; /* aumenta legibilidade */
    text-indent: 30px;
    margin-top: 0; /* remove espaçamento extra caso haja */
    color: #ffffff;
}













/* ==============================
   LISTA DE PRESENTES
=============================== */
#presentes {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
}

#presentes h2 {
    font-size: 36px;
    font-weight: 700;
    color: #a0b089;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Lato", sans-serif;
}

#form-filtro-presentes {
    width: 100%;
    margin: 0 auto;
}

/* NÃO sobrescreva o comportamento padrão da row */
.filtros-presentes {
    width: 100%;
}

/* Ajuste fino opcional */
.filtros-presentes .form-select {
    width: 100%;
}

#lista-produtos-presentes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* CENTRALIZA */
    gap: 10px;
}

/* Card wrapper controla largura */
.card-wrapper {
    flex: 0 0 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
}


/* Cards */
#presentes .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Hover */
#presentes .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* Imagem do presente */
#presentes .card-img-top {
    width: 320px;
    height: 300px;
    object-fit: cover; /* cobre todo o espaço mantendo proporção */
    object-position: center; /* centraliza a imagem */
    border-bottom: 1px solid #e5e5e5;
}

/* Corpo do card */
#presentes .card-body {
    padding: 22px 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Nome do presente */
#presentes .card-title {
    font-size: 16px;            /* menor */
    font-weight: 600;
    color: #4a4a4a;
    line-height: 1.3;
    margin-bottom: 4px;
    font-family: "Lato", sans-serif;
    cursor: text;
}

/* Valor do presente */
#presentes .card-text {
    font-size: 22px;            /* maior */
    font-weight: 700;
    color: #a0b089;
    margin-bottom: 12px;
    font-family: "Lato", sans-serif;
    cursor: text;
}

/* Botão Presentear */
#presentes .btn.add-carrinho {
    width: 100%;                /* botão largo */
    background-color: #a0b089;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 0;
    border-radius: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Hover botão */
#presentes .btn.add-carrinho:hover {
    background-color: #c9d4b9;
    transform: translateY(-2px);
}


#form-filtro-presentes .btn-primary {
    background-color: #a0b089;
    border: 1px solid #a0b089;
    color: #fff;
}

#form-filtro-presentes .btn-primary:hover {
    background-color: #c9d4b9;
    transform: translateY(-2px);
}

#ver-carrinho {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

#carrinho-count {
    background-color: #dc3545;  /* vermelho vibrante */
    color: #fff;                /* texto branco */
    font-weight: bold;           /* negrito */
    font-size: 0.9rem;           /* tamanho adequado */
    padding: 0.2rem 0.5rem;      /* espaçamento interno */
    border-radius: 50%;          /* deixa o span circular */
    display: inline-block;       /* mantém em linha */
    min-width: 1.4rem;           /* largura mínima para números */
    text-align: center;          /* centraliza o número */
    vertical-align: middle;      /* alinha com outros elementos */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* leve sombra */
    transition: transform 0.2s;  /* efeito ao atualizar */
}

/* Pequeno efeito ao atualizar o número */
#carrinho-count.atualizado {
    transform: scale(1.3);
}


#total-carrinho {
    background-color: #198754;  /* leve fundo cinza claro */
    color: #fff;             /* cor do texto padrão */
    font-weight: bold;          /* deixa o texto em negrito */
    font-size: 1.1rem;          /* tamanho um pouco maior */
    padding: 10px 0.8rem;     /* espaçamento interno */
    border-radius: 0.5rem;      /* cantos arredondados */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* leve sombra */
    display: inline-block;       /* mantém como bloco inline */
}






/* ==============================
   Paginação personalizada
============================== */
#paginacao-presentes {
    display: flex;
    gap: 5px; /* Espaço entre os itens */
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center; /* centraliza horizontalmente */
}

#paginacao-presentes .page-item {
    display: inline-block;
}

#paginacao-presentes .page-link {
    display: block;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    color: #a0b089; /* cor principal */
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    font-weight: 500;
}

#paginacao-presentes .page-link:hover {
    background-color: #a0b089; /* cor principal no hover */
    color: #fff;
}

#paginacao-presentes .page-item.active .page-link {
    background-color: #a0b089; /* cor principal para página ativa */
    color: #fff;
    border-color: #a0b089;
    font-weight: bold;
}

#paginacao-presentes .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Ajustes para telas pequenas */
@media (max-width: 576px) {
    #paginacao-presentes .page-link {
        padding: 6px 8px;
        font-size: 14px;
    }
}
















/* Responsivo */
@media (max-width: 992px) {
    #presentes .col-md-4 {
        flex: 0 0 calc(50% - 20px); /* 2 cards por linha */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    #presentes .col-md-4 {
        flex: 0 0 100%; /* 1 card por linha */
        max-width: 100%;
    }
}