/* Google Fonts Import for Poppins */
@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Mona+Sans:ital,wght@0,200..900;1,200..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Raleway", serif;
}

:root {
    --primary-white: #ffffff;
    --primary-black: #1a1a1a;
    --secondary-blue: #2c3e50;
    --accent-blue: #3498db;
    --light-gray: #f4f4f4;
    --text-gray: #333333;
    --primary: #2D3142;
    --secondary: #4F5D75;
    --accent: #00A6FB;
    --hover: #0582CA;
    --background: #FFFFFF;
    --gray-light: #F5F7FA;
    /* Variáveis adicionais para o e-commerce */
    --success: #27AE60;
    --warning: #F39C12;
    --danger: #E74C3C;
    --shadow-light: rgba(0, 166, 251, 0.1);
    --shadow-medium: rgba(0, 166, 251, 0.15);
    --shadow-heavy: rgba(0, 166, 251, 0.25);
    --gradient-primary: linear-gradient(135deg, var(--accent) 0%, var(--hover) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}



body {
    background-color: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Header Styling */
header {
    background-color: var(--secondary-blue);
    color: var(--primary-white);
    text-align: center;
    padding: 2rem;
    position: relative;
}

header img {
    max-width: 250px;
    border-radius: 50%;
    margin-bottom: 1rem;
    filter: brightness(1.5) drop-shadow(0 0 20px rgba(255, 255, 255, 0.7));
}



header h1 {
    font-weight: 700;
    color: var(--primary-white);
    letter-spacing: 1px;
}

header p {
    color: var(--light-gray);
    margin-top: 0.5rem;
}

header p span {
    font-family: "Gloria Hallelujah", serif;
}

header span {
    color: var(--accent-blue);
    font-weight: 600;
}

#carrinho-icone {
    background-color: var(--secondary-blue);
    z-index: 4;
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    color: var(--primary-white);
    font-size: 1.5rem;
    width: 90px;
    /* Ajuste para manter um tamanho fixo */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
}


#carrinho-icone span {
    background-color: var(--accent-blue);
    color: var(--primary-white);
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.carrinho-header .x {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.carrinho-header .x:hover {
    color: #cc0000;
}

.carrinho-header .limpar {
    background: #ff4d4d;
    border: none;
    padding: 8px 15px;
    font-size: 0.7rem;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.carrinho-header .limpar:hover {
    background: #cc0000;
}

li button {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #ff4d4d;
    transition: color 0.3s ease;
}

li button:hover {
    color: #cc0000;
    transform: scale(1.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ===== Banner Promocional ===== */
.banner-promocional {
    width: 100%;
    max-width: 1200px;   /* limita o tamanho em telas grandes */
    margin: 20px auto;   /* centraliza */
    border-radius: 12px; /* cantos arredondados para deixar mais bonito */
    overflow: hidden;    /* garante que a borda arredondada funcione */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); /* destaque sutil */
}

.banner-promocional img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 12px;
}

/* efeito ao passar o mouse */
.banner-promocional img:hover {
    transform: scale(1.02);
}

/* ===== Responsividade ===== */
@media (max-width: 768px) {
    .banner-promocional {
        max-width: 95%;
        margin: 15px auto;
        border-radius: 10px;
    }

    .banner-promocional img {
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .banner-promocional {
        max-width: 100%;
        margin: 10px auto;
        border-radius: 8px;
    }

    .banner-promocional img {
        border-radius: 8px;
    }
}





/* Produtos Section */
/* Base Styles */
#produtos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    overflow: hidden;
    /* Isso impede que o título e o parágrafo rolem junto */
    width: 100%;
    /* Faz com que a largura do container não ultrapasse a tela */
    box-sizing: border-box;
}

#produtos h2 {
    text-align: center;
    color: var(--secondary-blue);
    margin-bottom: 2rem;
    font-weight: 700;
}

#produtos p {
    text-align: center;
    margin-bottom: 2rem;
}

.banner-promo {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-bottom: 2rem;
}


/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    /* Só o carousel vai rolar */
    padding: 0.5rem;
    white-space: nowrap;
    /* Evita que os elementos quebrem linha */
}

/* Ajuste para os cards */
.carousel-wrapper {
    display: flex;
    gap: 1.5rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0.5rem;
    scrollbar-width: none;
    /* Remove a barra de rolagem no Firefox */
    -ms-overflow-style: none;
    /* Remove a barra de rolagem no Edge */
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
    /* Remove a barra de rolagem no Chrome e Safari */
}

/* Produto Card */
.produto {
    flex: 0 0 auto;
    width: 280px;
    background-color: var(--primary-white);
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
    flex-direction: column;
    /* Mantém tudo organizado dentro do card */
    overflow: hidden;
    /* Garante que nada escape para fora */
}

