/* Стили для панели wishlist в стиле Cursor - черно-белый v2.1 */
.wishlist {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #000000;
    border-left: 1px solid #333333;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.wishlist.open,
.wishlist.active {
    right: 0;
}

.wishlist__title {
    padding: 20px;
    border-bottom: 1px solid #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111111;
}

.wishlist__title h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.wishlist__close {
    background: #333333;
    border: 1px solid #555555;
    font-size: 16px;
    cursor: pointer;
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-weight: 400;
}

.wishlist__close:hover {
    background-color: #555555;
    color: #ffffff;
    border-color: #777777;
}

/* Дополнительные стили для SVG кнопки закрытия */
.wishlist__close svg {
    pointer-events: none; /* Отключаем pointer-events для SVG, чтобы клик проходил к родителю */
    display: block;
    width: 100%;
    height: 100%;
}

.wishlist__close rect {
    pointer-events: none; /* Отключаем pointer-events для rect элементов */
}

.wishlist__list,
.wishlist__items {
    padding: 20px;
    background: #000000;
}

.wishlist__list .product__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

/* Компактные карточки товаров в wishlist */
.wishlist-item {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #333333;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #111111;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    text-align: left;
    width: 100%;
    min-height: 90px;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.wishlist-item:hover {
    border-color: #555555;
    background: #1a1a1a;
}

.wishlist-item__img {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #333333;
    background: #000000;
}

.wishlist-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    padding-right: 40px;
    gap: 4px;
}

.wishlist-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
}

.wishlist-item__name {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2px;
    line-height: 1.3;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    text-align: left;
    word-wrap: break-word;
    max-width: 100%;
}

.wishlist-item__description {
    font-size: 10px;
    font-weight: 400;
    color: #888888;
    margin-bottom: 3px;
    line-height: 1.2;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    text-align: left;
    word-wrap: break-word;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wishlist-item__pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}

.wishlist-item__subscription {
    font-size: 10px;
    font-weight: 400;
    color: #ffcc00;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    text-align: left;
}

.wishlist-item__pricing {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-top: 4px !important;
    width: 100% !important;
}

.wishlist-item__price {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

.wishlist-item__subscription {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #ffcc00 !important;
    background: rgba(255, 204, 0, 0.15) !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    border-left: 3px solid #ffcc00 !important;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace !important;
    text-align: left !important;
    line-height: 1.5 !important;
    display: block !important;
    width: fit-content !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: visible !important;
}

/* Стили для сердечка удалены - больше не нужны */

.wishlist-item__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 1px solid #333333;
    background: #111111;
    color: #888888;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    line-height: 1;
}

.wishlist-item__remove:hover {
    background: #ff4757;
    color: #ffffff;
    border-color: #ff4757;
    transform: scale(1.1);
}

.wishlist-item__remove:active {
    background: #ff3742;
    border-color: #ff3742;
    transform: scale(0.95);
}

.wishlist-item__remove svg {
    width: 14px;
    height: 14px;
}

/* Анимация удаления */
.wishlist-item.removing {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Пустой wishlist */
.wishlist__list p,
.wishlist__items p {
    text-align: center;
    color: #666666;
    font-style: normal;
    margin: 40px 0;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Стили для кликабельных карточек товаров */
.item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Стили для кнопок на странице товара */
.product-btn {
    transition: all 0.2s ease;
    border: 1px solid #333333;
    background: #000000;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 3px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.product-btn:hover {
    background: #333333;
    border-color: #555555;
    color: #ffffff;
}

.product-btn:active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.product-btn.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .wishlist {
        width: 100%;
        right: -100%;
    }
    
    .wishlist-item {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .wishlist-item__img {
        width: 60px;
        height: 60px;
        margin-right: 12px;
    }
    
    .wishlist-item__name {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .wishlist-item__description {
        font-size: 11px;
        margin-bottom: 4px;
        -webkit-line-clamp: 2;
    }
    
    .wishlist-item__pricing {
        gap: 3px;
        margin-top: 5px;
    }
    
    .wishlist-item__price {
        font-size: 12px;
        font-weight: 600;
        color: #ffffff;
    }
    
    .wishlist-item__subscription {
        font-size: 11px;
        color: #ffcc00;
    }
}

@media (max-width: 480px) {
    .wishlist-item {
        padding: 8px;
    }
    
    .wishlist-item__img {
        width: 50px;
        height: 50px;
        margin-right: 10px;
    }
    
    .wishlist-item__name {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .wishlist-item__description {
        font-size: 10px;
        margin-bottom: 3px;
        -webkit-line-clamp: 1;
    }
    
    .wishlist-item__pricing {
        gap: 2px;
        margin-top: 3px;
    }
    
    .wishlist-item__price {
        font-size: 11px;
    }
    
    .wishlist-item__subscription {
        font-size: 10px;
    }
}
