/* ── Nav Icon ─────────────────────────────────────────────────────── */
.ifav-nav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    font-size: 20px;
}

.ifav-nav-heart {
    transition: color 0.2s;
}

.ifav-nav-heart.fas {
    color: #AF3C7E;
}

.ifav-nav-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #AF3C7E;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    padding: 0 3px;
}

/* ── Product Page Button ──────────────────────────────────────────── */
.ifav-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #AF3C7E;
    border-radius: 6px;
    background: #fff;
    color: #AF3C7E;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ifav-favorite-btn:hover {
    background: #f9eef5;
}

.ifav-favorite-btn.is-favorited {
    background: #AF3C7E;
    color: #fff;
}

.ifav-btn-icon {
    font-size: 16px;
}

/* ── Archive/Category Heart Icon ──────────────────────────────────── */
/* Positioning (absolute, on top of the product image) is handled via
   Elementor's own Advanced → Position settings on the Shortcode widget —
   same technique already used for the "Order Now" icon on product cards.
   This CSS only styles the icon's appearance, not its placement. */

.ifav-heart-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 16px;
    color: #AF3C7E;
    transition: transform 0.15s;
}

.ifav-heart-icon:hover {
    transform: scale(1.1);
}

.ifav-heart-icon.is-favorited i {
    color: #AF3C7E;
}

/* ── Favorites Page ───────────────────────────────────────────────── */
#ifav-page-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.ifav-intro {
    text-align: center;
    margin-bottom: 32px;
}

.ifav-intro h2 {
    color: #AF3C7E;
    margin-bottom: 10px;
}

.ifav-btn-primary {
    background: #AF3C7E;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.ifav-btn-primary:hover {
    background: #8e2f64;
}

.ifav-btn-secondary {
    background: #fff;
    color: #AF3C7E;
    border: 2px solid #AF3C7E;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

#ifav-share-result {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

#ifav-share-url {
    max-width: 400px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 13px;
}

#ifav-copy-btn {
    background: #AF3C7E;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px 16px;
    font-size: 13px;
    cursor: pointer;
}

.ifav-shared-notice {
    background: #f9eef5;
    border: 1px solid #AF3C7E;
    border-radius: 6px;
    padding: 14px 20px;
    text-align: center;
    margin-bottom: 24px;
}

.ifav-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.ifav-empty-state a {
    color: #AF3C7E;
    font-weight: 600;
}

.ifav-group {
    margin-bottom: 40px;
}

.ifav-group-title {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.ifav-group-title a {
    color: #AF3C7E;
    text-decoration: none;
}

.ifav-group-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ifav-card-wrapper {
    position: relative;
}

.ifav-remove-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
    color: #c0392b;
    cursor: pointer;
}

.ifav-remove-btn:hover {
    background: #fdf1f0;
}

@media (max-width: 900px) {
    .ifav-group-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ifav-group-grid {
        grid-template-columns: 1fr;
    }
}
