﻿/* ============================================
       WENREXA CARD - Стили карточки товара
       ============================================ */

.wenrexa-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1f;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden; /* старый способ */
    clip-path: inset(0 round 16px); /* новый, устраняет артефакты */
    isolation: isolate; /* новый stacking context */
    background: #1a1a1f; /* цвет подложки */
}
/* ── 3) Внутренним слоям тоже передаём скругление и клип */
.wenrexa-card-image,
.wenrexa-card-overlay {
    border-radius: inherit;
    overflow: hidden;
    clip-path: inset(0 round 16px);
}

    /* ── 4) У картинки фиксируем origin, чтобы скейл не «распирал» углы */
    .wenrexa-card-image img {
        transform-origin: center center;
        display: block; /* на всякий случай */
    }

/* ── 5) Если где-то есть псевдоэлементы фона — тоже скругляем */
.wenrexa-card.is-purchased::after,
.wenrexa-badges-left,
.wenrexa-chips-right,
.wenrexa-card-footer {
    border-radius: inherit;
}
    /* ── 2) «Анти-bleed» тонкой внутренней каймой цвета подложки */
    .wenrexa-card::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        box-shadow: 0 0 0 1px #1a1a1f inset; /* 1px внутренняя кайма */
        pointer-events: none;
        z-index: 1; /* ниже оверлеев, выше картинки */
    }
    .wenrexa-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    }

    /* Купленный товар */
    .wenrexa-card.is-purchased {
        opacity: 0.75;
    }

        .wenrexa-card.is-purchased::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.2);
            pointer-events: none;
            z-index: 5;
        }

/* ============================================
       ИЗОБРАЖЕНИЕ
       ============================================ */

.wenrexa-card-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.wenrexa-card-image {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
}

    .wenrexa-card-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

.wenrexa-card:hover .wenrexa-card-image img {
    transform: scale(1.08);
}

/* ============================================
       ОВЕРЛЕЙ - Затемнение при hover
       ============================================ */

.wenrexa-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 100% );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.wenrexa-card:hover .wenrexa-card-overlay {
    opacity: 1;
}

.wenrexa-overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Аватар и имя пользователя по центру */
.wenrexa-author-hover {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: scaleIn 0.4s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wenrexa-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

    .wenrexa-author-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.wenrexa-author-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

/* ============================================
       БЕЙДЖИ слева вверху (Новинка, Скоро)
       ============================================ */

.wenrexa-badges-left {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
    pointer-events: none;
}

.wenrexa-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-soon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ============================================
       ЧИПЫ справа вверху
       ============================================ */

.wenrexa-chips-right {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 3;
    pointer-events: none;
}

.wenrexa-chip {
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.chip-category {
    text-transform: uppercase;
}

.chip-icon {
    padding: 6px 10px;
    pointer-events: auto;
    cursor: help;
    transition: all 0.2s ease;
}

    .chip-icon:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.1);
    }

/* Индикатор "Куплено" */
.item-mi-buyed {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(74, 222, 128, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
    backdrop-filter: blur(10px);
}

/* Статус публикации */
.lib-status-public-part {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: rgba(239, 68, 68, 0.95);
    color: white;
    border-radius: 0 0 12px 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* ============================================
       ФУТЕР КАРТОЧКИ - Название, Цена, Кнопки
       ============================================ */

.wenrexa-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.0) 100% );
    z-index: 3;
}

.wenrexa-card-footer-none {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px;
    background: none!important;
    z-index: 3;
}



/* Название проекта */
.wenrexa-card-title-wrapper {
    margin-bottom: 10px;
}

.wenrexa-card-title {
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Нижняя часть: цена и кнопки */
.wenrexa-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

/* ============================================
       ЦЕНА
       ============================================ */

.wenrexa-price-box {
    flex: 1;
    min-width: 0;
}

.wenrexa-price {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.wenrexa-price-free {
    color: #4ade80;
    font-size: 12pt;
}

.wenrexa-price-preorder {
    color: #fbbf24;
}

.wenrexa-price-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.wenrexa-discount-badge {
    padding: 4px 10px;
    background: #ef4444;
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.wenrexa-price-old {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    text-decoration: line-through;
}

.wenrexa-price-new {
    color: #4ade80;
    font-size: 1.3rem;
    font-weight: 700;
}

.wenrexa-release-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wenrexa-release-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
}

.wenrexa-release-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* ============================================
       КНОПКИ ДЕЙСТВИЙ
       ============================================ */

.wenrexa-action-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 0.2rem;
}

/* Базовые стили для ВСЕХ кнопок */
.item-mi-product-buttons,
.wenrexa-btn-action {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 0.95rem;
    text-decoration: none;
}

    .item-mi-product-buttons:hover,
    .wenrexa-btn-action:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    }

    .item-mi-product-buttons:active,
    .wenrexa-btn-action:active {
        transform: scale(1.05);
    }




