@tailwind base;
@tailwind components;
@tailwind utilities;

html {
    scroll-behavior: smooth;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: #f6f7f8;
}
/* nav */
nav {
    width: 100%;
    height: 50px;
    background-color: red;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 20px -2px gray;
    padding: 10px;
    position: relative;
    overflow-x: hidden;
}

/* Menu rolável horizontal */
.menu-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    padding: 0 20px; /* Margem interna para as laterais */
}

/* Lista do menu */
.menu-container ul {
    display: flex;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

/* Indicadores fixos nas extremidades */
.menu-shadow-left,
.menu-shadow-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.menu-shadow-left {
    left: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3), transparent);
}

.menu-shadow-right {
    right: 0;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.3), transparent);
}

/* Esconde a barra de rolagem para navegadores compatíveis */
.menu-container::-webkit-scrollbar {
    display: none;
}

.menu-container {
    -ms-overflow-style: none;  /* IE 10+ */
    scrollbar-width: none;     /* Firefox */
}

/* Links de navegação */
ul li a {
    font-size: 20px;
    padding: 10px;
    border-radius: 10px;
} 

ul li a:hover {
    background-color: green;
    color: white;
}

/* Estilos para dispositivos móveis */
@media (max-width: 760px) {
    nav {
        background-color: red;
    }
    .no-scrollbar {
        overflow-x: hidden;
      }
    ul{
        padding:20px;
    }
    ul li a:hover {
        background-color: #FB5607;
        width: 100% !important; 
        color: white;
    }
}

#menu {
    display: block;
    justify-content: center;
    align-items: center;
}
p {
    font-size: 1.2rem;
}
h2 {
    font-size: 2rem;
}
.hidden {
    display: none;
}
/* carrinho */
div.carrinho {
    background-color: #F4A71A;
}
/* rodape */
footer {
    background-color: #FB5607;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }