/* Main Content Section */
.main-content {
    margin-left: 200px;
    padding: 20px;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    z-index: 1;
    height: 100dvh;
}

/* Main Content com Sidebar Colapsada */
.sidebar.collapsed ~ .main-content {
    margin-left: 40px;
}

/* Main Content com Sidebar Expandida */
.sidebar:not(.collapsed) ~ .main-content {
    touch-action: none; /* Blocks touch on main-content when sidebar is expanded */
}

/* Store List Section */
.store-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    box-sizing: border-box;
    padding-bottom: 8px;
    padding-top: 220px;
}

/* Store List com Filtro */
.store-list-filter {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    touch-action: pan-y;
    box-sizing: border-box;
    padding-bottom: 8px;
}

/* Barra de Rolagem da Store List */
.store-list::-webkit-scrollbar {
    display: none;
}

/* Store Banner Section */
.store-banner {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    animation: slideInFromRight 0.6s ease-out forwards;
    -webkit-animation: slideInFromRight 0.6s ease-out forwards;
    will-change: transform, opacity;
}

/* Atrasos de Animação para Store Banners */
.store-banner:nth-child(1) { animation-delay: 0s; -webkit-animation-delay: 0s; }
.store-banner:nth-child(2) { animation-delay: 0.1s; -webkit-animation-delay: 0.1s; }
.store-banner:nth-child(3) { animation-delay: 0.2s; -webkit-animation-delay: 0.2s; }
.store-banner:nth-child(4) { animation-delay: 0.3s; -webkit-animation-delay: 0.3s; }
.store-banner:nth-child(5) { animation-delay: 0.4s; -webkit-animation-delay: 0.4s; }
.store-banner:nth-child(6) { animation-delay: 0.5s; -webkit-animation-delay: 0.5s; }
.store-banner:nth-child(7) { animation-delay: 0.6s; -webkit-animation-delay: 0.6s; }
.store-banner:nth-child(8) { animation-delay: 0.7s; -webkit-animation-delay: 0.7s; }

/* Hover no Store Banner */
.store-banner:hover {
    transform: scale(1.01);
    transition: transform 0.2s ease;
    -webkit-transition: transform 0.2s ease;
}

/* Imagem do Store Banner */
.store-banner img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Carousel VIP Section */
.carousel-wrapper {
    position: fixed;
    max-width: 100%;
    margin: 10px 0 15px;
    width: calc(100% - 60px); /* Accounts for 50px left margin + 10px right padding */
    margin-left: 50px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 0;
    z-index: 10; /* Above sidebar (z-index: 1 in main-content) */
}

/* Ocultação de Banners */
.hide-banners {
    position: fixed;
    top: calc(200px - 200px);
    left: 40px;
    width: calc(100% - 40px);
    height: 267px;
    background: #f4f4f4;
    z-index: 9;
    pointer-events: none;
}

/* Máscara de Desvanecimento do Carousel */
.carousel-fade-mask {
    position: fixed;
    top: calc(200px - -65px);
    left: 40px;
    width: calc(100% - 40px);
    height: 20px;
    background: linear-gradient(
        to top,
        rgba(244, 244, 244, 0) 0%,
        rgba(244, 244, 244, 1) 100%
    );
    z-index: 9;
    pointer-events: none;
}

/* Máscara de Desvanecimento Oculta */
.carousel-fade-mask.hidden {
    opacity: 0;
}

/* Contêiner do Carousel */
.carousel-container {
    display: flex;
    height: 300px;
    transition: transform 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    touch-action: pan-x;
    position: relative;
}

/* Item do Carousel */
.carousel-item {
    height: 100%;
    flex-shrink: 0;
    position: relative;
    perspective: 1000px;
    background: transparent;
    border-radius: 8px;
    box-shadow: none;
}

/* Link do Item do Carousel */
.carousel-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Imagem do Item do Carousel */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: rotateY(15deg) translateZ(50px);
    transition: transform 0.8s ease, opacity 0.8s ease;
    opacity: 0.7;
    border-radius: 8px;
    user-select: none;
    -webkit-user-drag: none;
}

/* Imagem Ativa do Item do Carousel */
.carousel-item.active img {
    transform: rotateY(0deg) translateZ(0);
    opacity: 1;
}

/* Pontos de Navegação do Carousel */
.carousel-dots {
    display: flex;
    justify-content: center;
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    background: transparent;
}

/* Ponto Individual do Carousel */
.carousel-dot {
    width: 8px;
    height: 8px;
    background: #333;
    opacity: 0.5;
    border-radius: 50%;
    margin: 0 4px;
    cursor: pointer;
    transition: opacity 0.3s, background 0.3s;
}

/* Ponto Ativo ou com Hover do Carousel */
.carousel-dot.active, .carousel-dot:hover {
    opacity: 1;
    background: #007bff;
}



@media (max-width: 1920px) {
    /* Ajustes do Carousel para Dispositivos Muito Pequenos */
     .store-list, .store-list-filter {
        margin-left: 40px;
        width: calc(100% - 40px);
        padding-right: 10px;
        padding-left: 10px;
        max-height: 190%;
    }
}
    .carousel-wrapper {
        margin-right: 20px;
        margin-left: 50px;
    }

    .carousel-container {
        height: 200px;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
    }

    .carousel-dots {
        bottom: 5px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }



/* Animações */
@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        -webkit-transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        -webkit-transform: translateX(0);
        opacity: 1;
    }
}

@-webkit-keyframes slideInFromRight {
    from {
        -webkit-transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
        opacity: 1;
    }
}

/* Quando o dispositivo está em landscape */
@media (max-width: 900px) and (orientation: landscape) {
  .carousel-wrapper {
    position: relative; /* deixa ele seguir o fluxo da página */
    margin: 10px auto;
    width: calc(100% - 60px);
    max-width: 100%;
  }


     /* Ajustes do Carousel para Dispositivos Muito Pequenos */
     .store-list, .store-list-filter {
        margin-left: 40px;
        width: calc(100% - 40px);
        padding-right: 10px;
        padding-left: 10px;
        padding-top: 0px;
        max-height: 300%;
    }

    .carousel-wrapper {
        margin-right: 20px;
        margin-left: 50px;
    }

    .carousel-container {
        height: 200px;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
    }

    .carousel-dots {
        bottom: 5px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
        margin: 0 3px;
    }
  .carousel-fade-mask {
      display: none;
        } 
   
  .hide-banners {
      display: none;
        } 
    } 

   