/* ═══════════════════════════════════════════
   FLOWERS4U WISHLIST — RTL / Hebrew
   ═══════════════════════════════════════════ */

/* ── לחצן לב על כרטיסי מוצר בשופ ── */
.wl-heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    color: #ccc;
    transition: transform .2s, color .2s, box-shadow .2s;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.wl-heart:hover {
    transform: scale(1.18);
    color: #e91e8c;
    box-shadow: 0 4px 16px rgba(233, 30, 140, .28);
}

.wl-heart.wl-active {
    color: #e91e8c;
}

.wl-heart.wl-active .wl-icon {
    text-shadow: 0 0 8px rgba(233, 30, 140, .4);
}

/* אנימציית קפיצה בלחיצה */
@keyframes wl-bounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.38); }
    70%  { transform: scale(.88); }
    100% { transform: scale(1); }
}

.wl-heart.wl-bounce {
    animation: wl-bounce .4s ease forwards;
}

/* ── כפתור לב בדף מוצר בודד ── */
.wl-single {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100% !important;
    height: auto !important;
    padding: 13px 20px !important;
    margin-top: 12px;
    background: #fff !important;
    border: 2px solid #e91e8c !important;
    border-radius: 12px !important;
    color: #e91e8c !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, color .2s !important;
    direction: rtl;
    font-family: inherit;
    position: static !important;
    top: auto !important;
    right: auto !important;
    box-shadow: none !important;
    transform: none !important;
    justify-content: center;
    text-decoration: none;
}

.wl-single:hover {
    background: #e91e8c !important;
    color: #fff !important;
    transform: none !important;
}

.wl-single.wl-active {
    background: #e91e8c !important;
    color: #fff !important;
}

.wl-single .wl-icon {
    font-size: 20px;
}

/* ── כפתור צף + מונה ── */
.wl-floating {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: #e91e8c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(233, 30, 140, .42);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s, transform .2s, box-shadow .2s;
}

.wl-floating.wl-has-items {
    opacity: 1;
    pointer-events: auto;
}

.wl-floating:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 26px rgba(233, 30, 140, .55);
}

.wl-floating-icon {
    font-size: 22px;
    color: #fff;
    line-height: 1;
}

.wl-floating-count {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Toast ── */
#wl-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #111;
    color: #fff;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    z-index: 99999;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
    white-space: nowrap;
}

#wl-toast.wl-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── עמוד רשימת המשאלות ── */
.wl-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    direction: rtl;
    font-family: Arial, sans-serif;
}

.wl-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.wl-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

#wl-clear {
    padding: 10px 22px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #888;
    transition: .2s;
    font-family: inherit;
}

#wl-clear:hover {
    border-color: #e91e8c;
    color: #e91e8c;
}

.wl-empty {
    text-align: center;
    color: #aaa;
    font-size: 18px;
    padding: 60px 0;
    grid-column: 1 / -1;
}

.wl-loading {
    text-align: center;
    color: #aaa;
    font-size: 16px;
    padding: 40px;
    grid-column: 1 / -1;
}

/* גריד מוצרים (מגדיר מחדש ב-context של עמוד ה-wishlist) */
.wl-page #wl-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    flex: unset;
    width: 100%;
}

@media (max-width: 900px) {
    .wl-page #wl-results { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .wl-page #wl-results  { grid-template-columns: 1fr; }
    .wl-floating          { right: 14px; bottom: 14px; }
    .wl-header h1         { font-size: 22px; }
}