.item-mi-product-buttons-mini {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 0.95rem;
}

/* Специальные цвета для разных кнопок */
.item-mi-download:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.item-mi-edit-product:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-favorite.is-favorite,
.wenrexa-btn-favorite.is-active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-add-to-cart[disabled],
.wenrexa-btn-cart[disabled] {
    background: rgba(74, 222, 128, 0.9);
    pointer-events: none;
}

/* Состояние загрузки */
.item-mi-product-buttons.is-loading,
.wenrexa-btn-action.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

    .item-mi-product-buttons.is-loading i,
    .wenrexa-btn-action.is-loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Пульсация для кнопок (опционально) */
.item-mi-product-buttons.pulse,
.wenrexa-btn-action.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
    }
}

/* ============================================
       АДАПТИВНОСТЬ
       ============================================ */

/* Планшеты и меньше */
@media (max-width: 991px) {
    .wenrexa-card {
        border-radius: 12px;
    }

    .wenrexa-card-title {
        font-size: 1rem;
    }

    .wenrexa-card-footer {
        padding: 12px;
    }

    .wenrexa-price {
        font-size: 1.2rem;
    }

    .wenrexa-price-new {
        font-size: 1.2rem;
    }

    .item-mi-product-buttons,
    .wenrexa-btn-action {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }

    .wenrexa-chip {
        padding: 5px 10px;
        font-size: 0.65rem;
    }
}

/* Мобильные */
@media (max-width: 767px) {
    .wenrexa-card {
        border-radius: 10px;
    }

    /* На мобильных overlay показываем всегда снизу */
    .wenrexa-card-overlay {
        opacity: 1;
        background: linear-gradient( to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 70% );
        justify-content: flex-end;
        padding: 1rem;
    }

    .wenrexa-author-hover {
        display: none; /* На мобильных скрываем аватар при hover */
    }

    .wenrexa-card-footer {
        padding: 10px;
    }

    .wenrexa-card-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 1; /* На мобильных 1 строка */
    }

    .wenrexa-card-bottom {
        gap: 8px;
    }

    .wenrexa-price {
        font-size: 1.1rem;
    }

    .wenrexa-price-new {
        font-size: 1.1rem;
    }

    .wenrexa-price-old {
        font-size: 0.85rem;
    }

    .item-mi-product-buttons,
    .wenrexa-btn-action {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .wenrexa-action-buttons {
        gap: 6px;
    }

    .wenrexa-chips-right {
        top: 8px;
        right: 8px;
        gap: 4px;
    }

    .wenrexa-chip {
        padding: 4px 8px;
        font-size: 0.65rem;
    }

    .wenrexa-badges-left {
        top: 8px;
        left: 8px;
        gap: 6px;
    }

    .wenrexa-badge {
        padding: 4px 10px;
        font-size: 0.65rem;
    }
}

/* ============================================
       АНИМАЦИИ
       ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Плавное появление карточки */
.wenrexa-card {
    animation: fadeIn 0.4s ease;
}

    /* ============================================
       УТИЛИТЫ
       ============================================ */

    /* Предотвращение выделения текста */
    .wenrexa-card * {
        user-select: none;
    }

.wenrexa-card-title {
    user-select: text;
}

/* Плавная прокрутка */
.wenrexa-card {
    scroll-behavior: smooth;
}

    /* Accessibility */
    .wenrexa-card:focus-within {
        /*  
        outline: 2px solid #667eea;
        outline-offset: 2px;
            */
    }

/* ============================================
       CSS VARIABLES (опционально)
       ============================================ */

:root {
    --wenrexa-card-bg: #1a1a1f;
    --wenrexa-overlay-bg: rgba(0, 0, 0, 0.85);
    --wenrexa-text-primary: white;
    --wenrexa-text-secondary: rgba(255, 255, 255, 0.7);
    --wenrexa-accent: #667eea;
    --wenrexa-success: #4ade80;
    --wenrexa-danger: #ef4444;
    --wenrexa-radius: 16px;
}



































/* ============================================
   WENREXA CARD - Стили карточки товара
   ============================================ */

