/* ==========================
    HOME / TOPO
========================== */
@media (max-width: 1024px) and (max-height: 600px) {
    
    .flo-center {
        height: 650px;
    }

}


@media (max-width: 992px) {

    .sdn-flor-topo-1, .sdn-flor-bottom-2, .sdn-flor-topo-3, .sdn-flor-bottom-4 {
        display: none;
    }

    .sdn-flor-center-5 {
        height: 600px;
    }

    .navbar .navbar-toggler {
        margin: 10px 0;
    }

    .navbar .btn-outline-primary {
        margin-top: 10px;
    }

}

@media (max-width: 650px) {

    .sdn-flor-center-5 {
        height: 700px;
    }

    .sdn-titulo-pagina {
        flex-direction: column;
    }

    /* Container central */
    .flo-center {
        position: absolute;     
        top: 55%;               
    }
    
}

@media (max-width: 500px) {

    .flo-center {
        height: 650px;
    }

}









/* =======================================
   SOBRE O CASAMENTO
======================================= */

@media (max-width: 992px) {
    #sobre-casamento {
        padding: 60px 15px;
    }

    #sobre-casamento p {
        font-size: 16px;
        text-indent: 20px;
    }
}

@media (max-width: 576px) {
    #sobre-casamento {
        padding: 40px 10px;
    }

    #sobre-casamento p {
        font-size: 14px;
        text-indent: 0; /* remove indentação para melhor leitura em mobile */
        line-height: 1.6;
    }
}








/* ================================
   CONTAGEM REGRESSIVA
================================ */

@media (max-width: 992px) { /* tablets */

    #countdown h2 {
        font-size: 36px;        /* maior que antes */
        letter-spacing: 4px;
        margin-bottom: 30px;
        line-height: 1.2;       /* ajuda na quebra */
        word-break: break-word;  /* permite quebrar palavras se necessário */
        white-space: normal;     /* evita que fique em uma linha só */
    }

    .countdown-content .item {
        width: 80px;
        height: 80px;
    }
    .countdown-content .number {
        font-size: 32px;
    }
    .countdown-content .txt {
        font-size: 16px;
    }
    .countdown-content {
        gap: 15px;
    }
}

@media (max-width: 576px) { /* celulares */


    #countdown h2 {
        font-size: 36px;        /* maior que antes */
        letter-spacing: 4px;
        margin-bottom: 30px;
        line-height: 1.2;       /* ajuda na quebra */
        word-break: break-word;  /* permite quebrar palavras se necessário */
        white-space: normal;     /* evita que fique em uma linha só */
    }

    .countdown-content .item {
        width: 65px;
        height: 65px;
    }
    .countdown-content .number {
        font-size: 24px;
    }
    .countdown-content .txt {
        font-size: 14px;
    }
    .countdown-content {
        gap: 10px;
    }
}










/* =======================================
   O CASAL
======================================= */

@media (max-width: 992px) {

    #casal {
        max-width: 100%;
        padding: 0 20px;
    }

    #casal h2 {
        font-size: 26px;
        letter-spacing: 2px;
        text-align: center;
    }

    /* Foto topo */
    #casal > .container > .img-top img {
        width: 120px;
        height: 120px;
        transform: rotate(-25deg);
    }

    /* Duas fotos */
    .casal-img {
        gap: 20px;
    }

    .casal-img img {
        width: 220px;
        height: 220px;
    }

    /* Texto */
    #casal p {
        font-size: 15px;
        line-height: 21px;
        text-indent: 20px;
    }

    /* Carousel */
    #carouselCasal {
        max-width: 100%;
    }

    .carousel-inner img {
        max-height: 380px;
    }

    .carousel-thumbs {
        bottom: 12px;
        gap: 8px;
        padding: 6px 10px;
    }

    .carousel-thumbs .thumb {
        width: 70px;
        height: 48px;
    }
}


/* =========================================
   MOBILE — até 576px
========================================= */
@media (max-width: 576px) {

    #casal {
        padding: 0 15px;
    }

    /* Foto topo */
    #casal > .container > .img-top img {
        width: 120px;
        height: 120px;
        transform: rotate(-20deg);
    }

    #casal h2 {
        font-size: 28px;
        letter-spacing: 1.5px;
        padding-bottom: 15px;
    }

    /* Fotos lado a lado viram coluna */
    .casal-img img {
        width: 170px;
        height: 170px;
    }

    /* Texto */
    #casal p {
        font-size: 14px;
        line-height: 20px;
        text-indent: 15px;
        text-align: justify; /* melhora leitura no mobile */
    }

    /* Carousel */
    .carousel-inner img {
        max-height: 260px;
    }

    .carousel-thumbs {
        bottom: 8px;
        gap: 6px;
        padding: 5px 8px;
        border-radius: 10px;
        backdrop-filter: blur(4px);
    }

    .carousel-thumbs .thumb {
        width: 55px;
        height: 38px;
        border-radius: 5px;
    }

    /* Remove zoom no toque */
    .carousel-thumbs .thumb:hover {
        transform: none;
    }
}


