.section7 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    margin-bottom: 40px;
}

.section7 .header {
    text-align: center;
    margin-bottom: 30px;
    width: 100%;
}

.section7 .header h1 {
    font-size: 2rem;
    margin: 0;
}

.section7 .wrapper {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.section7 .slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 20px 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.section7 .slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.section7 .product {
    flex: 0 0 auto;
    width: calc(25% - 20px); /* Show 4 products per row, accounting for gap */
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section7 .product:hover {
    transform: translateY(-5px);
}

.section7 .product .preview {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.section7 .product .preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.section7 .product .preview .genre {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.section7 .product .preview a {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.section7 .product .preview a:hover {
    transform: scale(1.1);
}

.section7 .product .stars {
    margin: 15px auto;
    height: 20px;
    width: auto;
}

.section7 .product a {
    text-decoration: none;
    margin-top: 10px;
    display: block;
    color: inherit;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section7 .product a:hover {
    color: #0085ff;
}

/* Touch device optimizations */
@media (hover: none) {
    .section7 .slider {
        scroll-snap-type: x mandatory;
        padding-bottom: 20px; /* Add space for scroll indicator */
    }
    
    .section7 .product {
        scroll-snap-align: start;
    }
}