.wenrexa-pin-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #1a1a1f;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

    .wenrexa-pin-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
    }

    /* Купленный товар */
    .wenrexa-pin-card.is-purchased {
        opacity: 0.75;
    }

        .wenrexa-pin-card.is-purchased::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(0, 0, 0, 0.2);
            pointer-events: none;
            z-index: 5;
        }

/* ============================================
   ИЗОБРАЖЕНИЕ
   ============================================ */

.wenrexa-pin-card-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.wenrexa-pin-card-image {
    position: relative;
    width: 100%;
    display: block;
    overflow: hidden;
}

    .wenrexa-pin-card-image img {
        width: 100%;
        height: auto;
        display: block;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

.wenrexa-pin-card:hover .wenrexa-pin-card-image img {
    transform: scale(1.08);
}

/* ============================================
   ОВЕРЛЕЙ - Затемнение при hover
   ============================================ */

.wenrexa-pin-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.3) 100% );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.wenrexa-pin-card:hover .wenrexa-pin-card-overlay {
    opacity: 1;
}

.wenrexa-pin-overlay-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ============================================
   КОНТЕНТ В ОВЕРЛЕЕ
   ============================================ */

.wenrexa-pin-top-info {
    animation: slideDownFade 0.4s ease;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Название */
.wenrexa-pin-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Автор */
.wenrexa-pin-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.wenrexa-pin-author-avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.wenrexa-pin-author-name {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Категория */
.wenrexa-pin-category {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Статистика */
.wenrexa-pin-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.wenrexa-pin-stat-views {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Цена */
.wenrexa-pin-price-box {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    margin-top: auto;
}

.wenrexa-pin-price {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    display: block;
}

.wenrexa-pin-price-free {
    color: #4ade80;
}

.wenrexa-pin-price-preorder {
    color: #fbbf24;
}

.wenrexa-pin-price-discount {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.wenrexa-pin-discount-badge {
    padding: 4px 10px;
    background: #ef4444;
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.wenrexa-pin-price-old {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    text-decoration: line-through;
}

.wenrexa-pin-price-new {
    color: #4ade80;
    font-size: 1.4rem;
    font-weight: 700;
}

.wenrexa-pin-release {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.wenrexa-pin-release-date {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ============================================
   БЕЙДЖИ (Новинка, Скоро)
   ============================================ */

.wenrexa-pin-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 3;
    pointer-events: none;
}

.wenrexa-pin-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-soon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Индикатор "Куплено" */
.item-mi-buyed {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(74, 222, 128, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    z-index: 3;
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.5);
    backdrop-filter: blur(10px);
}

/* Статус публикации */
.lib-status-public-part {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(0%);
    padding: 6px 14px;
    background: rgba(18, 18, 18, 0.95);
    color: white;
    border-radius: 0 0 12px 5px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 4;
    left: 0px;
    box-shadow: none;
}

/* ============================================
   НИЖНЯЯ ПАНЕЛЬ - Всегда видна
   ============================================ */

.wenrexa-pin-bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 12px;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100% );
    z-index: 3;
}

/* Разрешение / Категория */
.wenrexa-pin-resolution {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3px;
}

/* Кнопки действий */
.wenrexa-pin-actions {
    pointer-events: auto;
}

.wenrexa-pin-action-buttons {
    display: flex;
    gap: 8px;
}


.wenrexa-art-title {
    padding: 1rem;
    text-align: center;
}

/* ============================================
   КРУГЛЫЕ КНОПКИ
   ============================================ */

.item-mi-product-buttons {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 0.95rem;
}

    .item-mi-product-buttons:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    }

    .item-mi-product-buttons:active {
        transform: scale(1.05);
    }

/* Специальные цвета для разных кнопок */
.item-mi-download:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.item-mi-edit-product:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-favorite.is-favorite {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-add-to-cart[disabled] {
    background: rgba(74, 222, 128, 0.9);
    pointer-events: none;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты и меньше */
@media (max-width: 991px) {
    .wenrexa-pin-card {
        border-radius: 12px;
    }

    .wenrexa-pin-title {
        font-size: 1.1rem;
    }

    .wenrexa-pin-bottom-bar {
        padding: 10px;
    }

    .wenrexa-pin-resolution {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .item-mi-product-buttons {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
}

/* Мобильные */
@media (max-width: 767px) {
    .wenrexa-pin-card {
        border-radius: 10px;
    }

    /* На мобильных overlay показываем всегда снизу */
    .wenrexa-pin-card-overlay {
        opacity: 1;
        background: linear-gradient( to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 70% );
        justify-content: flex-end;
        padding: 1rem;
    }

    .wenrexa-pin-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .wenrexa-pin-author {
        margin-bottom: 0.5rem;
        padding: 0.4rem;
    }

    .wenrexa-pin-category,
    .wenrexa-pin-stats {
        display: none;
    }

    .wenrexa-pin-price-box {
        padding: 0.75rem;
        margin-bottom: 3rem; /* Отступ для нижней панели */
    }

    .wenrexa-pin-bottom-bar {
        padding: 8px;
    }

    .wenrexa-pin-resolution {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .item-mi-product-buttons {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .wenrexa-pin-action-buttons {
        gap: 6px;
    }
}

/* ============================================
   АНИМАЦИИ
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Плавное появление карточки */
.wenrexa-pin-card {
    animation: fadeIn 0.4s ease;
}

/* Пульсация для кнопок (опционально) */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
    }
}

.item-mi-product-buttons.pulse {
    animation: pulse 2s infinite;
}

/* Состояние загрузки */
.item-mi-product-buttons.is-loading {
    pointer-events: none;
    opacity: 0.6;
}

    .item-mi-product-buttons.is-loading i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   УТИЛИТЫ
   ============================================ */

/* Предотвращение выделения текста */
.wenrexa-pin-card * {
    user-select: none;
}

.wenrexa-pin-title {
    user-select: text;
}

/* Плавная прокрутка */
.wenrexa-pin-card {
    scroll-behavior: smooth;
}

    /* Accessibility */
    .wenrexa-pin-card:focus-within {
        outline: 2px solid #667eea;
        outline-offset: 2px;
    }

/* ============================================
   ТЕМЫ (опционально)
   ============================================ */












/* ============================================
       СТИЛИ ДЛЯ БОЛЬШОЙ КНОПКИ КОРЗИНЫ - кнопки
       ============================================ */

.item-mi-product-buttons-big {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .item-mi-product-buttons-big:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    }

    .item-mi-product-buttons-big:active {
        transform: translateY(0);
    }

    .item-mi-product-buttons-big.is-active {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    }

    .item-mi-product-buttons-big i {
        font-size: 1.1rem;
    }

/* Адаптивность для большой кнопки */
@@media (max-width: 767px) {
    .item-mi-product-buttons-big {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

        .item-mi-product-buttons-big i {
            font-size: 1rem;
        }
}





/* ============================================
       СТИЛИ ДЛЯ КНОПОК КОРЗИНЫ
       ============================================ */

/* Маленькая кнопка - активное состояние (в корзине) */
.item-mi-product-buttons.item-mi-cart.is-active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
}

    .item-mi-product-buttons.item-mi-cart.is-active:hover {
        background: linear-gradient(135deg, #16a34a 0%, #15803d 100%) !important;
        transform: scale(1.15);
    }

/* Большая кнопка корзины */
.item-mi-product-buttons-big {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

    .item-mi-product-buttons-big:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    }

    .item-mi-product-buttons-big:active {
        transform: translateY(0);
    }

    /* Большая кнопка - активное состояние (в корзине) */
    .item-mi-product-buttons-big.is-active {
        background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
        box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    }

        .item-mi-product-buttons-big.is-active:hover {
            background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(34, 197, 94, 0.6);
        }

    .item-mi-product-buttons-big i {
        font-size: 1.1rem;
    }

/* Адаптивность для большой кнопки */
@media (max-width: 767px) {
    .item-mi-product-buttons-big {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

        .item-mi-product-buttons-big i {
            font-size: 1rem;
        }
}







/* Чип "Эксклюзив" - золотой градиент */
.chip-exclusive {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    font-weight: 700;
    padding: 6px 14px;
}

/* Чип "Вид товара" - синий */
.chip-kind {
    background: rgba(0, 0, 0, 0.9);
   
}

/* Чип "Тип проекта" */
.chip-type {
    text-transform: uppercase;
    font-weight: 600;
}

/* Иконки в чипах */
.chip-exclusive i,
.chip-kind i {
    margin-right: 4px;
}





/* ============================================
   Статистика: просмотры и покупки
   ============================================ */

/* Контейнер для статистики под заголовком */
.wenrexa-stats-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 8px 0;
}

/* Отдельный элемент статистики */
.wenrexa-stats-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
    transition: all 0.2s ease;
}

    /* Иконки в статистике */
    .wenrexa-stats-item i {
        font-size: 16px;
        color: #9ca3af;
        transition: color 0.2s ease;
    }

/* Счетчик */
.wenrexa-stats-count {
    font-weight: 500;
    color: #4b5563;
}

/* Просмотры */
.wenrexa-views:hover {
    color: #3b82f6;
}

    .wenrexa-views:hover i {
        color: #3b82f6;
    }

/* Покупки */
.wenrexa-purchases:hover {
    color: #10b981;
}

    .wenrexa-purchases:hover i {
        color: #10b981;
    }

/* ============================================
   Статистика в оверлее (при наведении)
   ============================================ */

.wenrexa-stats-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding: 0.2rem;

    border-radius: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

    .wenrexa-stats-overlay .wenrexa-stats-item {
        font-size: 15px;
        color: #374151;
    }

        .wenrexa-stats-overlay .wenrexa-stats-item i {
            font-size: 18px;
            color: #6b7280;
        }

    .wenrexa-stats-overlay .wenrexa-stats-count {
        font-weight: 600;
        color: #1f2937;
    }

/* ============================================
   Адаптивность
   ============================================ */

@media (max-width: 768px) {
    .wenrexa-stats-bar {
        gap: 12px;
        margin-top: 6px;
        margin-bottom: 10px;
    }

    .wenrexa-stats-item {
        font-size: 13px;
        gap: 5px;
    }

        .wenrexa-stats-item i {
            font-size: 14px;
        }

    .wenrexa-stats-overlay {
        gap: 16px;
        padding: 10px 16px;
    }

        .wenrexa-stats-overlay .wenrexa-stats-item {
            font-size: 14px;
        }
}

@media (max-width: 480px) {
    .wenrexa-stats-bar {
        gap: 10px;
    }

    .wenrexa-stats-item {
        font-size: 12px;
        gap: 4px;
    }

        .wenrexa-stats-item i {
            font-size: 13px;
        }

    .wenrexa-stats-overlay {
        gap: 12px;
        padding: 8px 12px;
    }
}
/* Стили для карточек артов */
.wenrexa-card-art .wenrexa-card-footer {
    display: none;
}

.wenrexa-card-art .wenrexa-card-overlay {
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100% );
}

/* Контейнер для действий артов в оверлее */
.wenrexa-art-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    animation: scaleIn 0.4s ease 0.1s both;
}

/* Адаптивность для артов */
@media (max-width: 767px) {
    .wenrexa-card-art .wenrexa-card-overlay {
        opacity: 1;
        background: linear-gradient( to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, transparent 70% );
    }

    .wenrexa-art-actions {
        margin-bottom: 3rem;
    }
}
/* ============================================
   Альтернативный вариант: компактный вид
   ============================================ */

/* Если нужен более компактный вид без hover-эффектов */
.wenrexa-stats-bar.compact {
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 8px;
}

    .wenrexa-stats-bar.compact .wenrexa-stats-item {
        font-size: 13px;
        gap: 4px;
    }

        .wenrexa-stats-bar.compact .wenrexa-stats-item i {
            font-size: 14px;
        }

/* ============================================
   Темная тема (опционально)
   ============================================ */

[data-theme="dark"] .wenrexa-stats-item {
    color: #9ca3af;
}

    [data-theme="dark"] .wenrexa-stats-item i {
        color: #6b7280;
    }

[data-theme="dark"] .wenrexa-stats-count {
    color: #d1d5db;
}

[data-theme="dark"] .wenrexa-stats-overlay {
    background: rgba(31, 41, 55, 0.95);
}

    [data-theme="dark"] .wenrexa-stats-overlay .wenrexa-stats-item {
        color: #d1d5db;
    }

        [data-theme="dark"] .wenrexa-stats-overlay .wenrexa-stats-item i {
            color: #9ca3af;
        }

    [data-theme="dark"] .wenrexa-stats-overlay .wenrexa-stats-count {
        color: #f3f4f6;
    }


:root {
    --wenrexa-pin-card-bg: #1a1a1f;
    --wenrexa-pin-overlay-bg: rgba(0, 0, 0, 0.85);
    --wenrexa-pin-text-primary: white;
    --wenrexa-pin-text-secondary: rgba(255, 255, 255, 0.7);
    --wenrexa-pin-accent: #667eea;
    --wenrexa-pin-success: #4ade80;
    --wenrexa-pin-danger: #ef4444;
    --wenrexa-pin-radius: 16px;
}