.promocao {
    position: relative; /* necessário para posicionar o badge em relação ao card */
}

.promocao::before {
    content: "30% off";
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e60000; /* cor de fundo, pode ajustar conforme sua paleta */
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.9em;
    border-bottom-right-radius: 5px;
}

.promocao1 {
    position: relative; /* necessário para posicionar o badge em relação ao card */
}

.promocao1::before {
    content: "25% off";
    position: absolute;
    top: 0;
    left: 0;
    background-color: #e60000; /* cor de fundo, pode ajustar conforme sua paleta */
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    font-size: 0.9em;
    border-bottom-right-radius: 5px;
}


.produto:hover {
    transform: scale(1.02);
}

.produto img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.produto h3 {
    color: var(--secondary-blue);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    line-height: 1.4;
}

.produto p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: center;
    white-space: normal;
    /* Evita que o texto saia da área do card */
    word-wrap: break-word;
    /* Garante que palavras grandes quebrem corretamente */
    overflow-wrap: break-word;
    /* Alternativa para compatibilidade */
    max-width: 100%;
    /* Garante que o texto não ultrapasse os limites do card */
}

.produto {
    position: relative;
    overflow: hidden; /* garante que nada da faixa saia do card */
}

.faixa-desconto {
    position: absolute;
    top: 10px;
    left: -40px; /* deixa na diagonal */
    background: red;
    color: white;
    font-weight: bold;
    padding: 5px 40px;
    transform: rotate(-45deg);
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    text-transform: uppercase;
}


.produto .preco {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.2rem;
}

.produto button {
    background-color: var(--secondary-blue);
    color: var(--primary-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

.produto button:hover {
    background-color: var(--accent-blue);
}

/* Media Query para Mobile */
@media screen and (max-width: 768px) {
    #produtos {
        padding: 1rem;
    }

    #produtos h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #produtos p {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .carousel-container {
        padding: 0;
    }

    .carousel-wrapper {
        gap: 1rem;
        padding: 0.5rem;
    }

    .produto {
        width: 85vw;
        max-width: 300px;
        min-width: 250px;
        padding: 1rem;
        margin: 0;
        /* Removido o auto para evitar deslocamento extra */
    }

    .produto img {
        height: 200px;
        margin-bottom: 0.8rem;
    }

    .produto h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .produto p {
        font-size: 0.85rem;
        margin-bottom: 0.8rem;
        padding: 0;
    }

    .produto button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
}

