
.slider-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 20px; /* Adicionado para simular o padding do body no container */
    color: #333; /* Adicionado para simular a cor do texto do body no container */
}

/* Slider Container */
.catalog-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Estilo para o preloader */
.slider-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: #f8f9fa; /* Cor de fundo do preloader, para combinar com o container */
    z-index: 50; /* Garante que ele fique acima do slider */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Estilo para o spinner de carregamento */
.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #3498db;
    animation: spin 1s linear infinite;
}

/* Keyframes para a animação do spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Esconde o preloader e o spinner quando a classe 'is-loaded' for adicionada */
.catalog-slider.is-loaded .slider-preloader {
    opacity: 0;
    visibility: hidden;
}

/* Ajuste o opacity do wrapper e controles para que só apareçam após a carga */
.catalog-slider .slider-wrapper,
.catalog-slider .slider-controls,
.catalog-slider .slider-dots {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.catalog-slider.is-loaded .slider-wrapper,
.catalog-slider.is-loaded .slider-controls,
.catalog-slider.is-loaded .slider-dots {
    opacity: 1;
}

.catalog-slider.is-loaded {
    opacity: 1;
    visibility: visible;
}

/* Slider Wrapper (Track) */
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%; /* A largura será controlada pelo JS */
}

/* Slide */
.slide {
    flex-shrink: 0; /* Impede que os slides encolham */
    padding: 10px;
    box-sizing: border-box;
    /* A largura e flex basis são controlados pelo JS */
}

.slide .slide-content {
    background: white;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: block;
    text-decoration: none;
    color: inherit;
    border-style:solid;
    border-width:1px 1px 1px 1px;
    border-color:#eaeaea;
    border-radius:7px 7px 7px 7px;
    box-shadow:1px 2px 6px 0px rgba(0,0,0,0.4);
}

/*.slide-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}*/

.slide .slide-content .slide-image {
    padding: 15px;
    width: 100%;
    height: 320px;
    display: block;
    object-fit: fill;
    border-radius:7px 7px 0px 0px;
    box-shadow:0px 0px 10px 0px rgba(0,0,0,0.12);
}

.slide-info {
    padding: 20px;
    text-align: center;
}

.slide-title {
    font-family: "Ruluko", Sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #878d92;
    margin-bottom: 5px;
    text-shadow: 0px 0px 1px #FFFFFF;
}

.slide-category {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Controles de Navegação */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0; /* Ajuste para que os botões fiquem nas bordas */
    pointer-events: none;
    z-index: 20;
}

.prev-btn, .next-btn {
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    pointer-events: all;
    margin: 0 15px; /* Espaçamento das bordas */
}

.prev-btn:hover, .next-btn:hover {
    background: #3498db;
    color: white;
    transform: scale(1.05);
}

.prev-btn:active, .next-btn:active {
    transform: scale(0.95);
}

