* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    max-width: 100vw;
    height: 100vh;
    overflow-x: hidden !important;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

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

    100% {
        transform: rotate(360deg);
    }
}


header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* distribui bem */
    padding: 16px 24px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border-radius: 0 0 16px 16px;
    margin-bottom: 5px;
    flex-wrap: wrap;
    /* permite adaptação */
    gap: 10px;
}

header .inputs {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 600px;
    min-width: 280px;
}

.bars {
    display: none;
}

header a img {
    height: 64px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    margin-left: 75px;
}

header a img:hover {
    transform: scale(1.04);
}

header div {
    flex: 1;
    display: flex;
    align-items: center;
    margin: 0 32px;
    max-width: 600px;
}

#search-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    height: 45px;
    margin-left: 125px;
}

#search-input:focus {
    border-color: #E53935;
}

#button-search {
    padding: 0 5px;
    background: #E53935;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
    height: 45px;
    min-width: 40px;
    max-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#button-search img {
    width: 40%;
}

#button-search:hover {
    background: #c9403e;
}

nav {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    /* impede quebra do texto */
}

#nav-number {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}


.user-area {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    /* impede quebra do Olá + nome */
}

.logout-btn {
    background: #e63946;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
    /* mantém "Sair" sem quebrar */
}

.user-name {
    color: #222;
    font-size: 15px;
}

.logout-btn {
    background: #e63946;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #d62828;
}


#whatssap-header {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #2e7d32;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.2s;
}

#whatssap-header img {
    height: 24px;
}

#whatssap-header p {
    margin: 0;
    color: #2e7d32;
}

#whatssap-header:hover {
    color: #388e3c;
}

#user-login-btn {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    padding: 8px;
    margin-left: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    width: 44px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

#user-login-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

#user-login-btn:hover {
    border-color: #00AEEF;
    background: #f5fafd;
    box-shadow: 0 4px 16px rgba(0, 174, 239, 0.10);
}

nav p {
    margin: 0;
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    letter-spacing: 0.5px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(40, 40, 40, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 38px 32px 28px 32px;
    min-width: 320px;
    max-width: 95vw;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 2rem;
    color: #E53935;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}

.close:hover {
    color: #00AEEF;
}

.modal-content h2 {
    font-size: 1.5rem;
    color: #00AEEF;
    margin-bottom: 18px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.modal-content form {
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    width: 100%;
    max-width: 320px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border 0.2s;
    background: #fafbfc;
    margin-bottom: 0;
    box-sizing: border-box;
    margin-top: 5px;
}

.modal-content input:focus {
    border-color: #00AEEF;
}

.modal-content button[type="submit"] {
    background: #E53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    max-width: 320px;
    transition: background 0.2s;
}

.modal-content button[type="submit"]:hover {
    background: #c9403e;
}

.modal-content p {
    font-size: 0.95rem;
    color: #333;
    margin-top: 8px;
    text-align: center;
}

.modal-content a {
    color: #00AEEF;
    text-decoration: none;
    font-weight: 500;
}

.modal-content a:hover {
    text-decoration: underline;
}

.categorias-bar {
    width: 100%;
    background: #00AEEF;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

.menu {
    display: none;
}

.categorias-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 12px 0;
}

.categorias-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    transition: color 0.2s, background 0.2s;
    padding: 6px 14px;
    border-radius: 6px;
    height: 100%;
}

.categorias-nav a:hover {
    background: #E53935;
    color: #e0e0e0;
}

.produtos-lista {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 60px;
    flex-wrap: wrap;
}

.produto-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 28px 32px;
    min-width: 240px;
    max-width: 300px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.2s, transform 0.2s;
    height: 375px;
}

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

.produto-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px) scale(1.02);
}

