@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --cor-principal: #0f62ac;
    --cor-secundaria: #222245;
    --cor-destaque: #ffc107;
    --cor-fundo: #f7f7f7;
    --cor-texto: #7a7a7a;
    --cor-btn: #08B720;
    --cor-btn-hover: #08B720;
    --cor-erro: red;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif;
}

body {
    background: var(--cor-fundo);
    color: #333;
    line-height: 1.6;
}

/* Menu mobile */

.botoes-desktop {
    display: flex;
    gap: 10px;
}

.hamburguer {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 1100;
}

.hamburguer span {
    display: block;
    height: 4px;
    width: 100%;
    background: var(--cor-principal);
    border-radius: 4px;
    transition: 0.3s;
}

.menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--cor-principal);
    position: absolute;
    top: 17%;
    right: 2%;
    padding: 0 15px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
}

.menu.ativo {
    max-height: 200px;
    opacity: 1;
    padding: 15px;
}

.menu button {
    background: var(--cor-fundo);
    border: 2px solid var(--cor-principal);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu button:hover {
    background: var(--cor-principal);
    color: var(--cor-fundo);
}

.hamburguer.ativo span:nth-child(1) {
    transform: rotate(45deg) translateY(9px);
}

.hamburguer.ativo span:nth-child(2) {
    opacity: 0;
}

.hamburguer.ativo span:nth-child(3) {
    transform: rotate(-45deg) translateY(-9px);
}

/* Menu */

header {
    background: #004aad;
    color: var(--cor-principal);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8rem;
}

header nav button {
    background: var(--cor-btn);
    color: var(--cor-fundo);
    border: none;
    padding: 10px 15px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
}

header nav button:hover {
    background: var(--cor-destaque);
    transform: translateY(-2px);

}

header nav a {
    color: var(--cor-fundo);
    text-decoration: none;
    margin-left: 15px;
    font-weight: bold;
    border: solid 1px var(--cor-fundo);
    border-radius: 5px;
    padding: 5px 10px;
}

header nav a:hover {
    text-decoration: none;
    background: var(--cor-fundo);
    color: var(--cor-principal);
}

/* Modais */

.btn-orcamento, 
.btn-logista {
    padding: 10px 20px;
    background: var(--cor-btn)!important;
    color: var(--cor-fundo);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.btn-orcamento:hover,
.btn-logista:hover {
  background-color: #ffcc00 !important;
  border-color: #ffcc00 !important;
  color: #fff !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 91, 255, 0.3) !important;
}

.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.6);
}

.modal-content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: var(--cor-principal)!important;
    margin: 13% auto;
    padding: 20px;
    border-radius: 8px;
    width: 50%!important;
    height: 50%;
    text-align: center;
}

.descricao-modal {
    width: 100%!important;
}

.modal-content h2,
.modal-content h3,
.modal-content p {
    color: var(--cor-fundo);
}

.close {
    color: var(--cor-fundo);
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}


select {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
}

