﻿.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

body {
    /* background-image: ; /* caminho relativo à wwwroot */
    background-size: auto; /* mantém o tamanho original da imagem */
    background-repeat: no-repeat; /* não repete a imagem */
    background-position: center center; /* centraliza horizontal e verticalmente */
    min-height: 100vh; /* ocupa a altura total da tela */
    margin: 0;
}

nav ul li a {
    font-size: 18px; /* tamanho da letra */
    font-weight: bold; /* opcional: deixa em negrito */
    color: #333; /* cor da letra */
    text-decoration: none; /* remove sublinhado */
    padding: 0.5rem 1rem; /* espaçamento interno */
}

    /* Se quiser aumentar o tamanho ao passar o mouse */
    nav ul li a:hover {
        font-size: 20px;
        color: #1b6ec2;
    }


/* Faixa superior acima do menu */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: black;
    /*/padding: center; /*aumenta a faixa */
    font-size: 18px;
}

    .top-bar .logo img {
        width: 170px;
        height: auto;
    }

/* Barra inferior sempre fixa */
.down-bar {
    position: fixed;
    bottom: 0; /* sempre no fundo da tela */
    left: 0;
    width: 100%;
    height: 170px;
    background: rgba(0, 255, 333, 0.7); /* preto transparente */

    display: flex;
    justify-content: inherit; /* ou inherit, conforme quiser */
    align-items: center;
    z-index: 2000;
}

   
    /* Ajusta a logo dentro da barra */
    .down-bar .logo img {
        width: 390px;
        height: auto;
    }

    .down-bar .contact-info {
        display: flex;
        flex-direction: column;
        text-align: left;
        gap: 0px;
        line-height: 0.5; /* deixa as linhas bem próximas */
        margin-top: -20px; /* ⬅️ SUBE o bloco inteiro */
    }

        .down-bar .contact-info a {
            color: black;
            text-decoration: none;
        }

            .down-bar .contact-info a:hover {
                text-decoration: underline;
            }
        .down-bar .contact-info .icon {
            width: 40px;
            height: 40px;
            margin-right: -10px;
            top: 55%;
            left: 100%;
            transform: translate(-20%, 36%); /* centraliza exatamente */
        }

/* Responsividade para telas menores */
@media (max-width: 768px) {
    .down-bar {
        flex-direction: column;
        height: auto;
        padding: 10px 20px;
        text-align: center;
    }

        .down-bar .contact-info {
            text-align: center;
            margin-top: 10px;
        }
}

/* Apenas adiciona espaço no body para evitar sobreposição */
body.with-footer-space {
    padding-bottom: 170px !important;
}

/* Garante que o body tenha altura mínima da tela */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

   

/* Barra de menu */
.top-nav-bar {
    display: flex;
    justify-content: center; /* centraliza o menu */
    padding: 1rem 5rem;
    background-color: lightslategray;
    width: 100%;
    box-sizing: border-box;
    /*position: fixed; /* barra fixa */
    top: 7rem; /* abaixo da faixa superior */
    left: 0;
    z-index: 1000;
}

/* Menu horizontal */
.top-nav {
    list-style: none;
    display: flex;
    gap: 0rem;
    margin: 0;
    padding: 0;
}

    /* Links do menu */
    .top-nav li a {
        text-decoration: none;
        color: white;
        font-size: 18px;
        font-weight: bold;
        padding: 0.5rem 1rem;
        transition: background-color 0.3s;
    }

        .top-nav li a:hover {
            background-color: darkcyan;
        }

/* Conteúdo principal */
.main-content {
    margin-top: 0rem; /* espaço suficiente para a faixa + menu */
    padding: 1rem 2rem;
    min-height: 100vh;
    /* substitui fundo preto pela imagem */
    background-image: url('/Imagens/Fundo.jpg');
    background-size: cover; /* ocupa toda a área, mantendo proporção */
    background-position: center; /* centraliza a imagem */
    background-repeat: no-repeat; /* não repete a imagem */
    color: white; /* mantém texto legível */
}


