/* ==========================================================
   GET4HOME — ΛΙΣΤΑ ΑΓΑΠΗΜΕΝΩΝ (Ο λογαριασμός μου -> Αγαπημένα)
========================================================== */

.g4h-wishlist-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:16px;
    margin-bottom:22px;
}

.g4h-wishlist-header-left{
    display:flex;
    align-items:center;
    gap:14px;
}

.g4h-wishlist-header-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:48px;
    height:48px;
    border-radius:50%;
    background:#fff1e0;
    color:#f7a823;
}

.g4h-wishlist-header-icon svg{
    width:22px;
    height:22px;
}

.g4h-wishlist-header-text h2{
    margin:0;
    font-family:'Nunito', sans-serif;
    font-size:20px;
    font-weight:800;
    color:#16233f;
}

.g4h-wishlist-header-text p{
    margin:2px 0 0;
    font-family:'Nunito', sans-serif;
    font-size:13.5px;
    font-weight:700;
    color:#8a98ad;
}

.g4h-wishlist-actions{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.g4h-wishlist-sort{
    height:42px;
    padding:0 14px;
    border:1px solid #ececec;
    border-radius:999px;
    background:#f9fafb;
    font-family:Inter, sans-serif;
    font-size:13.5px;
    font-weight:600;
    color:#173d66;
    cursor:pointer;
}

.g4h-wishlist-sort:focus{
    outline:none;
    border-color:#149dcb;
    background:#fff;
}

.g4h-wishlist-addall{
    display:inline-flex;
    align-items:center;
    gap:8px;
    height:42px;
    padding:0 20px;
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg,#FFD60A 0%,#FF8500 100%);
    color:#0077B6;
    font-family:Inter, sans-serif;
    font-size:13.5px;
    font-weight:800;
    cursor:pointer;
    white-space:nowrap;
    transition:transform .15s ease, box-shadow .15s ease;
}

.g4h-wishlist-addall svg{
    width:16px;
    height:16px;
}

.g4h-wishlist-addall:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(255,133,0,.3);
}

.g4h-wishlist-addall[disabled]{
    opacity:.6;
    cursor:default;
    transform:none;
    box-shadow:none;
}

.g4h-wishlist-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(232px, 1fr));
    gap:14px;
}

.g4h-wishlist-card{
    position:relative;
    display:flex;
    flex-direction:column;
    background:#fff;
    border:1px solid #ececec;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 6px 24px rgba(0,0,0,.05);
    transition:opacity .2s ease, transform .2s ease;
}

.g4h-wishlist-card.is-removing{
    opacity:0;
    transform:scale(.96);
}

.g4h-wishlist-remove{
    position:absolute;
    top:8px;
    right:8px;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:center;
    width:26px;
    height:26px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.92);
    color:#5c6b7d;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
    transition:background-color .15s ease, color .15s ease;
}

.g4h-wishlist-remove:hover{
    background:#fdecec;
    color:#c62828;
}

.g4h-wishlist-image{
    position:relative;
    display:block;
    aspect-ratio:4 / 3;
    background:#f5f7fa;
    padding:10px;
    box-sizing:border-box;
}

.g4h-wishlist-image img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.g4h-wishlist-badges{
    position:absolute;
    top:10px;
    left:10px;
    z-index:2;
    display:flex;
    flex-direction:column;
    gap:6px;
}

.g4h-wishlist-badge{
    display:inline-flex;
    align-items:center;
    height:22px;
    padding:0 9px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    font-family:Inter, sans-serif;
    color:#fff;
}

.g4h-wishlist-badge--sale{
    background:#c62828;
}

.g4h-wishlist-badge--new{
    background:#149dcb;
}

.g4h-wishlist-overlay{
    position:absolute;
    inset:0;
    z-index:1;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(23,61,102,.62);
}

.g4h-wishlist-overlay span{
    padding:6px 16px;
    border-radius:999px;
    background:rgba(255,255,255,.92);
    color:#173d66;
    font-family:Inter, sans-serif;
    font-size:12.5px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.3px;
}

.g4h-wishlist-info{
    display:flex;
    flex-direction:column;
    gap:6px;
    padding:12px;
    flex:1;
}

.g4h-wishlist-category{
    font-family:Inter, sans-serif;
    font-size:11px;
    font-weight:800;
    letter-spacing:.4px;
    text-transform:uppercase;
    color:#8a98ad;
}

.g4h-wishlist-name{
    display:block;
    font-family:Inter, sans-serif;
    font-size:13px;
    font-weight:900;
    color:#16233f;
    text-decoration:none;
    line-height:1.4;
    overflow-wrap:break-word;
}

.g4h-wishlist-name:hover{
    color:#1f6fb2;
    text-decoration:underline;
}

.g4h-wishlist-price{
    font-family:Inter, sans-serif;
    font-size:13px;
    font-weight:800;
    color:#173d66;
}

.g4h-wishlist-price del{
    margin-right:6px;
    font-size:12.5px;
    font-weight:600;
    color:#a7b1bd;
    opacity:1;
}

.g4h-wishlist-price ins{
    text-decoration:none;
    color:#c9781a;
}

