/* ==========================================================
   Yalanext Wishlist — Styles
   ========================================================== */

/* ------- Heart button active state (product cards) ------- */
.yalanext-wishlist-toggle.in-wishlist i {
    color: #e53935;
}
.yalanext-wishlist-toggle.in-wishlist:hover {
    background-color: #e53935;
}
.yalanext-wishlist-toggle.in-wishlist:hover i {
    color: #fff;
}
.yalanext-wishlist-toggle.yxl-loading {
    opacity: 0.5;
    pointer-events: none;
}

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

/* Reset any parent theme interference on our page wrapper */
.yxl-page,
.yxl-page * {
    box-sizing: border-box;
}

/* ------- Banner ------- */
.yxl-banner {
    background: #fff !important;
    color: #000 !important;
    text-align: center !important;
    padding: 60px 24px !important;
    margin: 0 !important;
}
.yxl-banner h1 {
    font-size: 2.5rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #000 !important;
    letter-spacing: -0.02em !important;
    text-align: center !important;
    line-height: 1.1 !important;
}
.yxl-banner p {
    font-size: 14px !important;
    color: rgba(0, 0, 0, 0.55) !important;
    margin: 10px 0 0 !important;
    text-align: center !important;
}

/* ------- Buttons (pill-shaped, black) ------- */
.yxl-btn {
    display: inline-block !important;
    background: #fff !important;
    color: #000 !important;
    padding: 14px 40px !important;
    border-radius: 25px !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    border: 1.5px solid #000 !important;
    cursor: pointer !important;
    transition: background 0.25s, color 0.25s !important;
    line-height: 1 !important;
}
.yxl-btn:hover {
    background: #222 !important;
    color: #000 !important;
}
.yxl-btn.yxl-btn-outline {
    background: transparent !important;
    color: #000 !important;
}
.yxl-btn.yxl-btn-outline:hover {
    background: #fff !important;
    color: #000 !important;
}

/* ------- Product grid ------- */
.yxl-wishlist-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ------- Product card ------- */
.yxl-wishlist-item {
    position: relative !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    text-align: left !important;
    box-shadow: none !important;
}

/* Image wrapper */
.yxl-item-img-wrap {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 4px !important;
}
.yxl-item-img {
    display: block !important;
    aspect-ratio: 3 / 4 !important;
    overflow: hidden !important;
    background: #f5f5f4 !important;
    text-decoration: none !important;
}
.yxl-item-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.7s ease !important;
    border-radius: 0 !important;
}
.yxl-wishlist-item:hover .yxl-item-img img {
    transform: scale(1.05) !important;
}

/* Sale badge */
.yxl-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: #fff !important;
    color: #000 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    padding: 5px 10px !important;
    border-radius: 2px !important;
    line-height: 1 !important;
    z-index: 2 !important;
    display: inline-block !important;
}

/* Remove button (filled heart, white circle on image) */
.yxl-wishlist-item .yalanext-wishlist-remove {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    color: #000 !important;
    text-decoration: none !important;
    z-index: 2 !important;
    opacity: 0 !important;
    transition: opacity 0.25s, transform 0.25s !important;
    padding: 0 !important;
    border: none !important;
    min-width: 0 !important;
    min-height: 0 !important;
}
.yxl-wishlist-item:hover .yalanext-wishlist-remove {
    opacity: 1 !important;
}
.yxl-wishlist-item .yalanext-wishlist-remove:hover {
    transform: scale(1.1) !important;
    color: #000 !important;
}

/* Product info */
.yxl-item-info {
    padding-top: 12px !important;
}
.yxl-item-cat {
    display: block !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.15em !important;
    color: #888 !important;
    margin-bottom: 4px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}
.yxl-item-title {
    display: block !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #000 !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    transition: opacity 0.2s !important;
}
.yxl-item-title:hover {
    opacity: 0.6 !important;
    color: #000 !important;
}
.yxl-item-price {
    font-size: 14px !important;
    color: #000 !important;
    margin-top: 4px !important;
}
.yxl-item-price del {
    color: #888 !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
}
.yxl-item-price ins {
    text-decoration: none !important;
    font-weight: 600 !important;
    color: #000 !important;
}

/* ------- Responsive ------- */
@media (max-width: 1024px) {
    .yxl-wishlist-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .yxl-banner {
        padding: 44px 20px !important;
    }
    .yxl-banner h1 {
        font-size: 2rem !important;
    }
    .yxl-wishlist-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 14px !important;
    }
    /* Always show remove button on touch devices */
    .yxl-wishlist-item .yalanext-wishlist-remove {
        opacity: 1 !important;
    }
}

@media (max-width: 480px) {
    .yxl-banner {
        padding: 32px 16px !important;
    }
    .yxl-banner h1 {
        font-size: 1.75rem !important;
    }
    .yxl-item-title {
        font-size: 13px !important;
    }
    .yxl-item-price {
        font-size: 13px !important;
    }
    .yxl-btn {
        padding: 12px 28px !important;
    }
}

/* ==========================================================
   Toast notifications
   ========================================================== */
#yxl-toast-host {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.yxl-toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #000;
    color: #fff;
    border-radius: 25px;
    padding: 12px 20px;
    min-width: 260px;
    max-width: 90vw;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
    transform: translateY(40px);
    opacity: 0;
    animation: yxl-slide-in 0.3s ease forwards;
}
.yxl-toast.yxl-removed {
    background: #1a1a1a;
}
.yxl-toast-body {
    display: flex;
    flex-direction: column;
}
.yxl-toast-title {
    font-weight: 500;
    line-height: 1.3;
    font-size: 13px;
}
.yxl-toast-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.yxl-toast-btn {
    background: #fff;
    color: #000;
    padding: 6px 14px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.yxl-toast-btn:hover {
    color: #000;
}
.yxl-toast.yxl-removed .yxl-toast-btn {
    color: #000;
}
.yxl-toast-close {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: none;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}
.yxl-toast-close:hover {
    color: #fff;
}
.yxl-hide {
    animation: yxl-slide-out 0.25s ease forwards;
}

@keyframes yxl-slide-in {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes yxl-slide-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(40px); }
}

@media (max-width: 600px) {
    .yxl-toast {
        min-width: auto;
        width: calc(100vw - 32px);
        font-size: 13px;
        padding: 10px 16px;
    }
    .yxl-toast-title { font-size: 13px; }
    .yxl-toast-btn { font-size: 10px; padding: 5px 10px; }
}
