.categories-section {
    padding: 0;
    margin: 0;
    margin-top: 100px; /* Ajuste conforme necessário para mover a seção para baixo */
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: auto;
    position: relative;
    font-family: "Trebuchet MS", sans-serif;
    overflow: visible;
}

.categories-container {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: visible;
    position: relative;
    margin: 0;
}

.categories-wrapper {
    display: flex;
    justify-content: center;
    overflow: visible; /* Alterado para permitir visibilidade */
    scroll-behavior: smooth;
    gap: 20px;
    width: 100%;
    position: relative;
}

.category-item {
    flex: 0 0 auto;
    width: 5cm; /* Largura fixa do item */
    height: 7.5cm; /* Altura fixa do item */
    border: 2px solid #ccc;
    box-sizing: border-box;
    background: linear-gradient(to right, #000, #7f7f7f, #d9d9d9);
    box-shadow: 5px 0 10px #0000ff, 0 5px 10px #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    padding: 10px;
    transform: skew(-10deg);
    margin-bottom: 30px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o conteúdo horizontalmente */
    justify-content: space-between; /* Distribui o espaço entre os elementos */
}

.category-item:hover {
    transform: skew(-10deg) scale(1.05) translateY(-10px);
    box-shadow: 0 0 15px 5px rgba(255, 215, 0, 0.8), 0 10px 20px rgba(255, 215, 0, 0.5); /* Efeito dourado neon */
    z-index: 9999;
}

.category-image {
    width: 4.5cm; /* Largura fixa */
    height: 3cm; /* Altura fixa */
    display: block;
    border: 1px solid #000;
    margin-bottom: 10px; /* Espaço entre a imagem e o título */
}

.category-content {
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.title-container {
    background-color: #000;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: -2px -2px 5px rgba(255, 255, 255, 0.5), 2px 2px 5px rgba(255, 255, 255, 0.5);
    width: 100%; /* Garante que o título ocupe toda a largura disponível */
    border: 3px solid rgba(255, 215, 0, 0.8); /* Borda dourada fina */
    transition: border-color 0.3s; /* Transição suave para a mudança de cor */
}

.category-item:hover .title-container {
    border-color: rgba(192, 192, 192, 0.8); /* Muda a borda para prata durante o efeito de elevação */
}

.category-title {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: normal;
    font-family: "Trebuchet MS", sans-serif;
    font-style: italic;
}

.category-description {
    font-size: 0.9em;
    color: #ffffff; /* Cor do texto branca */
    font-style: italic;
    margin-top: 10px;
    text-align: center;
    text-shadow: 
        -1px -1px 0 #000,  
         1px -1px 0 #000,
        -1px 1px 0 #000,
         1px 1px 0 #000; /* Contorno preto ao redor do texto */
}

.scroll-button {
    background-color: rgba(51, 51, 51, 0.8);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    display: block;
}

.scroll-button.left {
    left: 0;
}

.scroll-button.right {
    right: 10px;
}

.scroll-button:hover {
    background-color: rgba(85, 85, 85, 0.8);
}