.produto-nome {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.produto-codigo {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 18px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.produto-comprar {
    background: #E53935;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: absolute;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.08);
    font-family: 'Segoe UI', Arial, sans-serif;
    margin-top: 285px;
}

.aviso-login {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 18px;
    border-radius: 8px;
    background: #eee;
    color: #333;
    font-weight: 600;
    text-align: center;
}


.produto-comprar:hover {
    background: #c9403e;
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.16);
}

.produtos-categoria {
    display: flex;
    gap: 32px;
    justify-content: flex-start;
    align-items: center;
    padding: 40px 60px;
    flex-wrap: wrap;
    flex-direction: column;
}

.produtos-categoria .titulo {
    display: flex;
    align-items: center;
}

.produtos-categoria .categoria-nome {
    font-size: 14px;
    color: #00AEEF;
}

.produtos-categoria .barra {
    min-width: 60em;
    max-width: 64em;
    border-top: 2px solid #ccc;
    margin-left: 10px;
}

.produtos-categoria .produtos {
    display: flex;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 42px;
}

#whatssap-button {
    width: 50px;
    background-color: #23b659;
    height: 50px;
    border-radius: 50%;
    border: 0px;
    cursor: pointer;
    position: fixed;
    right: 0;
    bottom: 0;
    margin-right: 10px;
    margin-bottom: 30px;
}

#whatssap-button:hover {
    background-color: #147437;
    scale: 1.05;
}

#whatssap-button img {
    width: 60%;
}

.footer {
    background-color: #f8f8f8;
    padding: 40px 0 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

/* Container principal */
.footer-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Cada seção do rodapé */
.footer-section {
    flex: 1;
    margin: 10px;
}

.footer-section:last-child {
    margin-left: -100px;
}

.footer-section h3 {
    color: #00AEEF;
    /* Azul da logo */
    margin-bottom: 15px;
    font-size: 18px;
}

/* Listas */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
    margin-top: 5px;
}

.footer-section ul li a {
    display: flex;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
    text-align: center;
}

.footer-section ul li a img {
    width: 20px;
    margin-right: 5px;
}

.footer-section ul li a:hover {
    color: #E53935;
    /* Vermelho da logo */
}

/* Logo */
.footer-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

/* Ícones de pagamento */
.payment-icons {
    max-width: 200px;
}

/* Parte inferior do rodapé */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

@media (min-width : 1700px) {
    main {
        padding: 10px 15%;
    }

    header {
        padding: 10px 20%;
    }

    #whatssap-button {
        margin-right: 30px;
    }
}

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

    header {
        padding: 23px 120px;
    }

    #button-search {
        min-width: 50px;
    }

    .aviso-login {
        font-size: 18px;
        padding: 10px 20px;
    }

    nav p {
        font-size: 13px;
    }

    .produtos-categoria .barra {
        min-width: 50em;
    }

    .footer-section h3 {
        font-size: 16px;
    }

    .footer-section ul li a {
        text-align: start;
    }

    .footer-logo {
        max-width: 135px;
    }
}

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

    header {
        margin-left: 0px;
        padding: 30px 60px;
        display: flex;
    }

    .aviso-login {
        font-size: 16px;
        padding: 9px 18px;
    }

    nav {
        margin-left: 60px;
    }

    #nav-number {
        min-width: 102px;
        margin-left: 5px;
    }

    header a img {
        margin-left: -40px;
    }

    #search-input {
        margin-left: 40px;
    }

    .categorias-nav {
        width: 90%;
        flex-wrap: wrap;
    }

    .produtos-lista {
        justify-content: center;
    }

    .produto-item {
        width: 240px !important;
    }

    #user-login-btn {
        height: 38px;
        width: 38px;
        padding: 6px;


    }

    #user-login-btn img {
        width: 20px;
        height: 20px;
    }

    .produtos {
        justify-content: center;
    }

    .produtos-categoria .barra {
        min-width: 34em;
    }

    .footer-logo {
        width: 120px;
    }

    .footer-section h3 {
        font-size: 14px;
    }

    .footer-section ul li {
        font-size: 12px;
    }

    .footer-section:last-child {
        margin-left: 0px;
    }
}


@media (max-width : 744px) {
    header {
        display: flex;
        padding: 24px 0px;
        justify-content: space-between;
        border-radius: 0px;
        box-shadow: 10px 2px 18px rgba(0, 0, 0, 0.3);
    }

    .aviso-login {
        width: 100px;
        font-size: 10px;
        padding: 5px 12px;
    }

    .bars {
        display: flex;
        flex-direction: column;
        width: 50px;
        height: 50px;
        position: absolute;
        margin-left: 40px;
        margin-bottom: 50px;
    }

    .bar {
        width: 100%;
        margin-top: 10px;
        background-color: #bbb;
    }

    header div {
        margin: 0px;
    }

    header .inputs {
        display: flex;
        flex-direction: column;
        padding: 0px;
    }

    header a img {
        margin-left: 30px;
        margin-bottom: 30px;
        width: 120px;
    }

    #search-input {
        margin-left: 0px;
        width: 70%
    }

    #button-search {
        position: absolute;
        margin-top: 97px;
        margin-left: 350px;
    }

    nav {
        display: none;
    }

    #user-login-btn {
        height: 32px;
        width: 32px;
        padding: 4px;
        right: 0;
        position: absolute;
        margin-right: 30px;
        margin-bottom: 60px;
    }

    #user-login-btn img {
        width: 16px;
        height: 16px;
    }

    .modal-content {
        min-width: 90vw;
        padding: 24px 8px 18px 8px;
    }

    .close {
        top: 10px;
        right: 12px;
        font-size: 1.5rem;
    }

    .modal-content form {
        max-width: 98vw;
    }

    .modal-content input,
    .modal-content button[type="submit"] {
        max-width: 98vw;
    }

    .categorias-bar {
        position: fixed;
        width: 70%;
        color: #000;
        top: 0;
        height: 100%;
        background: #eff;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        scroll-behavior: auto;
        padding: 0px;
        z-index: 999;
    }

    .categorias-nav {
        margin-top: 30px;
        margin-left: 10%;
        flex-direction: column;
    }

    .categorias-nav a {
        color: #333;
        font-size: 15px;
    }

    .menu {
        display: flex;
        align-items: center;
        padding: 10px;
        justify-content: space-between;
    }

    .menu p {
        font-size: 22px;
        color: #333;
        margin-left: -60%;
    }

    .menu .bars-menu {
        display: flex;
        flex-direction: column;
        width: 15px;
        height: 20px;
        justify-content: center;

    }

    .menu .bars-menu .bar {
        width: 100%;
        height: 3px;
        background-color: #333;
        margin-top: 2px;
    }

    .menu img {
        width: 25px;
    }

    .produtos-categoria .barra {
        min-width: 100%;
        max-width: 50%;
    }

    .produto-item {
        min-width: 100px;
        max-width: 130px;
        height: 350px;
        text-align: center;
    }

    .produto-item h2 {
        font-size: 0.7rem;
    }

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

    .produto-comprar {
        font-size: 0.9rem;
        margin-top: 250px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section:last-child {
        margin-left: 0px;
    }

}

@media (max-width : 424px) {
    .bars {
        margin-left: 20px;
    }

    .menu p {
        font-size: 22px;
        color: #333;
        margin-left: -50%;
    }

    .aviso-login {
        font-size: 13px;
        padding: 7px 12px;
    }

    .bar {
        width: 90%;
    }

    #search-input {
        font-size: 14px;
    }

    #button-search {
        margin-left: 310px;
        height: 43px;
    }

    .produtos-lista {
        padding: 40px 40px;
    }

    .produtos-categoria {
        padding: 40px 34px;
    }
}

@media (max-width : 370px) {
    #button-search {
        margin-left: 270px;
        height: 42px;
    }

    .aviso-login {
        font-size: 12px;
        padding: 6px 10px;
    }

    header {
        box-shadow: 0px 0px 0px;
    }

    .menu p {
        margin-left: -40%;
        font-size: 20px;
    }

    #search-input {
        font-size: 13px;
    }

    .produto-item {
        min-width: 80px;
        max-width: 120px;
    }

    .modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        background: rgba(40, 40, 40, 0.45);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        overflow: hidden;
    }

    .produto-item img {
        width: 100px;
    }

    .produto-item h2 {
        font-size: 0.75rem;
    }

    .produto-codigo {
        font-size: 0.70rem;
    }

    .produto-comprar {
        font-size: 0.7rem;
    }

    .produtos-lista {
        padding: 40px 20px;
    }

    .produtos-categoria {
        padding: 40px 19px;
    }

    .categorias-nav a {
        font-size: 12px;
        justify-content: center;
    }
}