.index-toys {
    margin: 0;
    padding: 20px;
}

.index-toys .index-toys-container {
    max-width: 98%;
    margin: 0 auto;
}

.index-toys .index-toys-header {
    text-align: left;
    /* margin-bottom: 20px; */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.index-toys .index-toys-header h2 {
    margin: 0;
    color: #f5f5f5;
    font-size: 24px;
    font-family: Lab Grotesque !important;
}

.index-toys .index-toys-header p {
    font-size: 14px;
    color: #bcbcbc;
    font-family: Inter, sans-serif;
    /* margin: 20px 0; */
        margin: 0;
            margin-top: 16px;
            margin-bottom: 30px;

}

.index-toys .categories {
    display: flex;
    gap: 20px;
    /* Reduced gap to fit more items */
    flex-wrap: nowrap;
    /* Prevent wrapping to enable horizontal scrolling */
    overflow-x: auto;
    /* Enable horizontal scrolling */
    padding: 10px 0;
    /* Padding for the scrolling effect */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    user-select: none;
}

.index-toys .category {
    background-color: #333;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 calc(25% - 15px);
    /* 25% width minus gap */
    aspect-ratio: 1 / 1;
    /* Ensure aspect ratio is 1:1 */
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
}

.index-toys .category img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    user-select: none;
    pointer-events: none;
}

.index-toys .index-toys-category-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
}

.index-toys .category h2 {
    margin: 0;
    font-size: 14px;
    font-family: Inter, sans-serif;
}

.index-toys .category p {
    font-size: 24px;
    font-family: Lab Grotesque;
    margin: 10px 0;

}

.index-toys .index-toys-shop-now {
    margin-top: 10px;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 8px;
    border: 1px solid #fff;
    font-size: 14px;
}

.index-toys .index-toys-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    z-index: 5;
}

.index-toys .index-toys-dianji {
    display: none;
}

.category:hover .index-toys-shop-now {
    color: #000;
    background-color: #fff;
}

.index-toys .index-toys-tiao {
    width: 100%;
    height: 100%;
}
.index-toys .categories::-webkit-scrollbar {
    display: none;
}
.index-toys .categories {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scroll-behavior: smooth;
    user-select: none;
}
.index-toys .categories .active {
    cursor: grabbing;
    /* Change cursor when dragging */
    cursor: -webkit-grabbing;
    /* Change cursor when dragging in Webkit browsers */
}
/* Media query for mobile view */
@media (max-width: 768px) {
    .index-toys .categories {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 10px 0;
        gap: 15px;
    }

    .index-toys .category {
        flex: 0 0 80%;
        aspect-ratio: 1 / 1;
    }

    .index-toys .index-toys-shop-now {
        padding: 8px 16px;
    }

    .index-toys .index-toys-dianji {
        display: block;
    }

    .index-toys .index-toys-header {
        text-align: left;
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .index-toys .index-toys-header h2 {
        margin: 0;
        color: #f5f5f5;
        font-size: 20px;
        font-family: Lab Grotesque !important;
    }

    .index-toys .index-toys-header p {
        font-size: 14px;
        color: #bcbcbc;
        font-family: Inter, sans-serif;
        margin: 10px 0;
    }

    .index-toys .category h2 {
        margin: 0;
        font-size: 14px;
        font-family: Inter, sans-serif;
    }

    .index-toys .category p {
        font-size: 20px;
        font-family: Lab Grotesque;
        margin: 10px 0;
    }

    .index-toys {
        margin: 0;
        padding: 20px;
        padding-top: 35px;
    }
}

.index-toys .index-toys-carousel-button.next,
.index-toys .index-toys-carousel-button.prev {
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    outline: none;
    padding: 0;
    margin: 0;
}

.index-toys .index-toys-button-left {
    width: 24px;
    height: auto;
}

.index-toys .index-toys-button-right {
    width: 24px;
    height: auto;
    transform: rotate(180deg);
}