/* ===== Slider Component ===== */
.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.slider-viewport {
    overflow: hidden;
    width: 96%;
    flex: 1;
    margin: 0 2%;
}

.slider-track {
    display: flex;
    transition: var(--transition-normal);
}

.collection-slider .slider-images {
    display: flex;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    transition: var(--transition-normal);
}

/* Arrow Buttons */
.arrow {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    font-size: 2rem;
    transition: var(--transition-fast);
}

.arrow:hover {
    opacity: 0.7;
}

/* Index Page Slider */
.designers-section .slider-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.designers-section .slider-viewport {
    width: calc(100% - 4%);
    margin: 0 2%;
}

.designers-section .slider-track {
    gap: 1.5rem;
}

.designers-section .card {
    flex: 0 0 calc((100% - 4.5rem) / 4);
    width: calc((100% - 4.5rem) / 4);
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.designers-section .card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.designers-section .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--color-black);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.designers-section .arrow:hover {
    opacity: 0.7;
}

.designers-section .arrow.left {
    left: 0;
}

.designers-section .arrow.right {
    right: 0;
}

/* Mobile support */
@media (max-width: 768px) {
    .designers-section .slider-viewport {
        width: 80%;
        margin: 0 10%;
        overflow: hidden !important;
        position: relative;
    }
    
    .designers-section .card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
    
    .designers-section .slider-track {
        gap: 2rem;
    }
    
    .designers-section .arrow {
        font-size: 2rem;
    }
}

/* Ultra-wide screen support */
@media (min-width: 2560px) {
    .designers-section .card img {
        width: 90%;
        height: 90%;
        margin: auto;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

