/* ============================================================
   Venix Wishlist — styles
   ============================================================ */

/* === Product Card Heart Button === */
.venix-card__wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    transform: scale(0.85);
}

/* Show on card hover (desktop) */
.venix-card:hover .venix-card__wishlist-btn {
    opacity: 1;
    transform: scale(1);
}

/* Always visible when active */
.venix-card__wishlist-btn--active {
    opacity: 1;
    transform: scale(1);
    color: #ef4444;
}

.venix-card__wishlist-btn:hover {
    background: #ffffff;
    color: #ef4444;
    transform: scale(1.1);
}

/* Pulse on toggle */
.venix-wishlist--pulse {
    animation: venix-wishlist-pulse 0.4s ease;
}

@keyframes venix-wishlist-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* === Mobile heart (next to price) === */
.venix-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.venix-card__wishlist-btn--mobile {
    position: static;
    opacity: 1;
    transform: none;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background: none;
    display: none;
    padding: 0;
}

.venix-card__wishlist-btn--mobile:hover {
    background: none;
    transform: scale(1.15);
}

/* Always show price-row heart on both desktop and mobile */
.venix-card__wishlist-btn--mobile {
    display: flex;
}

/* Mobile / touch: hide image overlay heart, show count */
@media (hover: none) {
    .venix-card__wishlist-btn:not(.venix-card__wishlist-btn--mobile) {
        display: none;
    }
    .venix-card__wishlist-count {
        display: inline;
    }
}

/* Wishlist popularity count (next to heart) */
.venix-card__wishlist-count {
    display: inline;
    margin-left: auto;
    margin-right: -7px;
    font-size: 12px;
    font-weight: 400;
    color: #6c7880;
    order: 1;
}

.venix-card__wishlist-btn--mobile {
    order: 2;
}


/* === Single Product Heart Button (inside .venix-single__links) === */
.venix-single__wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
}

.venix-single__wishlist-btn:hover {
    color: #ef4444;
}

.venix-single__wishlist-btn--active {
    color: #ef4444;
}

.venix-single__wishlist-btn svg {
    flex-shrink: 0;
}


/* === Header Wishlist Link === */
.venix-header__wishlist {
    position: relative;
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    transition: opacity 0.15s ease;
}

.venix-header__wishlist:hover {
    opacity: 0.7;
}

.venix-wishlist__count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    border-radius: 8px;
    pointer-events: none;
}


/* === My Account Dashboard Card Icon === */
.venix-account__card-icon--wishlist {
    background: #fef2f2;
    color: #ef4444;
}


/* === My Account Wishlist Page === */
.gr-wishlist__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gr-wishlist__grid .venix-card__desc {
    display: none;
}

.gr-wishlist__grid .venix-card__title {
    color: #303233;
}

.gr-wishlist__empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.gr-wishlist__empty-icon {
    margin-bottom: 16px;
    color: #d1d5db;
}

.gr-wishlist__empty p {
    margin: 0 0 24px;
    font-size: 15px;
}

.gr-wishlist__empty .venix-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #303233;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.gr-wishlist__empty .venix-btn:hover {
    background: #4f4f4f;
}

@media (max-width: 600px) {
    .gr-wishlist__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


/* ============================================================
   Login / Register Popup (guests)
   ============================================================ */

/* Fullscreen overlay */
.venix-wl-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.venix-wl-popup[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

/* Backdrop */
.venix-wl-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Card */
.venix-wl-popup__card {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 32px 32px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    transform: scale(0.95) translateY(10px);
    transition: transform 0.25s ease;
}

.venix-wl-popup[aria-hidden="false"] .venix-wl-popup__card {
    transform: scale(1) translateY(0);
}

/* Close button */
.venix-wl-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #9ca3af;
    padding: 0;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.venix-wl-popup__close:hover {
    color: #303233;
    background: #f3f4f6;
}

/* Header */
.venix-wl-popup__header {
    text-align: center;
    margin-bottom: 24px;
}

.venix-wl-popup__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: #fef2f2;
    border-radius: 50%;
    color: #ef4444;
}

.venix-wl-popup__title {
    font-size: 20px;
    font-weight: 600;
    color: #303233;
    margin: 0 0 8px;
    line-height: 1.3;
}

.venix-wl-popup__subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* Migration notice */
.venix-wl-popup__notice {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 24px;
    background: #fef3c7;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #92400e;
}

.venix-wl-popup__notice svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: #d97706;
}

.venix-wl-popup__notice p {
    margin: 0;
}

.venix-wl-popup__notice p + p {
    margin-top: 4px;
}

.venix-wl-popup__notice a {
    color: #92400e;
    text-decoration: underline;
}

.venix-wl-popup__notice a:hover {
    color: #78350f;
}

.venix-wl-popup__notice-spam {
    margin-top: 6px !important;
    font-size: 12px;
    color: #991b1b;
}

/* Tabs */
.venix-wl-popup__tabs {
    display: flex;
    border-bottom: 2px solid #f3f4f6;
    margin-bottom: 24px;
    gap: 0;
}

.venix-wl-popup__tab {
    flex: 1;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.venix-wl-popup__tab:hover {
    color: #303233;
}

.venix-wl-popup__tab--active {
    color: #303233;
    border-bottom-color: #303233;
}

/* Panels */
.venix-wl-popup__panel {
    display: none;
}

.venix-wl-popup__panel--active {
    display: block;
}

/* Form fields */
.venix-wl-popup__field {
    margin-bottom: 16px;
}

.venix-wl-popup__field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.venix-wl-popup__field input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 16px;
    font-family: inherit;
    color: #303233;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.venix-wl-popup__field input:focus {
    border-color: #303233;
    box-shadow: 0 0 0 3px rgba(48, 50, 51, 0.08);
    background: #ffffff;
}

.venix-wl-popup__field input::placeholder {
    color: #c0c4c9;
}

/* Remember / Forgot row */
.venix-wl-popup__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 13px;
}

.venix-wl-popup__remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    cursor: pointer;
}

.venix-wl-popup__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #303233;
    cursor: pointer;
}

.venix-wl-popup__forgot {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.venix-wl-popup__forgot:hover {
    color: #303233;
}

/* Submit button */
.venix-wl-popup__submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: #303233;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.venix-wl-popup__submit:hover {
    background: #4f4f4f;
}

/* Note (registration password info) */
.venix-wl-popup__note {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 16px;
    line-height: 1.5;
}

/* Password reset panel */
.venix-wl-popup__reset-header {
    text-align: center;
    margin-bottom: 20px;
}

.venix-wl-popup__reset-title {
    font-size: 18px;
    font-weight: 600;
    color: #303233;
    margin: 0 0 8px;
}

.venix-wl-popup__reset-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.venix-wl-popup__reset-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.venix-wl-popup__reset-msg--ok {
    background: #dcfce7;
    color: #166534;
}

.venix-wl-popup__reset-msg--err {
    background: #fef2f2;
    color: #991b1b;
}

.venix-wl-popup__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    padding: 0;
    background: none;
    border: none;
    font-size: 13px;
    font-family: inherit;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.15s ease;
}

.venix-wl-popup__back:hover {
    color: #303233;
}

/* Mobile */
@media (max-width: 480px) {
    .venix-wl-popup {
        padding: 0;
        align-items: flex-end;
    }

    .venix-wl-popup__card {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        padding: 32px 20px 24px;
        transform: translateY(100%);
    }

    .venix-wl-popup[aria-hidden="false"] .venix-wl-popup__card {
        transform: translateY(0);
    }
}