.g4h-wishlist-stock-pill{
    display:inline-flex;
    align-items:center;
    align-self:flex-start;
    height:24px;
    padding:0 10px;
    border-radius:999px;
    font-size:11.5px;
    font-weight:700;
    font-family:Inter, sans-serif;
}

.g4h-wishlist-stock-pill--in{
    gap:6px;
    padding:0;
    height:auto;
    background:none;
    color:#0f7a50;
    font-weight:800;
}

.g4h-wishlist-stock-pill--in::before{
    content:'';
    display:inline-block;
    width:7px;
    height:7px;
    border-radius:50%;
    background:#0f7a50;
    flex-shrink:0;
}

.g4h-wishlist-stock-pill--low{
    background:#fff4e0;
    color:#c9781a;
}

.g4h-wishlist-stock-pill--out{
    background:#fdecec;
    color:#c62828;
}

.g4h-wishlist-stock-pill--backorder{
    background:#fff4e0;
    color:#c9781a;
}

.g4h-wishlist-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    height:34px;
    margin-top:auto;
    border:none;
    border-radius:999px;
    font-family:Inter, sans-serif;
    font-size:12px;
    font-weight:700;
    text-decoration:none;
    cursor:pointer;
    white-space:nowrap;
    transition:transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.g4h-wishlist-btn--cart{
    background:linear-gradient(135deg,#FFD60A 0%,#FF8500 100%);
    color:#0077B6;
}

.g4h-wishlist-btn--cart:hover{
    transform:translateY(-1px);
    box-shadow:0 8px 20px rgba(255,133,0,.3);
}

.g4h-wishlist-btn--cart.is-added{
    background:#e6f7ee;
    color:#12915a;
    transform:none;
    box-shadow:none;
}

.g4h-wishlist-btn--variant{
    background:#f5f7fa;
    color:#173d66;
    border:1px solid #ececec;
}

.g4h-wishlist-btn--variant:hover{
    background:#eef3f8;
}

.g4h-wishlist-btn--notify{
    background:#eef3f8;
    color:#0077B6;
}

.g4h-wishlist-btn--notify:hover{
    background:#e2eef7;
}

.g4h-wishlist-btn--notify.is-sent{
    background:#e6f7ee;
    color:#12915a;
    cursor:default;
}

.g4h-wishlist-btn[disabled]{
    opacity:.7;
    cursor:default;
    transform:none;
    box-shadow:none;
}

/* ---------- Άδεια λίστα ---------- */

.g4h-wishlist-wrap.is-empty{
    display:none;
}

.g4h-wishlist-empty{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:10px;
    padding:56px 24px;
    color:#8a97a8;
}

.g4h-wishlist-empty[hidden]{
    display:none;
}

.g4h-wishlist-empty-icon{
    display:inline-flex;
    color:#c7d0da;
    margin-bottom:6px;
}

.g4h-wishlist-empty-icon svg{
    width:40px;
    height:40px;
}

.g4h-wishlist-empty p{
    margin:0;
    font-family:Inter, sans-serif;
    font-size:15px;
    color:#5c6b7d;
}

.g4h-wishlist-empty-link{
    font-family:Inter, sans-serif;
    font-size:14px;
    font-weight:700;
    color:#0077B6;
    text-decoration:none;
}

.g4h-wishlist-empty-link:hover{
    text-decoration:underline;
}

@media(max-width:760px){

    .g4h-wishlist-header{
        flex-direction:column;
        align-items:stretch;
    }

    .g4h-wishlist-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .g4h-wishlist-grid{
        grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
        gap:14px;
    }

}

@media(max-width:460px){

    .g4h-wishlist-grid{
        grid-template-columns:1fr 1fr;
    }

}

/* ==========================================================
   Καρδούλα toggle -- κατάλογος & σελίδα προϊόντος
========================================================== */

.g4h-wishlist-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    background:#fff;
    color:#8a97a8;
    cursor:pointer;
    transition:color .15s ease, transform .15s ease;
}

.g4h-wishlist-toggle svg{
    width:18px;
    height:18px;
}

.g4h-wishlist-toggle:hover{
    color:#c62828;
    transform:scale(1.08);
}

.g4h-wishlist-toggle.is-active{
    color:#c62828;
}

.g4h-wishlist-toggle.is-loading{
    opacity:.6;
    pointer-events:none;
}

/* Κάρτα προϊόντος καταλόγου (template-parts/home/product-card.php) --
   στρογγυλό κουμπί πάνω-δεξιά στη φωτογραφία. */
.g4h-product-card{
    position:relative;
}

.g4h-product-card .g4h-wishlist-toggle{
    position:absolute;
    top:12px;
    right:12px;
    z-index:3;
    width:36px;
    height:36px;
    border-radius:50%;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

/* Σελίδα προϊόντος -- ήδη τοποθετημένο μέσω .g4h-wishlist-heart στο
   single-product.css (πάνω-αριστερά στη φωτογραφία). Εδώ απλά
   ευθυγραμμίζουμε το εικονίδιο SVG με το ίδιο μέγεθος/χρώμα logic. */
.g4h-wishlist-heart.is-active{
    color:#c62828;
}

.g4h-wishlist-heart svg{
    fill:none;
}

.g4h-wishlist-heart.is-active svg{
    fill:currentColor;
}