/* =========================== Wishlist =========================== */

/* heart button sits on the top-right of every product card */
.product-card,
.deal-product-card,
.product_item_inner {
    position: relative;
}

.wl-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 6;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #444;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.wl-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: fill 0.15s ease;
}

.wl-btn:hover { color: var(--primary); transform: scale(1.08); }
.wl-btn.is-active { color: var(--primary); }
.wl-btn.is-active svg { fill: var(--primary); }
.wl-btn.is-busy { opacity: 0.6; pointer-events: none; }

/* wide button on the product details page */
.wl-btn--text {
    position: static;
    width: auto;
    height: auto;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
    background: #fff;
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.wl-btn--text svg { width: 18px; height: 18px; }
.wl-btn--text:hover { transform: none; border-color: var(--primary); }
.wl-btn--text.is-active { border-color: var(--primary); }

/* header icon with count */
.wishlist-btn {
    position: relative;
    display: none;
    align-items: center;
    color: #333;
}

.wishlist-btn svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wl-count {
    position: absolute;
    top: -7px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

.wl-count[hidden] { display: none; }

@media (min-width: 901px) {
    /* header order: Offers, Track order, Cart, Wishlist, Account */
    html body.app-home .header-actions .offers-btn     { order: 1; }
    html body.app-home .header-actions .btn-track      { order: 2; }
    html body.app-home .header-actions .cart-wrap      { order: 3; }
    html body.app-home .header-actions .wishlist-btn   { order: 4; display: inline-flex; }
    html body.app-home .header-actions .profile-btn    { order: 5; }
}

/* "More" sheet / drawer link counter */
.wl-inline-count {
    margin-left: auto;
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
}

.wl-inline-count[hidden] { display: none; }

/* wishlist page */
.wl-page { padding: 26px 0 40px; min-height: 50vh; }

.wl-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.wl-page-head h1 { margin: 0; font-size: 24px; font-weight: 700; color: #111; }
.wl-page-count { font-size: 16px; font-weight: 500; color: #777; }
.wl-continue { font-size: 14px; font-weight: 600; color: var(--primary); }

.wl-guest-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--primary-softer, #f7f3fa);
    color: #333;
    font-size: 14px;
}

.wl-guest-note i { color: var(--primary); }
.wl-guest-note a { color: var(--primary); font-weight: 600; text-decoration: underline; }
.wl-guest-note[hidden] { display: none; }

.wl-loading { padding: 40px 0; text-align: center; color: #777; }
.wl-loading[hidden] { display: none; }

.wl-card { transition: opacity 0.2s ease, transform 0.2s ease; }
.wl-card.wl-removing { opacity: 0; transform: scale(0.96); }

.wl-empty { padding: 60px 16px; text-align: center; color: #555; }
.wl-empty[hidden] { display: none; }
.wl-empty svg { width: 64px; height: 64px; color: var(--primary); opacity: 0.8; }
.wl-empty h2 { margin: 14px 0 6px; font-size: 20px; color: #111; }
.wl-empty p { margin: 0 0 18px; }

.wl-empty-btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
}

/* toast */
.wl-toast {
    position: fixed;
    left: 50%;
    bottom: 40px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: calc(100% - 32px);
    padding: 11px 18px;
    border-radius: 10px;
    background: #222;
    color: #fff;
    font-size: 14px;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wl-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.wl-toast a { color: #fff; font-weight: 700; text-decoration: underline; }

@media (max-width: 900px) {
    .wl-toast { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
    .wl-page-head h1 { font-size: 20px; }
    .wl-btn { width: 30px; height: 30px; top: 6px; right: 6px; }
    .wl-btn svg { width: 16px; height: 16px; }
}

@media (max-width: 1100px) {
    .wl-grid { grid-template-columns: repeat(3, 1fr); }
}

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