/* Critical slider styles */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 2rem auto;
}

.image-container {
    display: flex;
    will-change: transform;
    backface-visibility: hidden;
}

.model-images {
    flex: 0 0 100%;
    position: relative;
    padding: 0 5px;
    box-sizing: border-box;
}

.model-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.product-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
}

.product-category a {
    color: inherit;
    text-decoration: none;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    gap: 15px;
}

#progress-bar-container {
    flex: 1;
    max-width: 300px;
    height: 3px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
}

#progress-bar {
    height: 100%;
    width: 100%;
    background: #333;
    transform-origin: left center;
}

/* Responsive styles */
@media (min-width: 768px) {
    .model-images {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .model-images {
        flex: 0 0 33.333%;
    }
}

/* Fallback styles */
.no-js .slider-container,
.slider-placeholder {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.no-js .button-container {
    display: none;
}

.no-products {
    text-align: center;
    padding: 2rem;
    color: #666;
}