/* Media Query para telas muito pequenas */
@media screen and (max-width: 360px) {
    .produto {
        width: 90vw;
        min-width: auto;
        padding: 0.8rem;
    }

    .produto img {
        height: 180px;
    }

    .produto h3 {
        font-size: 0.9rem;
    }

    .produto p {
        font-size: 0.8rem;
    }

    .produto button {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

.catalog-navigation {
    background: var(--background);
    padding: 1.5rem 0;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
    position: sticky;
    top: 0;
}

.catalog-links {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.catalog-links ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.catalog-links a {
    position: relative;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.catalog-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.catalog-links a:hover {
    color: var(--accent);
}

.catalog-links a:hover::after {
    width: 100%;
}

/* Responsividade */
@media (max-width: 768px) {
    .catalog-links ul {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .catalog-links a {
        font-size: 1rem;
    }
}

/* Animação suave ao scroll */
.catalog-links a {
    scroll-behavior: smooth;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 4px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close {
    color: #181717;
    font-size: 48px;
    font-weight: bold;
    position: absolute;
    top: 2px;
    right: 11px;
    cursor: pointer;
}

.close:hover {
    color: #db1919;
}

#modal-title {
    font-size: 1.5rem;
    margin-top: 1rem;
    color: var(--secondary-blue);
}

#modal-add {
    background-color: var(--secondary-blue);
    color: var(--primary-white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    width: 100%;
}

#modal-add:hover {
    background-color: #004080; /* Cor um pouco mais escura ao passar o mouse */
}

#modal-preco {
    color: var(--accent-blue);
    font-weight: 700;
    font-size: 1.2rem;
}


/* Contact Section */
.contact {
    background-color: var(--light-gray);
    padding: 2rem;
    text-align: center;
}

.contact a {
    display: block;
    margin: 1rem 0;
    color: var(--secondary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact a:hover {
    color: var(--accent-blue);
}

/* Carrinho Menu */
#carrinho-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--primary-white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    padding: 2rem;
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

#carrinho-menu.aberto {
    right: 0;
}

.carrinho-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

.carrinho-header h2 {
    color: var(--primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.carrinho-header .x,
.carrinho-header .limpar {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carrinho-header .x {
    color: var(--danger);
}

.carrinho-header .x:hover {
    background: var(--danger);
    color: var(--primary-white);
}

.carrinho-header .limpar {
    color: var(--warning);
}

.carrinho-header .limpar:hover {
    background: var(--warning);
    color: var(--primary-white);
}

/* Lista do carrinho */
#lista-carrinho {
    list-style: none;
    margin-bottom: 2rem;
}

#lista-carrinho li {
    background: var(--gray-light);
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Totais do carrinho */
#carrinho-menu p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

#carrinho-menu p strong {
    color: var(--primary);
}

/* Spans de valores */
#subtotal,
#total {
    color: var(--accent);
    font-weight: 700;
}

/* Botão fazer pedido */
#fazer-pedido {
    display: block;
    width: 100%;
    background: var(--gradient-primary);
    color: var(--primary-white);
    text-decoration: none;
    padding: 1.2rem;
    border-radius: 50px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#fazer-pedido:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

#fazer-pedido.desativado {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

#whatsapp-btn {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: var(--primary-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

#whatsapp-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}


/* Footer and Links */
.links-loja {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    background-color: var(--secondary-blue);
    padding: 1rem;
}

.links-loja a {
    color: var(--primary-white);
    text-decoration: none;
    text-align: center;
    font-size: 0.9rem;
}

footer {
    text-align: center;
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding: 1rem;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    header {
        padding: 1rem;
    }

    header img {
        max-width: 100px;
    }

    #catalogo-links ul {
        align-items: center;
        gap: 2rem;
    }

    .produto {
        padding: 1rem;
        max-width: 90%;
        margin: 0 auto;
    }

    .produto img {
        max-width: 180px;
        height: 180px;
        object-fit: cover;
    }

    #carrinho-menu {
        width: 100%;
    }

    .links-loja a {
        font-size: 0.8rem;
    }

    #whatsapp-btn {
        bottom: 70px;
        right: 15px;
        padding: 0.8rem;
        font-size: 1.5rem;
    }

    .contact {
        padding: 1rem;
    }

    .contact a {
        margin: 0.5rem 0;
    }

    .carousel-container {
        padding: 0.5rem;
    }

    .produto {
        width: 85vw;
        /* Viewport-based width */
        max-width: 300px;
        min-width: 250px;
        margin: 0 auto;
        padding: 0.8rem;
    }

    .produto img {
        aspect-ratio: 1/1;
        width: 100%;
        height: auto;
    }

    .produto h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .produto p {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .produto button {
        width: 100%;
        padding: 0.6rem;
        font-size: 0.9rem;
    }

    /* Melhorar a experiência de scroll */
    .carousel-wrapper {
        gap: 1rem;
        padding: 0.5rem;
        scroll-padding: 0 1rem;
    }
}

/* Barra de rolagem visível */
.carousel-container::-webkit-scrollbar {
    height: 5px;
}

.carousel-container::-webkit-scrollbar-track {
    background: #ddd;
    border-radius: 10px;
}

.carousel-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

/* Small Mobile Devices */
@media screen and (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .produto img {
        max-width: 150px;
        height: 150px;
    }

    .produto h3 {
        font-size: 1rem;
    }

    .produto p {
        font-size: 0.9rem;
    }

    .produto button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

:root {
    --primary-white: #ffffff;
    --primary-black: #1a1a1a;
    --secondary-blue: #2c3e50;
    --accent-blue: #3498db;
    --light-gray: #f4f4f4;
    --text-gray: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Raleway", serif;
}

body {
    background-color: var(--light-gray);
    color: var(--primary-black);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.loja-content {
    flex-grow: 1;
    max-width: 800px;
    margin: 2rem auto;
    background-color: var(--primary-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.loja-content img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-blue);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
}

.loja-info h2 {
    color: var(--secondary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.loja-info h1 {
    color: var(--secondary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.loja-info p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.loja-info i {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.loja-info span {
    color: var(--accent-blue);
    font-weight: 600;
}

.botao-contato {
    display: inline-block;
    background-color: var(--secondary-blue);
    color: var(--primary-white);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    margin-top: 1rem;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.botao-contato:hover {
    background-color: var(--accent-blue);
}

.loja-content>a {
    display: block;
    margin-top: 1rem;
    color: var(--secondary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.loja-content>a:hover {
    color: var(--accent-blue);
}

footer {
    background-color: var(--primary-black);
    color: var(--primary-white);
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

footer a {
    color: var(--accent-blue);
    text-decoration: none;
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .loja-content {
        margin: 1rem;
        padding: 1rem;
        width: calc(100% - 2rem);
    }

    .loja-content img {
        width: 150px;
        height: 150px;
    }

    .loja-info p {
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
}