.btn-falar {
    background: var(--cor-btn);
    color: var(--cor-fundo);
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

.btn-falar:hover {
  background-color: #ffcc00 !important;
  border-color: #ffcc00 !important;
  color: #003366 !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 91, 255, 0.3) !important;
}


.hero {
  background: linear-gradient(135deg, #eaf2ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}


.text-primary {
  color: #1869e0 !important;
}

.btn-primary {
  background-color: #1869e0 !important;
  border-color: #004aad !important;
  transition: 0.3s ease;
}

.btn-primary:hover {
  background-color: #ffcc00 !important;
  border-color: #ffcc00 !important;
  color: #003366 !important;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 91, 255, 0.3) !important;
}


.animate-img {
  animation: subir 1s ease-out;
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Produtos */
.produtos {
    background: var(--cor-fundo);
    border-radius: 12px;
    max-width: 1300px;
    margin: 20px auto;
    padding: 20px;
}

.produtos h2 {
    text-align: center;
    margin-bottom: 15px;
    color: var(--cor-principal);
}

#filtroCategoria {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid var(--cor-principal);
    border-radius: 5px;
    background: var(--cor-fundo);
    cursor: pointer;
}

.lista-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.produto {
    background: var(--cor-principal);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform .2s;
}

.produto:hover {
    transform: translateY(-5px);
}

.produto img {
    max-width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 5px;
    margin-bottom: 10px;
}

.produto h3 {
    color: var(--cor-fundo);
    font-size: 1rem;
}

.produto p {
    font-size: .95rem;
    margin-bottom: 8px;
    color: var(--cor-fundo);
}

.produto a {
    display: inline-block;
    text-decoration: none;
    background: var(--cor-btn);
    color: var(--cor-fundo);
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
}

.produto a:hover {
    background: var(--cor-btn);
}

.btn-descricao {
    background: var(--cor-fundo);
    color: var(--cor-secundaria);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s;
}
.btn-descricao:hover {
    background: var(--cor-texto);
    color: var(--cor-fundo);
}

/* container do carrossel */
.carrossel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 20px auto;
    max-width: 1300px;
}

/* faixa de itens rolando */
.carrossel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 10px;
}

.carrossel::-webkit-scrollbar {
    height: 8px;
}
.carrossel::-webkit-scrollbar-thumb {
    background: var(--cor-principal);
    border-radius: 4px;
}

/* botões laterais */
.carrossel-btn {
    background: var(--cor-principal);
    color: var(--cor-fundo);
    border: none;
    width: 45px;
    height: 45px;
    cursor: pointer;
    border-radius: 50%;
    margin: 0 5px;
    transition: 0.3s;
}

.carrossel-btn:hover {
    background: var(--cor-btn);
}

.carrossel .produto {
    min-width: 285px;
    flex: 0;
}

/* ===== BOTÕES FLUTUANTES ===== */
.btn-flutuante {
  position: fixed;
  right: 25px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
  cursor: pointer;
}

/* WhatsApp */
.btn-whatsapp {
  bottom: 25px;
  background-color: #25d366;
}
.btn-whatsapp:hover {
  background-color: #1ebe5d;
  transform: scale(1.1);
}

/* Instagram */
.btn-instagram {
  bottom: 95px;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.btn-instagram:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Botão "Voltar ao topo" */
.btn-topo {
  bottom: 165px;
  background-color: #0d6efd; /* Azul Wcel */
  font-size: 20px;
  font-weight: bold;
  border: none;
}
.btn-topo:hover {
  background-color: #ffcc00;
  color: #003366;
  transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
  .btn-flutuante {
    width: 50px;
    height: 50px;
    font-size: 22px;
    right: 18px;
  }
}


footer {
    background: #004aad;
    /* fundo escuro */
    color: #fff;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-container {
    max-width: 1000px;
    margin: auto;
}

.footer-desc {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #cfcfcf;
}

.footer-section {
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #fff;
}

.footer-section p {
    margin: 6px 0;
    color: #cfcfcf;
}

.footer-section i {
    margin-right: 8px;
    color: #00bfff;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    font-size: 12px;
    text-align: center;
    color: #aaa;
}


/* Painel Admin */

.admin-header {
    background: var(--cor-secundaria);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    color: var(--cor-fundo);
}

.admin-form,
.admin-lista {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: var(--cor-fundo);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.admin-form h2,
.admin-lista h2 {
    color: #082567;
    margin-bottom: 15px;
    text-align: center;
}

.admin-form input,
.admin-form button,
.admin-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.admin-form button {
    background: #082567;
    color: #fff;
    border: none;
    font-weight: bold;
    cursor: pointer;
}

.admin-form button:hover {
    background: var(--cor-principal);
}

.lista-admin {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Card do produto */
.produto-admin {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.produto-admin:hover {
    transform: translateY(-3px);
}

/* Imagem */
.produto-admin img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

/* Informações */
.produto-admin .info h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.produto-admin .info p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.preco {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
}

/* Botões */
.acoes {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: 0.3s;
    text-align: center;
}

.btn.editar {
    background-color: #007bff;
    color: white;
}

.btn.editar:hover {
    background-color: #0056b3;
}

.btn.remover {
    background-color: #dc3545;
    color: white;
}

.btn.remover:hover {
    background-color: #a71d2a;
}

.erro {
    color: var(--cor-erro);
    text-align: center;
    margin-bottom: 10px;
}

/* Login Container */
.login-container {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(120deg, #6a11cb, #2575fc);
    padding: 20px;
}

.login-form {
    background: #fff;
    padding: 30px;
    width: 330px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.input-group {
    position: relative;
}

input {
    display: block;
    margin: 12px 0;
    padding: 12px 15px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 4px rgba(106, 17, 203, 0.3);
}

.senha-group {
    position: relative;
}

.toggle-senha {
    position: absolute;
    right: 12px;
    top: 50%;
    cursor: pointer;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.6;
}

.toggle-senha:hover {
    opacity: 1;
}

button {
    background: #004aad;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}

button:hover {
    background: #5717a5;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.editar-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

/* Animações Gradiente hero */

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media(max-width:768px) {

    .lista-produtos,
    .lista-admin {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .botoes-desktop {
        display: none;
    }

    .hamburguer {
        display: flex;
    }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        text-align: center;
    }

    .hero-content p {
        font-size: 0.9rem;
        text-align: center;
    }

    .hero-image {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    header h1 {
        font-size: 1.4rem;
    }

    .produto img,
    .produto-admin img {
        height: 120px;
    }

    .modal-content {
        margin: auto;
        width: 100%!important;
    }

    .modal-content h2,
    .modal-content h1 {
        font-size: 1.2rem;
        text-align: center;
    }

    .modal-content select,
    .modal-content button {
        width: 100%;
        font-size: 1rem;
    }

    .admin-header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .acoes {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-block,
    .hero-block.reverse {
        flex-direction: column;
        text-align: center;
    }

    .hero-images img {
        max-width: 90%;
        height: auto;
    }
    
    .texto-hero {
        text-align: center;
    }
}