.background-slider {
    position: fixed;
    top: 13rem; /* <<< sobe a imagem para mais perto do topo */
    width: 100%;
    height: 600px; /* ajusta como quiseres */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .background-slider img {
        width: auto;
        height: 100%;
        object-fit: contain;
        position: absolute;
        /* 🔥 CENTRALIZAÇÃO ABSOLUTA DAS IMAGENS */
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        animation: fadeSlide 80s infinite;
    }




        /* Controla quando cada imagem aparece */
        .background-slider img:nth-child(1) {
            animation-delay: 0s;
        }

        .background-slider img:nth-child(2) {
            animation-delay: 8s;
        }

        .background-slider img:nth-child(3) {
            animation-delay: 16s;

        }
        .background-slider img:nth-child(4) {
            animation-delay: 24s;
        }
        .background-slider img:nth-child(5) {
            animation-delay: 32s;
        }
        .background-slider img:nth-child(6) {
            animation-delay: 40s;
        }
        .background-slider img:nth-child(7) {
            animation-delay: 48s;
        }
        .background-slider img:nth-child(8) {
            animation-delay: 56s;
        }
        .background-slider img:nth-child(9) {
            animation-delay: 64s;
        }
        .background-slider img:nth-child(10) {
            animation-delay: 72s;
        }

/* Animação: aparece → fica visível → desaparece */
@keyframes fadeSlide {
    0% {
        opacity: 0;
        visibility: visible;
    }

    5% {
        opacity: 1;
        visibility: hidden;
    }

    25% {
        opacity: 0;
        visibility: visible;
    }

    30% {
        opacity: 0;
        visibility: visible;
    }

    50% {
        opacity: 0;
        visibility: visible;
    }
    75% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: visible;
    }
}


.Serviços-page {
    position: relative;
    height: calc(100vh - 22rem - 12rem);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;    
    margin-top: 9rem;
}

.Serviços-background {
    position: absolute; /* fica atrás do texto */
    top: 35%;
    left: 50%;
    transform: translate(12%, -63%); /* centraliza exatamente */
    z-index: 1; /* atrás do texto */
}

.Serviços-background img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    display: block;
}

.Serviços-text-esquerda {
    position: absolute; /* necessário para posicionar sobre a imagem */
    top: 43%; /* verticalmente centralizado */
    left: 10%; /* alinhado à direita */
    transform: translateY(-83%); /* só centraliza verticalmente */
    color: white;
    font-size: 1.8rem;    
    text-align: left; /* justificado à direita */
    z-index: 2; /* acima da imagem */
    padding-right: 1000px; /* espaço interno da borda direita (opcional) */
}

.Contato-text {
    position: absolute; /* sobre a imagem */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* centralização perfeita */
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    z-index: 2; /* acima da imagem */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.product-card {
    background: rgba(0,0,0,0.7);
    border-radius: 12px;
    padding: 1rem;
    color: white;
    text-align: center;
    box-shadow: 0 0 15px #000;
}

.product-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 10px;
    background: #222;
}

.price {
    font-size: 1.3rem;
    color: lightgreen;
    font-weight: bold;
}

.btn-buy {
    background: darkcyan;
    color: white;
    border: none;
    padding: .5rem 1rem;
    margin-top: .5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

    .btn-buy:hover {
        background: #008b8b;
    }

.desc {
    font-size: .9rem;
    opacity: .8;
}
/* ----- MODAL DE IMAGEM ----- */
.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

    .image-modal img {
        max-width: 90vw;
        max-height: 90vh;
        border-radius: 10px;
        cursor: auto;
    }

/* Efeito de zoom ao passar o mouse */
.zoom-click {
    transition: transform 0.25s ease;
    cursor: zoom-in;
}

    .zoom-click:hover {
        transform: scale(1.05);
    }

.cart-table {
    width: 100%;
    border-collapse: collapse;
    color: white;
    margin-top: 1rem;
}

    .cart-table th, .cart-table td {
        border: 1px solid #ccc;
        padding: 0.5rem;
        text-align: center;
    }

.cart-img {
    width: 80px;
    height: auto;
    object-fit: contain;   
}

.btn-remove {
    
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
}

    .btn-remove:hover {
        background: darkred;
    }

.cart-icon {
    position: relative;
    font-size: 2rem;
    cursor: pointer;
}

.cart-link {
    position: relative;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
}
.cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background-color: red;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
}

/* Bloqueia scroll somente no layout principal */
body.no-scroll {
    overflow: hidden !important;
}









