/**
 * Catalog single page styles
 * Gallery thumbs and like button
 *
 * @package Directory
 */

/* Gallery thumbs */
.gallery-thumbs {
    height: 92px;
    overflow: hidden;
}

.gallery-thumbs .swiper-wrapper {
    display: flex !important;
    gap: 3px !important;
}

.gallery-thumbs .swiper-slide {
    width: calc((100% - 6px) / 3) !important;
    max-width: calc((100% - 6px) / 3) !important;
    height: 92px !important;
    max-height: 92px !important;
    margin: 0 !important;
}

.gallery-thumbs .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    max-height: 92px !important;
    object-fit: cover !important;
}

@media (min-width: 768px) {
    .gallery-thumbs {
        height: 112px !important;
    }

    .gallery-thumbs .swiper-wrapper {
        gap: 8px !important;
    }

    .gallery-thumbs .swiper-slide {
        width: calc((100% - 40px) / 6) !important;
        max-width: calc((100% - 40px) / 6) !important;
        height: 112px !important;
        max-height: 112px !important;
    }

    .gallery-thumbs .swiper-slide img {
        max-height: 112px !important;
    }
}

@media (min-width: 1024px) {
    .gallery-thumbs {
        height: 90px !important;
    }

    .gallery-thumbs .swiper-slide {
        height: 90px !important;
        max-height: 90px !important;
    }

    .gallery-thumbs .swiper-slide img {
        max-height: 90px !important;
    }
}

/* Like button */
.like-button:hover {
    background: linear-gradient(135deg, rgba(52, 45, 62, 1) 0%, rgba(74, 55, 99, 0.9) 100%) !important;
    border-color: rgba(255, 0, 116, 0.8) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 0, 116, 0.4) !important;
}

.like-button:hover .like-icon {
    transform: scale(1.2);
    color: #ff0074 !important;
}

.like-button.liked {
    background: linear-gradient(135deg, rgba(255, 0, 116, 0.2) 0%, rgba(255, 158, 253, 0.1) 100%) !important;
    border-color: rgba(255, 0, 116, 0.8) !important;
}

.like-button.liked .like-icon svg {
    fill: #ff0074;
    stroke: #ff0074;
}

.like-button.liked .like-text {
    color: #ff9efd;
}

/* Metrics */
.metric-item:hover {
    color: #fff !important;
    transition: color 0.3s ease;
}

.metric-item:hover svg {
    color: #ff0074 !important;
    transition: color 0.3s ease;
}

.metric-item:hover .views-count,
.metric-item:hover .comments-count {
    color: #fff !important;
}