/* =========================================
   MOBILE — até 470px
========================================= */
@media (max-width: 470px)  {
    .casal-img img {
        width: 140px;
        height: 140px;
    }

    .carousel-thumbs .remover {
        display: none;
    }

    .carousel-thumbs .thumb {
        width: 48px;
        height: 32px;
    }
}


/* =========================================
   MOBILE PEQUENO — até 360px
========================================= */
@media (max-width: 360px) {

    #casal h2 {
        font-size: 20px;
    }

    .casal-img img {
        width: 140px;
        height: 140px;
    }

    .carousel-inner img {
        max-height: 220px;
    }

    .carousel-thumbs .thumb {
        width: 48px;
        height: 32px;
    }
}


















/* =======================================
   AVISO: SEM FESTA (SOMENTE CARTÓRIO)
======================================= */

@media (max-width: 992px) {

    #aviso > .container {
        max-width: 90%;
        padding: 80px 15px !important;
    }

    #aviso h2 {
        font-size: 24px;
        letter-spacing: 1.5px;
        text-align: center;
    }

    #aviso p {
        font-size: 16px;
        line-height: 22px;
        text-indent: 20px;
        text-align: justify;
    }
}

/* ===========================
   MOBILE — até 576px
=========================== */
@media (max-width: 576px) {

    #aviso > .container {
        padding: 60px 10px !important;
    }

    #aviso h2 {
        font-size: 20px;
        letter-spacing: 1px;
        margin-bottom: 15px;
    }

    #aviso p {
        font-size: 14px;
        line-height: 20px;
        text-indent: 15px;
    }
}

/* ===========================
   MOBILE PEQUENO — até 360px
=========================== */
@media (max-width: 360px) {

    #aviso > .container {
        padding: 50px 8px !important;
    }

    #aviso h2 {
        font-size: 18px;
    }

    #aviso p {
        font-size: 13px;
        line-height: 18px;
        text-indent: 10px;
    }
}




















/* ==============================
   RESPONSIVO - LISTA DE PRESENTES
=============================== */

/* Tablet */
@media (max-width: 992px) {

    /* 2 cards por linha */
    .card-wrapper {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    #presentes {
        padding: 60px 15px;
    }

    #presentes h2 {
        font-size: 30px;
        margin-bottom: 35px;
    }

    #presentes .card-img-top {
        width: 250px;
        height: 250px;
    }

    /* Carrinho topo */
    #total-carrinho {
        font-size: 1rem;
        padding: 8px 12px;
        margin-bottom: 20px;
    }
}


/* Mobile */
@media (max-width: 576px) {

    /* 1 card por linha */
    .card-wrapper {
        flex: 0 0 100%;
        max-width: 100%;
    }

    #presentes {
        padding: 50px 15px;
    }

    #presentes h2 {
        font-size: 24px;
        margin-bottom: 25px;
        letter-spacing: 1px;
    }

    /* Imagem totalmente fluida */
    #presentes .card-img-top {
        width: 200px;;
        height: 200px;
    }

    /* Ajustes de texto */
    #presentes .card-title {
        font-size: 15px;
    }

    #presentes .card-text {
        font-size: 20px;
    }

    /* Botão mais confortável para toque */
    #presentes .btn.add-carrinho {
        font-size: 14px;
        padding: 12px 0;
    }

    /* Carrinho topo */
    #total-carrinho {
        font-size: 1rem;
        padding: 8px 12px;
    }

    #ver-carrinho {
        font-size: 1rem;
    }

    #carrinho-count {
        font-size: 0.8rem;
        min-width: 1.2rem;
    }
}







/* =======================================
   cotas.php
======================================= */


@media (max-width: 768px) {

    .text-end {
        justify-content: center;   /* centraliza no mobile */
        flex-direction: column;    /* empilha */
        align-items: center;
    }

    #total-cotas,
    #ver-cotas {
        width: 100%;               /* ocupa largura total */
        max-width: 320px;          /* evita ficar gigante */
        height: auto;              /* remove altura fixa */
        line-height: normal;
        padding: 12px 16px;        /* padding confortável */
        font-size: 1rem;
        justify-content: center;
        margin: 10px 0;
    }

    #ver-cotas {
        position: relative;
        left: -10px;
    }

    #cotas-count {
        height: 28px;
        font-size: 0.8rem;
        padding: 2px 10px;
    }
}




@media (max-width: 995px)  {
    /* Imagem menor no mobile */
    #lista-produtos-cotas .card-img-top {
        width: 250px;
        height: 250px;
    }

}



@media (max-width: 768px) {

    /* Imagem menor no mobile */
    #lista-produtos-cotas .card-img-top {
        width: 200px;
        height: 200px;
    }

    /* Texto levemente menor */
    #lista-produtos-cotas .card-title {
        font-size: 15px;
    }

    #lista-produtos-cotas .card-text {
        font-size: 20px;
    }

    /* Botão mais confortável */
    #lista-produtos-cotas .btn-primary {
        font-size: 14px;
        padding: 12px 0;
    }
}
