/* ============================================================================
   WISHLIST STYLES  (header heart icon, product-card heart button, wishlist page)
   Linked from resources/views/frontend/layouts/partials/head.blade.php.
   Kept in this external file — no inline styles in the Blade views.
   ========================================================================== */

/* ---- Header heart icon (sits next to the bell / cart) ---- */
.eb-wish {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: #555;
    text-decoration: none !important; /* kill the theme's a:hover underline */
    transition: color .15s;
}
.eb-wish:hover,
.eb-wish:focus { color: #e53935; text-decoration: none !important; }
.eb-wish i { font-size: 16px; }
.eb-wish__badge {
    position: absolute;
    top: -8px; right: -10px;
    min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 999px;
    background: #e53935; color: #fff;
    font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.eb-wish__badge.is-zero { display: none; }

/* ---- Porto product-card wishlist buttons (.btn-icon-wish) active state ---- */
.btn-icon-wish.js-wish-toggle { cursor: pointer; transition: color .15s; }
.btn-icon-wish.is-active,
.btn-icon-wish.is-active i { color: #e53935 !important; }

/* ---- Reusable heart toggle button on product cards ---- */
.wish-btn {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid #e3e6ec; background: #fff; color: #8a92a6;
    cursor: pointer; transition: all .15s;
}
.wish-btn:hover { border-color: #e53935; color: #e53935; }
.wish-btn.is-active { background: #e53935; border-color: #e53935; color: #fff; }
.wish-btn i { font-size: 15px; }

/* ---- Wishlist page ---- */
.wl-wrap { padding: 30px 0 60px; }
.wl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 10px; }
.wl-head h1 { font-size: 24px; font-weight: 800; color: #1a1a2e; margin: 0; }
.wl-head p { margin: 0; color: #7a8195; font-size: 14px; }

.wl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 20px; }
.wl-card {
    background: #fff; border: 1px solid #eceef4; border-radius: 14px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(20,30,60,.06); display: flex; flex-direction: column;
    transition: transform .15s, box-shadow .15s;
}
.wl-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(20,30,60,.1); }
.wl-card__imgwrap { position: relative; aspect-ratio: 1; background: #f6f7fb; }
.wl-card__imgwrap img { width: 100%; height: 100%; object-fit: cover; }
.wl-card__remove {
    position: absolute; top: 8px; right: 8px;
    width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.92); color: #e53935; display: grid; place-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.wl-card__remove:hover { background: #e53935; color: #fff; }
.wl-card__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wl-card__name { font-size: 14px; font-weight: 600; color: #1a1a2e; text-decoration: none; line-height: 1.35; }
.wl-card__name:hover { color: #1565c0; }
.wl-card__meta { font-size: 12px; color: #8a92a6; }
.wl-card__price { font-size: 17px; font-weight: 800; color: #1a1a2e; margin-top: auto; }
.wl-card__old { font-size: 13px; color: #b6bccb; text-decoration: line-through; margin-left: 6px; font-weight: 500; }
.wl-card__actions { padding: 0 14px 14px; }
.wl-card__cart {
    display: block; width: 100%; text-align: center; text-decoration: none;
    padding: 10px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
    color: #fff; background: linear-gradient(135deg, #1565c0, #42a5f5); border: 0; cursor: pointer;
}
.wl-card__cart:hover { filter: brightness(1.05); color: #fff; }

/* ---- Empty state ---- */
.wl-empty { text-align: center; padding: 70px 20px; }
.wl-empty i { font-size: 54px; color: #d6dae6; margin-bottom: 16px; }
.wl-empty h3 { font-size: 20px; color: #1a1a2e; margin: 0 0 6px; }
.wl-empty p { color: #8a92a6; margin: 0 0 20px; }
.wl-empty a { display: inline-block; padding: 12px 26px; border-radius: 11px; background: #1a1a2e; color: #fff; text-decoration: none; font-weight: 700; }
