.zai-fav-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    cursor: pointer;
}
.zai-fav-icon svg {
    width: 25px;
    height: 25px;
    display: block;
}
@media (max-width: 1024px) {
    .zai-fav-icon svg {
        width: 20px;
        height: 20px;
    }
}
.zai-fav-count-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zai-fav-count {
    font-size: 11px;
    line-height: 1;
    font-weight: 600;
    color: #fff;
}

/* Modal overlay */
.zai-fav-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
}
.zai-fav-modal-overlay.is-open {
    display: flex;
}
.zai-fav-modal {
    background: #fff;
    max-width: 720px;
    width: 100%;
    border-radius: 8px;
    padding: 32px 32px 28px;
    position: relative;
    text-align: center;
}
.zai-fav-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}
.zai-fav-modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}
.zai-fav-modal-subtitle {
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
}
.zai-fav-modal-empty-text {
    margin-bottom: 12px;
    font-size: 16px;
}
.zai-fav-modal-empty-sub {
    font-size: 14px;
    color: #777;
    margin-bottom: 24px;
}
.zai-fav-modal-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 4px;
    background: #000;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

/* Grid de produtos no modal */
.zai-fav-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    text-align: left;
    margin-top: 16px;
}
.zai-fav-product-card {
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.zai-fav-product-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}
.zai-fav-product-title {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
}
.zai-fav-product-price {
    font-size: 13px;
    font-weight: 600;
}
.zai-fav-product-link {
    font-size: 12px;
    text-decoration: underline;
}

/* Botão de favoritar: estilo link com ícone, sem "cara" de botão */
.zai-fav-toggle {
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}
.zai-fav-toggle:hover .zai-fav-label {
    text-decoration: underline;
}
.zai-fav-toggle .zai-fav-heart {
    display: inline-flex;
}
.zai-fav-toggle .zai-fav-heart svg {
    width: 16px;
    height: 16px;
}

/* Estado marcado: coração preenchido e texto levemente destacado */
.zai-fav-toggle.is-favorite .zai-fav-heart svg path {
    fill: #e0245e;
    stroke: #e0245e;
}
.zai-fav-toggle.is-favorite .zai-fav-label {
    font-weight: 500;
}
