/* Padrão para todos os projetos*/
:root {
    --bg-body: #f4f4f4;
    --text-color: #333;
    --nav-bg: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-img {
    height: 220px; 
    width: auto;
}

.hero-text {
    text-align: center;
    color: white;
    padding-top: 20px;
}

.hero-text h1 {
    font-size: 2.5rem;
    letter-spacing: 5px;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Barra de navegação */
a {
    color: rgb(190, 175, 151);
    text-decoration: none;
}

a:hover {
    opacity: 0.7;
}

.logo {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(10px);
    height: 10vh;
    transition: 0.3s;
    z-index: 1001;
}

main {
    background: linear-gradient(
        to bottom, 
        rgb(221, 203, 174) 0%, 
        rgb(128, 117, 104) 100%
    );
    height: 30vh;
    margin-top: 8vh;
    width: 100%;
    padding: 10px;
}
.search-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 10px;
}

#searchInput {
    width: 350px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-search {
    padding: 10px 25px;
    border-radius: 25px;
    border: none;
    background-color: #23232e;
    color: white;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.btn-search:hover {
    background-color: #444;
}

img {
    height: 250px;
    width: 100%;
}

.nav-list {
    list-style: none;
    display: flex;
    z-index: 1000 !important;
}

.nav-list li {
    letter-spacing: 3px;
    margin-left: 32px;
}

p {
    padding: 10px;
    text-align: center;
}

span {
    font-size: 13px;
    color: #121212;
    font-weight: bold;
}

.main {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    margin-top: 8vh;
}

.card {
    margin: 20px;
    width: 260px;
    height: 460px;
    perspective: 1000px;
    background-color: transparent;
    border: none;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card-inner.flipped {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px -50px 36px -28px inset;
    box-sizing: border-box;
}

.card-front {
    background-color:  rgb(190, 175, 151);
    color: #fff;
    overflow: hidden;
}

.card-front img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.card-back {
    background-color:  rgb(190, 175, 151);
    color: white;
    transform: rotateY(180deg);
    padding: 20px;
    text-align: center;
    height: 100% !important;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.btn:hover {
    background-color: #949191;
    transition: 0.5s background;
}


footer {
   
    background: linear-gradient(
        to bottom, 
        rgb(163, 150, 129) 0%, 
        rgb(37, 34, 30) 100%
    );
    color: white; 
    padding: 40px 20px 10px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3.logo {
    color:  rgb(190, 175, 151);
    margin-bottom: 15px;
    font-size: 20px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color:  rgb(190, 175, 151); 
}

.footer-section p {
    font-size: 14px;
    color:  rgb(190, 175, 151);
    text-align: left; 
    padding: 5px 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    
}

.footer-section ul li a {
    color:  rgb(190, 175, 151);
    font-size: 14px;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: rgb(190, 175, 151);
}

@media (max-width: 480px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-section p {
        text-align: center;
    }
}

/* Interação ao menu */
.mobile-menu div {
    width: 32px;
    height: 2px;
    background:  rgb(190, 175, 151);
    margin: 8px;
}

.mobile-menu {
    cursor: pointer;
    display: none;
    z-index: 1002;
    position: relative;
}

@media (max-width: 999px) {
    body {
        overflow-x: hidden;
    }

    .nav-list a {
        color: #ffffff;
    }

    .nav-list {
        position: fixed;
        top: 10vh;
        right: 0;
        width:  60vw;
        height: 100vh;
        background: rgba(202, 186, 161, 0.8);
        backdrop-filter: blur(5px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transform: translate(100%);
        transition: transform 0.3s ease-in;
        z-index: 1000;
    }

    .nav-list li {
        margin-left: 0;
        opacity: 0;
        margin-bottom: 30px;
        font-size: 1.5rem;
    }

    .mobile-menu {
        display: block;
    }
}

.nav-list.active {
    transform: translate(0);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translate(50px);
    }
    to {
        opacity: 1;
        transform: translate(0);
    }
}

.mobile-menu.active .line1 {
    transform: rotate(-45deg) translate(-8px, 8px);
}

.mobile-menu.active .line2 {
    opacity: 0;
}

.mobile-menu.active .line3 {
    transform: rotate(45deg) translate(-5px, -7px);
}

.mobile-menu div {
    transition: 0.3s;
}

/* RESPONSIVIDADE CARDS MOBILE */

@media (max-width: 600px) {
    .main {
        display: flex;
        flex-direction: row; 
        flex-wrap: wrap;    
        justify-content: center;
        padding: 5px;
        gap: 10px;           
    }

    .card {
        width: 45%;
        min-width: 160px;    
        height: 370px;       
        margin: 5px 0;
    }

    .card-front img {
        height: 100px;      
    }

    .card-front h1 {
        font-size: 15px;     
        padding: 1px;
    }

    .card-date, .card-info {
        font-size: 11px;
        padding: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-content {
        padding: 5px;
    }

    .btn {
        font-size: 11px; 
        padding: 8px;
        width: 90%;
    }

    .card-price-container {
        font-size: 10px;
    }
}

.nav-list li:last-child a {
    background-color: rgb(128, 117, 104);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    transition: 0.3s;
}

.nav-list li:last-child a:hover {
    background-color: rgb(207, 190, 163) !important;
    color: #ffffff !important;
    opacity: 1;
    transition: 0.3s;
}

.cart-nav {
    position: relative;
    margin: 0 15px;
}

.cart-nav a {
    font-size: 24px;
    color: #1a1a1e; 
    transition: 0.3s;
}

.cart-nav a:hover {
    color: #4f7397; 
}

#cart-count {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #000000;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
}

.btn-reservar {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-reservar:hover {
    background-color: #218838;
}
/* BOTÃO DO WHATSAPP /*/

.whatsapp-flutuante {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-flutuante:active {
    transform: scale(0.9);
}

.enabled {
    z-index: 999999 !important;
}

.vp-plugin-wrapper {
    z-index: 999999 !important;
}
/* MODO ESCURO */

body.dark-mode {
    --bg-body: #121212;
    --text-color: #ffffff;
    --nav-bg: #1a1a1a;
    background-color: var(--bg-body);
    color: var(--text-color);
}

body.dark-mode nav { 
    background: var(--nav-bg); 
    border-bottom: 1px solid #333; 
}

body.dark-mode .logo span,
body.dark-mode .nav-list li a,
body.dark-mode #toggle-dark-mode i {
    color: #ffffff !important;
}

body.dark-mode .card-front { 
    background-color: #1e1e1e; 
    border: 1px solid #333; 
}

body.dark-mode a { 
    color: #8bb6d9; 
}

body.dark-mode .acessibilidade-menu button {
    background: #333;
    color: white;
    border-color: #555;
}

body.dark-mode #cart-count {
    background: #ffffff;
    color: #121212;
}

/* CARROSEL PARA MOBILE */ 


.card.swiper-slide {
    width: 260px !important;
    height: 460px !important;
    flex-shrink: 0;
}

.swiper-slide {
    width: auto !important; 
    display: flex;
    justify-content: center;
}

@media (min-width: 900px) {
    #container-cards-dinamicos {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 20px;
        transform: none !important;
        width: 100% !important;
    }
    .swiper-pagination {
        display: none !important;
    }
}

@media (max-width: 450px) {
    .card.swiper-slide {
        width: 200px !important;
        height: 400px !important;
    }

    
    .card-front img {
        height: 135px !important; 
        object-fit: cover;
    }

    .main.swiper {
        padding-bottom: 55px;
        overflow: hidden;
    }
    .main {
        display: block; 
    }
}

/* AJUSTE PARA QUE OS BOTÕES FIQUEM DO MESMO TAMANHO QND FOR ADICIONADOS PELO ADM */


.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
    flex-grow: 1; 
    width: 100%;
}

.card-front {
    background-color: rgb(190, 175, 151);
    color: #fff;
    overflow: hidden;
    display: flex;           
    flex-direction: column;
    height: 100%;          
}

.btn {
    font-size: 15px; 
    padding: 10px 0;
    width: 90%; 
    border: none;
    background-color: rgb(97, 91, 81); 
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.5s background;
    cursor: pointer;
    margin-top:auto; 
    margin-bottom: 25px;
}