.style-card-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.style-card {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* На маленьких экранах делаем карточки чуть выше */
@media (max-width: 767px) {
    .style-card {
        height: 350px;
    }
}

.style-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.style-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    transition: all 0.3s ease;
    border-radius: 12px;
}

.style-card:hover .style-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
}

.style-overlay h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.style-card:hover .style-overlay h4 {
    transform: translateY(-10px);
}

.btn-view-more {
    background: var(--gold-accent);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: black;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(20px);
    margin-bottom: 10px;
}

.style-card:hover .btn-view-more {
    opacity: 1;
    transform: translateY(0);
}

.btn-view-more:hover {
    background: rgb(20, 120, 112);
    color: white;
    transform: translateY(-2px);
}

.style-card:hover img {
    transform: scale(1.05);
}

/* Стили для кнопок скролла (только на больших экранах) */
@media (min-width: 768px) {
    .scroll-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background-color: rgba(0, 0, 0, 0.4);
        border: none;
        color: white;
        font-size: 2rem;
        padding: 0.5rem 1rem;
        cursor: pointer;
        z-index: 10;
        transition: background-color 0.3s ease;
        border-radius: 50%;
    }

    .scroll-arrow:hover {
        background-color: rgba(0, 0, 0, 0.7);
    }

    .left-arrow {
        left: 0.5rem;
    }

    .right-arrow {
        right: 0.5rem;
    }

    .overflow-auto {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .overflow-auto::-webkit-scrollbar {
        height: 8px;
    }

    .overflow-auto::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 10px;
    }

    .overflow-auto::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 10px;
    }

    .overflow-auto::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
}