.section8 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 40px; /* Add space between sections */
}

.section8 h1 {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
}

.section8 .wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 20px;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    justify-content: flex-start; /* Changed from center to allow scrolling */
    position: relative; /* For absolute positioning of buttons if needed */
}

.section8 .wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.section8 {
    margin-bottom: 60px; /* Increase space between sections */
    width: 100%;
    clear: both; /* Ensure no floating elements interfere */
}

.section8 .product {
    flex: 0 0 auto;
    width: calc(25% - 20px); /* Show 4 products per row, accounting for gap */
    min-width: 250px; /* Minimum width for each product card */
    max-width: 300px; /* Maximum width for each product card */
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 10px; /* Add horizontal spacing between products */
}

.section8 .product .preview {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    aspect-ratio: 1; /* Keep images square */
    overflow: hidden;
}

.section8 .product .preview img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Maintain aspect ratio */
    display: block;
    margin: 0 auto;
}

.section8 .product .preview .genre {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.section8 .product .preview .linkdot {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.section8 .product .stars {
    margin: 15px auto;
    height: 20px;
    width: auto;
}

.section8 .product a {
    text-decoration: none;
    margin-top: 10px;
    display: block;
    color: inherit;
    font-weight: 500;
}

/* Hide scrollbar but keep functionality */
.section8 .wrapper::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

/* Ensure smooth scroll on touch devices */
@media (hover: none) {
    .section8 .wrapper {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }
    
    .section8 .product {
        scroll-snap-align: start;
    }
}

.section8 .product:hover {
    transform: translateY(-5px);
}