/* ===== Fundo gradiente animado ===== */
    body {
    background: linear-gradient(-45deg, #ffcc00, #ff3300, #ff6600, #ff0000);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    }
    @keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
    }

    header {
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    }

    main {
    flex: 1 0 auto;
    padding: 40px 0;
    }

    footer {
    background-color: rgba(0,0,0,0.8);
    color: white;
    text-align: center;
    padding: 15px 0;
    margin-top: auto;
    }

/********LOGO E FORM************ */
    .logo-site {
        height: 50px;
        transition: all 0.3s ease;
    }
    @media (max-width: 767px) {
        .logo-site {
            height: 35px;
        }
        header h2 {
            font-size: 1.2rem;
        }
        .search-bar input {
            font-size: 0.9rem;
        }
    }

/* ===== Produtos ===== */
   /* Container das colunas */
    .row.g-5.justify-content-center {
        font-family: Verdana, Geneva, Tahoma, sans-serif;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    }

    /* Cada coluna */
    .col-12.col-lg-3 {
    display: flex;
    flex: 1 1 200px; /* ocupa o espaço, mas nunca menor que 200px */
    }

    /* Card do produto */
    .produto-card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        padding: 15px;
        width: 100%;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%;
        min-width: 160px; /* reforço extra caso o col não respeite */
    }

    .produto-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }

    /* Imagem do produto */
    .produto-card img {
        max-height: 150px;
        min-width: 160px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    /* Texto e links */
    .produto-card a {
        text-decoration: none;
        color: inherit;
    }

    .produto-card h3 {
        /*font-size: 1.2rem;*/
        margin-bottom: 10px;
    }

    .produto-card label {
        display: block;
        font-weight: bold;
        margin-top: auto;
        word-wrap: break-word;
    }

/********BARRA DE PESQUISA***********/
    .search-bar input {
    border-radius: 25px;
    border: 2px solid #ff3300;
    padding: 10px 15px;
    }

    .search-bar button {
    border-radius: 25px;
    background-color: #ff3300;
    color: white;
    border: none;
    padding: 10px 25px;
    }

    .search-bar button:hover {
    background-color: #cc0000;
    }

/*******LOADING***** */
    /* Fundo semitransparente sobre toda a tela */
    #loading {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(-45deg, #ffcc00, #ff3300, #ff6600, #ff0000);
        background-size: 400% 400%;
        animation: gradientMove 3s ease infinite;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    /* Animação do gradiente (usa a mesma do corpo) */
    @keyframes gradientMove {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

    /* Spinner 3D */
    .spinner {
        width: 60px;
        height: 60px;
        border: 6px solid rgba(255, 255, 255, 0.2);
        border-top: 6px solid #fff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        box-shadow: 0 0 20px #fff;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /*********SUBMENU************ */
    .submenu {
        background: linear-gradient(90deg, #ff0000, #ffcc00);
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    .submenu a i {
        transition: transform 0.2s ease, color 0.2s ease;
    }
    .submenu a:hover i {
        transform: scale(1.5);
        color: #fff200;
    }

    /* Gradiente do submenu */
    .submenu {
      background: linear-gradient(90deg, #ff0000, #ffcc00);
      border-radius: 6px;
    }

    /* Corrige exibição no desktop */
    @media (min-width: 992px) {
      #menuHeader.collapse {
        display: block !important;
        /* mantém visível no modo desktop */
        height: auto !important;
      }
    }