/*
 * The wishlist (WPC Smart Wishlist): its heart buttons on product cards and the product page, its popup and page.
 *
 * Moved here 2026-10-22 verbatim from snippet 195 "Wishlist"; loaded on every page, as it was.
 */

/* активное состояние — фирменный фиолетовый */
.woosw-added span.woosw-btn-icon.woosw-icon-8 {
    color: #9100FF;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
span.woosw-btn-icon {
    /* color: #9100FF; */
    font-size: 22px;
}

.wishlist-button {
    border-radius: 8px;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
    /* backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); */
    padding: 8px;
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
}
.wishlist-button span.woosw-btn-icon {
    font-size: 22px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.woosw-item a.button.add_to_cart_button {
    border-radius: 20px;
    display:flex;
    color: var(--wp--preset--color--secondary);
    background: var(--wp--preset--color--accent);
}
button#woosw_copy_btn {
    margin-left: 6px;
    border-radius: 20px;
    color: var(--wp--preset--color--secondary);
    background: var(--wp--preset--color--accent);
}

    /* .wishlist-button {
    display: none !important;
}     */

.nk-network-wishlist { display: flex; flex-direction: column; gap: 16px; }

.nk-wishlist-site { border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; }

.nk-wishlist-summary {
    cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 17px;
    list-style: none; display: flex; align-items: center; gap: 8px;
    user-select: none; transition: background .15s ease;
}
.nk-wishlist-summary::-webkit-details-marker { display: none; }
.nk-wishlist-summary:hover { background: #161616; }

/* стрелка справа */
.nk-wishlist-summary::after {
    content: "";
    width: 10px; height: 10px;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s ease;
    opacity: .6; flex-shrink: 0;
}
.nk-wishlist-site[open] > .nk-wishlist-summary::after {
    transform: rotate(-135deg);
}

.nk-wishlist-count { opacity: .55; font-weight: 400; font-size: 14px; }
.nk-wishlist-content { padding: 0 18px 18px; }
.nk-wishlist-empty { opacity: .55; margin: 4px 0 0; }

/* блок "поделиться" */
.nk-wishlist-share {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin: 0 0 16px; padding: 10px 12px;
    background: #161616; border: 1px solid #2a2a2a; border-radius: 10px;
}
.nk-wishlist-share-label { font-size: 13px; opacity: .7; white-space: nowrap; }
.nk-wishlist-share-input {
    flex: 1; min-width: 140px; padding: 8px 10px; font-size: 13px;
    color: #fff; background: #0d0d0d; border: 1px solid #2a2a2a !important;
    border-radius: 8px !important; outline: none;
}
.nk-wishlist-share-input:focus { border-color: #444; }
.nk-wishlist-share-btn {
    padding: 8px 16px; font-size: 13px; font-weight: 600; border: 0;
    border-radius: 20px; cursor: pointer; white-space: nowrap;
    color: var(--wp--preset--color--secondary, #111);
    background: var(--wp--preset--color--accent, #c5ff00);
    transition: opacity .15s ease;
}
.nk-wishlist-share-btn:hover { opacity: .85; }

.nk-wishlist-grid {
    display: grid; gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.nk-wishlist-item {
    position: relative;
    display: flex; flex-direction: column;
    background: #1a1a1a; border-radius: 10px; overflow: hidden;
    border: 1px solid #262626;
}
.nk-wishlist-item-thumb { display: block; aspect-ratio: 1 / 1; background: #111; }
.nk-wishlist-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nk-wishlist-item-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nk-wishlist-item-name {
    font-weight: 500; font-size: 14px; line-height: 1.3; text-decoration: none; color: inherit;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nk-wishlist-item-price { font-size: 14px; }
.nk-wishlist-drop { font-size: 12px; color: #2ecc71; line-height: 1.3; }

.nk-wishlist-item-actions { padding: 0 12px 12px; }
.nk-wishlist-btn {
    display: block; text-align: center; padding: 9px;
    border-radius: 24px; font-size: 13px; font-weight: 600;
    text-decoration: none; cursor: pointer; transition: opacity .15s ease;
}
.nk-wishlist-btn:hover { opacity: .85; }
.nk-wishlist-cart { background: var(--wp--preset--color--accent, #c5ff00); color: var(--wp--preset--color--secondary, #111); }
.nk-wishlist-open { background: #2a2a2a; color: #fff; }

.nk-wishlist-remove {
    position: absolute; top: 4px; right: 4px; z-index: 3;
    width: 26px; height: 26px; border: 0; border-radius: 50%;
    background: rgba(0,0,0,.55); color: #fff; font-size: 18px; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(3px);
}
.nk-wishlist-remove:hover { background: rgba(0,0,0,.8); }
/* add to cart */
.nk-wishlist-item-actions .added_to_cart.wc-forward {    display: none; }
.nk-wishlist-cart.nk-added { opacity: .7; }
.nk-wishlist-cart.loading { opacity: .6; pointer-events: none; }
.nk-wishlist-cart.nk-added { opacity: .7; }
.nk-wishlist-cart.loading { opacity: .6; pointer-events: none; }
/* ===== Мобильная версия: компактнее, 2 колонки ===== */
@media (max-width: 600px) {
    .nk-wishlist-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .nk-wishlist-content { padding: 0 12px 12px; }
    .nk-wishlist-item-name { font-size: 13px; }
    .nk-wishlist-item-info { padding: 8px 10px; }
    .nk-wishlist-item-actions { padding: 0 10px 10px; }
    .nk-wishlist-summary { padding: 12px 14px; font-size: 16px; }
    .nk-wishlist-share-label { display: none; }
    .nk-wishlist-share { padding: 8px 10px; }
}

/* woo-smart-wishlist 6.2.0+ prints the list's name (and a rename button) under the page title,
   which already says "Список желаний". Hidden at Kirill's request, 2026-10-21. */
.woosw-name-wrapper { display: none; }
